/* Fraunces latin-ext: optical size 9–144, weight 400–500, softness 30, wonk off. */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(fonts/fraunces-latin-ext-soft30-wonk0.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Fraunces latin: optical size 9–144, weight 400–500, softness 30, wonk off. */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(fonts/fraunces-latin-soft30-wonk0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --warm-stone: #D8D1C8;
  --wet-silver: #B8B7B2;
  --rose-granite: #A99A94;
  --mortar-taupe: #77726C;
  --basalt-charcoal: #343A37;
  --deep-hedge: #30452F;
  --muted-lawn: #697750;
  --lichen-accent: #919572;
  --hedge: var(--deep-hedge);
  --hedge-deep: var(--basalt-charcoal);
  --ink: var(--basalt-charcoal);
  --muted-ink: var(--mortar-taupe);
  --cream: #f7f4ec;
  --cream-bright: #fbf9f3;
  --rose-stone: var(--rose-granite);
  --silver-stone: var(--wet-silver);
  --mortar: var(--mortar-taupe);
  --mortar-soft: rgba(52, 58, 55, 0.52);
  --page-gutter: clamp(1.25rem, 4.5vw, 5rem);
  --content-width: 72rem;
  --page-inset: max(var(--page-gutter), calc((100% - var(--content-width)) / 2));
  --reading-columns: 14rem minmax(0, 1fr);
  --reading-gap: clamp(2rem, 4vw, 3.5rem);
  --leaf-paper: #d7dfcb;
  --leaf-edge: #98a58b;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--hedge);
  color: var(--ink);
  font-family: "Montserrat", Arial, sans-serif;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--hedge);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  min-height: 100vh;
  margin: clamp(0.5rem, 1vw, 0.85rem);
  background: var(--cream-bright);
  border: 0;
}

.site-header {
  min-height: 5.25rem;
  padding: 0 var(--page-inset);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--mortar-soft);
  background: var(--cream-bright);
}

.site-wordmark {
  flex: 0 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 1.65vw, 1.55rem);
  letter-spacing: -0.025em;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(1.15rem, 2.5vw, 2.6rem);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

nav a {
  padding: 0.7rem 0;
  border-bottom: 1px solid transparent;
}

nav a:hover,
nav a:focus-visible,
nav a[aria-current="page"] {
  border-color: var(--hedge);
  outline: none;
}

.hero {
  min-height: 0;
  padding: clamp(2.5rem, 4.5vw, 4rem) var(--page-inset) clamp(2.5rem, 4vw, 3.5rem);
  display: flex;
  align-items: center;
  background: var(--cream-bright);
}

.hero-copy {
  width: 100%;
}

.hero h1,
.unit-hero h1,
.unit-summary h2,
.upcoming-heading h2,
.section-heading h2 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 30, "WONK" 0;
  font-synthesis: none;
}

.eyebrow,
.unit-kicker {
  margin: 0 0 1.4rem;
  font-size: 0.76rem;
  font-weight: 550;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 100%;
  color: var(--basalt-charcoal);
  font-size: clamp(2.65rem, 5.5vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.lede {
  max-width: 52rem;
  margin: 1.5rem 0 0;
  color: var(--basalt-charcoal);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.55;
}

.unit-band {
  display: grid;
  grid-template-columns: minmax(14rem, 0.78fr) minmax(28rem, 2fr) minmax(17rem, 0.92fr);
  gap: 1px;
  padding: 1px 0;
  background: var(--mortar);
}

.unit-index,
.unit-summary,
.included {
  min-height: 18.5rem;
}

.unit-index {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
}

.index-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 1.5rem;
  padding: 1.4rem;
  display: grid;
  gap: 0.65rem;
  background: rgba(247, 244, 236, 0.92);
  border: 1px solid rgba(23, 59, 49, 0.42);
}

.index-number {
  color: var(--hedge);
  font-size: clamp(3rem, 5vw, 4.6rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 1;
}

.index-label {
  padding-top: 0.8rem;
  border-top: 1px solid var(--mortar-soft);
  font-size: 0.8rem;
  font-weight: 550;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.unit-summary {
  padding: clamp(3rem, 5vw, 5.25rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: var(--silver-stone);
}

.unit-summary h2 {
  margin: 0;
  color: var(--hedge);
  font-size: clamp(2rem, 3.7vw, 4rem);
  font-weight: 430;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.unit-description {
  margin: 0.65rem 0 0;
  color: var(--basalt-charcoal);
  font-size: 1.0625rem;
  line-height: 1.5;
}

.unit-description span {
  color: var(--muted-ink);
}

.resource-link {
  margin-top: 2.5rem;
  min-height: 3.6rem;
  padding: 0 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--hedge);
  background: var(--hedge);
  color: white;
  font-size: 0.95rem;
  font-weight: 500;
}

.resource-link:hover,
.resource-link:focus-visible {
  background: transparent;
  color: var(--hedge);
  outline: 2px solid var(--hedge);
  outline-offset: 3px;
}

.included {
  padding: clamp(2.25rem, 4vw, 4rem);
  background: var(--wet-silver);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.included h2,
.included ul {
  width: fit-content;
  background: transparent;
}

.included h2 {
  margin: 0;
  padding: 0.25rem 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.included ul {
  margin: 1.2rem 0 0;
  padding: 0.75rem 1.75rem 0.75rem 0.45rem;
  list-style: none;
}

.included li {
  font-size: 1rem;
  line-height: 1.65;
}

/* Reusable, code-native material library */

.unit-list {
  padding: 0 var(--page-inset);
}

.unit-list .unit-band + .unit-band {
  border-top: 1px solid rgba(52, 58, 55, 0.25);
}

.upcoming-section {
  padding: 2rem var(--page-inset) clamp(3.5rem, 6vw, 5.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--reading-gap);
  align-items: start;
}

.upcoming-heading h2 {
  margin: 0;
  color: var(--basalt-charcoal);
  font-size: clamp(1.6rem, 2vw, 1.85rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.upcoming-newsletter {
  margin-top: 1.25rem;
}

.upcoming-newsletter p {
  margin: 0;
  color: var(--mortar-taupe);
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
  line-height: 1.6;
}

.upcoming-newsletter a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.upcoming-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2rem;
  row-gap: 0.75rem;
  list-style: none;
}

.upcoming-list li {
  --bullet-color: var(--rose-granite);
  min-height: 0;
  padding: 0 0 0 1.3rem;
  display: block;
  font-size: 1rem;
  line-height: 1.6;
  position: relative;
}

.upcoming-list li::before {
  width: 0.4rem;
  aspect-ratio: 1;
  content: "";
  background: var(--bullet-color);
  border: 1px solid var(--mortar-taupe);
  clip-path: polygon(12% 8%, 83% 0, 100% 61%, 68% 100%, 4% 82%);
  position: absolute;
  left: 0;
  top: 0.5em;
}

.upcoming-list li:nth-child(3n + 2) {
  --bullet-color: var(--wet-silver);
}

.upcoming-list li:nth-child(3n) {
  --bullet-color: var(--warm-stone);
}

.upcoming-list li:nth-child(4n) {
  --bullet-color: var(--basalt-charcoal);
}

.unit-band--plain {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start;
  background: transparent;
  padding: clamp(2rem, 3.5vw, 3rem) 0;
  gap: var(--reading-gap);
}

.unit-band--plain > .unit-index,
.unit-band--plain > .unit-summary,
.unit-band--plain > .included {
  position: relative;
  z-index: 1;
  padding: 0;
  align-items: stretch;
  justify-content: flex-start;
  background: transparent;
  min-height: 0;
}

.unit-band--plain .index-copy {
  margin: 0;
}

.unit-band--plain .index-copy,
.unit-band--plain .summary-copy,
.unit-band--plain .included-copy {
  border: 0;
  color: var(--basalt-charcoal);
  box-shadow: none;
  background: transparent;
  padding: 0;
}

.unit-band--plain .index-copy,
.unit-band--plain .summary-copy {
  background: transparent;
}

.unit-band--plain .included-copy {
  background: transparent;
}

.unit-band--plain .summary-copy {
  width: min(100%, 46rem);
  padding: 0;
}

.unit-band--plain .included-copy {
  padding: 0;
}

.unit-band--plain .index-number,
.unit-band--plain .unit-summary h2 {
  color: var(--basalt-charcoal);
}

.unit-band--plain .unit-summary h2 {
  font-size: clamp(1.8rem, 2.65vw, 2.25rem);
  font-weight: 450;
  line-height: 1.12;
}

.unit-band--plain .unit-summary h2 a:hover,
.unit-band--plain .unit-summary h2 a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  outline: none;
}

.unit-band--plain .resource-link {
  margin-top: 1.5rem;
  min-height: 3.2rem;
  border-color: var(--basalt-charcoal);
  background: var(--basalt-charcoal);
}

.unit-band--plain .resource-link:hover,
.unit-band--plain .resource-link:focus-visible {
  color: var(--basalt-charcoal);
  outline-color: var(--basalt-charcoal);
}

.texture-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--cream);
}

.texture-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.panel-copy {
  position: relative;
  z-index: 2;
}

.summary-copy,
.included-copy {
  border: 1px solid rgba(23, 59, 49, 0.4);
  background: rgba(251, 249, 243, 0.94);
}

.summary-copy {
  width: min(100%, 52rem);
  padding: clamp(2rem, 4vw, 4rem);
}

.included-copy {
  width: 100%;
  padding: clamp(1.5rem, 3vw, 2.75rem);
}

.unit-band--plain .included h2,
.unit-band--plain .included ul,
.unit-band--plain .included p {
  width: auto;
  background: transparent;
}

.unit-band--plain .included h2 {
  padding: 0;
}

.unit-band--plain .included ul {
  padding: 0 0 0 1.15rem;
  list-style: disc;
  margin: 0;
}

.unit-band--plain .included li::marker {
  color: var(--basalt-charcoal);
  font-size: 0.8em;
}

.unit-band--plain .included p {
  margin: 1rem 0 0;
  padding: 0;
}

.texture-rocks {
  background: var(--mortar-taupe);
}

.texture-rocks--orientation-1 {
  transform: scaleX(-1);
}

.texture-rocks--orientation-2 {
  transform: scaleY(-1);
}

.texture-rocks--orientation-3 {
  transform: scale(-1);
}

.texture-rock-group {
  --group-flip-x: 1;
  --group-flip-y: 1;
  position: absolute;
  top: var(--group-top, 0%);
  left: var(--group-left, 0%);
  width: var(--group-width, 100%);
  height: var(--group-height, 100%);
  overflow: hidden;
  transform: scale(var(--group-flip-x), var(--group-flip-y)) rotate(var(--group-rotation, 0deg));
}

.texture-rock-group--orientation-1 {
  --group-flip-x: -1;
}

.texture-rock-group--orientation-2 {
  --group-flip-y: -1;
}

.texture-rock-group--orientation-3 {
  --group-flip-x: -1;
  --group-flip-y: -1;
}

.texture-rock {
  position: absolute;
  background: var(--mortar-taupe);
  clip-path: polygon(var(--shape));
  transform: translate(var(--rock-shift-x, 0%), var(--rock-shift-y, 0%)) rotate(var(--rock-rotation, 0deg));
}

.texture-rock::after {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--stone-color, var(--warm-stone));
  clip-path: polygon(var(--shape));
}

.texture-rock.texture-rock--voronoi {
  inset: 0;
  background: var(--stone-color, var(--warm-stone));
  transform: none;
}

.texture-rock.texture-rock--voronoi::after {
  display: none;
}

.texture-rock:nth-child(1) { inset: -3% 57% 66% -4%; --stone-color: var(--warm-stone); --shape: 0 5%, 88% 0, 100% 75%, 72% 100%, 0 86%; }
.texture-rock:nth-child(2) { inset: -3% 22% 64% 39%; --stone-color: var(--wet-silver); --shape: 8% 0, 100% 4%, 94% 85%, 18% 100%, 0 42%; }
.texture-rock:nth-child(3) { inset: -2% -3% 68% 73%; --stone-color: var(--rose-granite); --shape: 0 0, 100% 7%, 94% 100%, 12% 92%; }
.texture-rock:nth-child(4) { inset: 28% 70% 35% -4%; --stone-color: var(--warm-stone); --shape: 0 8%, 83% 0, 100% 35%, 86% 100%, 3% 89%; }
.texture-rock:nth-child(5) { inset: 31% 36% 36% 25%; --stone-color: var(--wet-silver); --shape: 4% 8%, 80% 0, 100% 43%, 82% 100%, 0 83%; }
.texture-rock:nth-child(6) { inset: 27% -2% 39% 60%; --stone-color: var(--rose-granite); --shape: 6% 0, 100% 17%, 91% 91%, 18% 100%, 0 48%; }
.texture-rock:nth-child(7) { inset: 61% 72% -3% -3%; --stone-color: var(--rose-granite); --shape: 0 3%, 88% 0, 100% 81%, 69% 100%, 0 92%; }
.texture-rock:nth-child(8) { inset: 64% 38% -2% 20%; --stone-color: var(--warm-stone); --shape: 7% 0, 92% 5%, 100% 68%, 77% 100%, 0 91%; }
.texture-rock:nth-child(9) { inset: 61% 4% -4% 53%; --stone-color: var(--wet-silver); --shape: 4% 8%, 85% 0, 100% 82%, 20% 100%, 0 43%; }
.texture-rock:nth-child(10) { inset: 44% 58% 13% 3%; --stone-color: var(--rose-granite); --shape: 0 18%, 24% 0, 93% 9%, 100% 79%, 64% 100%, 5% 85%; }
.texture-rock:nth-child(11) { inset: 42% 17% 16% 44%; --stone-color: var(--wet-silver); --shape: 8% 9%, 89% 0, 100% 71%, 70% 100%, 0 88%; }
.texture-rock:nth-child(12) { inset: 52% -5% 3% 77%; --stone-color: var(--warm-stone); --shape: 0 0, 100% 8%, 91% 100%, 12% 86%; }
.texture-rock:nth-child(13) { inset: 78% 73% -5% -4%; --stone-color: var(--rose-granite); --shape: 0 5%, 91% 0, 100% 90%, 8% 100%; }
.texture-rock:nth-child(14) { inset: 79% 35% -5% 21%; --stone-color: var(--wet-silver); --shape: 7% 0, 100% 9%, 88% 100%, 0 82%; }

/* The placed-stone cells must not inherit the legacy fourteen-rock positioning. */
.texture-rock.texture-rock--voronoi {
  inset: 0;
}

.unit-band--future {
  padding-top: 0;
}

.unit-band--future .unit-index,
.unit-band--future .unit-summary,
.unit-band--future .included {
  min-height: 17rem;
}

.future-note {
  display: block;
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--mortar-soft);
  color: var(--muted-ink);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.continuation {
  min-height: 8rem;
  padding: 2rem var(--page-gutter);
  display: flex;
  align-items: center;
  border-top: 1px solid var(--mortar-soft);
  background: var(--cream-bright);
  color: var(--muted-ink);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

/* Unit detail page */

.unit-hero {
  padding: clamp(2rem, 3.5vw, 3rem) var(--page-inset);
  background: var(--cream-bright);
}

.unit-hero-copy {
  width: 100%;
}

.back-link {
  width: fit-content;
  display: block;
  margin-bottom: 1.75rem;
  padding-bottom: 0.25rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.unit-hero-copy .eyebrow {
  margin: 0 0 0.8rem;
}

.unit-hero h1 {
  margin: 0;
  max-width: 24ch;
  color: var(--deep-hedge);
  font-size: clamp(2.5rem, 4.6vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

.unit-stone-ribbon {
  height: 3rem;
}

.resource-strip {
  min-height: 0;
  margin-top: 1.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.material-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.material-link {
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.6rem 0.8rem;
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  border: 1px solid var(--leaf-edge);
  border-radius: 3px;
  background: var(--leaf-paper);
  color: var(--deep-hedge);
  box-shadow: none;
  text-decoration: none;
}

.material-link span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  color: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
}

.material-link b {
  font-size: 0.95rem;
  font-weight: 400;
}

.material-link:hover,
.material-link:focus-visible {
  color: var(--deep-hedge);
  background: #c4d0b4;
  border-color: var(--deep-hedge);
}

.material-link--secondary {
  color: var(--basalt-charcoal);
  background: #eee9df;
  border-color: #c9c1b4;
}

.material-link--secondary:hover,
.material-link--secondary:focus-visible {
  background: var(--warm-stone);
  border-color: var(--mortar-taupe);
}

.material-link small {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #615e57;
}

.material-link:focus-visible {
  outline: 2px solid var(--deep-hedge);
  outline-offset: 3px;
}

.unit-content {
  background: var(--cream-bright);
}

.glance-section {
  padding: clamp(2.5rem, 4vw, 3.5rem) var(--page-inset) 0;
  display: grid;
  grid-template-columns: var(--reading-columns);
  gap: var(--reading-gap);
  align-items: start;
}

.section-heading {
  margin: 0;
}

.section-heading h2 {
  margin: 0;
  color: var(--basalt-charcoal);
  font-size: clamp(1.65rem, 2.2vw, 2.2rem);
  font-weight: 430;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.glance-list {
  margin: 0;
  padding: 0 0 0 1.2rem;
  list-style: disc;
  background: transparent;
  border: 0;
}

.glance-list li {
  padding-left: 0.4rem;
  font-size: 1rem;
  line-height: 1.6;
}

.glance-list li + li {
  margin-top: 0.55rem;
}

.glance-list li::marker,
.notes-list li::marker {
  color: var(--basalt-charcoal);
}

.reading-layout {
  padding: clamp(3rem, 5vw, 4.5rem) var(--page-inset) clamp(3.5rem, 6vw, 5.5rem);
  display: grid;
  grid-template-columns: var(--reading-columns);
  grid-template-areas: "notes reading";
  gap: var(--reading-gap);
  align-items: start;
}

.reading-section {
  grid-area: reading;
  min-width: 0;
}

.reading-section .section-heading {
  margin-bottom: 1.5rem;
}

.prose {
  max-width: 52rem;
  color: var(--basalt-charcoal);
  font-size: 1.125rem;
  line-height: 1.7;
}

.prose p {
  margin: 0 0 1.5em;
}

.unit-checklist {
  margin: 1.25rem 0 1.5rem;
  padding: 0 0 0 1.2rem;
  display: block;
  gap: 0.65rem;
  list-style: disc;
}

.unit-checklist li {
  display: list-item;
  grid-template-columns: 1rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: baseline;
  padding-left: 0.2rem;
  margin-bottom: 0.45rem;
}

.unit-checklist li::before {
  content: none;
  color: var(--deep-hedge);
  font-weight: 600;
}

.prose .opening {
  color: var(--basalt-charcoal);
  font-size: clamp(1.125rem, 1.45vw, 1.35rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.6;
}

.prose a,
.notes-list a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.notes-section {
  grid-area: notes;
  padding: 0.2rem 0 0 1.25rem;
  border-left: 2px solid rgb(169 154 148 / 0.72);
}

.notes-section .section-heading {
  margin-bottom: 1rem;
}

.notes-section .section-heading h2 {
  color: var(--mortar-taupe);
  font-size: 1.5rem;
}

.notes-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.notes-list li {
  padding: 0;
  color: #5a5952;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.notes-list li + li {
  margin-top: 1.45rem;
}

.video-embed {
  width: 100%;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--mortar-taupe);
  background: var(--basalt-charcoal);
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.site-footer {
  padding: clamp(2.5rem, 4vw, 4rem) var(--page-inset);
  background: var(--warm-stone);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 5rem);
}

.site-footer h2 {
  margin: 0 0 1.4rem;
  color: var(--basalt-charcoal);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 0.8rem;
}

.site-footer a {
  font-size: 0.86rem;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.site-footer__newsletter p {
  margin: 0;
  color: var(--mortar-taupe);
  font-size: 0.86rem;
  line-height: 1.6;
}

.site-footer__newsletter iframe {
  width: 100%;
  max-width: 30rem;
  height: 18rem;
  margin-top: 1rem;
  border: 0;
}

.glance-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

@media (max-width: 68rem) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  nav { flex-wrap: wrap; justify-content: flex-start; }
  .glance-columns { grid-template-columns: 1fr; gap: 0.55rem; }
}

@media (max-width: 56rem) {
  .unit-band--plain,
  .upcoming-section { grid-template-columns: 1fr; gap: 1.4rem; }
  .glance-section,
  .reading-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .reading-layout { grid-template-areas: "reading" "notes"; row-gap: 2.5rem; }
  .notes-section { max-width: 42rem; }
  .glance-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__newsletter { grid-column: 1 / -1; }
}

@media (max-width: 44rem) {
  .site-shell { margin: 0.35rem; }
  nav { gap: 0.45rem 1.2rem; }
  .hero h1 { font-size: clamp(2.65rem, 10vw, 4rem); }
  .unit-hero { padding-top: 2rem; padding-bottom: 2rem; }
  .back-link { margin-bottom: 1.5rem; }
  .unit-hero h1 { font-size: clamp(2.25rem, 8.5vw, 3.5rem); }
  .unit-stone-ribbon { height: 2.25rem; }
  .material-group { width: 100%; }
  .material-link { flex: 0 1 auto; }
  .glance-columns { grid-template-columns: 1fr; gap: 0.55rem; }
  .upcoming-list { grid-template-columns: 1fr; gap: 0.55rem; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__newsletter { grid-column: auto; }
}

@media (max-width: 24rem) {
  .material-group { display: grid; grid-template-columns: 1fr; }
}

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