/* ==========================================================================
   Dixon Braden · ENC 2135 ePortfolio
   One stylesheet for every page.
   Garnet carries structure. Gold is an accent only.
   ========================================================================== */

:root {
  --garnet: #782F40;
  --garnet-deep: #5C2231;
  --garnet-ink: #43151F;
  --gold: #CEB888;
  --gold-soft: #E6D9BC;
  --paper: #F7F4EE;
  --sheet: #FFFDF9;
  --tint: #EFE9DC;
  --ink: #2A211F;
  --muted: #5F534D;
  --rule: #DAD1C1;

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;

  --measure: 38rem;
  --wrap: 76rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.62;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--garnet);
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.18em;
}
a:hover { text-decoration-color: var(--gold); text-decoration-thickness: 0.14em; }

:focus-visible { outline: 3px solid var(--garnet); outline-offset: 3px; border-radius: 2px; }
.site-header :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible,
.carousel :focus-visible { outline-color: var(--gold); }

p { margin: 0 0 1.15em; }
h1, h2, h3, h4 { font-family: var(--sans); text-wrap: balance; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--sheet); color: var(--garnet);
  font-family: var(--sans); font-weight: 700; padding: 0.6rem 1rem;
}
.skip:focus { top: 0.75rem; }

.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--garnet);
  margin: 0;
}

.goldbar { display: block; width: 5rem; height: 6px; background: var(--gold); }

/* --------------------------------------------------------------------------
   Header and navigation
   -------------------------------------------------------------------------- */

.site-header {
  background: var(--garnet);
  color: #fff;
  border-bottom: 4px solid var(--gold);
}
.site-header__in {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 0.95rem 0.8rem;
}
.brand {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.8rem;
  font-family: var(--sans); color: #fff; text-decoration: none;
}
.brand__name { font-weight: 800; font-size: 1.08rem; letter-spacing: 0.05em; text-transform: uppercase; }
.brand__sub { font-weight: 600; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); }

.nav {
  display: flex; flex-wrap: wrap; gap: 0.1rem 1.6rem;
  list-style: none; margin: 0; padding: 0;
  font-family: var(--sans); font-weight: 600; font-size: 0.97rem;
}
.nav a {
  display: block; padding: 0.4rem 0 0.3rem;
  color: #fff; text-decoration: none;
  border-bottom: 3px solid transparent;
}
.nav a:hover { border-bottom-color: rgba(230, 217, 188, 0.55); }
.nav a[aria-current="page"] { border-bottom-color: var(--gold); font-weight: 800; }

/* --------------------------------------------------------------------------
   Home
   -------------------------------------------------------------------------- */

.hero { background: var(--garnet); color: #fff; }
.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem clamp(2rem, 6vw, 5.5rem);
  align-items: end;
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5.5rem);
}
.hero .eyebrow { color: var(--gold); }
.hero .goldbar { margin: clamp(1.75rem, 4vw, 3rem) 0 1.4rem; }
.hero h1 {
  margin: 0;
  font-weight: 900;
  font-size: clamp(3.5rem, 11.5vw, 8.75rem);
  line-height: 0.86;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hero__kind {
  margin: 1.4rem 0 0;
  font-family: var(--sans); font-weight: 600; font-size: 1.05rem;
  color: var(--gold-soft);
}
.hero__argument { border-left: 6px solid var(--gold); padding-left: clamp(1.1rem, 2.5vw, 1.75rem); }
.hero__argument p.statement {
  margin: 0.8rem 0 0;
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
  line-height: 1.32;
  color: #FDF6E9;
  text-wrap: pretty;
}
.hero__who {
  margin: 1.4rem 0 0;
  font-family: var(--sans); font-size: 0.92rem; line-height: 1.5;
  color: var(--gold-soft);
}

.contents { padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(3.5rem, 8vw, 6rem); }
.contents__head {
  display: flex; align-items: center; gap: 1.25rem;
  margin-bottom: 1.75rem;
}
.contents__head h2 {
  margin: 0; font-weight: 800; font-size: 0.82rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--garnet); white-space: nowrap;
}
.contents__head::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

.cards {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1.5rem;
}
.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 1.6rem 1.75rem 1.5rem;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-top: 7px solid var(--garnet);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover, .card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px -28px rgba(67, 21, 31, 0.55);
}
.card--lead { grid-row: span 2; }
.card__num {
  font-family: var(--sans); font-weight: 900; font-size: 2.9rem; line-height: 1;
  color: var(--gold);
}
.card h3 {
  margin: 0.55rem 0 0.6rem;
  font-weight: 800; font-size: clamp(1.55rem, 2.6vw, 2.1rem); line-height: 1.05;
  letter-spacing: -0.01em; color: var(--garnet);
}
.card p { margin: 0 0 1.2rem; font-size: 1.06rem; line-height: 1.5; max-width: 34rem; }
.card__go {
  margin-top: auto;
  font-family: var(--sans); font-weight: 700; font-size: 0.95rem; color: var(--garnet);
}
.card__go span { display: inline-block; transition: transform 0.18s ease; }
.card:hover .card__go span { transform: translateX(4px); }
.card__strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem;
  margin: auto 0 1.4rem; padding-top: 0.4rem;
}
.card__strip + .card__go { margin-top: 0; }
.card__strip img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid var(--rule); }

/* --------------------------------------------------------------------------
   Interior page head
   -------------------------------------------------------------------------- */

.pagehead { border-bottom: 1px solid var(--rule); }
.pagehead__in {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1.5rem clamp(2rem, 6vw, 5rem);
  align-items: end;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
}
.pagehead .goldbar { margin: 1.1rem 0 1.1rem; }
.pagehead h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2.35rem, 6.2vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.022em;
  color: var(--garnet);
}
.pagehead__aside { font-family: var(--sans); font-size: 0.95rem; line-height: 1.5; color: var(--muted); }
.pagehead__aside p { margin: 0; }
.pagehead__aside .docblock { border-left: 4px solid var(--gold); padding-left: 1rem; color: var(--ink); }
.pagehead__aside .docblock span { display: block; }
.pagehead__aside .docblock span:first-child { font-weight: 700; }

/* Download buttons: full PDFs of each document */
.downloads {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem;
  padding-top: 1.4rem; border-top: 1px solid var(--rule);
}
.downloads__title {
  margin: 0; font-family: var(--sans); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.downloads__row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.dl {
  display: inline-flex; align-items: center; gap: 0.8rem;
  padding: 0.7rem 1.15rem 0.7rem 0.95rem;
  background: var(--sheet); color: var(--garnet);
  border: 2px solid var(--garnet); border-radius: 4px;
  font-family: var(--sans); text-decoration: none; line-height: 1.2;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.dl svg { flex: none; width: 1.35rem; height: 1.35rem; }
.dl__text { display: flex; flex-direction: column; }
.dl__label { font-weight: 800; font-size: 1rem; }
.dl__sub { font-weight: 500; font-size: 0.8rem; color: var(--muted); margin-top: 0.15rem; }
.dl--primary { background: var(--garnet); color: #fff; box-shadow: inset 0 -4px 0 var(--gold); }
.dl--primary .dl__sub { color: var(--gold-soft); }
.dl:hover { background: var(--garnet-deep); color: #fff; text-decoration: none; }
.dl:hover .dl__sub { color: var(--gold-soft); }
@media (max-width: 40rem) {
  .downloads__row, .dl { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .dl { transition: none; } }

/* --------------------------------------------------------------------------
   Two column layout: rail and content
   -------------------------------------------------------------------------- */

.layout {
  display: grid;
  grid-template-columns: 12.5rem minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding-block: clamp(2.25rem, 5vw, 4rem) clamp(3rem, 7vw, 5rem);
}
.rail { position: sticky; top: 1.5rem; font-family: var(--sans); font-size: 0.92rem; line-height: 1.35; }
.rail__title {
  margin: 0 0 0.8rem;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.rail ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
.rail ol ol { border-left: 0; margin: 0 0 0.3rem; }
.rail a {
  display: block; margin-left: -2px; padding: 0.42rem 0 0.42rem 1rem;
  border-left: 2px solid transparent;
  color: var(--ink); font-weight: 600; text-decoration: none;
}
.rail ol ol a { padding: 0.28rem 0 0.28rem 1.9rem; font-weight: 500; font-size: 0.88rem; color: var(--muted); }
.rail a:hover { color: var(--garnet); }
.rail a.is-active { border-left-color: var(--garnet); color: var(--garnet); }
.rail__note { margin: 1.5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.86rem; }

.content { min-width: 0; max-width: 49rem; }
.prose { max-width: var(--measure); }
.prose > :last-child { margin-bottom: 0; }

.section { margin-bottom: clamp(3.25rem, 7vw, 5.5rem); scroll-margin-top: 1.5rem; }
.section:last-child { margin-bottom: 0; }
.section__head { margin-bottom: 1.5rem; max-width: var(--measure); }
.section__head .goldbar { width: 3rem; height: 5px; margin-bottom: 0.9rem; }
.section__head h2 {
  margin: 0.4rem 0 0;
  font-weight: 800; font-size: clamp(1.65rem, 3.4vw, 2.3rem); line-height: 1.08;
  letter-spacing: -0.015em; color: var(--garnet);
}
.section__head p.section__sub { margin: 0.6rem 0 0; font-family: var(--sans); font-size: 0.98rem; color: var(--muted); }
.prose h3, .subhead {
  margin: 2.4rem 0 0.8rem;
  font-weight: 800; font-size: 1.3rem; line-height: 1.15; color: var(--garnet);
}
.lead { font-size: 1.28rem; line-height: 1.52; }

/* --------------------------------------------------------------------------
   Document sheets: op-ed and letter
   -------------------------------------------------------------------------- */

.sheet {
  --pad: clamp(1.35rem, 5vw, 3.75rem);
  background: var(--sheet);
  border: 1px solid var(--rule);
  box-shadow: 0 1px 0 rgba(42, 33, 31, 0.03), 0 26px 46px -34px rgba(67, 21, 31, 0.5);
  padding: var(--pad);
}
.sheet .prose { max-width: var(--measure); }

/* Op-ed */
.sheet--oped { border-top: 8px solid var(--garnet); }
.oped__kicker {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-bottom: 0.6rem; border-bottom: 2px solid var(--ink);
  font-family: var(--sans); font-weight: 700; font-size: 0.76rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--garnet);
}
.oped__kicker span + span { color: var(--muted); letter-spacing: 0.12em; }
.oped__headline {
  margin: 1.15rem 0 1.1rem;
  font-weight: 800; font-size: clamp(2.05rem, 5.4vw, 3.3rem); line-height: 0.98; letter-spacing: -0.02em;
  color: var(--ink);
}
.byline {
  display: flex; align-items: flex-start; gap: 0.9rem;
  margin: 0 0 1.75rem; padding: 0.75rem 0;
  border-block: 1px solid var(--rule);
  font-family: var(--sans); font-weight: 600; font-size: 0.93rem; line-height: 1.4;
}
.byline::before { content: ""; flex: none; width: 2rem; height: 5px; margin-top: 0.42em; background: var(--gold); }
.oped__body > p:first-child::first-letter {
  float: left;
  font-family: var(--sans); font-weight: 800; font-size: 3.85em; line-height: 0.78;
  padding: 0.09em 0.09em 0 0;
  color: var(--garnet);
}

/* Letter */
.sheet--letter { position: relative; padding-left: calc(var(--pad) + clamp(0.75rem, 2.5vw, 1.75rem)); }
.sheet--letter::before {
  content: ""; position: absolute; top: 0; bottom: 0;
  left: clamp(0.9rem, 3.2vw, 2.75rem); width: 2px;
  background: rgba(120, 47, 64, 0.22);
}
.letter__label {
  margin: 0 0 1.75rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--rule);
  font-family: var(--sans); font-weight: 700; font-size: 0.76rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--garnet);
}
.letter__salutation { font-weight: 600; font-size: 1.25rem; margin-bottom: 1.2rem; }
.asks { list-style: none; counter-reset: ask; margin: 1.6rem 0 1.8rem; padding: 0; }
.asks li {
  counter-increment: ask; position: relative;
  padding: 0.95rem 0 0.95rem 3.4rem;
  border-top: 1px solid var(--rule);
}
.asks li:last-child { border-bottom: 1px solid var(--rule); }
.asks li::before {
  content: counter(ask) ".";
  position: absolute; left: 0; top: 0.72rem;
  font-family: var(--sans); font-weight: 900; font-size: 1.95rem; line-height: 1;
  color: var(--garnet);
}
.letter__close { margin: 2rem 0 0.2rem; }
.letter__sig { font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1.4; margin: 0; }

/* --------------------------------------------------------------------------
   References: APA hanging indent, set off from the body
   -------------------------------------------------------------------------- */

.refs {
  margin-top: 2.5rem;
  padding: 1.3rem 1.5rem 1.2rem;
  background: var(--tint);
  border-top: 4px solid var(--gold);
  font-size: 1rem; line-height: 1.5;
}
.sheet > .refs {
  margin: 2.75rem calc(-1 * var(--pad)) calc(-1 * var(--pad));
  padding: 1.5rem var(--pad) 1.5rem;
}
.sheet--letter > .refs {
  margin-left: calc(-1 * (var(--pad) + clamp(0.75rem, 2.5vw, 1.75rem)));
  padding-left: calc(var(--pad) + clamp(0.75rem, 2.5vw, 1.75rem));
  position: relative;
}
.refs__title {
  margin: 0 0 0.85rem;
  font-family: var(--sans); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--garnet);
}
.refs ul { list-style: none; margin: 0; padding: 0; max-width: 40rem; }
.refs li {
  margin: 0 0 0.7rem; padding-left: 2.25em; text-indent: -2.25em;
  overflow-wrap: anywhere;
}
.refs li:last-child { margin-bottom: 0; }
.refs a { display: inline-block; max-width: 100%; text-indent: 0; color: var(--garnet-deep); }

/* --------------------------------------------------------------------------
   Carousel
   -------------------------------------------------------------------------- */

.ig {
  display: grid;
  grid-template-columns: minmax(0, 29rem) minmax(0, 1fr);
  gap: 1.75rem clamp(1.5rem, 3vw, 2.25rem);
  align-items: start;
}
.carousel-wrap { position: sticky; top: 1.5rem; }
.carousel { background: var(--garnet-ink); padding: 0.7rem 0.7rem 0.55rem; }
.carousel__viewport { position: relative; }
.carousel__track {
  display: flex;
  list-style: none; margin: 0; padding: 0;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.carousel__slide img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem; padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(255, 253, 249, 0.95); color: var(--garnet);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.carousel__btn:hover { background: #fff; }
.carousel__btn--prev { left: 0.6rem; }
.carousel__btn--next { right: 0.6rem; }
.carousel__btn[disabled] { opacity: 0; pointer-events: none; }
.carousel__btn svg { width: 1.15rem; height: 1.15rem; }
.carousel__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.5rem 0.2rem 0;
  font-family: var(--sans); color: #fff;
}
.carousel__count { font-weight: 700; font-size: 0.9rem; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.carousel__dots { display: flex; list-style: none; margin: 0; padding: 0; }
.carousel__dots button {
  display: grid; place-items: center;
  width: 1.5rem; height: 1.75rem; padding: 0; border: 0; background: none; cursor: pointer;
}
.carousel__dots button::before {
  content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.15s ease, transform 0.15s ease;
}
.carousel__dots button[aria-current="true"]::before { background: var(--gold); transform: scale(1.35); }
.carousel__hint { margin: 0.7rem 0 0; font-family: var(--sans); font-size: 0.86rem; color: var(--muted); }

.slidetext { font-family: var(--sans); font-size: 0.9rem; line-height: 1.45; }
.slidetext__title {
  margin: 0 0 0.6rem;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.slidetext ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.slidetext li { border-bottom: 1px solid var(--rule); border-left: 4px solid transparent; padding: 0.6rem 0.6rem 0.65rem 0.75rem; }
.slidetext li.is-current { border-left-color: var(--garnet); background: var(--sheet); }
.slidetext button {
  display: block; padding: 0; margin: 0 0 0.15rem; border: 0; background: none; cursor: pointer;
  font: inherit; font-weight: 800; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--garnet);
}
.slidetext button:hover { text-decoration: underline; }
.slidetext p { margin: 0; color: var(--ink); }

/* --------------------------------------------------------------------------
   Reflection
   -------------------------------------------------------------------------- */

.pull {
  margin: 2.25rem 0; padding-top: 0.9rem;
  border-top: 6px solid var(--gold);
  font-family: var(--sans); font-weight: 800; font-size: 1.5rem; line-height: 1.14; letter-spacing: -0.01em;
  color: var(--garnet);
  text-wrap: balance;
}
.essay > p:first-of-type::first-letter {
  float: left;
  font-family: var(--sans); font-weight: 800; font-size: 3.85em; line-height: 0.78;
  padding: 0.09em 0.09em 0 0;
  color: var(--garnet);
}
.endmark { display: block; width: 3rem; height: 5px; margin-top: 2.5rem; background: var(--gold); }

/* --------------------------------------------------------------------------
   Artifacts: checklist forms and peer review worksheet
   -------------------------------------------------------------------------- */

.form { --pad: clamp(1.15rem, 4vw, 2.5rem); margin-bottom: 2.5rem; scroll-margin-top: 1.5rem; border-top: 8px solid var(--garnet); }
.form:last-child { margin-bottom: 0; }
.form__head { padding-bottom: 1.4rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--ink); }
.form__doc { margin: 0; font-family: var(--sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--garnet); }
.form__doc strong { font-weight: 800; }
.form__course strong { font-weight: 700; }
.form__course { margin: 0.3rem 0 0; font-family: var(--sans); font-size: 0.88rem; font-weight: 600; color: var(--muted); }
.form__title {
  margin: 1rem 0 0.8rem;
  font-weight: 800; font-size: clamp(1.5rem, 3.6vw, 2.15rem); line-height: 1.05; letter-spacing: -0.015em; color: var(--ink);
}
.form__title small { display: block; margin-bottom: 0.35rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--garnet); }
.form__directions { margin: 0; font-family: var(--sans); font-size: 0.92rem; line-height: 1.5; color: var(--muted); max-width: 40rem; }
.form__directions strong { color: var(--ink); }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0 0 2rem; border-top: 1px solid var(--rule); }
.facts > div { padding: 0.75rem 1rem 0.8rem 0; border-bottom: 1px solid var(--rule); }
.facts > div.facts__wide { grid-column: 1 / -1; }
.facts--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts dt { font-family: var(--sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; color: var(--garnet); margin-bottom: 0.15rem; }
.facts dd { margin: 0; font-size: 1.05rem; line-height: 1.45; }

.part { margin-top: 2.1rem; }
.part__title { margin: 0 0 0.2rem; font-weight: 800; font-size: 1.2rem; line-height: 1.2; color: var(--garnet); }
.part__hint { margin: 0 0 0.7rem; font-family: var(--sans); font-size: 0.9rem; color: var(--muted); }
.part__title + .check, .part__title + .notes { margin-top: 0.7rem; }

.box {
  display: inline-grid; place-items: center;
  width: 1.3rem; height: 1.3rem;
  border: 2px solid var(--garnet); border-radius: 2px;
  background: var(--sheet); vertical-align: middle;
}
.box--on { background: var(--garnet); }
.box--on::after {
  content: ""; width: 0.38rem; height: 0.68rem; margin-top: -0.14rem;
  border: solid #fff; border-width: 0 0.16rem 0.16rem 0;
  transform: rotate(45deg);
}
.box--off { border-color: #8C7F78; }

.check { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.45; }
.check th {
  padding: 0.5rem 0.9rem 0.5rem 0; text-align: left; vertical-align: bottom;
  font-family: var(--sans); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); border-bottom: 2px solid var(--garnet);
}
.check td { padding: 0.8rem 0.9rem 0.85rem 0; vertical-align: top; border-bottom: 1px solid var(--rule); }
.check td:last-child, .check th:last-child { padding-right: 0; }
.check__done { width: 3.4rem; }
.check__item { width: 44%; font-family: var(--sans); font-size: 0.92rem; }
.check__item strong { color: var(--ink); font-weight: 700; }
.check__item { color: var(--muted); }
.check__open td { background: rgba(206, 184, 136, 0.16); }
.check__open td:first-child { box-shadow: inset 4px 0 0 var(--gold); padding-left: 0.6rem; }

.notes { margin: 0; border-top: 2px solid var(--garnet); }
.notes dt { margin-top: 0.95rem; font-family: var(--sans); font-size: 0.92rem; font-weight: 700; color: var(--ink); }
.notes dd { margin: 0.25rem 0 0; padding-bottom: 0.95rem; border-bottom: 1px solid var(--rule); font-size: 1.05rem; line-height: 1.5; }

.quick { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.4; }
.quick th {
  padding: 0.5rem 0.4rem; vertical-align: bottom; text-align: center;
  font-family: var(--sans); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); border-bottom: 2px solid var(--garnet);
}
.quick th:first-child { text-align: left; padding-left: 0; }
.quick td { padding: 0.75rem 0.4rem; text-align: center; vertical-align: middle; border-bottom: 1px solid var(--rule); }
.quick td:first-child { text-align: left; padding-left: 0; }
.quick td:not(:first-child), .quick th:not(:first-child) { width: 4.4rem; }

.qa-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
.qa { padding: 1rem 0 1.1rem; border-bottom: 1px solid var(--rule); }
.qa__q { margin: 0 0 0.45rem; font-family: var(--sans); font-size: 0.92rem; line-height: 1.45; color: var(--muted); }
.qa__q strong { color: var(--garnet); font-weight: 800; }
.qa__a { margin: 0; max-width: var(--measure); font-size: 1.08rem; line-height: 1.55; }
.worksheet__directions { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--muted); max-width: 40rem; }
.part--band > .part__title {
  margin: 0; padding: 0.55rem 0.8rem;
  background: var(--garnet); color: #fff;
  font-size: 0.98rem; letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer { background: var(--garnet-ink); color: #F3E9D6; border-top: 4px solid var(--gold); font-family: var(--sans); }
.site-footer__in {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.5rem 3rem; align-items: end;
  padding-block: 2.5rem 2.25rem;
}
.site-footer__name { margin: 0 0 0.5rem; font-weight: 900; font-size: 1.6rem; letter-spacing: 0.02em; text-transform: uppercase; color: #fff; line-height: 1; }
.site-footer__meta { list-style: none; margin: 0; padding: 0; font-size: 0.95rem; line-height: 1.6; }
.site-footer__nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.25rem 1.4rem; list-style: none; margin: 0; padding: 0; font-size: 0.92rem; font-weight: 600; }
.site-footer a { color: #fff; text-decoration-color: rgba(206, 184, 136, 0.7); }
.site-footer a:hover { text-decoration-color: var(--gold); }

/* --------------------------------------------------------------------------
   Wide screens: pull quotes move into the right margin
   -------------------------------------------------------------------------- */

@media (min-width: 80rem) {
  .essay .pull {
    float: right; clear: right;
    width: 15.5rem;
    margin: 0.45rem -19rem 1.5rem 0;
  }
}

/* --------------------------------------------------------------------------
   Tablet and phone
   -------------------------------------------------------------------------- */

@media (max-width: 62rem) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .rail { position: static; }
  .rail ol { display: flex; flex-wrap: wrap; gap: 0.45rem; border-left: 0; }
  .rail ol ol { display: none; }
  .rail a, .rail a.is-active {
    margin: 0; padding: 0.4rem 0.75rem;
    border: 1px solid var(--rule); border-radius: 999px;
    background: var(--sheet); font-size: 0.86rem;
  }
  .rail a.is-active { border-color: var(--garnet); }
  .rail__note { display: none; }
  .content { max-width: 49rem; }
  .rail--after { order: 2; }
}

@media (max-width: 52rem) {
  .hero__in, .pagehead__in, .cards, .site-footer__in { grid-template-columns: minmax(0, 1fr); }
  .hero__in { align-items: start; }
  .card--lead { grid-row: auto; }
  .site-footer__nav { justify-content: flex-start; }
  .ig { grid-template-columns: minmax(0, 1fr); }
  .ig .carousel-wrap { position: static; max-width: 29rem; }
  .qa-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 40rem) {
  body { font-size: 1.09rem; line-height: 1.6; }
  .wrap { width: min(100% - 2rem, var(--wrap)); }
  .site-header__in { padding-block: 0.8rem 0.55rem; }
  .brand__sub { font-size: 0.68rem; }
  .nav { gap: 0.1rem 1.25rem; font-size: 0.93rem; }
  .lead { font-size: 1.18rem; }
  .refs { padding-inline: 1.1rem; font-size: 0.95rem; }
  .refs li { padding-left: 1.6em; text-indent: -1.6em; }
  .asks li { padding-left: 2.6rem; }
  .asks li::before { font-size: 1.65rem; top: 0.82rem; }
  .oped__kicker span + span { display: none; }
  .carousel { padding: 0.45rem 0.45rem 0.4rem; }
  .carousel__btn { width: 2.5rem; height: 2.5rem; }
  .carousel__btn--prev { left: 0.4rem; }
  .carousel__btn--next { right: 0.4rem; }

  .facts, .facts--three { grid-template-columns: minmax(0, 1fr); }
  .facts > div { padding-right: 0; }

  /* Checklist rows restack: box and convention on top, evidence underneath. */
  .check, .check tbody { display: block; }
  .check thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .check tbody { border-top: 2px solid var(--garnet); }
  .check tr { display: grid; grid-template-columns: 2.1rem minmax(0, 1fr); padding: 0.85rem 0 0.9rem; border-bottom: 1px solid var(--rule); }
  .check td { display: block; padding: 0; border: 0; width: auto; }
  .check__done { grid-row: 1 / span 2; padding-top: 0.05rem; }
  .check__item { width: auto; margin-bottom: 0.4rem; }
  .check td[data-label]::before {
    content: attr(data-label);
    display: block; margin-bottom: 0.1rem;
    font-family: var(--sans); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--garnet);
  }
  .check__open { background: rgba(206, 184, 136, 0.16); box-shadow: inset 4px 0 0 var(--gold); }
  .check__open td { background: none; }
  .check__open td:first-child { box-shadow: none; padding-left: 0.55rem; }
  .check tr.check__open { grid-template-columns: 2.5rem minmax(0, 1fr); padding-right: 0.6rem; }

  .quick td:not(:first-child), .quick th:not(:first-child) { width: 3rem; padding-inline: 0.15rem; }
  .quick th { font-size: 0.66rem; letter-spacing: 0.04em; }
  .quick td:first-child { font-size: 0.98rem; padding-right: 0.5rem; }
}

/* --------------------------------------------------------------------------
   Motion and print
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html, .carousel__track { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card:hover, .card:focus-visible { transform: none; }
}

@media print {
  body { background: #fff; font-size: 11pt; }
  .site-header, .site-footer__nav, .rail, .skip, .carousel__btn, .carousel__bar, .carousel__hint { display: none !important; }
  .layout { display: block; padding: 0; }
  .sheet { box-shadow: none; }
  .carousel { background: none; padding: 0; }
  .carousel__track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; overflow: visible; }
  .site-footer { background: none; color: #000; border-top: 1px solid #000; }
  .site-footer__name, .site-footer a { color: #000; }
}
