/* Jackfish Bay — Great Lakes Area of Concern
   ---------------------------------------------------------------------------
   Palette is drawn from the subject: cold Superior water, oxidized copper-teal,
   mineral pale, bone. A single ochre marks the "impairment" register and is used
   only where degradation or caution is discussed — colour encodes state here, it
   is not decoration.

   Signature element: .layout carries a thin vertical rail that grades from ochre
   at the top to teal at the bottom, so the page furniture itself expresses the
   impaired -> recovering arc that the site is about.
   --------------------------------------------------------------------------- */

:root {
  --water-deep:   #0d2b36;
  --water-mid:    #17414f;
  --teal:         #2f7d78;
  --teal-bright:  #3d9b93;
  --mineral:      #e8eef0;
  --bone:         #f7f5f0;
  --ochre:        #b8752a;
  --ochre-soft:   #d9a05b;

  --bg:           var(--bone);
  --bg-raised:    #ffffff;
  --bg-sunken:    var(--mineral);
  --ink:          #12242b;
  --ink-soft:     #46606a;
  --ink-faint:    #718d97;
  --rule:         #cfdbdf;
  --accent:       var(--teal);
  --accent-ink:   #1d5f5c;

  --measure: 68ch;
  --radius: 3px;
  --rail-w: 3px;

  /* Fluid type scale. Body sits at a comfortable reading size on every width. */
  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0:  clamp(1.02rem, 0.98rem + 0.2vw, 1.14rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2:  clamp(1.45rem, 1.3rem + 0.75vw, 1.95rem);
  --step-3:  clamp(1.85rem, 1.55rem + 1.5vw, 2.9rem);
  --step-4:  clamp(2.3rem, 1.7rem + 3vw, 4.2rem);

  --font-body: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino,
               Georgia, "Times New Roman", serif;
  --font-ui: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
             "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:         #0a1f27;
    --bg-raised:  #102e38;
    --bg-sunken:  #0d2831;
    --ink:        #e4eef1;
    --ink-soft:   #a6bfc7;
    --ink-faint:  #7b979f;
    --rule:       #1e4451;
    --accent:     var(--teal-bright);
    --accent-ink: #6fc0b7;
    --ochre:      var(--ochre-soft);
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-ui);
  line-height: 1.15;
  letter-spacing: -0.018em;
  font-weight: 640;
  color: var(--ink);
  text-wrap: balance;
}

a { color: var(--accent-ink); }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--water-deep);
  color: #fff;
  padding: 0.7rem 1.1rem;
  z-index: 100;
  font-family: var(--font-ui);
  font-size: var(--step--1);
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ── Header / navigation ─────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  margin-right: auto;
}

/* Water-column mark: ochre at the surface grading into recovered teal. */
.brand-mark {
  width: 12px;
  height: 34px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--ochre) 0%, var(--teal) 78%);
  flex: none;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-ui);
  font-weight: 680;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}
.brand-sub {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 38px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg-raised);
  cursor: pointer;
  padding: 9px 10px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.18s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.primary-nav ul {
  display: flex;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.primary-nav a {
  display: block;
  padding: 0.45rem 0.7rem;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  border-radius: var(--radius);
  position: relative;
}
.primary-nav a:hover { color: var(--ink); background: var(--bg-sunken); }
.primary-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 640;
}
.primary-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.1rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    flex-basis: 100%;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.28s ease;
  }
  .primary-nav > ul { overflow: hidden; min-height: 0; }
  .primary-nav.is-open { grid-template-rows: 1fr; }
  .primary-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.4rem 0 0.6rem;
  }
  .primary-nav a { padding: 0.7rem 0.6rem; font-size: 0.98rem; }
  .primary-nav a[aria-current="page"]::after { left: 0.6rem; width: 18px; right: auto; }
}

/* ── Hero / page heads ───────────────────────────────────────────────────── */

.hero {
  background:
    radial-gradient(120% 140% at 12% 0%, var(--water-mid) 0%, var(--water-deep) 62%);
  color: #eaf3f4;
  border-bottom: 1px solid var(--rule);
}
.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6.5rem) 1.25rem clamp(2.4rem, 5vw, 4rem);
}
.hero h1 {
  font-size: var(--step-4);
  margin: 0.2rem 0 0.9rem;
  color: #fff;
  letter-spacing: -0.032em;
}
.hero .standfirst { color: #c7dcdf; }

.page-head {
  background: var(--bg-sunken);
  border-bottom: 1px solid var(--rule);
}
.page-head-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2.2rem, 5vw, 3.6rem) 1.25rem clamp(1.6rem, 3vw, 2.4rem);
}
.page-head h1 {
  font-size: var(--step-3);
  margin: 0.25rem 0 0.75rem;
}

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
  font-weight: 620;
}
.hero .eyebrow { color: var(--ochre-soft); }

.standfirst {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0;
  text-wrap: pretty;
}

.status-pill {
  display: inline-block;
  margin-top: 1.4rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.34rem 0.8rem;
  border-radius: 100px;
  background: color-mix(in srgb, var(--teal) 26%, transparent);
  border: 1px solid var(--teal-bright);
  color: #d6f0ec;
}
.hero-status { margin: 0; }

/* ── Layout + the signature rail ─────────────────────────────────────────── */

.layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3.4rem) 1.25rem clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19rem;
  gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: start;
  position: relative;
}

/* The rail: impaired (ochre) at the top of the page, recovering (teal) at the
   bottom. Purely structural — it marks the reading column, and its gradient is
   the one place the site states its own argument visually. */
.layout::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: clamp(2rem, 4vw, 3.4rem);
  bottom: clamp(2.5rem, 5vw, 4rem);
  width: var(--rail-w);
  border-radius: var(--rail-w);
  background: linear-gradient(180deg, var(--ochre) 0%, var(--teal) 55%, var(--teal-bright) 100%);
  opacity: 0.5;
}

.layout--wide { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .layout::before { left: 0.1rem; }
}

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  font-size: var(--step-2);
  margin-top: 2.4em;
  margin-bottom: 0.1em;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
}
.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { font-size: var(--step-1); margin-top: 1.8em; }
.prose p { text-wrap: pretty; }

.component-label {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.5rem;
  font-weight: 620;
}

/* ── Figures + media slots ───────────────────────────────────────────────── */

.figure { margin: 2rem 0; }
.figure img {
  border-radius: var(--radius);
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  background: var(--bg-sunken);
}
figcaption {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  color: var(--ink-soft);
  margin-top: 0.6rem;
  line-height: 1.5;
}
.credit { color: var(--ink-faint); }

/* Only real images are clickable; placeholder frames are not. */
.figure[data-lightbox-figure] img { cursor: zoom-in; }

.media-slot { margin: 2.2rem 0; }
.media-caption {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  color: var(--ink-soft);
  margin-top: 0.6rem;
}

.social-links {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.social-links a {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 100px;
  background: var(--bg-raised);
}
.social-links a:hover { border-color: var(--accent); }

/* Instagram's embed.js replaces this blockquote with its own iframe. Until it
   does — and permanently, if the platform script is blocked — this keeps the
   fallback link looking deliberate rather than like broken markup. */
.instagram-media {
  margin: 0 auto !important;
  max-width: 540px !important;
  min-width: 0 !important;
  border: 1px solid var(--rule) !important;
  border-radius: var(--radius) !important;
  background: var(--bg-raised) !important;
  padding: 1.1rem 1.2rem;
  font-family: var(--font-ui);
  font-size: var(--step--1);
}
.instagram-media a {
  font-weight: 600;
  text-decoration: none;
}
.instagram-media a:hover { text-decoration: underline; }

/* ── Terms, expandables ──────────────────────────────────────────────────── */

.term-card, .expandable {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg-raised);
  overflow: hidden;
  margin: 1.6rem 0;
}
.term-toggle, .expandable-toggle {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  background: none;
  border: 0;
  padding: 0.85rem 1.1rem;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: var(--step-0);
  color: var(--ink);
}
.term-toggle:hover, .expandable-toggle:hover { background: var(--bg-sunken); }
.term-toggle dfn {
  font-style: normal;
  font-weight: 650;
  border-bottom: 2px dotted var(--accent);
}
.term-hint, .expandable-toggle span:last-child {
  font-size: 0.78rem;
  color: var(--ink-faint);
  flex: none;
}
.expandable-toggle > span:first-child { font-weight: 600; }
.expandable-toggle::after,
.term-toggle::after {
  content: "+";
  font-family: var(--font-ui);
  font-size: 1.1rem;
  color: var(--accent);
  flex: none;
  line-height: 1;
}
.expandable-toggle[aria-expanded="true"]::after,
.term-toggle[aria-expanded="true"]::after { content: "\2212"; }

.term-body, .expandable-body {
  padding: 0 1.1rem 1rem;
  border-top: 1px solid var(--rule);
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.term-body p, .expandable-body p { margin: 0.85rem 0 0; }

/* ── Timeline + compare ──────────────────────────────────────────────────── */

.timeline { margin: 2rem 0; }
.timeline ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--rule);
}
.timeline li {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 0.9rem;
  padding: 0.55rem 0 0.55rem 1.1rem;
  position: relative;
  font-family: var(--font-ui);
  font-size: var(--step--1);
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 1.05rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.timeline-year {
  font-variant-numeric: tabular-nums;
  font-weight: 680;
  color: var(--accent-ink);
}
.timeline-event { color: var(--ink-soft); }

.compare { margin: 2rem 0; }
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}
.compare-col {
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
/* Left column = impaired state, right = recovered. Colour carries the meaning. */
.compare-col:first-child { border-top: var(--rail-w) solid var(--ochre); }
.compare-col:last-child  { border-top: var(--rail-w) solid var(--teal); }
.compare-col h3 {
  margin: 0 0 0.5rem;
  font-size: var(--step-0);
}
.compare-col p {
  margin: 0;
  font-size: var(--step--1);
  color: var(--ink-soft);
  font-family: var(--font-ui);
}

/* ── Link lists ──────────────────────────────────────────────────────────── */

.link-list { margin: 2rem 0; }
.link-list ul { list-style: none; margin: 0; padding: 0; }
.link-list li {
  padding: 0.75rem 0;
  border-top: 1px solid var(--rule);
  font-family: var(--font-ui);
  font-size: var(--step--1);
}
.link-list li:last-child { border-bottom: 1px solid var(--rule); }
.link-list a { font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.link-note { display: block; color: var(--ink-faint); margin-top: 0.2rem; }

/* ── Sidebar cards ───────────────────────────────────────────────────────── */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 5.4rem;
  font-family: var(--font-ui);
}
@media (max-width: 900px) { .sidebar { position: static; } }

.card {
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.card h3 {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 660;
}
.card-note, .card-cite {
  font-size: var(--step--1);
  color: var(--ink-soft);
  margin: 0 0 0.6rem;
  line-height: 1.5;
}
.card-cite { color: var(--ink); }
.card-links { list-style: none; margin: 0; padding: 0; }
.card-links li + li { margin-top: 0.5rem; }
.card-links a {
  font-size: var(--step--1);
  text-decoration: none;
  font-weight: 550;
  line-height: 1.4;
  display: block;
}
.card-links a:hover { text-decoration: underline; }
.card-link-out {
  font-size: var(--step--1);
  font-weight: 620;
  text-decoration: none;
}
.card-link-out:hover { text-decoration: underline; }

.card--caution { border-left: var(--rail-w) solid var(--ochre); }
.card--caution h3 { color: var(--ochre); }

/* ── References ──────────────────────────────────────────────────────────── */

.refs-note { color: var(--ink-soft); font-size: var(--step--1); font-family: var(--font-ui); }

.ref-list { list-style: none; margin: 1.4rem 0 0; padding: 0; counter-reset: ref; }
.ref {
  padding: 1.1rem 0 1.1rem 1.2rem;
  border-top: 1px solid var(--rule);
  border-left: var(--rail-w) solid transparent;
}
.ref:last-child { border-bottom: 1px solid var(--rule); }
.ref--key { border-left-color: var(--teal); background: var(--bg-raised); }

/* Hanging indent, as APA reference lists are set. */
.ref-text {
  margin: 0;
  padding-left: 1.6rem;
  text-indent: -1.6rem;
  font-size: var(--step--1);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.ref-use {
  margin: 0.5rem 0 0;
  font-family: var(--font-ui);
  font-size: 0.76rem;
  color: var(--ink-faint);
}
.ref-flag, .inline-flag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-ink);
  background: color-mix(in srgb, var(--teal) 15%, transparent);
  border-radius: 100px;
  padding: 0.16rem 0.6rem;
  margin-bottom: 0.5rem;
}
.inline-flag { margin: 0; vertical-align: 1px; }

.credit-list {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.credit-list li {
  padding: 0.5rem 0;
  border-top: 1px dashed var(--rule);
  overflow-wrap: anywhere;
}

/* ── Pager ───────────────────────────────────────────────────────────────── */

.pager {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
.pager-link {
  display: block;
  padding: 1rem 1.15rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg-raised);
  text-decoration: none;
  font-family: var(--font-ui);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.pager-link:hover { border-color: var(--accent); transform: translateY(-2px); }
.pager-next { text-align: right; }
.pager-dir {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.25rem;
}
.pager-title {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: var(--step--1);
  line-height: 1.4;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--water-deep);
  color: #cfe2e4;
  border-top: 4px solid var(--teal);
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2.4rem, 5vw, 3.6rem) 1.25rem;
}
.site-footer h2 {
  color: #fff;
  font-size: var(--step-1);
  margin: 0 0 0.3rem;
}
.key-sources-note {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  color: #93b4b8;
  margin: 0 0 1.4rem;
}
.source-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}
.source {
  border-top: 2px solid var(--teal);
  padding-top: 0.8rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  line-height: 1.5;
}
.source p { margin: 0 0 0.3rem; }
.source-authors { color: #fff; font-weight: 600; }
.source-date { color: #93b4b8; font-variant-numeric: tabular-nums; }
.source-title { color: #cfe2e4; }
.source-title cite { font-style: italic; }
.source-pub { color: #93b4b8; }
.source-link {
  color: var(--teal-bright);
  overflow-wrap: anywhere;
  text-decoration: none;
}
.source-link:hover { text-decoration: underline; color: #a8ded7; }

.footer-all-refs {
  margin: 1.6rem 0 0;
  font-family: var(--font-ui);
  font-size: var(--step--1);
}
.footer-all-refs a { color: var(--teal-bright); text-decoration: none; font-weight: 600; }
.footer-all-refs a:hover { text-decoration: underline; }

.footer-meta {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid #1e4451;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: #7b979f;
}
.footer-meta p { margin: 0; }

/* ── Lightbox ────────────────────────────────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.lightbox[hidden] { display: none; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 22, 28, 0.88);
  backdrop-filter: blur(3px);
}
.lightbox-figure {
  position: relative;
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: 100%;
  background: var(--bg-raised);
  border-radius: var(--radius);
  padding: 0.75rem;
  overflow: auto;
}
.lightbox-img { max-height: 76vh; width: auto; margin: 0 auto; border-radius: 2px; }
.lightbox-caption {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  color: var(--ink-soft);
  margin-top: 0.6rem;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: -0.6rem;
  right: -0.6rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--bg-raised);
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

/* ── Motion + print ──────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header, .pager, .lightbox, .nav-toggle { display: none; }
  body { background: #fff; color: #000; }
  .layout::before { display: none; }
}
