/* ==========================================================================
   The 2024 Chi Phi Case at Cornell
   Design system + layout. Dark editorial base, single accent, mobile-first.
   ========================================================================== */

:root {
  /* Surfaces */
  --bg:        #0b0d10;
  --bg-alt:    #101319;
  --bg-raise:  #161a22;
  --bg-sunk:   #080a0c;
  --line:      #232833;
  --line-soft: #1b202a;

  /* Ink */
  --ink:       #eef1f6;
  --ink-2:     #b8c0cf;
  --ink-3:     #8b94a5;
  --ink-4:     #656e7e;

  /* Accent + signal */
  --red:       #d9534f;
  --red-dim:   #8f3330;
  --amber:     #d99a3a;
  --amber-dim: #7a5822;
  --blue:      #5b8fd6;
  --blue-dim:  #2f4d75;

  /* Type */
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Metrics */
  --wrap: 1120px;
  --gap:  clamp(1.15rem, 3.5vw, 2.25rem);
  --pad:  clamp(1.15rem, 5vw, 3rem);
  --rad:  14px;
  --rad-s: 9px;
  --sec:  clamp(3.5rem, 9vw, 7rem);

  --ease: cubic-bezier(.22, .68, .32, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;   /* clears the sticky bar on anchor jumps */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .18vw, 1.075rem);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--ink); text-decoration-color: var(--red-dim); text-underline-offset: 3px; }
a:hover { color: #fff; text-decoration-color: var(--red); }

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

h1, h2, h3 { line-height: 1.14; letter-spacing: -.02em; margin: 0; font-weight: 600; }
p  { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }
strong { color: #fff; font-weight: 600; }
em { font-style: italic; color: var(--ink); }
cite { font-style: italic; color: var(--ink-2); }

hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* An inline link's border box is only the cap height, which is far too small to hit
   with a finger. Vertical padding grows the hit area, and because vertical padding on
   a non-replaced inline box does not feed back into line box height, the text reflows
   not at all. No pseudo-element: an abspos child of an inline does not reliably
   extend past it, and hit-testing resolves to the originating <a> either way. */
a { padding-block: .4em; }

/* Block-level links already own their whole box, so they set their own padding and
   must not inherit the inline hit-area growth. */
.res__c, .qa__i summary, .navbtn, .skip, .brand { padding-block: revert; }
.res__c { min-height: 44px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--red); color: #fff;
  padding: .7rem 1.1rem; z-index: 200; font-weight: 600;
  border-radius: 0 0 var(--rad-s) 0;
}
.skip:focus { left: 0; }

.br-lg { display: none; }

/* ------------------------------------------------------------- top bar */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.topbar__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 60px;
  padding-block: .55rem;
}

.brand {
  display: inline-flex; align-items: center; gap: .62rem;
  text-decoration: none; color: var(--ink); flex: 0 0 auto;
}
.brand__mark {
  width: 11px; height: 26px; border-radius: 2px;
  background: linear-gradient(180deg, var(--red), var(--red-dim));
  box-shadow: 0 0 0 1px #0006 inset;
  flex: 0 0 auto;
}
.brand__txt {
  font-family: var(--mono); font-size: .74rem; font-weight: 500;
  line-height: 1.22; letter-spacing: .01em; white-space: nowrap;
}
.brand__txt span { color: var(--ink-4); font-size: .66rem; }

.navbtn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--bg-raise); color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .48rem .85rem; font: inherit; font-size: .82rem; font-weight: 600;
  min-height: 44px;
  cursor: pointer; flex: 0 0 auto;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.navbtn:hover { background: #1c2130; }
.navbtn__bars { display: grid; gap: 3px; width: 15px; }
.navbtn__bars i {
  display: block; height: 1.5px; background: var(--ink);
  border-radius: 2px; transition: transform .24s var(--ease), opacity .2s var(--ease);
}
.navbtn[aria-expanded="true"] .navbtn__bars i:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.navbtn[aria-expanded="true"] .navbtn__bars i:nth-child(2) { opacity: 0; }
.navbtn[aria-expanded="true"] .navbtn__bars i:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

/* Nav: off-canvas sheet on small screens, inline row on wide ones */
.nav {
  position: fixed; inset: 60px 0 auto; z-index: 99;
  background: var(--bg-sunk);
  border-bottom: 1px solid var(--line);
  padding: .4rem var(--pad) 1.15rem;
  display: grid; gap: .1rem;
  overflow-y: auto;
  max-height: calc(100dvh - 60px);
  transform: translateY(-8px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav[data-open="true"] { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
.nav a {
  display: block; text-decoration: none; color: var(--ink-2);
  padding: .72rem .3rem; font-size: .95rem; font-weight: 500;
  border-bottom: 1px solid var(--line-soft);
}
.nav a:last-child { border-bottom: 0; }
.nav a:hover, .nav a[aria-current="true"] { color: #fff; }

@media (min-width: 1080px) {
  .navbtn { display: none; }
  .nav {
    position: static; opacity: 1; visibility: visible; pointer-events: auto;
    transform: none; max-height: none; overflow: visible;
    display: flex; gap: .1rem; padding: 0; background: none; border: 0;
    grid-auto-flow: column;
  }
  .nav a {
    border: 0; padding: .3rem .52rem; font-size: .8rem; color: var(--ink-3);
    white-space: nowrap; border-radius: 999px;
  }
  .nav a:hover { color: #fff; background: var(--bg-raise); }
  .nav a[aria-current="true"] { color: #fff; background: var(--bg-raise); }
}

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: clamp(3rem, 9vw, 6.5rem) 0 var(--sec); overflow: hidden; }
.hero__bg {
  position: absolute; inset: -40% -10% auto; height: 130%;
  background:
    radial-gradient(46% 44% at 22% 6%,  color-mix(in srgb, var(--red) 20%, transparent), transparent 68%),
    radial-gradient(38% 40% at 84% 14%, color-mix(in srgb, var(--blue) 13%, transparent), transparent 70%);
  filter: blur(14px);
  pointer-events: none;
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, var(--bg) 96%);
}
.hero__in { position: relative; }

.kicker {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--red);
  margin: 0 0 1.15rem; display: flex; align-items: center; gap: .6rem;
}
.kicker::before {
  content: ""; width: 26px; height: 1px; background: var(--red); flex: 0 0 auto;
}

.hero__h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.1rem + 4.1vw, 4.05rem);
  font-weight: 600; line-height: 1.06; letter-spacing: -.028em;
  max-width: 20ch; margin: 0 0 1.5rem; text-wrap: balance;
}
@media (min-width: 900px) { .br-lg { display: inline; } }

.hero__lede {
  font-size: clamp(1.02rem, .98rem + .3vw, 1.22rem);
  color: var(--ink-2); max-width: 60ch;
}

.hero__stats {
  display: grid; gap: 1px;
  grid-template-columns: 1fr;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--rad);
  overflow: hidden;
  margin: clamp(2rem, 5vw, 3.1rem) 0 0;
}
@media (min-width: 700px)  { .hero__stats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px)  { .hero__stats { grid-template-columns: 1fr 1fr 1.6fr; } }

.stat { background: var(--bg-raise); padding: clamp(1.15rem, 3vw, 1.7rem); }
.stat--live { background: linear-gradient(180deg, #1d1a15, var(--bg-raise)); }
.stat__n {
  display: block; font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.9rem, 1.3rem + 2.1vw, 2.9rem);
  line-height: 1; letter-spacing: -.03em; color: #fff; margin-bottom: .5rem;
}
.stat__n--flag { font-size: clamp(1.35rem, 1rem + 1.3vw, 2rem); color: var(--amber); }
.stat__l { display: block; font-size: .845rem; line-height: 1.5; color: var(--ink-3); }

.hero__flag {
  margin: clamp(1.5rem, 4vw, 2.2rem) 0 0;
  padding: 1.05rem 1.2rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--rad-s);
  font-size: .9rem; color: var(--ink-2); line-height: 1.6;
}
.hero__flag strong { color: var(--amber); }

/* --------------------------------------------------------------- bands */
.band { padding: var(--sec) 0; border-top: 1px solid var(--line-soft); }
.band--alt { background: var(--bg-alt); }

.h2 {
  font-family: var(--serif);
  font-size: clamp(1.65rem, 1.15rem + 1.9vw, 2.6rem);
  letter-spacing: -.024em; margin: 0 0 .85rem; max-width: 22ch;
  text-wrap: balance;
}
.h3 {
  font-family: var(--sans); font-size: 1.02rem; font-weight: 700;
  letter-spacing: -.005em; margin: 2.6rem 0 .55rem; color: #fff;
}
.band__intro {
  color: var(--ink-3); max-width: 66ch; margin-bottom: clamp(1.8rem, 4vw, 2.7rem);
  font-size: 1.005rem;
}
.band__intro--tight { margin-bottom: 1.1rem; }

.fine {
  font-size: .845rem; color: var(--ink-4); line-height: 1.62;
  max-width: 74ch; margin-top: 1.5rem;
}

/* -------------------------------------------------------------- tracks */
.tracks { display: grid; gap: clamp(1rem, 2.4vw, 1.4rem); }
@media (min-width: 940px) { .tracks { grid-template-columns: repeat(3, 1fr); } }

.track {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: clamp(1.35rem, 3vw, 1.85rem);
  display: flex; flex-direction: column;
  font-size: .93rem; color: var(--ink-2);
}
.track--open  { border-top: 2px solid var(--amber); }
.track--done  { border-top: 2px solid var(--blue); }
.track--open.track--pending { border-top-color: var(--amber-dim); }

.tag {
  display: inline-block; align-self: flex-start;
  font-family: var(--mono); font-size: .63rem; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase;
  padding: .3rem .58rem; border-radius: 4px; margin-bottom: .85rem;
}
.tag--amber { color: var(--amber); background: color-mix(in srgb, var(--amber) 13%, transparent); border: 1px solid var(--amber-dim); }
.tag--blue  { color: var(--blue);  background: color-mix(in srgb, var(--blue) 13%, transparent);  border: 1px solid var(--blue-dim); }

.track__t { font-size: 1.09rem; margin-bottom: .3rem; color: #fff; }
.track__meta {
  font-family: var(--mono); font-size: .68rem; color: var(--ink-4);
  letter-spacing: .02em; margin-bottom: 1rem; line-height: 1.5;
}
.track__note {
  margin: auto 0 0; padding-top: 1.05rem; border-top: 1px solid var(--line-soft);
  font-size: .845rem; color: var(--ink-3); font-style: italic;
}

/* --------------------------------------------------------------- steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px;
         background: var(--line-soft); border: 1px solid var(--line-soft);
         border-radius: var(--rad); overflow: hidden; }
.step { background: var(--bg-raise); display: flex; gap: 1.05rem;
        padding: clamp(1.2rem, 3vw, 1.7rem); }
.step__n {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--red) 15%, transparent);
  border: 1px solid var(--red-dim);
  color: var(--red); font-family: var(--mono); font-size: .8rem; font-weight: 500;
}
.step__b { font-size: .945rem; color: var(--ink-2); }
.step__b h3 { font-size: 1.03rem; margin-bottom: .4rem; color: #fff; }

/* ------------------------------------------------------------ evidence */
.what { display: grid; gap: clamp(1rem, 2.4vw, 1.4rem); margin-bottom: 2.2rem; }
@media (min-width: 820px) { .what { grid-template-columns: 1fr 1fr; } }
.what__c {
  background: var(--bg-raise); border: 1px solid var(--line);
  border-radius: var(--rad); padding: clamp(1.3rem, 3vw, 1.8rem);
  font-size: .93rem; color: var(--ink-2);
}
.what__tag {
  display: inline-block; font-family: var(--mono); font-size: .63rem;
  letter-spacing: .13em; text-transform: uppercase; color: var(--blue);
  background: color-mix(in srgb, var(--blue) 13%, transparent);
  border: 1px solid var(--blue-dim); border-radius: 4px;
  padding: .3rem .58rem; margin-bottom: .85rem;
}
.what__tag--red {
  color: var(--red); background: color-mix(in srgb, var(--red) 13%, transparent);
  border-color: var(--red-dim);
}

.dispute { display: grid; gap: .75rem; margin-bottom: 2.2rem; }
.dispute__row {
  display: grid; gap: .5rem 1.5rem;
  background: var(--bg-raise); border: 1px solid var(--line);
  border-radius: var(--rad-s); padding: 1.1rem 1.25rem;
  border-left-width: 3px; border-left-style: solid;
  font-size: .915rem; color: var(--ink-2);
}
@media (min-width: 780px) {
  .dispute__row { grid-template-columns: 190px 1fr; align-items: start; }
  .dispute__row p { margin: 0; }
}
.dispute__row--da   { border-left-color: var(--amber); }
.dispute__row--cupid{ border-left-color: var(--blue); }
.dispute__row--doe  { border-left-color: var(--red); }
.dispute__who { display: flex; flex-direction: column; gap: .18rem; }
.dispute__k {
  font-size: .885rem; font-weight: 700; color: #fff; line-height: 1.3;
}
.dispute__v { font-family: var(--mono); font-size: .68rem; color: var(--ink-4); }

/* -------------------------------------------------------------- notices */
.notice {
  border-radius: var(--rad-s); padding: 1.15rem 1.3rem;
  font-size: .905rem; line-height: 1.63; color: var(--ink-2);
  border: 1px solid var(--line); border-left-width: 3px;
  background: var(--bg-raise);
}
.notice strong { color: #fff; }
.notice--red {
  border-left-color: var(--red);
  background: linear-gradient(90deg, color-mix(in srgb, var(--red) 9%, var(--bg-raise)), var(--bg-raise) 70%);
}
.notice--red strong { color: var(--red); }
.notice--amber {
  border-left-color: var(--amber);
  background: linear-gradient(90deg, color-mix(in srgb, var(--amber) 8%, var(--bg-raise)), var(--bg-raise) 70%);
}
.notice--amber strong { color: var(--amber); }
.notice--big { padding: clamp(1.35rem, 3.4vw, 2rem) clamp(1.35rem, 3.4vw, 2rem); font-size: 1.02rem; }

/* ---------------------------------------------------------------- pulls */
.pull {
  margin: 2.4rem 0 0; padding: clamp(1.4rem, 3.4vw, 2.1rem);
  background: var(--bg-raise); border: 1px solid var(--line);
  border-radius: var(--rad);
}
.pull--alt { background: var(--bg); }
.pull blockquote { margin: 0; }
.pull p {
  font-family: var(--serif); font-size: clamp(1.1rem, .95rem + .7vw, 1.55rem);
  line-height: 1.42; letter-spacing: -.014em; color: #fff; margin: 0;
  text-wrap: pretty;
}
.pull--alt p { color: var(--ink-2); font-style: italic; }
.pull figcaption {
  margin-top: 1.05rem; padding-top: .9rem; border-top: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: .7rem; color: var(--ink-4); line-height: 1.5;
}

/* -------------------------------------------------------------- people */
.people { list-style: none; margin: 0 0 .5rem; padding: 0; display: grid; gap: 1px;
          background: var(--line-soft); border: 1px solid var(--line-soft);
          border-radius: var(--rad); overflow: hidden; }
@media (min-width: 560px)  { .people { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .people { grid-template-columns: repeat(3, 1fr); } }
.person {
  background: var(--bg-raise); display: flex; align-items: baseline; gap: .7rem;
  padding: clamp(.95rem, 2.6vw, 1.25rem) clamp(1rem, 3vw, 1.35rem);
}
.person__i {
  font-family: var(--mono); font-size: .68rem; color: var(--red);
  flex: 0 0 auto; width: 1.1rem;
}
.person__n { font-size: .98rem; font-weight: 600; color: #fff; letter-spacing: -.008em; }
.person__y { font-family: var(--mono); font-size: .72rem; color: var(--ink-4); margin-left: auto; }

/* ------------------------------------------------------------- timeline */
.tl { position: relative; display: grid; gap: 0; }
.tl::before {
  content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px;
  width: 1px; background: linear-gradient(180deg, var(--red-dim), var(--line) 22%, var(--line) 78%, transparent);
}
.tl__item { position: relative; padding: 0 0 2.1rem 2rem; }
.tl__item:last-child { padding-bottom: 0; }
.tl__dot {
  position: absolute; left: 0; top: 5px; width: 13px; height: 13px;
  border-radius: 50%; background: var(--bg-alt);
  border: 1px solid var(--line);
}
.tl__item--key .tl__dot {
  background: var(--red); border-color: var(--red);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 18%, transparent);
}
.tl__date {
  font-family: var(--mono); font-size: .715rem; font-weight: 500;
  letter-spacing: .055em; text-transform: uppercase; color: var(--ink-4);
  margin-bottom: .45rem;
}
.tl__item--key .tl__date { color: var(--red); }
.tl__b { max-width: 74ch; }
.tl__b h3 { font-size: 1.05rem; margin-bottom: .35rem; color: #fff; }
.tl__b p { font-size: .93rem; color: var(--ink-2); margin: 0; }

@media (min-width: 860px) {
  .tl { gap: 0; }
  .tl::before { left: 96px; }
  .tl__item { padding: 0 0 2.4rem 8.5rem; }
  .tl__dot { left: 90px; top: 6px; }
  .tl__date {
    position: absolute; left: 0; width: 78px; text-align: right;
    top: 5px; margin: 0; font-size: .69rem;
  }
  .tl__b h3 { font-size: 1.1rem; }
}

/* ------------------------------------------------------------------ qa */
.qa { display: grid; gap: .6rem; max-width: 90ch; }
.qa__i {
  background: var(--bg-raise); border: 1px solid var(--line);
  border-radius: var(--rad-s); overflow: hidden;
  transition: border-color .18s var(--ease);
}
.qa__i[open] { border-color: var(--line); background: var(--bg-raise); }
.qa__i summary {
  list-style: none; cursor: pointer; padding: 1.05rem 3rem 1.05rem 1.2rem;
  font-size: 1rem; font-weight: 600; color: #fff; position: relative;
  transition: background .16s var(--ease);
}
.qa__i summary::-webkit-details-marker { display: none; }
.qa__i summary:hover { background: #1a1f2a; }
.qa__i summary::after {
  content: ""; position: absolute; right: 1.25rem; top: 50%;
  width: 8px; height: 8px; margin-top: -5px;
  border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3);
  transform: rotate(45deg); transition: transform .22s var(--ease);
}
.qa__i[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.qa__q { display: inline; }
.qa__a {
  padding: 0 1.2rem 1.25rem; font-size: .93rem; color: var(--ink-2);
  border-top: 1px solid var(--line-soft); padding-top: 1.1rem;
}
.qa__a p { margin-bottom: .85em; }

/* ----------------------------------------------------------------- grid */
.grid { display: grid; gap: clamp(.9rem, 2.2vw, 1.25rem); }
@media (min-width: 700px)  { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--bg-raise); border: 1px solid var(--line);
  border-radius: var(--rad); padding: clamp(1.25rem, 3vw, 1.65rem);
  font-size: .915rem; color: var(--ink-2);
}
.card h3 { font-size: 1.01rem; margin-bottom: .5rem; color: #fff; }

/* -------------------------------------------------------------- compare */
.compare { display: grid; gap: clamp(1rem, 2.4vw, 1.4rem); margin: 2.2rem 0; }
@media (min-width: 780px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare__c {
  border-radius: var(--rad); padding: clamp(1.3rem, 3.2vw, 1.85rem);
  border: 1px solid var(--line); background: var(--bg-raise);
}
.compare__c--no  { border-top: 2px solid var(--ink-4); }
.compare__c--yes { border-top: 2px solid var(--blue); }
.compare__c h3 { font-size: 1.02rem; margin-bottom: .95rem; color: #fff; }
.compare__c ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.compare__c li {
  position: relative; padding-left: 1.5rem;
  font-size: .9rem; color: var(--ink-2); line-height: 1.5;
}
.compare__c li::before {
  position: absolute; left: 0; top: 0; font-family: var(--mono); font-size: .8rem;
}
.compare__c--no li::before  { content: "\00d7"; color: var(--red); }
.compare__c--yes li::before { content: "\2192"; color: var(--blue); }

/* ----------------------------------------------------------------- res */
.res { display: grid; gap: 1px; background: var(--line-soft);
       border: 1px solid var(--line-soft); border-radius: var(--rad);
       overflow: hidden; }
@media (min-width: 720px)  { .res { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .res { grid-template-columns: repeat(4, 1fr); } }
.res__c {
  background: var(--bg-raise); text-decoration: none; color: inherit;
  padding: clamp(1.2rem, 3vw, 1.55rem);
  display: flex; flex-direction: column; gap: .35rem; position: relative;
  transition: background .18s var(--ease);
}
.res__c:hover { background: #1a1f2a; }
.res__t { font-size: .97rem; font-weight: 600; color: #fff; }
.res__d { font-size: .83rem; color: var(--ink-3); line-height: 1.5; flex: 1 1 auto; }
.res__a { color: var(--red); font-size: 1rem; line-height: 1; margin-top: .3rem; }

/* ---------------------------------------------------------------- srcs */
.srcs { display: grid; gap: clamp(1.5rem, 3.5vw, 2.4rem); }
@media (min-width: 900px) { .srcs { grid-template-columns: 1fr 1.35fr; } }
@media (min-width: 1180px) { .srcs { grid-template-columns: .85fr 1.4fr 1fr; } }
.srcs__g { min-width: 0; }
.srcs__h {
  font-family: var(--mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase; color: var(--ink-4);
  padding-bottom: .75rem; margin: 0 0 1rem; border-bottom: 1px solid var(--line);
}
.srcs ol { margin: 0; padding-left: 1.35rem; display: grid; gap: .72rem; }
.srcs li { font-size: .855rem; line-height: 1.55; color: var(--ink-3); }
.srcs li::marker { color: var(--ink-4); font-family: var(--mono); font-size: .78rem; }
.srcs li a { color: var(--ink); text-decoration-color: var(--line); }
.srcs li a:hover { text-decoration-color: var(--red); }
.srcs__note { margin-top: 1.1rem; }

.colophon {
  margin-top: clamp(2.4rem, 5vw, 3.4rem); padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: grid; gap: .85rem; max-width: 84ch;
  font-size: .85rem; color: var(--ink-4); line-height: 1.6;
}
.colophon p { margin: 0; }
.colophon strong { color: var(--ink-2); }
.colophon__upd { font-family: var(--mono); font-size: .72rem; color: var(--ink-4); }

/* ---------------------------------------------------------------- foot */
.foot { border-top: 1px solid var(--line-soft); background: var(--bg-sunk);
        padding: clamp(2rem, 5vw, 2.8rem) 0; }
.foot__in { display: grid; gap: .8rem; }
@media (min-width: 820px) {
  .foot__in { grid-template-columns: 1fr auto; align-items: center; gap: 2rem; }
}
.foot p { margin: 0; font-size: .85rem; color: var(--ink-3); }
.foot__l { font-family: var(--serif); font-style: italic; color: var(--ink-2) !important; }
.foot__r { font-family: var(--mono); font-size: .72rem !important; color: var(--ink-4) !important; }

/* ------------------------------------------------------------ a11y/motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .nav { transition: none; }
}

/* Force the open sheet to be usable when JS is unavailable. */
.no-js .nav {
  position: static; opacity: 1; visibility: visible; transform: none;
  max-height: none; overflow: visible; pointer-events: auto;
}
.no-js .navbtn { display: none; }

@media print {
  .topbar, .navbtn, .nav, .foot { display: none !important; }
  body { background: #fff; color: #000; }
  .band { border-color: #ccc; }
  a { color: #000; }
}
