/* =========================================================================
   coreyredwine.com - design system
   Modern art deco. Monochrome: rich black, bone white, hairline rules.
   Bodoni Moda for display (extreme contrast, fashion-house), Jost for text
   (a Futura revival, and Futura is the deco-era geometric sans).
   No accent colour. Emphasis is carried by weight, rule and letterspacing.
   ========================================================================= */

/* ---------- tokens ---------- */
:root {
  /* ink - rich black, never pure #000 */
  --ink-000: #0a0a0a;
  --ink-050: #0d0d0e;
  --ink-100: #0f0f10;
  --ink-200: #141416;
  --ink-300: #1e1e21;
  --ink-400: #2c2c30;
  --ink-500: #3d3d42;

  /* paper - bone white, never pure #fff except as emphasis */
  --paper-000: #ffffff;
  --paper-100: #f4f1ea;   /* 17.6:1 on ink-000 */
  --paper-200: #c9c5bd;   /* 11.5:1 */
  --paper-300: #a5a19a;   /*  7.7:1 */
  --paper-400: #8a8781;   /*  5.5:1 - lowest tone used, still AA */

  /* semantic */
  --bg: var(--ink-000);
  --bg-raised: var(--ink-100);
  --bg-sunken: var(--ink-050);
  --line: var(--ink-400);
  --line-soft: var(--ink-300);
  --text: var(--paper-100);
  --text-muted: var(--paper-200);   /* body copy: 11.5:1 */
  --text-dim: var(--paper-300);     /* labels and meta: 7.7:1 */
  --bright: var(--paper-000);

  /* type */
  --font-display: "Bodoni Moda", "Didot", "Bodoni MT", Georgia, serif;
  --font-body: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --font-mono: var(--font-body);

  /* fluid scale */
  --t-xs:   clamp(0.76rem, 0.73rem + 0.14vw, 0.84rem);
  --t-sm:   clamp(0.94rem, 0.90rem + 0.20vw, 1.05rem);
  --t-base: clamp(1.06rem, 1.01rem + 0.24vw, 1.20rem);
  --t-md:   clamp(1.18rem, 1.08rem + 0.45vw, 1.44rem);
  --t-lg:   clamp(1.50rem, 1.28rem + 1.00vw, 2.20rem);
  --t-xl:   clamp(1.85rem, 1.42rem + 2.05vw, 3.40rem);
  --t-2xl:  clamp(2.30rem, 1.70rem + 2.80vw, 4.80rem);
  --t-3xl:  clamp(2.60rem, 1.60rem + 4.60vw, 7.00rem);

  /* space */
  --s-1: 0.25rem;  --s-2: 0.5rem;   --s-3: 0.75rem;  --s-4: 1rem;
  --s-5: 1.5rem;   --s-6: 2rem;     --s-7: 3rem;     --s-8: 4rem;
  --s-9: 6rem;     --s-10: 8rem;    --s-11: 11rem;

  --wrap: 76rem;
  --wrap-tight: 46rem;

  /* deco is geometric and sharp: almost no radius anywhere */
  --r-sm: 0;  --r-md: 0;  --r-lg: 0;  --r-xl: 0;

  --track: 0.18em;        /* deco caps, kept readable */
  --track-wide: 0.26em;   /* wordmark and buttons only, where text is short */

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur: 420ms;
  --dur-slow: 760ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--t-base);
  font-weight: 400;
  line-height: 1.7;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
p { text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }

:focus-visible {
  outline: 1px solid var(--bright);
  outline-offset: 4px;
}
::selection { background: var(--paper-100); color: var(--ink-000); }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-tight { width: min(100% - 2.5rem, var(--wrap-tight)); margin-inline: auto; }
@media (min-width: 48rem) {
  .wrap { width: min(100% - 6rem, var(--wrap)); }
  .wrap-tight { width: min(100% - 6rem, var(--wrap-tight)); }
}

.section { padding-block: var(--s-9); position: relative; }
@media (min-width: 48rem) { .section { padding-block: var(--s-10); } }
.section + .section { border-top: 1px solid var(--line-soft); }
.hero + .section { padding-top: var(--s-7); }
@media (min-width: 48rem) { .hero + .section { padding-top: var(--s-8); } }

/* ---------- type utilities ---------- */
.display { font-family: var(--font-display); font-weight: 400; }
.mono {
  font-family: var(--font-body);
  font-size: var(--t-xs);
  letter-spacing: var(--track);
  text-transform: uppercase;
}

/* the deco eyebrow: rule, then letterspaced caps */
.tag {
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: 400;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
}
.tag::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--paper-400);
  flex: none;
}

.lede { font-size: var(--t-md); color: var(--text-muted); line-height: 1.6; max-width: 46ch; }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }

/* ---------- skip link ---------- */
.skip {
  position: fixed; left: var(--s-4); top: var(--s-4);
  transform: translateY(-250%);
  background: var(--paper-100); color: var(--ink-000);
  padding: var(--s-3) var(--s-5);
  font-size: var(--t-xs); font-weight: 500;
  letter-spacing: var(--track); text-transform: uppercase;
  z-index: 200; text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip:focus { transform: translateY(0); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklab, var(--ink-000) 84%, transparent);
  -webkit-backdrop-filter: saturate(120%) blur(14px);
  backdrop-filter: saturate(120%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.nav[data-scrolled="true"] {
  border-bottom-color: var(--line-soft);
  background: color-mix(in oklab, var(--ink-000) 95%, transparent);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: 4.5rem; }

.brand {
  font-family: var(--font-body);
  font-size: var(--t-xs); font-weight: 500;
  letter-spacing: var(--track-wide); text-transform: uppercase;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: var(--s-4);
  padding-block: var(--s-2);
}
/* a deco ziggurat: three stepped bars */
.brand-mark {
  width: 0.9rem; height: 0.9rem; flex: none;
  background:
    linear-gradient(var(--paper-100) 0 0) 50% 0   / 100% 2px no-repeat,
    linear-gradient(var(--paper-100) 0 0) 50% 50% / 66%  2px no-repeat,
    linear-gradient(var(--paper-100) 0 0) 50% 100%/ 33%  2px no-repeat;
}

.nav-links { display: none; gap: var(--s-7); align-items: center; }
@media (min-width: 60rem) { .nav-links { display: flex; } }
.nav-link {
  position: relative; text-decoration: none;
  font-size: var(--t-xs);
  letter-spacing: var(--track); text-transform: uppercase;
  color: var(--text-muted);
  padding-block: var(--s-2);
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--bright);
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}
.nav-link:hover, .nav-link:focus-visible { color: var(--bright); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-link[aria-current="page"] { color: var(--text); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem;
  background: none; border: 1px solid var(--line); border-radius: 0;
  cursor: pointer; color: var(--text);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.nav-toggle:hover { border-color: var(--paper-300); }
@media (min-width: 60rem) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 1rem; height: 1rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.drawer {
  position: fixed; inset: 4.5rem 0 auto 0;
  background: var(--ink-050);
  border-bottom: 1px solid var(--line-soft);
  padding: var(--s-5) 0 var(--s-7);
  display: grid; gap: 0;
  transform: translateY(-115%);
  visibility: hidden;
  transition: transform var(--dur) var(--ease-out), visibility var(--dur);
  z-index: 99;
}
.drawer[data-open="true"] { transform: translateY(0); visibility: visible; }
@media (min-width: 60rem) { .drawer { display: none; } }
.drawer a {
  display: block; padding: var(--s-4) 0;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: var(--t-md); font-weight: 400;
  border-bottom: 1px solid var(--line-soft);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem;
  padding: var(--s-3) var(--s-7);
  border-radius: 0;
  font-size: var(--t-xs); font-weight: 500;
  letter-spacing: var(--track-wide); text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.btn-primary { background: var(--paper-100); color: var(--ink-000); border-color: var(--paper-100); }
.btn-primary:hover { background: var(--bright); border-color: var(--bright); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--paper-100); color: var(--bright); }
.btn svg { width: 1rem; height: 1rem; flex: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: var(--s-8) var(--s-7); overflow: hidden; }
@media (min-width: 48rem) { .hero { padding-block: var(--s-9) var(--s-8); } }

/* the deco sunburst: the single most iconic motif of the period, in pure CSS */
.hero-deco {
  position: absolute;
  top: -30vh; left: 50%;
  width: min(190vw, 150rem); aspect-ratio: 1;
  translate: -50% 0;
  pointer-events: none;
  background: repeating-conic-gradient(
    from 0deg at 50% 50%,
    var(--ink-300) 0deg 1.05deg,
    transparent 1.05deg 4.5deg
  );
  -webkit-mask-image: radial-gradient(closest-side, #000 8%, rgba(0,0,0,0.55) 34%, transparent 68%);
  mask-image: radial-gradient(closest-side, #000 8%, rgba(0,0,0,0.55) 34%, transparent 68%);
  opacity: 0.9;
}
.hero-inner { position: relative; }

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--t-3xl);
  font-weight: 400;
  line-height: 0.99;
  letter-spacing: -0.015em;
  max-width: 15ch;
  margin-block: var(--s-4) var(--s-6);
  overflow-wrap: break-word;
}
.hero h1 em { font-style: italic; font-weight: 400; color: var(--text-muted); }

.hero-lede { font-size: var(--t-md); color: var(--text-muted); max-width: 52ch; line-height: 1.62; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-7); }

/* staggered line reveal */
.reveal-line { display: block; overflow: hidden; }
.reveal-line > span {
  display: block;
  transform: translateY(102%);
  animation: line-rise 1000ms var(--ease-out) forwards;
}
.reveal-line:nth-child(1) > span { animation-delay: 60ms; }
.reveal-line:nth-child(2) > span { animation-delay: 170ms; }
.reveal-line:nth-child(3) > span { animation-delay: 280ms; }
@keyframes line-rise { to { transform: translateY(0); } }

.fade-up { opacity: 0; transform: translateY(1rem); animation: fade-up 820ms var(--ease-out) forwards; }
.fade-up[data-delay="1"] { animation-delay: 400ms; }
.fade-up[data-delay="2"] { animation-delay: 530ms; }
.fade-up[data-delay="3"] { animation-delay: 660ms; }
@keyframes fade-up { to { opacity: 1; transform: none; } }

/* ---------- instrument readout: Bodoni numerals between hairlines ---------- */
.readout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: var(--s-8);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 46rem) { .readout { grid-template-columns: repeat(4, 1fr); } }
.readout-cell {
  padding: var(--s-6) var(--s-5);
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.readout-cell:last-child { border-right: 0; }
@media (min-width: 46rem) {
  .readout-cell { border-bottom: 0; }
}
.readout-val {
  font-family: var(--font-display);
  font-size: var(--t-lg); font-weight: 400;
  letter-spacing: -0.01em; color: var(--text); display: block;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1;
}
.readout-label {
  display: block; margin-top: var(--s-4);
  font-size: var(--t-xs);
  letter-spacing: var(--track); text-transform: uppercase;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ---------- section heads ---------- */
.head { max-width: 62ch; margin-bottom: var(--s-8); }
.head h2 { font-family: var(--font-display); font-size: var(--t-xl); margin-bottom: var(--s-5); }
.head p { color: var(--text-muted); max-width: 56ch; }

/* a centred deco divider: rule, lozenge, rule */
.divider {
  display: flex; align-items: center; gap: var(--s-4);
  margin-block: var(--s-8);
  color: var(--ink-500);
}
.divider::before, .divider::after {
  content: ""; height: 1px; background: currentColor; flex: 1;
}
.divider span {
  width: 0.5rem; height: 0.5rem;
  border: 1px solid currentColor;
  rotate: 45deg;
  flex: none;
}

/* ---------- cards: hairline frames, no radius ---------- */
.grid { display: grid; gap: var(--s-5); }
.grid-2, .grid-3 { grid-template-columns: 1fr; }
@media (min-width: 44rem) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  background: var(--bg-raised);
  border: 1px solid var(--line-soft);
  padding: var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-4);
  transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
/* the inner hairline: a deco double rule */
.card::before {
  content: "";
  position: absolute; inset: 5px;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color var(--dur) var(--ease-out);
}
a.card { text-decoration: none; }
a.card:hover, .card:has(a:hover), .card:has(a:focus-visible) {
  border-color: var(--paper-400);
  background: var(--ink-200);
}
a.card:hover::before, .card:has(a:hover)::before { border-color: var(--ink-400); }
.card h3 { font-size: var(--t-md); font-family: var(--font-display); }
.card p { color: var(--text-muted); font-size: var(--t-sm); line-height: 1.66; }

.card-link { text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; }

.card-meta {
  font-size: var(--t-xs);
  letter-spacing: var(--track); text-transform: uppercase; color: var(--text-dim);
  display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap;
}
.card-foot { margin-top: auto; padding-top: var(--s-3); }

/* live marker: a small deco lozenge, no colour */
.pip { display: inline-flex; align-items: center; gap: var(--s-3); color: var(--text); }
.pip::before {
  content: "";
  width: 0.4rem; height: 0.4rem;
  background: currentColor;
  rotate: 45deg;
  animation: pip 3s var(--ease-in-out) infinite;
}
@keyframes pip { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip {
  font-size: var(--t-xs);
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.35rem var(--s-4);
  border: 1px solid var(--line);
  color: var(--text-muted);
  min-height: 1.75rem; display: inline-flex; align-items: center;
}
a.chip { text-decoration: none; transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
a.chip:hover { border-color: var(--paper-100); color: var(--bright); }

/* ---------- timeline ---------- */
.timeline { display: grid; gap: 0; }
.role {
  display: grid; gap: var(--s-3);
  padding: var(--s-7) 0;
  border-top: 1px solid var(--line-soft);
  grid-template-columns: 1fr;
}
@media (min-width: 56rem) { .role { grid-template-columns: 14rem 1fr; gap: var(--s-7); } }
.role-when {
  font-size: var(--t-xs);
  letter-spacing: var(--track); text-transform: uppercase; color: var(--text-dim);
  padding-top: 0.5rem;
}
.role h3 { font-size: var(--t-md); font-family: var(--font-display); }
.role-org {
  color: var(--text-muted); font-size: var(--t-xs);
  letter-spacing: var(--track); text-transform: uppercase;
  margin-top: var(--s-2);
}
.role ul { margin: var(--s-4) 0 0; padding-left: 1.1rem; display: grid; gap: var(--s-3); }
.role li { color: var(--text-muted); font-size: var(--t-sm); line-height: 1.62; }
.role li::marker { color: var(--ink-500); }

/* ---------- prose ---------- */
.prose { max-width: 70ch; }
.prose > * + * { margin-top: var(--s-5); }
.prose h2 { font-family: var(--font-display); font-size: var(--t-lg); margin-top: var(--s-8); }
.prose h3 { font-size: var(--t-md); margin-top: var(--s-7); }
.prose p { color: var(--text-muted); }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--ink-500); }
.prose a:hover { color: var(--bright); text-decoration-color: var(--bright); }
.prose ul, .prose ol { padding-left: 1.2rem; display: grid; gap: var(--s-3); color: var(--text-muted); }
.prose strong { color: var(--text); font-weight: 500; }
.card strong, .role strong { color: var(--text); font-weight: 500; }
.prose em { font-family: var(--font-display); font-style: italic; }

/* ---------- form ---------- */
.form { display: grid; gap: var(--s-5); }
.field { display: grid; gap: var(--s-3); }
.field label {
  font-size: var(--t-xs);
  letter-spacing: var(--track); text-transform: uppercase; color: var(--text-dim);
}
.field input, .field textarea, .field select {
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: var(--s-3) 0;
  min-height: 3rem; width: 100%;
  font-weight: 300;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.field textarea { min-height: 8rem; resize: vertical; line-height: 1.7; }
.field select { padding-right: var(--s-5); }
.field input:hover, .field textarea:hover, .field select:hover { border-bottom-color: var(--paper-400); }
.field input:focus, .field textarea:focus, .field select:focus {
  border-bottom-color: var(--paper-100); outline: none;
}
.field-row { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 40rem) { .field-row { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: var(--t-sm); color: var(--text-dim); }
.form-status {
  font-size: var(--t-sm); padding: var(--s-4); display: none;
  border: 1px solid var(--line);
}
.form-status[data-state="ok"] { display: block; border-color: var(--paper-300); color: var(--text); }
.form-status[data-state="err"] { display: block; border-color: var(--paper-400); color: var(--text-muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line-soft);
  padding-block: var(--s-8) var(--s-7);
  background: var(--bg-sunken);
}
.footer-top { display: grid; gap: var(--s-7); grid-template-columns: 1fr; }
@media (min-width: 52rem) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer h2 { font-family: var(--font-display); font-size: var(--t-md); margin-bottom: var(--s-4); }
.footer-nav { display: grid; gap: var(--s-2); }
.footer-nav a {
  color: var(--text-muted); text-decoration: none;
  font-size: var(--t-xs);
  letter-spacing: var(--track); text-transform: uppercase;
  padding-block: 0.4rem; display: inline-block;
  transition: color var(--dur-fast) var(--ease-out);
}
.footer-nav a:hover { color: var(--bright); }
.footer-bottom {
  margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: var(--s-5); justify-content: space-between;
  font-size: var(--t-xs);
  letter-spacing: var(--track); text-transform: uppercase;
  color: var(--text-dim);
}

/* ---------- scroll reveal fallback ---------- */
.rise { opacity: 0; transform: translateY(1.25rem); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.rise.in { opacity: 1; transform: none; }
.rise:nth-child(2) { transition-delay: 80ms; }
.rise:nth-child(3) { transition-delay: 160ms; }
.rise:nth-child(4) { transition-delay: 240ms; }

/* ---------- utilities ---------- */
.mt-7 { margin-top: var(--s-7); }
.mt-8 { margin-top: var(--s-8); }
.measure-short { max-width: 34ch; }
#contact .grid-2 { align-items: start; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  .reveal-line > span { transform: none; }
  .fade-up, .rise { opacity: 1; transform: none; }
}

/* ---------- print ---------- */
@media print {
  .nav, .drawer, .skip, .hero-deco, .footer, .no-print, .hero-actions, .form, .progress { display: none !important; }
  :root { --bg: #fff; --text: #111; --text-muted: #333; --text-dim: #555; --line-soft: #ccc; --line: #bbb; }
  body { background: #fff; color: #111; font-size: 10.5pt; }
  .card, .readout-cell { background: #fff; border-color: #ddd; }
  .section { padding-block: 1rem; border: 0; }
  a { text-decoration: none; color: #111; }
  .print-only { display: block !important; }
}
.print-only { display: none; }

/* ---------- scrollbars ----------
   Themed twice on purpose: the standard properties cover Firefox and modern
   Chromium, the -webkit- pseudo-elements cover Safari and older Chromium,
   which still ignore scrollbar-width/color. */
:root {
  color-scheme: dark;                 /* themes native form controls too */
  scrollbar-width: thin;
  scrollbar-color: var(--ink-500) var(--ink-000);
}
html { scrollbar-gutter: stable; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track {
  background: var(--ink-000);
  border-left: 1px solid var(--ink-300);
}
::-webkit-scrollbar-thumb {
  background: var(--ink-500);
  border: 2px solid var(--ink-000);   /* inset, so the thumb reads as a bar not a slab */
  border-radius: 0;                    /* deco: nothing is rounded */
}
::-webkit-scrollbar-thumb:hover { background: var(--paper-400); }
::-webkit-scrollbar-corner { background: var(--ink-000); }
