/* Known Positive, before the first piece. The field guide's own look, cut to one page: the same two faces, served from
   here under the OFL (fonts/OFL-*.txt), the same paper and ink, and the proofreader's red caret, the mark for "insert
   here", which on this page marks where the pieces will go. No script. */

@font-face { font-family: "FG Text"; src: url(fonts/fg-text.woff2) format("woff2"); font-weight: 380 640; font-style: normal; font-display: swap; }
@font-face { font-family: "FG Mono"; src: url(fonts/fg-mono.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "FG Mono"; src: url(fonts/fg-mono-medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: light dark;
  --paper: #fdfdfc; --well: #f2f2ef; --ink: #111317; --text: #25282d; --muted: #5f636a;
  --line: #e4e4e0; --line-2: #c9c9c3; --red: #c2331c; --red-wash: #fbece8;
  --serif: "FG Text", "Iowan Old Style", Charter, Georgia, serif;
  --mono: "FG Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --pad: clamp(1.25rem, 4.2vw, 4.5rem);
  --gap: clamp(1.75rem, 3.6vw, 4.5rem);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111214; --well: #1a1b1e; --ink: #f1f1ed; --text: #d8d8d3; --muted: #9ea2a9;
    --line: #26282c; --line-2: #3a3d42; --red: #ff8466; --red-wash: #2b1813;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--text);
  font: 400 1.25rem/1.6 var(--serif); font-optical-sizing: auto; font-kerning: normal;
  font-variant-numeric: oldstyle-nums proportional-nums; text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; }
a { color: inherit; text-decoration-color: var(--line-2); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red-wash); color: var(--ink); }

.caret { width: .95em; height: .95em; color: var(--red); flex: none; }

.kicker, .rail-label, .bar nav, .foot, .list-head, .legend dt {
  font-family: var(--mono); font-variant-numeric: tabular-nums lining-nums;
}
.kicker, .rail-label { margin: 0 0 .9rem; font-size: .74rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }

/* ---------------------------------------------------------------- the bar and the foot */

.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem var(--pad); border-bottom: 1px solid var(--line);
}
.masthead { display: inline-flex; align-items: center; gap: .55rem; margin: 0; color: var(--ink); font-size: 1.35rem; font-weight: 400; line-height: 1.3; }
.bar nav { display: flex; gap: clamp(.9rem, 2.4vw, 2rem); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.bar nav a { text-decoration: none; color: var(--muted); padding: .4rem 0; }
.bar nav a:hover { color: var(--ink); }

.foot {
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.4fr); gap: .6rem var(--gap); align-items: baseline;
  margin-top: clamp(3rem, 7vw, 6rem); padding: 1.6rem var(--pad) 2.2rem; border-top: 1px solid var(--line);
  font-size: .76rem; line-height: 1.6; color: var(--muted);
}
.foot p { margin: 0; }
.foot-name { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink); }
.foot-name .at { color: var(--muted); }

/* ---------------------------------------------------------------- the page */

.soon {
  display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(17rem, 1fr); column-gap: var(--gap); align-items: end;
  grid-template-areas: "hero legend" "next next"; padding: 0 var(--pad);
}
.hero { grid-area: hero; padding: clamp(2.5rem, 7vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4.5rem); }
.hero .kicker { display: inline-flex; align-items: center; gap: .5rem; color: var(--red); }
.hero .kicker .caret { width: 1.05em; height: 1.05em; }
.hero h1 {
  margin: 0; color: var(--ink); font-weight: 480; font-size: clamp(2.35rem, 5.6vw, 5.6rem); line-height: 1.02;
  letter-spacing: -.022em; text-wrap: balance; max-width: 17ch;
}
.lede { margin: clamp(1.4rem, 2.6vw, 2.2rem) 0 0; max-width: 40rem; font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.5; color: var(--text); }

.legend { grid-area: legend; align-self: end; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); border-top: 3px solid var(--ink); padding-top: 1rem; }
.legend dl { margin: 0; }
.legend .row { display: grid; grid-template-columns: 6.2rem 1fr; gap: .9rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.legend dt { font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: .32rem; }
.legend dd { margin: 0; font-size: 1.02rem; line-height: 1.45; }
.legend .row-rule dt { color: var(--red); }

/* Where the list of pieces will stand: its head, and the caret where the first one goes in. */
.next { grid-area: next; }
.list-head {
  display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding: .9rem 0;
  border-top: 3px solid var(--ink); font-size: .74rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--ink);
}
.list-head .count { color: var(--red); }
.insert {
  display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: var(--gap); align-items: center;
  padding: clamp(1.4rem, 2.4vw, 2.1rem) 0; border-bottom: 1px solid var(--line);
}
.insert .caret { width: clamp(2.6rem, 4.4vw, 4rem); height: clamp(2.6rem, 4.4vw, 4rem); }
.insert p { margin: 0; max-width: 46rem; font-size: clamp(1.3rem, 2.1vw, 1.9rem); line-height: 1.3; letter-spacing: -.008em; color: var(--ink); text-wrap: pretty; }
.insert a { white-space: nowrap; text-decoration-color: var(--red); }

/* ---------------------------------------------------------------- narrower */

@media (max-width: 1180px) {
  .soon { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "legend" "next"; }
  .hero { padding-bottom: 2.2rem; }
  .legend { max-width: 44rem; }
}

@media (max-width: 760px) {
  body { font-size: 1.125rem; }
  .bar { padding-top: .9rem; padding-bottom: .9rem; }
  .bar nav { gap: 1.1rem; font-size: .74rem; }
  .masthead { font-size: 1.2rem; }
  .soon { grid-template-areas: "hero" "next" "legend"; }
  .legend { margin: 3.5rem 0 0; }
  .legend .row { grid-template-columns: 5.6rem 1fr; gap: .7rem; }
  .insert { grid-template-columns: 2.4rem minmax(0, 1fr); gap: 1rem; align-items: start; }
  .insert .caret { width: 2.2rem; height: 2.2rem; margin-top: .1rem; }
  .foot { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
