/* Washington fishing answer pages: one stylesheet, light only, no JavaScript.
   Look: the outdoors page of a regional newspaper (DESIGN-2026-10-15.md). Newsreader carries the
   reading text and the headlines; Libre Franklin sets the data tables, the way papers set agate.
   Rules instead of boxes, ink on near-white paper. Color is kept for status: green for open, red
   for closed, amber for opens later, gray for no season. Open and closed are always a word plus a
   color. Every text and background pair below is 5.7:1 or better. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/newsreader-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/newsreader-latin-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/newsreader-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/libre-franklin-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/libre-franklin-latin-600-normal.woff2") format("woff2");
}

:root {
  color-scheme: only light;
  --paper: #fdfcf9;
  --ink: #1c1b18;
  --soft: #55524b;
  --hair: #dcd6ca;
  --link-line: #9c968b;
  --open: #1e5e35;
  --open-tint: #e2eddf;
  --later: #74510a;
  --closed: #9f2a1e;
  --closed-tint: #f6e1db;
  --none: #3f3d38;
  --none-tint: #ebe8e1;
  --note: #fbf0c2;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
}

/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--paper);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.15rem/1.55 var(--serif);
  overflow-wrap: break-word;
  font-synthesis: none;
  font-variant-numeric: lining-nums;
}

@media (min-width: 700px) {
  body {
    font-size: 1.25rem;
  }
}

/* Links are ink with a quiet underline: color on this site means a season status, nothing else. */
a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--link-line);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.17em;
}

a:hover {
  text-decoration-color: var(--ink);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
}

.skip-link:focus {
  left: 0.5rem;
  z-index: 50;
  padding: 0.6rem 0.9rem;
  background: var(--paper);
  color: var(--ink);
  outline: 2px solid var(--ink);
}

time,
.nw {
  white-space: nowrap;
}

strong,
b {
  font-weight: 600;
}

/* Frame: one content width for the masthead, the page and the footer. --gutter is its side padding,
   which a wide table or a photo can run out into on a phone to reach the screen edge. */

.frame {
  --gutter: 1.1rem;
  width: 100%;
  max-width: 66rem;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

@media (min-width: 600px) {
  .frame {
    --gutter: 2rem;
  }
}

/* Preview strip (preview builds only) */

.preview-banner {
  padding: 0.3rem 1rem;
  background: var(--note);
  color: #3d2e00;
  font: 400 0.85rem/1.3 var(--serif);
  text-align: center;
}

/* Masthead: the name (and on wide screens the tagline) on the left, the site nav on the right, one
   ink rule under it. Left-aligned on every page, the home page included. */

.masthead-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1.25rem;
  padding: 0.35rem 0 0.25rem;
  border-bottom: 1px solid var(--ink);
}

.flag {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 1rem;
}

.nameplate {
  margin: 0;
  color: var(--ink);
  font: 600 1.4rem/1.1 var(--serif);
  letter-spacing: -0.01em;
  text-decoration: none;
}

/* On inner pages the name is the way home: padding gives it a 44px tap height like the nav, and the
   equal negative margin keeps the header's layout as it was (so a wrapped header on a narrow phone
   grows no taller). */
.masthead:not(.masthead-home) .nameplate {
  display: inline-block;
  padding: 0.625rem 0;
  margin: -0.625rem 0;
}

a.nameplate:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.tagline {
  margin: 0;
  color: var(--soft);
  font: italic 400 0.95rem/1.3 var(--serif);
}

/* On a phone the inner pages keep the header to one line: name and nav. */
@media (max-width: 599px) {
  .masthead:not(.masthead-home) .tagline {
    display: none;
  }
}

/* Each link is at least 44px wide, which already spaces short words like "Trout", so the gap is
   smaller than the space it looks like. */
.site-nav ul {
  display: flex;
  gap: 0 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li {
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  font-size: 1rem;
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.masthead-home .masthead-row {
  align-items: flex-end;
  padding: 1.1rem 0 0.4rem;
}

.masthead-home .flag {
  flex-direction: column;
  gap: 0.2rem;
}

.masthead-home .nameplate {
  font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

/* Page */

.page {
  flex: 1 0 auto;
  padding-top: 1.6rem;
  padding-bottom: 1rem;
}

.page-plain > * {
  max-width: 40rem;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.15rem);
  line-height: 1.07;
  letter-spacing: -0.015em;
}

/* Section and sub heads are sized in em so they keep their steps over the body text when it grows
   at 700px (h2 about 26.7px on a phone and 29px on a wide screen, h3 21 and 23px). */
h2 {
  margin: 3rem 0 0.85rem;
  padding-top: 0.55rem;
  border-top: 2px solid var(--ink);
  font-size: 1.45em;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h2.h2-closed {
  color: var(--closed);
  border-top-color: var(--closed);
}

h3 {
  margin: 2.25rem 0 0.45rem;
  font-size: 1.15em;
  line-height: 1.2;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.15rem;
}

li {
  margin: 0.35rem 0;
  padding-left: 0.15rem;
}

li::marker {
  color: var(--soft);
}

/* The rule before the sources note: a hairline, so the note reads as the story's footnote. */
hr {
  margin: 2.5rem 0 0.6rem;
  border: 0;
  border-top: 1px solid var(--hair);
}

hr + p {
  color: var(--soft);
  font-size: 0.85em;
}

blockquote {
  margin: 1.5rem 0;
  padding: 0 0 0 1rem;
}

/* Answer page head: headline, then the dateline. */

.byline {
  margin: 0;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--ink);
  color: var(--soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (min-width: 700px) {
  .byline {
    font-size: 0.95rem;
  }
}

/* Each part stays whole; a separator dot trails every part but the last, so a wrapped line never starts
   with one. Only the parts themselves (> span) take the dot, never a span inside a part. */
.byline span {
  white-space: nowrap;
}

.byline > span:not(:last-child)::after {
  content: "\00b7";
  margin: 0 0.5em;
  color: var(--soft);
}

/* The short answer: the story's lede. A size up on wide screens; near body size on a phone so it stays short. */

.lede {
  margin: 1.1rem 0 1.5rem;
  font-size: 1.04em;
  line-height: 1.5;
}

@media (min-width: 700px) {
  .lede {
    font-size: 1.1em;
  }
}

/* A short answer with a list under it (a rig, or open dates): one block, the list set tight below. */

.lede-with-list > p {
  margin: 0;
}

.lede-with-list > ul {
  margin: 0.55rem 0 0;
}

.lede-with-list > ul > li,
.lede-with-list > ul.labeled > li {
  margin: 0 0 0.25rem;
}

/* Jump to a spot. Phones: a short list after the lede. Wide screens: a sticky sidebar beside the text.
   Each row: the name on the left, the status word on the right, the dates under the name. */

.spot-index {
  margin: 0 0 2rem;
  border-top: 1px solid var(--ink);
}

.index-head {
  margin: 0;
  padding: 0.55rem 0 0.2rem;
  font-weight: 600;
  font-size: 0.95em;
}

.spot-index ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.spot-index li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--hair);
}

.spot-index a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1rem;
  align-items: baseline;
  min-height: 44px;
  padding: 0.55rem 0 0.5rem;
  color: var(--ink);
  font-size: 0.95em;
  line-height: 1.35;
  text-decoration: none;
}

/* The name carries the site's quiet link underline, so the rows read as links on a phone, which has
   no hover. */
.idx-name {
  grid-column: 1;
  text-decoration: underline;
  text-decoration-color: var(--link-line);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.17em;
}

.spot-index a:hover .idx-name {
  text-decoration-color: var(--ink);
  text-decoration-thickness: 2px;
}

.idx-status {
  grid-column: 2;
  grid-row: 1;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.idx-open {
  color: var(--open);
}

.idx-later {
  color: var(--later);
}

.idx-closed {
  color: var(--closed);
}

.idx-when {
  grid-column: 1;
  margin-top: 0.1rem;
  color: var(--soft);
  font-size: 0.9em;
}

@media (min-width: 1000px) {
  .page-answer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 15.5rem;
    grid-template-rows: auto auto auto 1fr;
    grid-template-areas:
      "head head"
      "lede side"
      "art side"
      "body side";
    column-gap: 3.5rem;
    align-items: start;
  }

  .article-head {
    grid-area: head;
  }

  .page-answer > .lede {
    grid-area: lede;
    margin-bottom: 0.5rem;
  }

  .page-answer > .photo-lead {
    grid-area: art;
    margin: 1rem 0 0.5rem;
  }

  .page-body {
    grid-area: body;
    min-width: 0;
  }

  .spot-index {
    grid-area: side;
    position: sticky;
    top: 1.5rem;
    margin: 1.25rem 0 0;
    border-top: 0;
    font-size: 1.05rem;
  }

  .index-head {
    padding-top: 0;
  }

  .spot-index ul {
    border-top: 1px solid var(--ink);
  }

  .spot-index a {
    padding: 0.6rem 0 0.55rem;
    column-gap: 0.75rem;
  }
}

/* Spot sections: a short dispatch. Heading, a status line in words, then the facts. */

.spot {
  margin: 2.25rem 0 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--ink);
  scroll-margin-top: 1rem;
}

/* The head reads like a printed listing: the spot's name in the bold, where it is in roman. */
.spot h3 {
  margin: 0 0 0.25rem;
  font-size: 1.28em;
  line-height: 1.18;
  text-wrap: pretty;
}

.spot-where {
  font-weight: 400;
}

/* With no status line under it, the head needs its own air above the facts rule. */
.spot-samepill h3,
.spot-nopill h3 {
  margin-bottom: 0.65rem;
}

/* A closed spot's head is red over its red Closed status line, so it never reads as a place to drive
   when the section head is off screen. Its rule stays the plain 1px spot rule, so the Closed section
   head above it still outranks it. */
.spot-closed h3 {
  color: var(--closed);
}

.pill {
  margin: 0 0 0.75rem;
  line-height: 1.4;
}

.pill-open b {
  color: var(--open);
}

.pill-later b {
  color: var(--later);
}

.pill-closed b {
  color: var(--closed);
}

/* Facts: a two-column table on hairlines (label left, the draft's words right) from 480px up. */

.key-grid {
  margin: 0 0 1.25rem;
  border-top: 1px solid var(--hair);
  font-size: 0.94em;
  line-height: 1.5;
}

.key-grid > div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  column-gap: 1rem;
  padding: 0.5rem 0 0.55rem;
  border-bottom: 1px solid var(--hair);
}

@media (min-width: 600px) {
  .key-grid > div {
    grid-template-columns: 9.5rem minmax(0, 1fr);
    column-gap: 1.25rem;
  }
}

.key-grid dt {
  font-weight: 600;
  line-height: 1.4;
  padding-top: 0.05em;
}

.key-grid dd {
  margin: 0;
}

/* When the facts end the spot, the next spot's rule closes it: no hairline right above that rule. */
.spot > .key-grid:last-child > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

/* The label moved out of the sentence, so its value starts the line: capitalize on screen only. */
.key-grid dd::first-letter {
  text-transform: uppercase;
}

/* Under 480px the label column would squeeze the values to a few words a line, so each fact runs in
   like a newspaper's "if you go" box: the bold label, then the value across the full width, with a
   hanging indent so the labels still line up down the left edge. */
@media (max-width: 479px) {
  .key-grid > div:not(:has(dd :is(p, ul, ol, div, table))) {
    display: block;
    padding-left: 0.9rem;
    text-indent: -0.9rem;
  }

  .key-grid > div:not(:has(dd :is(p, ul, ol, div, table))) > :is(dt, dd) {
    display: inline;
  }

  .key-grid > div:not(:has(dd :is(p, ul, ol, div, table))) > dt {
    margin-right: 0.3em;
  }

  .key-grid > div:not(:has(dd :is(p, ul, ol, div, table))) > dt::after {
    content: ":";
  }
}

.spot-extra {
  margin: 0.75rem 0;
}

/* Lists whose items all open with bold words (the setup, the lures): no bullets, the bold lead at the
   left edge and the rest hanging under it. */
ul.labeled {
  padding-left: 0;
  list-style: none;
}

ul.labeled > li {
  margin: 0 0 0.6rem;
  padding-left: 0.9rem;
  text-indent: -0.9rem;
}

ul.labeled > li :is(ul, ol, p + p) {
  text-indent: 0;
}

/* Items a paragraph long (the season notes, Before you go) run flush like a notes column: the hanging
   indent is for short gear lines. */
ul.labeled-long > li {
  margin-bottom: 0.85rem;
  padding-left: 0;
  text-indent: 0;
}

/* A bold line that titles the list under it (the coho outfits): each outfit opens under a hairline,
   like a gear box, except the first one right under its head. */

.subhead {
  margin: 1.75rem 0 0.5rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--hair);
}

h3 + .subhead {
  margin-top: 0.75rem;
  padding-top: 0;
  border-top: 0;
}

/* Tables: newspaper agate. A heavy rule on top, hairlines between rows, the first column held in
   view while the rest scrolls on a phone. A status cell is tinted and its status word set bold. */

.table-hint {
  display: none;
  margin: 1rem 0 0.3rem;
  color: var(--soft);
  font: 400 0.9rem/1.3 var(--serif);
}

.table-wrap {
  margin: 1rem 0 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

table {
  width: 100%;
  min-width: 38rem;
  border-collapse: separate;
  border-spacing: 0;
  font: 400 0.95rem/1.4 var(--sans);
  font-variant-numeric: lining-nums tabular-nums;
}

table.t-compact {
  min-width: 0;
}

th,
td {
  padding: 0.5rem 0.6rem;
  text-align: left;
  vertical-align: top;
  background: var(--paper);
  border-bottom: 1px solid var(--hair);
}

thead th {
  font-weight: 600;
  border-bottom: 1px solid var(--ink);
}

tbody tr:last-child td {
  border-bottom: 0;
}

td:first-child {
  font-weight: 600;
}

th:first-child,
td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  padding-left: 0;
  border-right: 1px solid var(--hair);
}

/* Tinted status cells keep a thin paper gap on their right and bottom, so each reads as its own day
   block, like a printed season calendar. */
td.st {
  border-right: 2px solid var(--paper);
  border-bottom: 2px solid var(--paper);
}

td.st-open {
  background: var(--open-tint);
}

td.st-closed {
  background: var(--closed-tint);
}

td.st-none {
  background: var(--none-tint);
}

td.st-open b {
  color: var(--open);
}

td.st-closed b {
  color: var(--closed);
}

td.st-none b {
  color: var(--none);
}

/* Where the table has room, the row labels readers scan first get enough width to hold a date. */
@media (min-width: 41.01rem) {
  th:first-child,
  td:first-child {
    min-width: 8.5rem;
  }
}

@media (min-width: 700px) {
  table {
    font-size: 0.9rem;
  }

  /* A compact table has room on a wide screen: keep its date headings on one line. */
  table.t-compact thead th:not(:first-child) {
    white-space: nowrap;
  }
}

/* Narrower than a scrolling table plus the page padding: say it scrolls, and keep the held column narrow. */
@media (max-width: 41rem) {
  .table-hint {
    display: block;
  }

  .table-hint:has(+ .table-wrap > .t-compact) {
    display: none;
  }

  .table-hint + .table-wrap {
    margin-top: 0;
  }

  th:first-child,
  td:first-child {
    width: 7.5rem;
    min-width: 7.5rem;
  }

  /* A table that scrolls runs out to the screen edges, so the cut column shows at the edge mid-word
     instead of ending flush at the text margin where it looks like the last column. */
  .table-wrap:not(:has(.t-compact)) {
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
  }

  .table-wrap:not(:has(.t-compact)) :is(th, td):first-child {
    width: calc(7.5rem + var(--gutter));
    min-width: calc(7.5rem + var(--gutter));
    padding-left: var(--gutter);
  }

  .table-wrap:not(:has(.t-compact)) :is(th, td):last-child {
    padding-right: var(--gutter);
  }

  table.t-compact th:first-child,
  table.t-compact td:first-child {
    width: 34%;
    min-width: 0;
  }

  table.t-compact th,
  table.t-compact td {
    padding-left: 0.45rem;
    padding-right: 0.45rem;
  }

  table.t-compact th:first-child,
  table.t-compact td:first-child {
    padding-left: 0;
  }
}

/* Light tackle note: set off by rules, like a sidebar item in the paper. */

.ultralight {
  margin: 2.5rem 0;
  padding: 0.75rem 0 0.35rem;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-size: 0.95em;
}

.ultralight > h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2em;
}

.ultralight > :last-child {
  margin-bottom: 0.6rem;
}

/* When a section head or the sources rule comes next, that rule closes the note: never two rules
   with only air between them. */
.ultralight:has(+ :is(h2, hr)) {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

/* Owner placeholders (preview only): a highlighted note in the text. */

.owner-todo {
  margin: 0 0 1rem;
  padding: 0.3rem 0.55rem;
  background: var(--note);
  color: var(--ink);
  font: 400 0.85rem/1.45 var(--serif);
}

.owner-label {
  margin-right: 0.35rem;
  font-weight: 600;
}

.owner-todo-block {
  padding: 0.6rem 0.75rem;
}

.owner-todo-block p {
  margin: 0.5rem 0 0;
}

.owner-todo-block .owner-label {
  margin: 0;
}

/* Photos: a spot's photo sits between its status line and its facts; a page's lead photo follows the
   short answer (and on phones the spot list). A wide photo runs the width of the text column with no
   frame, and the credit sits under it in small type in the table face, like a paper's photo credit.
   A tall photo runs narrower, at the left edge, so the facts are not a full screen away; a very tall
   one is held to most of the screen's height rather than cropped. On a phone a wide photo runs to
   both screen edges, like a news photo, and its credit comes back in to the text edge. No border,
   corner, shadow or filter: a plain rectangle. The img box keeps the full width so the width and
   height attributes hold its space before it loads (a jump from the spot list lands in the right
   place); when the height cap applies, the picture sits at the box's left edge on bare paper. */

.photo {
  margin: 0.15rem 0 1rem;
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72vh;
  max-height: 72svh;
  object-fit: contain;
  object-position: left top;
}

.photo-tall {
  max-width: min(100%, 26rem);
}

@media (max-width: 599px) {
  .photo-tall {
    max-width: 78%;
  }

  .photo:not(.photo-tall),
  figure.field-log {
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
  }

  .photo:not(.photo-tall) figcaption,
  figure.field-log figcaption {
    padding: 0 var(--gutter);
  }

  figure.field-log img {
    width: 100%;
  }
}

.credit {
  margin: 0.35rem 0 0;
  color: var(--soft);
  font: 400 0.78rem/1.4 var(--sans);
}

.credit a {
  color: inherit;
}

.credit a:hover {
  text-decoration-color: currentColor;
}

/* The lead photo opens the story under the short answer. */
.photo-lead {
  margin: 0 0 1.5rem;
}

/* Field log: the owner's own photos and trip notes, once supplied. */

.field-log {
  margin: 1rem 0 1.25rem;
}

.field-log img {
  display: block;
  max-width: 100%;
  height: auto;
}

.field-log figcaption,
.field-log-date {
  margin: 0.4rem 0 0;
  color: var(--soft);
  font-size: 0.85em;
}

.field-log > .field-log-date {
  margin: 0 0 0.3rem;
}

.field-log-label {
  margin-right: 0.4rem;
  color: var(--ink);
  font-weight: 600;
}

.field-log > p:last-child {
  margin-bottom: 0;
}

/* Email signup */

.signup {
  margin: 2rem 0;
  padding-top: 0.7rem;
  border-top: 2px solid var(--ink);
}

.owner-todo + .signup {
  margin-top: 0.5rem;
}

.signup-head {
  margin: 0 0 0.25rem;
  font-weight: 600;
}

.signup-lead {
  margin: 0 0 0.75rem;
}

.signup label {
  display: block;
  margin: 0 0 0.3rem;
  font-size: 0.9em;
  font-weight: 600;
}

.signup-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.signup input {
  flex: 1 1 14rem;
  min-height: 48px;
  padding: 0.5rem 0.75rem;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--ink);
  border-radius: 0;
  font: inherit;
}

.signup button {
  min-height: 48px;
  padding: 0.5rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 0;
  font: 600 1rem/1 var(--serif);
  cursor: pointer;
}

.signup [disabled] {
  background: transparent;
  color: var(--soft);
  border-style: dashed;
  cursor: not-allowed;
}

.signup input::placeholder {
  color: var(--soft);
  opacity: 1;
}

/* Page list: More pages, 404, and the home page. */

.ledger {
  margin: 1rem 0 2rem;
  padding: 0;
  list-style: none;
}

.ledger li {
  margin: 0;
  padding: 0.9rem 0 1rem;
  border-top: 1px solid var(--hair);
}

.ledger li:first-child {
  border-top: 0;
  padding-top: 0.4rem;
}

.ledger-title {
  margin: 0 0 0.3rem;
  font-weight: 600;
  font-size: 1.15em;
  line-height: 1.25;
}

/* Headline links carry no underline until hovered or focused, like a paper's site. */
.ledger-title a {
  color: var(--ink);
  text-decoration: none;
}

.ledger-title a:hover,
.ledger-title a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--ink);
}

.ledger-meta {
  margin: 0;
  color: var(--soft);
  font-size: 0.85em;
}

.ledger-meta span {
  white-space: nowrap;
}

.ledger-meta > span:not(:last-child)::after {
  content: "\00b7";
  margin: 0 0.5em;
}

.ledger-dek {
  max-width: 38rem;
  margin: 0.45rem 0 0;
}

/* More pages at the foot of an answer page: a small rail head on a 1px rule and short entries, so it
   reads as the paper's "also in this section", not as a third story. */
.page-body > h2:has(+ .ledger) {
  margin-top: 2.5rem;
  border-top-width: 1px;
  font-size: 1.2rem;
}

.page-body > .ledger .ledger-title {
  font-size: 1.02em;
}

.page-body > .ledger li {
  padding: 0.55rem 0 0.65rem;
}

/* Home page: one plain line, then the pages grouped by fish in one left-aligned column, with the
   About block beside them on wide screens and after them on phones. Headlines carry no underline
   until hovered or focused. */

.home-line {
  max-width: 36rem;
  margin: 0 0 0.5rem;
  font-size: 1.08em;
}

.front-group h2,
.about h2 {
  margin: 1.75rem 0 0;
  padding-top: 0.45rem;
  font-size: 1.2rem;
}

/* The fish heads (Salmon, Trout) outrank the headlines under them, like a section front. */
.front-group h2 {
  margin-bottom: 0.2rem;
  padding-top: 0.5rem;
  font-size: 1.6rem;
  line-height: 1.1;
}

.ledger-front {
  margin: 0 0 0.5rem;
}

.ledger-front li,
.ledger-front li:first-child {
  padding: 0.85rem 0 1.05rem;
}

.ledger-front li:first-child {
  border-top: 0;
}

.ledger-front .ledger-title {
  margin: 0 0 0.3rem;
  font-size: 1.3rem;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.about {
  font-size: 0.95em;
}

/* About is a side item, not a fish section: a small head on a 1px rule, like More pages. */
.about h2 {
  margin-bottom: 0.6rem;
  border-top-width: 1px;
}

.about p {
  margin: 0 0 0.75rem;
}

.colophon {
  color: var(--soft);
  font-size: 0.9em;
}

@media (min-width: 700px) {
  .ledger-front .ledger-title {
    font-size: 1.55rem;
  }

  .front-group h2 {
    font-size: 1.9rem;
  }
}

@media (min-width: 900px) {
  .front {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 17rem;
    column-gap: 4rem;
    align-items: start;
  }
}

/* Footer */

/* One block of small print in one size, the way a paper ends a page. */
.site-footer {
  margin-top: 2.5rem;
  padding: 0 0 2rem;
  color: var(--soft);
  font-size: 0.875rem;
  line-height: 1.5;
}

.site-footer .frame::before {
  content: "";
  display: block;
  margin-bottom: 1rem;
  border-top: 1px solid var(--ink);
}

.site-footer p {
  max-width: 42rem;
  margin: 0 0 0.6rem;
}

.footer-note {
  font-size: 1em;
}

/* Home, About, Privacy as one line joined by middle dots, plain like the site nav until hovered; each
   link is a tap target at least 44px wide and 44px tall. */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0.1rem 0 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.footer-links li:not(:last-child)::after {
  content: "\00b7";
  margin: 0 0.6em;
  color: var(--soft);
}

/* The side padding widens each tap target past 44px; the first link gives its padding back to the
   margin so "Home" lines up with the text above. */
.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.3em;
  text-decoration: none;
}

.footer-links li:first-child a {
  margin-left: -0.3em;
}

.footer-links a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

@media print {
  .preview-banner,
  .skip-link,
  .table-hint,
  .signup,
  .spot-index,
  .site-nav,
  .owner-todo {
    display: none !important;
  }

  .page-answer {
    display: block;
  }

  a {
    color: inherit;
  }
}
