:root {
  color-scheme: light;
  --paper: #f7f5ec;
  --panel: #eeeee2;
  --ink: #183a33;
  --muted: #4f6256;
  --line: #c2c7b7;
  --button: #1b4940;
  --serif: "STIX Two Text", Baskerville, Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); font: 1rem/1.55 var(--sans); }
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; text-wrap: pretty; }
h1 { font-size: clamp(3rem, 7vw, 6.3rem); line-height: .98; letter-spacing: -.06em; }
h1 em { font-weight: 400; }
h2 { font-size: clamp(1.8rem, 3.3vw, 2.55rem); line-height: 1.1; letter-spacing: -.045em; }
h3 { font-size: 1.65rem; line-height: 1.2; letter-spacing: -.035em; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: #376d53; }
:focus-visible { outline: 3px solid #964422; outline-offset: 4px; }
.skip { position: absolute; top: -6rem; left: 1rem; z-index: 2; padding: .8rem; background: var(--paper); }
.skip:focus { top: .4rem; }
.wrap { max-width: 79rem; min-height: 100vh; padding: 0 clamp(1rem, 6.1vw, 5.4rem); margin: auto; display: flex; flex-direction: column; }
header, footer, .section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
header { min-height: 5.25rem; border-bottom: 1px solid var(--ink); }
.brand { display: inline-flex; gap: .65rem; align-items: center; font: 600 clamp(1.45rem, 2.5vw, 1.86rem)/1 var(--serif); letter-spacing: -.055em; text-decoration: none; white-space: nowrap; }
header nav a, footer a, .back { font-size: .88rem; font-weight: 600; }
header nav a { padding: .6rem 0; text-decoration: none; }
header nav a:hover, footer a:hover { text-decoration: underline; }
main { flex: 1; }
footer { border-top: 1px solid var(--line); color: var(--muted); padding: 1.3rem 0; }
footer > span { font: 1.1rem/1.15 var(--serif); letter-spacing: -.035em; }
footer a { text-decoration: none; }
.hero { display: grid; grid-template-columns: 1fr .97fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding: clamp(2.3rem, 5.6vw, 5.3rem) 0; }
.lead, .intro, .context { color: var(--muted); font-size: clamp(1.03rem, 1.55vw, 1.18rem); }
.lead { max-width: 27rem; margin-top: 1.3rem; }
.intro, .context { margin-top: 1.2rem; }
.hero .button { margin-top: 1.65rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1.05rem; min-height: 2.95rem; padding: .62rem 1.2rem; border: 1px solid var(--button); border-radius: .2rem; background: var(--button); color: #fffdf1; font: 600 .94rem/1.4 var(--sans); text-decoration: none; cursor: pointer; }
.button:hover { background: #2e5f50; color: white; }
.button span { font-family: Arial, sans-serif; }
.hint, .metadata, .count, .byline time { color: var(--muted); }
.topic-section { border-top: 1px solid var(--ink); padding: 2rem 0 clamp(3rem, 6vw, 6rem); }
.section-head { margin-bottom: 1.3rem; }
.count { font-size: .85rem; white-space: nowrap; }
.empty { border: 1px solid var(--line); padding: 1.65rem clamp(1.2rem, 3.4vw, 2.5rem); background: var(--panel); }
.empty p { margin-top: .45rem; color: var(--muted); }
.topic-list { list-style: none; padding: 0; }
.topic-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; column-gap: 1rem; padding: 1.3rem 0; border-top: 1px solid var(--line); }
.topic-row:last-child { border-bottom: 1px solid var(--line); }
.topic-row h3, .metadata, .subject, .name, .context, .prose, .error { overflow-wrap: anywhere; }
.topic-row h3 a { text-decoration: none; }
.topic-row h3 a:hover { text-decoration: underline; }
.metadata { margin-top: .34rem; font-size: .86rem; }
.metadata > span { padding: 0 .25rem; }
.column { width: min(100%, 48rem); margin: 0 auto; padding: clamp(2rem, 4vw, 3.8rem) 0 clamp(3.5rem, 7vw, 6rem); }
.back { display: inline-block; margin-bottom: 1.8rem; }
.column h1 { font-size: clamp(2.55rem, 5.2vw, 4.3rem); letter-spacing: -.05em; }
.message { padding: 1.2rem 0 1.5rem; }
.message.opener { padding: 1.4rem 0 2.25rem; }
.byline { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .9rem; }
.name { font-size: .95rem; font-weight: 700; }
.byline time { font-size: .84rem; }
.permalink { color: var(--muted); text-decoration: none; }
.permalink:hover { text-decoration: underline; }
.prose { white-space: pre-wrap; font-size: 1.035rem; line-height: 1.68; margin-top: .7rem; }
.replies { padding-top: 1.5rem; border-top: 1px solid var(--ink); }
.reply { border-top: 1px solid var(--line); }
.reply:target { background: var(--panel); }
.pages { display: flex; align-items: center; justify-content: space-between; gap: .7rem; flex-wrap: wrap; padding-top: 1.4rem; font-size: .92rem; }
.pages > span { color: var(--muted); }
.form-view { max-width: 39rem; }
form { margin-top: 2rem; }
.field { margin: 0 0 1.4rem; }
.field.short { max-width: 23rem; }
label { display: block; margin-bottom: .4rem; font-size: .96rem; font-weight: 650; }
input:not([type="hidden"]), textarea { display: block; width: 100%; border: 1px solid #79887b; border-radius: .2rem; color: var(--ink); background: #fffdf7; padding: .7rem .85rem; font: 1rem/1.5 var(--sans); }
textarea { resize: vertical; min-height: 7rem; }
.hint { margin-top: .4rem; font-size: .85rem; }
.error { margin-bottom: 1.2rem; padding: .65rem 1rem; border-left: 3px solid #99462d; color: #812e19; background: #faeadb; }
.coast {
  --dark-ink: #153f3d; --mid-ink: #668176; --light-ink: #c4caab; --moon-ink: #e7ddae;
  position: relative; isolation: isolate; overflow: hidden; width: 100%; aspect-ratio: 1.95; border: 1px solid var(--dark-ink); background: #8d9f8d;
}
.coast > i, .coast .lighthouse > * { display: block; position: absolute; }
.night { inset: 0; background: repeating-linear-gradient(0deg, #234b47 0 1px, transparent 1px 4px), linear-gradient(#466963, #a2ae95 78%); }
.stars { inset: 0; background: radial-gradient(ellipse at 16% 14%, #e5dca9 0 1px, transparent 1.5px), radial-gradient(ellipse at 39% 22%, #e5dca9 0 1px, transparent 1.5px), radial-gradient(ellipse at 52% 11%, #e5dca9 0 1px, transparent 1.5px), radial-gradient(ellipse at 90% 25%, #e5dca9 0 1px, transparent 1.5px); }
.moon { width: 10%; aspect-ratio: 1; top: 16%; left: 20%; border-radius: 50%; background: repeating-linear-gradient(0deg, transparent 0 3px, #879785 3.5px 4px), var(--moon-ink); box-shadow: 0 0 0 3px #8a9b8b, 0 0 0 4px #597c71; }
.beam { inset: 0; background: repeating-linear-gradient(-8deg, #dadbb9 0 1px, #a7b29a 1px 4px); opacity: .73; clip-path: polygon(72% 45%, 0 31%, 0 53%, 72% 46%); }
.cloud { height: 2%; border-top: 1px solid #b7bfa3; border-radius: 50%; }
.cloud-one { width: 22%; top: 29%; right: -3%; }
.cloud-two { width: 15%; top: 34%; right: 10%; }
.water { top: 66%; left: 0; right: 0; bottom: 0; background: repeating-linear-gradient(177deg, var(--mid-ink) 0 2px, #a6b19a 2.3px 3px, var(--dark-ink) 3.8px 4.6px, #7d9688 5px 8px); border-top: 1px solid #d5d7b9; }
.reflection { top: 66%; bottom: 0; width: 45%; left: -.5%; background: repeating-linear-gradient(177deg, transparent 0 5px, #d7d8b6 5px 6px, transparent 6px 10px); clip-path: polygon(54% 0, 63% 0, 91% 100%, 0 100%); }
.horizon-land { inset: 0; background: var(--mid-ink); clip-path: polygon(0 63%, 7% 62%, 10% 63%, 16% 63%, 19% 64%, 26% 64.4%, 35% 66%, 0 66%); }
.headland { inset: 0; background: repeating-linear-gradient(147deg, var(--dark-ink) 0 2.7px, #819586 3px 3.7px, var(--dark-ink) 4px 6px); clip-path: polygon(0 84%, 15% 83.5%, 22% 81%, 31% 80%, 38% 76.5%, 44% 76%, 50% 71%, 53% 70.3%, 59% 66%, 62% 66%, 66% 62.3%, 75% 61.5%, 79% 60%, 85% 60.3%, 91% 56.5%, 100% 53%, 100% 100%, 95% 95%, 81% 92%, 64% 90%, 56% 87%, 45% 86%, 26% 84.5%); }
.lighthouse { height: 18%; width: 6%; bottom: 38%; left: 69%; }
.lighthouse::before { content: ''; position: absolute; bottom: 0; inset-inline: 10%; height: 78%; background: linear-gradient(90deg, #d7d8b6 0 58%, #809586 59%); border-bottom: 2px solid var(--dark-ink); clip-path: polygon(29% 0, 71% 0, 92% 100%, 8% 100%); }
.lighthouse::after { content: ''; position: absolute; top: -7%; left: 15%; height: 14%; width: 70%; background: var(--dark-ink); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.lighthouse b { top: 7%; width: 51%; height: 12%; left: 24.5%; border-left: 2px solid var(--dark-ink); border-right: 2px solid var(--dark-ink); background: var(--moon-ink); }
.lighthouse > i { top: 19%; width: 66%; height: 5%; left: 17%; background: var(--dark-ink); }
.foreground { inset: 0; background: repeating-linear-gradient(132deg, #153d37 0 3px, #587868 3.5px 4px, #24483e 4.3px 8px); clip-path: polygon(21% 100%, 35% 98%, 46% 96%, 52% 93%, 63% 92%, 71% 87%, 83% 86%, 92% 81%, 100% 80%, 100% 100%); }
@media (max-width: 46rem) {
  .hero { gap: 1.65rem; }
  .coast { aspect-ratio: 1.4; }
}
@media (max-width: 36rem) {
  .wrap { padding-inline: 1.15rem; }
  header { min-height: 4.2rem; }
  .brand { gap: .5rem; }
  .brand img { width: 1.8rem; height: 1.8rem; }
  .hero { grid-template-columns: 1fr; gap: 1.6rem; padding: 2.25rem 0 1.7rem; }
  .hero h1 { font-size: clamp(3.65rem, 15.5vw, 5.2rem); }
  .coast { aspect-ratio: 2.45; }
  .lead { margin-top: .85rem; }
  .hero .button { margin-top: 1.1rem; }
  .topic-section { padding-top: 1.4rem; }
  .topic-row { grid-template-columns: 1fr; row-gap: .25rem; }
  .replies .section-head { flex-wrap: wrap; }
  .back { margin-bottom: 1.4rem; }
}
