:root {
  color-scheme: light;
  --night: #17243c;
  --ink: #202d40;
  --muted: #536176;
  --link: #244d78;
  --edge: #c3cdd3;
  --paper: #fff;
  --ground: #edf1f2;
  --teal: #11675e;
  --mint: #9ce3c0;
  --mono: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  --sans: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  font: 100%/1.5 var(--sans);
  background: var(--ground);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
:where(h1, h2, h3, p, ul, ol, blockquote) { margin-block: 0 0.8em; }
:where(h1, h2, h3, legend) { line-height: 1.18; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 4vw, 2.7rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); letter-spacing: -.028em; }
h3 { font-size: 1.08rem; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { color: var(--teal); text-decoration-thickness: 2px; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #d47c12; outline-offset: 3px; }
img { max-width: 100%; height: auto; vertical-align: middle; }
::selection { background: #c4e9dc; color: #162736; }
.wrap { width: min(calc(100% - 2.5rem), 65rem); margin-inline: auto; }
main { min-width: 0; padding-block: 1.75rem 3rem; }
main > :first-child { margin-top: 0; }
main > :last-child { margin-bottom: 0; }

.mast {
  color: #eef5f9;
  background: var(--night);
  border-bottom: 3px solid var(--mint);
}
.mast > .wrap, .mast.wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .65rem 1.5rem;
  padding-block: .9rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: white;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.045em;
  text-decoration: none;
  line-height: 1;
}
.brand::before {
  content: "";
  flex: none;
  inline-size: 1.72rem;
  block-size: 1.5rem;
  background:
    linear-gradient(var(--night) 0 0) .35rem .46rem / .96rem .17rem no-repeat,
    linear-gradient(var(--night) 0 0) .35rem .76rem / .6rem .17rem no-repeat,
    var(--mint);
  clip-path: polygon(10% 0,90% 0,90% 10%,100% 10%,100% 72%,90% 72%,90% 82%,45% 82%,34% 94%,20% 94%,20% 82%,10% 82%,10% 72%,0 72%,0 10%,10% 10%);
}
.mast a { color: #edf4f8; }
.mast a:hover { color: var(--mint); }
.nav, .actions, .tabs {
  display: flex;
  gap: .6rem 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.nav, .crumb, .tabs { font: 600 .875rem/1.45 var(--sans); }
.nav a { text-decoration: none; }
.nav a:hover, .nav [aria-current="page"] { text-decoration: underline; text-underline-offset: .38em; }
.crumb { margin: 0 0 .9rem; color: var(--muted); }
.crumb a { color: inherit; }
.tabs { margin: .85rem 0; }
.tabs a[aria-current="page"] { color: var(--ink); text-decoration-thickness: 3px; }

/* The stepped skyline is decorative and carries no forum information. */
.hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: center;
  justify-items: start;
  padding: clamp(1.4rem, 4vw, 2.65rem);
  padding-inline-end: 30%;
  margin: 0 0 1.5rem;
  min-height: 10.25rem;
  color: #f7f9f8;
  background: linear-gradient(95deg, #203448 25%, #284651 68%, #45676a);
  border: 1px solid #1c3444;
  border-radius: 5px;
}
.hero h1 { margin: 0; line-height: 1.08; color: inherit; }
.hero p { margin: .55rem 0 0; color: #d6e8e6; max-width: 45ch; }
.hero a { color: inherit; }
.hero::before, .hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}
.hero::before {
  top: 0; bottom: 0; right: 0; width: 40%;
  background:
    linear-gradient(#e4dda8 0 0) 72% 22% / 1.7rem 1.1rem no-repeat,
    linear-gradient(#e4dda8 0 0) 71% 22% / 1.1rem 1.7rem no-repeat,
    linear-gradient(#bacdc0 0 0) 15% 26% / 3px 3px no-repeat,
    linear-gradient(#bacdc0 0 0) 42% 18% / 3px 3px no-repeat,
    linear-gradient(#bacdc0 0 0) 90% 39% / 3px 3px no-repeat,
    linear-gradient(#bacdc0 0 0) 30% 42% / 3px 3px no-repeat;
}
.hero::after {
  bottom: 0; right: 0; width: 42%; height: 70%;
  background: #203d45;
  clip-path: polygon(0 100%,0 93%,6% 93%,6% 86%,12% 86%,12% 78%,17% 78%,17% 73%,22% 73%,22% 77%,26% 77%,26% 70%,31% 70%,31% 61%,36% 61%,36% 53%,40% 53%,40% 43%,44% 43%,44% 35%,48% 35%,48% 45%,52% 45%,52% 56%,58% 56%,58% 62%,63% 62%,63% 56%,68% 56%,68% 49%,72% 49%,72% 42%,75% 42%,75% 32%,79% 32%,79% 24%,82% 24%,82% 14%,86% 14%,86% 20%,89% 20%,89% 30%,93% 30%,93% 38%,96% 38%,96% 44%,100% 44%,100% 100%);
}
.hero .meta, .hero .muted { color: #cee3de; }

.panel, .board-list, .thread-list, .post-list {
  border: 1px solid var(--edge);
  border-radius: 5px;
  background: var(--paper);
  box-shadow: 0 2px 0 rgb(24 46 64 / .045);
}
.panel { padding: clamp(1rem, 2.8vw, 1.6rem); margin-block: 1rem; }
.panel > :last-child { margin-bottom: 0; }
.panel > h2:first-child { margin-top: 0; }
.board-list, .thread-list { padding: 0; list-style: none; margin-block: .8rem 1.6rem; }
.board-list > :first-child, .thread-list > :first-child { border-start-start-radius: inherit; border-start-end-radius: inherit; }
.board-list > :last-child, .thread-list > :last-child { border-end-start-radius: inherit; border-end-end-radius: inherit; }
.board-list > * + *, .thread-list > * + * { border-top: 1px solid #d9e0e4; }
.board, .topic {
  display: flex;
  align-items: center;
  gap: .7rem 1.1rem;
  padding: 1rem 1.2rem;
  overflow-wrap: anywhere;
}
.board { min-height: 5.1rem; }
a.board, a:where(.topic) { text-decoration: none; color: inherit; }
.board:hover, .topic:hover { background-color: #f4f9f8; }
.board-info { flex: 1 1 auto; min-width: 0; }
.board :where(h2,h3,p), .topic :where(h2,h3,p) { margin: 0; }
.board :where(h2,h3), .topic :where(h2,h3) { font-size: 1.12rem; }
.board :where(h2,h3,strong) a, .topic :where(h2,h3,strong) a { color: var(--ink); text-decoration: none; }
.board :where(h2,h3,strong) a:hover, .topic :where(h2,h3,strong) a:hover { color: var(--teal); text-decoration: underline; }
a.topic:is(:hover, :focus-visible) h3 { color: var(--teal); text-decoration: underline; }
.board-info p, .topic p { margin-top: .15rem; color: var(--muted); }
.board > .meta, .topic > .meta { margin-inline-start: auto; }
.board-icon {
  width: 3.25rem; height: 3.25rem;
  position: relative;
  flex: none;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px #152a4226;
  background: #d4dfe9;
}
/* A pixel sprout made from one small stepped silhouette. */
.board-icon.farm { background: #c3dec0; }
.board-icon.farm::before {
  content: "";
  position: absolute;
  inset: 18% 15% 13%;
  background: linear-gradient(to bottom, #4a7748 0 36%, #325d3f 36% 70%, #875d42 70%);
  clip-path: polygon(0 15%,32% 15%,32% 25%,41% 25%,41% 35%,50% 35%,50% 44%,57% 44%,57% 19%,65% 19%,65% 10%,75% 10%,75% 0,100% 0,100% 25%,91% 25%,91% 34%,80% 34%,80% 42%,69% 42%,69% 49%,59% 49%,59% 75%,78% 75%,78% 84%,90% 84%,90% 94%,10% 94%,10% 84%,22% 84%,22% 75%,47% 75%,47% 55%,32% 55%,32% 46%,18% 46%,18% 38%,8% 38%,8% 28%,0 28%);
}
.board-icon.sky {
  background:
    linear-gradient(#e6d9fe 0 0) 15% 24% / 3px 3px no-repeat,
    linear-gradient(#e6d9fe 0 0) 82% 17% / 3px 3px no-repeat,
    linear-gradient(#e6d9fe 0 0) 85% 80% / 3px 3px no-repeat,
    #525b85;
}
.board-icon.sky::before {
  content: ""; position: absolute; inset: 23%;
  background: linear-gradient(145deg, #feebb9 55%, #dcc09d 55%);
  clip-path: polygon(40% 0,60% 0,60% 23%,69% 23%,69% 32%,78% 32%,78% 40%,100% 40%,100% 60%,77% 60%,77% 69%,68% 69%,68% 78%,60% 78%,60% 100%,40% 100%,40% 78%,31% 78%,31% 69%,22% 69%,22% 60%,0 60%,0 40%,22% 40%,22% 32%,31% 32%,31% 23%,40% 23%);
}
.meta, .muted, small, time { color: var(--muted); }
.meta, small, time { font-size: .875rem; }
.tag {
  display: inline-block; background: #e3efed; color: #235e54; border: 1px solid #c0d5d0;
  border-radius: 3px; padding: .1rem .42rem; font: 600 .78rem/1.4 var(--mono);
}
.post-list { margin-block: .8rem 1rem; }
.post {
  display: grid;
  grid-template-columns: clamp(10rem, 21%, 12.5rem) minmax(0, 1fr);
  scroll-margin-top: .75rem;
}
.post + .post { border-block-start: 1px solid var(--edge); }
.byline {
  min-width: 0;
  padding: .45rem .75rem;
  border-inline-end: 1px solid var(--edge);
  background: #edf3f3;
  overflow-wrap: anywhere;
  line-height: 1.3;
}
.post:first-child .byline { border-start-start-radius: 4px; }
.post:last-child .byline { border-end-start-radius: 4px; }
.post-author { display: flex; align-items: center; gap: .4rem; }
.post-author .avatar { flex: none; width: 2rem; height: 2rem; }
.byline .subline, .byline time {
  display: block;
  margin: .15rem 0 0;
  font-size: .8rem;
  color: var(--muted);
}
.byline time { font-variant-numeric: tabular-nums; }
.byline time span { display: inline-block; }
.post-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  align-items: start;
  column-gap: .5rem;
  padding: .45rem .75rem;
}
.post-number {
  min-width: 1.5rem;
  text-align: end;
  font-size: .8rem;
  line-height: 1.5rem;
}
.post-message blockquote { margin: 0 0 .35rem; padding: .3rem .65rem; }
.post-message blockquote p { margin: 0; }
.post-message .tag { margin-bottom: .2rem; }
.post .actions {
  grid-column: 1 / -1;
  gap: .15rem .65rem;
  margin: .2rem 0 0;
  font-size: .8125rem;
}
.post .actions:empty { display: none; }
.post .actions button { min-height: 1.5rem; padding: .08rem .45rem; }
.post .actions a { display: inline-flex; align-items: center; min-height: 1.5rem; }
#reply-form { scroll-margin-block-start: min(20vh, 9rem); }
.author { color: var(--ink); font-weight: 750; }
.avatar { width: 2.75rem; height: 2.75rem; object-fit: cover; border-radius: 3px; }
.body { overflow-wrap: anywhere; max-width: 78ch; }
.body, .body p { white-space: pre-wrap; }
.body > :last-child { margin-block-end: 0; }
blockquote {
  margin: .75rem 0;
  padding: .5rem 1rem;
  border-inline-start: 3px solid #739992;
  background: #edf4f3;
  overflow-wrap: anywhere;
}
.pending {
  background-color: #f3f4f2;
  color: #525b60;
}
.topic.pending, .post.pending .byline {
  border-inline-start: 3px dashed #879087;
}
.post.pending .byline { background: #eceeea; }
.notice {
  margin: .8rem 0;
  padding: .7rem 1rem;
  background: #fff4d7;
  color: #59471d;
  border: 1px solid #ddc681;
  border-radius: 4px;
}

.stack { display: grid; align-content: start; justify-items: stretch; gap: .85rem; }
.stack > * { min-width: 0; margin-block: 0; }
form { min-width: 0; }
fieldset { margin: .8rem 0; padding: 1rem; border: 1px solid var(--edge); border-radius: 4px; min-width: 0; }
legend, label { font-weight: 650; }
input, select, textarea, button { font: inherit; }
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]), select, textarea {
  max-width: 100%;
  border: 1px solid #8b99a5;
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  padding: .48rem .65rem;
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--teal); }
textarea { display: block; width: 100%; min-height: 7.5rem; resize: vertical; }
select {
  appearance: none;
  padding-inline-end: 2rem;
  background:
    linear-gradient(45deg, transparent 50%, #3b5265 50%) calc(100% - 1rem) 54% / 5px 5px no-repeat,
    linear-gradient(135deg, #3b5265 50%, transparent 50%) calc(100% - .7rem) 54% / 5px 5px no-repeat,
    white;
}
.inline { display: inline-flex; align-items: center; gap: .4rem; margin: 0; }
.actions { margin-block: .8rem; }
button, .button, input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 2.45rem;
  padding: .45rem .9rem;
  color: #fff;
  background: var(--teal);
  border: 1px solid #13574f;
  border-radius: 4px;
  line-height: 1.3;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
}
button:hover, .button:hover, input[type="submit"]:hover { color: white; background: #0e524c; }
.secondary, button.secondary, .button.secondary { background: #f4f7f7; color: #2d495b; border-color: #aab8c0; }
.secondary:hover, button.secondary:hover, .button.secondary:hover { background: #e1ebea; color: #1a4e48; }
button:disabled { cursor: default; opacity: .65; }
hr { border: 0; border-top: 1px solid var(--edge); margin: 1.5rem 0; }
code, pre, kbd { font-family: var(--mono); }
pre { max-width: 100%; overflow-x: auto; white-space: pre; }
.footer {
  border-top: 1px solid #c4ced3;
  color: var(--muted);
  padding-block: 1.2rem 2.2rem;
  font-size: .875rem;
}
.footer a { color: inherit; }

@media (max-width: 40rem) {
  .wrap { width: calc(100% - 1.5rem); }
  main { padding-block: 1.1rem 2rem; }
  .mast > .wrap, .mast.wrap { gap: .65rem .8rem; }
  .nav { gap: .4rem .8rem; }
  .hero { min-height: 8.2rem; padding: 1.2rem 20% 1.2rem 1.2rem; }
  .hero::before, .hero::after { width: 31%; }
  .board, .topic { padding: .8rem; gap: .4rem .7rem; }
  .board-icon { width: 2.7rem; height: 2.7rem; }
  .board > .meta, .topic > .meta { font-size: .8rem; }
  .topic { flex-wrap: wrap; }
  .board:has(> .meta), .topic:has(> .meta) { align-items: flex-start; }
  .actions { gap: .55rem; }
  .post { grid-template-columns: clamp(5.5rem, 27%, 10rem) minmax(0, 1fr); }
  .byline, .post-content { padding: .4rem .5rem; }
  .post-content { column-gap: .25rem; }
  .post .actions { column-gap: .4rem; }
  .post .actions button { padding-inline: .3rem; }
  .post-author { flex-wrap: wrap; gap: .15rem .3rem; }
  .post-author .avatar { width: 1.5rem; height: 1.5rem; }
  .byline time { font-size: .75rem; }
}
@media (pointer: coarse) {
  .post .actions :is(a, button), .post-number { min-height: 2rem; }
}
@media (max-width: 26rem) {
  .mast > .wrap { align-items: start; }
  .board { flex-wrap: wrap; }
  .board > .board-info { flex: 1 1 55%; }
  .board > .meta { margin-inline-start: 3.4rem; }
  .topic > .meta { width: 100%; margin-inline-start: 0; }
}
@media print {
  .mast, .nav, .actions, .button, .footer, form { display: none; }
  .wrap { width: 100%; }
  .panel, .post-list, .board-list, .thread-list { box-shadow: none; }
}

.footer > .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.stack label > :is(input:not([type="checkbox"]), textarea, select) { display: block; width: 100%; margin-top: .35rem; }
.stack > button { justify-self: start; }
.panel > form + form, .panel > form + p { margin-top: 1.25rem; }
.stack:has(input[autocomplete]), .stack:has(select) { max-width: 44rem; }
