/* ======================================================================
 * BARNACLE'S SEDIMENT DRAWER
 *
 * Not an app dashboard in sea-green eveningwear. This is the removable
 * evidence folio tucked into Barnacle's cyanotype plate-book: cool rag
 * paper, Prussian indexing ink, unequal editorial measures, and receipts
 * which look handled rather than componentized.
 * ====================================================================== */
:root {
  color-scheme: light;
  --paper: #dbe6e6;
  --paper-light: #edf2ef;
  --paper-warm: #e8e8dd;
  --ink: #102f48;
  --ink-soft: #294c60;
  --muted: #486571;
  --prussian: #123d5a;
  --prussian-deep: #08273e;
  --cyan: #6f98a7;
  --kelp: #2e6255;
  --coral: #a9565e;
  --sand: #746346;
  --rule: #88a6ae;
  --rule-faint: #9eb5b94d;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --leaf: min(78rem, 100%);
  --measure: 45rem;
  --fibres: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='.11'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { background: var(--prussian-deep); scroll-behavior: smooth; }
body {
  min-height: 100%;
  margin: 0;
  padding: 0 clamp(1rem, 3vw, 2.8rem);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1rem, .97rem + .15vw, 1.08rem);
  line-height: 1.64;
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(0deg, #0b2b3f08 0 1px, #0000 1px 3.5px),
    repeating-linear-gradient(90deg, #0b2b3f05 0 1px, #0000 1px 116px),
    var(--fibres),
    linear-gradient(90deg, #8ca4a833 0, #0000 7%, #0000 93%, #78939a30 100%);
  background-blend-mode: multiply, multiply, multiply, normal;
}
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  inset-block: 0;
  width: clamp(.28rem, .55vw, .58rem);
  pointer-events: none;
  background: var(--prussian);
  opacity: .85;
}
body::before { left: 0; }
body::after { right: 0; }
body > * { position: relative; z-index: 1; }

a { color: var(--kelp); text-decoration-thickness: .06em; text-underline-offset: .2em; }
a:hover { color: var(--coral); }
p { text-wrap: pretty; }
code { font-family: var(--mono); font-size: .84em; }
strong { color: var(--prussian-deep); }
::selection { color: var(--prussian-deep); background: #91c5cb80; }
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
  border-radius: 1px;
}

/* Surface label ------------------------------------------------------- */
.barnacle-topnav {
  width: var(--leaf);
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: .9rem;
  font-style: italic;
}
.barnacle-topnav a { color: var(--ink-soft); }

.barnacle-hero {
  position: relative;
  width: var(--leaf);
  min-height: 26rem;
  margin: 1rem auto 2.3rem;
  padding: clamp(2.4rem, 5vw, 4.4rem) clamp(1.5rem, 6vw, 5.8rem) 2rem;
  border: 1px solid var(--prussian);
  color: var(--paper-light);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 16% 20%, #8ab1bd24 0 16%, #0000 17%),
    radial-gradient(ellipse at 84% 74%, #8ab1bd1f 0 14%, #0000 15%),
    repeating-linear-gradient(104deg, #fff0 0 42px, #b5d5dc14 48px 52px, #fff0 59px 112px),
    var(--prussian);
  box-shadow: inset 0 0 0 .45rem var(--paper), inset 0 0 0 .52rem var(--cyan);
}
.barnacle-hero::before {
  content: "VIII";
  position: absolute;
  z-index: -1;
  left: clamp(1rem, 3vw, 2.8rem);
  top: 50%;
  color: #d8eaed16;
  font-size: clamp(8rem, 21vw, 18rem);
  font-style: italic;
  line-height: .6;
  transform: translateY(-50%);
}
.barnacle-hero::after {
  content: "FIELD NOTES · BENTHIC SERIES";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  color: #dce9e5a8;
  font-size: .68rem;
  letter-spacing: .18em;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
}
.static-tag {
  display: block;
  margin: 0 0 .55rem;
  color: #d4e3df;
  font-size: .93rem;
  font-style: italic;
}
.static-tag::before { content: "❦ "; }
.static-tag::after { content: " ❦"; }
.barnacle-hero h1 {
  max-width: 12ch;
  margin: 0 auto;
  color: var(--paper-light);
  font-size: clamp(3rem, 7.8vw, 6.6rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .88;
  text-wrap: balance;
  text-shadow: 0 1px #061c2c, 0 0 28px #a9d1d329;
}
.cold-open {
  max-width: 44rem;
  margin: 1.55rem auto 0;
  color: #e0e9e7;
  font-size: 1.03rem;
  line-height: 1.6;
}
.drawer-imprint {
  margin: 1.25rem auto 0;
  color: #b8cece;
  font-size: .72rem;
  letter-spacing: .16em;
}
.drawer-index {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem 1.25rem;
  margin: 1.65rem auto 0;
  padding-top: .8rem;
  border-top: 1px solid #bad1d05c;
  font-size: .86rem;
  font-style: italic;
}
.drawer-index a { color: #e0e9e7; }

/* Desk — the bucket tipped onto paper. No hero billboard, just a table
   with the depth-bucket’s contents still damp. The title sits on paper;
   the chart and instruments are vignettes scattered as if left to drip. */
.desk-hero {
  position: relative;
  width: var(--leaf);
  margin: 1rem auto 2rem;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.2rem, 3vw, 2.8rem) clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--prussian);
  background-color: var(--paper);
  background-image:
    var(--fibres),
    radial-gradient(68% 46% at 18% 88%, #8ca4a81a 0 22%, #0000 23%),
    radial-gradient(52% 38% at 86% 14%, #8ca4a815 0 18%, #0000 19%),
    linear-gradient(90deg, #ffffff12, #264d5a06 50%, #ffffff12);
  background-blend-mode: multiply, normal, normal, normal;
  color: var(--ink);
  text-align: center;
  box-shadow: inset 0 0 0 .36rem var(--paper-light), inset 0 0 0 .44rem var(--rule-faint), 0 .5rem 1.2rem #0b2b3f14;
}
.desk-hero .static-tag {
  display: block;
  margin: 0 0 .45rem;
  color: var(--muted);
  font-size: .93rem;
  font-style: italic;
}
.desk-hero .static-tag::before { content: "❦ "; color: var(--coral); }
.desk-hero .static-tag::after { content: " ❦"; color: var(--coral); }
.desk-hero h1 {
  max-width: 16ch;
  margin: 0 auto;
  color: var(--prussian-deep);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: .94;
  text-wrap: balance;
}
.desk-hero .cold-open {
  max-width: 42rem;
  margin: 1.2rem auto 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.6;
}
.desk-hero .drawer-imprint {
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: .71rem;
  letter-spacing: .14em;
}
.desk-hero .drawer-index {
  margin: 1.4rem auto 0;
  padding-top: .7rem;
  border-top: 1px solid var(--rule-faint);
  justify-content: center;
}
.desk-hero .drawer-index a { color: var(--kelp); }

/* The six plates do not share a camera. Chart and dividers are drawn near
   plan view; the bucket is about 40 degrees; rubble, jar and sounding lead
   are side-on or hanging. Objects at different eye levels may sit NEAR each
   other on paper, but they cannot OVERLAP without reading as collage — so
   the stage holds only the two plan-view plates plus an adjacent bucket,
   and the rest become marginalia further down.

   The stage is bounded, and its height comes from the chart's intrinsic
   aspect ratio rather than a magic number. The satellites are anchored in
   percentages OF THE CHART, so the composition scales to the 320px floor
   without a second layout, and survives an editorial change because there
   is no copy inside it to edit. */
.desk-scatter {
  display: block;
  position: relative;
  width: min(48rem, 74vw);
  max-width: 100%;
  margin: 2.4rem auto 0;
  text-align: left;
}

.desk-scatter .vignette { margin: 0; counter-increment: none; }
.desk-scatter .vignette img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 .45rem .7rem #0b2b3f1e) drop-shadow(0 .18rem .3rem #0b2b3f14);
}
.desk-scatter .vignette figcaption {
  margin-top: .4rem;
  color: var(--muted);
  font-size: .76rem;
  font-style: italic;
  line-height: 1.4;
  text-align: center;
}
.desk-scatter .vignette figcaption::before { content: none; }

/* The chart is the table and the ground plane. */
.desk-scatter .chart-plate {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  transform: rotate(-.5deg);
}
.desk-scatter .chart-plate figcaption {
  margin-top: .55rem;
  padding-left: 24%;
  font-size: .82rem;
  text-align: left;
}
/* Dividers: the one overlap the art supports. Same plan-view eye level,
   both lying flat, and their shell bed is small enough to read as litter
   that landed rather than as a second photograph. */
.desk-scatter .compass-plate {
  position: absolute;
  z-index: 3;
  top: 47%;
  left: 27%;
  width: 50%;
  margin: 0;
  transform: rotate(-6deg);
}
/* Bucket: adjacent, never crossing. Tucked to the chart's torn lower-left
   corner so the chart OCCLUDES the bucket's own spilled sand plane — the
   two objects meet without their grounds arguing. */
.desk-scatter .bucket-plate {
  position: absolute;
  z-index: 2;
  bottom: 1%;
  left: -5%;
  width: 29%;
  margin: 0;
  transform: rotate(-2.4deg);
}
/* Evidence, not a museum checklist: six captions made six visual rows.
   One caption survives on screen; print restores the rest. */
.desk-scatter .bucket-plate figcaption,
.desk-scatter .compass-plate figcaption { display: none; }

/* Marginalia ---------------------------------------------------------
   The three plates that are drawn side-on or hanging. Each is placed
   against a rule the fieldbook already prints, because a side-on object
   needs a horizon and a drawn rule is a better one than a faked table. */
.margin-plate {
  position: relative;
  z-index: 1;
  margin: 0;
  pointer-events: none;
}
.margin-plate img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 .3rem .5rem #0b2b3f16);
}
/* The final sweepings sit on the footer rule. Roughly 26% of the plate's
   box is empty below the sand, so the negative lower margin seats the
   visual mound — not its transparent box — on that closing line. */
.margin-plate.shells-plate {
  width: 18rem;
  margin: -2.5rem auto -3rem;
  transform: rotate(.4deg);
}
/* The jar's art carries no shadow and no base. The timeline panel's dark
   edge is the strongest horizon on the page; standing the glass on it
   supplies the ground the plate omits. */
.margin-plate.jar-plate {
  width: 9.5rem;
  margin: -16.5rem 0 5.8rem clamp(0rem, 48vw, 44rem);
  transform: rotate(-1.2deg);
}
/* The lead hangs. Nothing in its drawing sits beneath it, so it gets the
   outer gutter and no ground line at all. */
.margin-plate.plumbob-plate {
  width: 5.75rem;
  margin: .2rem clamp(.25rem, 1vw, 1.4rem) -6.6rem auto;
  transform: rotate(1.4deg);
}

/* Reader's slip ------------------------------------------------------- */
.fieldnotes-shell { width: var(--leaf); margin: 0 auto 4rem; }
.panel { min-width: 0; }
.drawer-note {
  position: relative;
  max-width: 64rem;
  margin: 0 0 3rem clamp(0rem, 5vw, 5.5rem);
  padding: 1.55rem clamp(1.2rem, 3vw, 2.5rem) 1.5rem;
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
  background: #e9ebe2a8;
  box-shadow: 1rem .9rem 0 #315a6810;
  transform: rotate(-.22deg);
}
.drawer-note::before {
  content: "READER'S SLIP";
  position: absolute;
  top: .55rem;
  right: 1rem;
  color: var(--sand);
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .11em;
}
.drawer-note h2,
.curator-note h2,
.timeline-panel h2,
.contributor-panel h2,
.blind-window h2 {
  margin: 0 0 .55rem;
  color: var(--prussian-deep);
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  font-weight: 400;
  line-height: 1.05;
}
.drawer-note p { max-width: var(--measure); margin: .6rem 0; }
.public-anchor {
  margin-top: 1rem !important;
  padding-top: .8rem;
  border-top: 1px dotted var(--rule);
  color: var(--muted);
  font-size: .82rem;
}
.public-anchor code { overflow-wrap: anywhere; word-break: break-word; }

/* Eight unequal catalogue leaves, not eight cards -------------------- */
.sediment-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 3.5rem;
  border-top: 2px solid var(--prussian);
  border-bottom: 2px solid var(--prussian);
  background: linear-gradient(90deg, #ffffff1c, #264d5a08 50%, #ffffff1c);
  counter-reset: jar;
}
.sediment-card {
  position: relative;
  grid-column: span 6;
  counter-increment: jar;
  padding: 2.1rem clamp(1.25rem, 3vw, 2.4rem) 2.35rem;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.sediment-card:nth-child(odd) { border-right: 1px solid var(--rule); }
.sediment-card:nth-child(1), .sediment-card:nth-child(4), .sediment-card:nth-child(5), .sediment-card:nth-child(8) { grid-column: span 7; }
.sediment-card:nth-child(2), .sediment-card:nth-child(3), .sediment-card:nth-child(6), .sediment-card:nth-child(7) { grid-column: span 5; }
.sediment-card::after {
  content: counter(jar, decimal-leading-zero);
  position: absolute;
  right: -.04em;
  top: -.18em;
  z-index: -1;
  color: #1a53690a;
  font-size: clamp(6rem, 12vw, 11rem);
  font-style: italic;
  line-height: 1;
}
.specimen-no {
  margin: 0 0 .7rem;
  color: var(--sand);
  font-size: .72rem;
  font-style: italic;
  letter-spacing: .035em;
  text-transform: none;
}
.specimen-no::before { content: "❦ "; color: var(--coral); }
.sediment-card h2 {
  max-width: 18ch;
  margin: 0 0 .8rem;
  color: var(--prussian-deep);
  font-size: clamp(1.48rem, 2.45vw, 2.05rem);
  font-weight: 400;
  line-height: 1.08;
  text-wrap: balance;
}
.receipt-lead {
  margin: 0 0 1.15rem;
  color: var(--ink-soft);
  font-size: 1.03rem;
  line-height: 1.58;
}
.sediment-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.15rem 0;
  padding: .95rem 0;
  border-top: 1px solid var(--rule-faint);
  border-bottom: 1px solid var(--rule-faint);
}
.sediment-card dl > div { min-width: 0; }
.sediment-card dt {
  margin-bottom: .25rem;
  color: var(--prussian);
  font-size: .72rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.sediment-card dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: .88rem;
  line-height: 1.55;
}
.sediment-card blockquote,
.review-verdict,
.blind-exchange blockquote {
  margin: 1.1rem 0;
  padding: .1rem 0 .1rem 1rem;
  border: 0;
  border-left: 2px solid var(--coral);
  color: var(--prussian);
  font-style: italic;
  line-height: 1.56;
  background: transparent;
}
.sediment-card blockquote p,
.review-verdict p { margin: 0; }
.ask-scent {
  margin: 1rem 0 .8rem;
  color: var(--kelp);
  font-size: .88rem;
  font-style: italic;
}
.ask-scent strong { color: inherit; }
.plankton-speech {
  margin: 1rem 0;
  padding: .75rem 1rem;
  border-left: 3px double var(--cyan);
  color: var(--muted);
  font-style: italic;
}
.sediment-card details,
.timeline-panel details,
.contributor-panel details {
  margin-top: .9rem;
  color: var(--muted);
  font-size: .73rem;
}
summary { cursor: pointer; color: var(--kelp); font-style: italic; }
details code {
  display: block;
  margin-top: .55rem;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: normal;
}
.photo-card figure { margin: 1rem 0 1.2rem; }
.photo-card img {
  display: block;
  width: 100%;
  height: auto;
  padding: .38rem;
  border: 1px solid var(--rule);
  background: var(--paper-light);
  box-shadow: .55rem .55rem 0 #234b5a12;
  filter: sepia(.12) saturate(.82) contrast(1.04);
}
.photo-card figcaption {
  margin: .65rem .2rem 0;
  color: var(--muted);
  font-size: .76rem;
  font-style: italic;
  line-height: 1.45;
}

/* A cyanotype calendar inserted between the pale leaves --------------- */
.timeline-panel {
  position: relative;
  left: 50%;
  width: 100vw;
  margin: 3.8rem -50vw;
  padding: clamp(2.6rem, 6vw, 5.2rem) max(calc((100vw - 78rem) / 2 + 1.25rem), 1.25rem);
  color: #dce9e8;
  background:
    repeating-linear-gradient(104deg, #fff0 0 58px, #b4d6dc0d 64px 68px, #fff0 74px 148px),
    var(--prussian);
  box-shadow: inset 0 .4rem 0 var(--paper), inset 0 .52rem 0 var(--cyan), inset 0 -.4rem 0 var(--paper), inset 0 -.52rem 0 var(--cyan);
}
.section-kicker {
  margin: 0 0 .4rem;
  color: var(--sand);
  font-size: .9rem;
  font-style: italic;
}
.timeline-panel .section-kicker { color: #bcd0cf; }
.timeline-panel h2 { color: #f0f4ef; }
.timeline-caveat { max-width: var(--measure); color: #c8dcda; }
.barnacle-timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.8rem;
  list-style: none;
  margin: 2rem 0 1.4rem;
  padding: 0;
  counter-reset: tide;
}
.barnacle-timeline li {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: .85rem;
  counter-increment: tide;
  padding: .9rem 0;
  border-top: 1px solid #b8d0d041;
  color: #d9e5e2;
  line-height: 1.5;
}
.barnacle-timeline time { color: #acd0c1; font-style: italic; font-weight: 700; }
.barnacle-timeline strong { color: #f0f4ef; }
.timeline-panel details,
.timeline-panel summary,
.timeline-panel details code { color: #b9cece; }

/* Keeper's ledger ----------------------------------------------------- */
.contributor-panel,
.blind-window,
.curator-note { margin: 3.5rem auto; }
.contributor-panel > p,
.blind-window > p { max-width: var(--measure); color: var(--ink-soft); }
.contributor-grid {
  columns: 2 24rem;
  column-gap: 3.2rem;
  margin: 1.8rem 0;
  padding: 1.4rem 0;
  border-top: 1px solid var(--prussian);
  border-bottom: 1px solid var(--prussian);
  column-rule: 1px solid var(--rule);
}
.contributor-grid article {
  break-inside: avoid;
  margin: 0 0 1.1rem;
  padding: 0 0 1.05rem;
  border-bottom: 1px dotted var(--rule);
}
.contributor-grid h3 {
  margin: 0 0 .3rem;
  color: var(--prussian);
  font-size: 1.12rem;
  font-style: italic;
  font-weight: 500;
}
.contributor-grid p { margin: 0; color: var(--ink-soft); font-size: .88rem; line-height: 1.55; }

.blind-window {
  position: relative;
  padding: clamp(1.6rem, 4vw, 3.3rem);
  border: 1px solid var(--rule);
  box-shadow: inset 0 0 0 .4rem var(--paper), inset 0 0 0 .46rem var(--rule-faint);
}
.blind-window::after {
  content: "INDEPENDENT WINDOW";
  position: absolute;
  right: 1rem;
  top: 1rem;
  color: var(--sand);
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .1em;
}
.blind-exchange {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin: 1.7rem 0;
}
.blind-exchange blockquote {
  margin: 0;
  padding-left: 1rem;
  font-size: .9rem;
}
.blind-exchange cite { display: block; margin-top: .8rem; color: var(--kelp); font-size: .82rem; font-style: normal; }
.blind-disclosure { font-size: .83rem; }

.curator-note {
  max-width: 55rem;
  padding: 1.5rem 2rem;
  border-top: 3px double var(--sand);
  border-bottom: 3px double var(--sand);
  text-align: center;
}
.curator-note h2 { font-size: 1.65rem; }
.curator-note p { color: var(--ink-soft); font-size: .9rem; }

body > footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .3rem 1.3rem;
  width: var(--leaf);
  margin: 0 auto;
  padding: 1.2rem 0 3rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: .82rem;
  font-style: italic;
  text-align: center;
}
body > footer strong { color: var(--kelp); font-style: normal; }

/* The reader's slip only clears a right-hand gutter once the shell exceeds
   64rem plus its left margin (~1170px viewport). Below that the sounding
   lead snags the READER'S SLIP label, so it stands down. */
@media (max-width: 1199px) {
  .margin-plate.plumbob-plate { display: none; }
}

@media (max-width: 900px) {
  .barnacle-hero, .desk-hero { min-height: 0; }
  /* The scene is proportional to the chart, so it survives narrow widths
     intact rather than unstacking into a vertical inventory parade. */
  .desk-scatter { width: 100%; margin-top: 1.8rem; }
  .desk-scatter .compass-plate { top: 48%; left: 25%; width: 56%; }
  .desk-scatter .bucket-plate { bottom: -6%; left: -5%; width: 27%; }
  .desk-scatter .chart-plate figcaption { padding-left: 30%; }
  /* The fieldbook's margins collapse here and the marginalia have no
     gutter to live in without colliding with the slip labels. */
  .margin-plate { display: none; }
  /* The shell pile is no longer intermediate marginalia; it closes the
     entire page and remains useful when the side gutters disappear. */
  .margin-plate.shells-plate {
    display: block;
    width: 14rem;
    margin: -1.5rem auto -2.3rem;
  }
  .sediment-card,
  .sediment-card:nth-child(n) { grid-column: 1 / -1; border-right: 0; }
  .sediment-card dl { grid-template-columns: 1fr; }
  .barnacle-timeline { grid-template-columns: 1fr; }
  .blind-exchange { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { padding-inline: .85rem; }
  .barnacle-hero, .desk-hero { padding: 1.8rem 1rem 1.2rem; box-shadow: inset 0 0 0 .3rem var(--paper), inset 0 0 0 .36rem var(--rule-faint); }
  .barnacle-hero::after, .desk-hero::after { display: none; }
  .barnacle-hero h1, .desk-hero h1 { font-size: clamp(2.1rem, 10vw, 2.7rem); }
  .cold-open { font-size: .96rem; }
  .drawer-index { display: grid; grid-template-columns: 1fr 1fr; }
  .drawer-note { margin-left: 0; transform: none; }
  .desk-scatter .bucket-plate { width: 30%; bottom: -8%; left: -6%; }
  .sediment-card { padding-inline: .65rem; }
  .barnacle-timeline li { grid-template-columns: 1fr; gap: .15rem; }
  .blind-window { padding: 2.6rem 1rem 1.4rem; }
  .curator-note { padding-inline: .5rem; }
  .margin-plate.shells-plate { width: 11rem; margin-bottom: -1.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Placement is top/left/%, not transform, so removing the rotations
     leaves the composition standing. */
  .desk-scatter .vignette,
  .margin-plate { transform: none !important; }
}

@media print {
  @page { margin: 1.6cm; }
  html, body { background: #fff !important; color: #111 !important; }
  body { padding: 0; font-size: 10.5pt; }
  body::before, body::after, .barnacle-hero::before, .barnacle-hero::after, .desk-hero::before, .desk-hero::after { display: none; }
  .barnacle-topnav, .drawer-index { display: none; }
  .barnacle-hero, .desk-hero, .timeline-panel { margin: 0 0 1cm; padding: 1cm; color: #111; background: none !important; box-shadow: none; border: 1px solid #333; }
  .barnacle-hero h1, .barnacle-hero p, .desk-hero h1, .desk-hero p, .timeline-panel h2, .timeline-panel p, .timeline-panel li, .timeline-panel time, .timeline-panel strong { color: #111 !important; }
  .desk-scatter { display: block; width: 100%; }
  .desk-scatter .vignette { position: static !important; break-inside: avoid; width: auto !important; max-width: 12cm; margin: 0.6cm auto !important; transform: none !important; filter: none !important; }
  .desk-scatter .vignette img { filter: none !important; }
  .desk-scatter .vignette figcaption { display: block !important; padding-left: 0 !important; }
  .margin-plate { display: none; }
  .fieldnotes-shell { width: auto; }
  .sediment-grid { display: block; }
  .sediment-card { break-inside: avoid; border-right: 0; }
  .timeline-panel { margin-inline: 0; }
  .barnacle-timeline { display: block; }
  details { display: none; }
  a { color: #111; text-decoration: none; }
}
