:root {
  --paper: #f1eee6;
  --paper-deep: #e5dfd4;
  --ink: #272826;
  --muted: #686963;
  --terracotta: #a54f36;
  --cobalt: #244c9b;
  --rule: rgba(39, 40, 38, 0.35);
  --max: 1440px;
  --gutter: clamp(1.25rem, 4vw, 4.75rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--cobalt);
}

a:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 4px;
}

p,
h1,
h2,
h3,
figure,
blockquote {
  margin-top: 0;
}

.site-header {
  border-top: 7px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}

.header-grid,
.hero,
.editorial-body,
.page-shell,
.footer-grid {
  width: min(100%, var(--max));
  margin-inline: auto;
}

.header-grid {
  display: grid;
  grid-template-columns: 3fr 1fr 5fr;
  gap: 1.5rem;
  align-items: start;
  min-height: 7.5rem;
  padding: 1.4rem var(--gutter) 1.25rem;
}

.wordmark {
  width: fit-content;
  font-size: clamp(1.65rem, 2.5vw, 2.7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.065em;
  text-decoration: none;
}

.issue,
.hero-index,
.section-label,
.kicker,
.updated,
.footer-place {
  font-size: 0.69rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.issue {
  margin: 0;
  color: var(--muted);
}

.primary-nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(1rem, 2.4vw, 2.65rem);
  padding-top: 0.1rem;
  font-size: 0.79rem;
  font-weight: 700;
}

.primary-nav a {
  text-decoration: none;
}

.primary-nav a[aria-current="page"] {
  color: var(--terracotta);
  text-decoration: underline;
}

.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2.25rem);
  padding: clamp(3.5rem, 8vw, 8rem) var(--gutter) clamp(5rem, 9vw, 9rem);
}

.hero-title {
  grid-column: 1 / 10;
}

.kicker {
  margin-bottom: 1.2rem;
  color: var(--terracotta);
}

h1,
h2,
.footer-wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero h1 {
  max-width: 14ch;
  margin-bottom: 0;
  font-size: clamp(3.5rem, 7.6vw, 8.7rem);
  line-height: 0.91;
  letter-spacing: -0.066em;
}

.hero-index {
  grid-column: 11 / -1;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding-top: 2.5rem;
  color: var(--cobalt);
}

.hero-index::before {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--cobalt);
  border-radius: 50%;
  content: "";
}

.hero-image {
  grid-column: 3 / 11;
  margin-top: clamp(3rem, 7vw, 7rem);
  margin-bottom: 0;
}

.hero-image img,
.detail-image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(0.68) contrast(1.04);
}

figcaption {
  max-width: 62ch;
  margin-top: 0.8rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.hero-note {
  grid-column: 11 / -1;
  align-self: end;
  margin-bottom: 2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.35vw, 1.35rem);
  line-height: 1.45;
}

.editorial-body {
  padding-inline: var(--gutter);
}

.chapter {
  display: grid;
  grid-template-columns: 1fr 3fr 5fr 1fr;
  column-gap: clamp(1rem, 2vw, 2.25rem);
  padding: clamp(4rem, 8vw, 8rem) 0;
  border-top: 1px solid var(--ink);
}

.chapter-number {
  color: var(--terracotta);
  font-size: clamp(2.8rem, 5vw, 5.6rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.07em;
}

.chapter-heading {
  grid-column: 2;
}

.section-label {
  margin-bottom: 1.1rem;
  color: var(--terracotta);
}

.chapter h2,
.page-article h2,
.final-check h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.05rem, 3.6vw, 4.2rem);
  line-height: 0.99;
  letter-spacing: -0.047em;
}

.chapter-copy {
  grid-column: 3;
  max-width: 47rem;
  font-size: clamp(1rem, 1.15vw, 1.17rem);
}

.chapter-copy > p:first-child::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  color: var(--cobalt);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.8em;
  line-height: 0.72;
}

.chapter-copy p:last-child {
  margin-bottom: 0;
}

.compact-list {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 4px solid var(--cobalt);
}

.compact-list h3,
.note-grid h3 {
  font-size: 0.77rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.compact-list ul {
  margin-bottom: 0;
  padding-left: 1.15rem;
}

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

.chapter-camera {
  grid-template-rows: auto auto;
}

.detail-image {
  grid-column: 2 / 4;
  grid-row: 2;
  width: 82%;
  margin: clamp(3rem, 6vw, 6rem) 0 0 auto;
}

.detail-image img {
  aspect-ratio: 4 / 3;
}

.chapter-angle blockquote {
  grid-column: 2;
  align-self: end;
  margin: 4rem 0 0;
  padding-top: 1rem;
  border-top: 5px solid var(--terracotta);
  color: var(--terracotta);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.1vw, 2.2rem);
  line-height: 1.2;
}

.note-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--ink);
}

.note-grid h3 {
  color: var(--cobalt);
}

.note-grid p {
  font-size: 0.92rem;
}

.procedure {
  margin: 3rem 0 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.procedure li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--rule);
}

.procedure span {
  color: var(--terracotta);
  font-weight: 700;
}

.chapter-background .chapter-heading {
  grid-column: 2 / 4;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}

.chapter-background .section-label {
  grid-column: 1;
}

.chapter-background h2 {
  grid-column: 2;
}

.chapter-background .chapter-copy {
  grid-column: 3;
  margin-top: 2rem;
}

.final-check {
  display: grid;
  grid-template-columns: 4fr 6fr;
  gap: clamp(2rem, 5vw, 6rem);
  margin-bottom: clamp(5rem, 10vw, 10rem);
  padding: clamp(3rem, 6vw, 6rem);
  color: var(--paper);
  background: var(--ink);
}

.final-check .section-label {
  color: #d88769;
}

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

.checklist li {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(241, 238, 230, 0.35);
}

.checklist span {
  color: #8facdf;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.closing-note {
  grid-column: 2;
  max-width: 36rem;
  margin-top: 2rem;
  padding-left: 7rem;
  color: #cbc8bf;
}

.site-footer {
  color: var(--paper);
  background: var(--terracotta);
}

.footer-grid {
  display: grid;
  grid-template-columns: 3fr 3fr 2fr 1fr;
  gap: 2rem;
  min-height: 20rem;
  padding: clamp(3rem, 6vw, 6rem) var(--gutter) 2rem;
}

.footer-wordmark {
  align-self: start;
  font-size: clamp(3rem, 7vw, 7.8rem);
  line-height: 0.8;
  letter-spacing: -0.065em;
  text-decoration: none;
}

.footer-contact {
  font-size: 0.85rem;
}

.footer-contact a {
  display: inline-block;
  margin-top: 1.3rem;
  font-weight: 700;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.82rem;
}

.footer-nav a[aria-current="page"] {
  color: var(--paper);
  font-weight: 700;
}

.footer-place {
  margin: 0;
  text-align: right;
}

.footer-place span {
  opacity: 0.72;
}

.page-shell {
  padding: 0 var(--gutter) clamp(6rem, 11vw, 11rem);
}

.page-hero {
  display: grid;
  grid-template-columns: 2fr 7fr 2fr;
  gap: 2rem;
  padding: clamp(5rem, 11vw, 11rem) 0 clamp(4rem, 8vw, 8rem);
  border-bottom: 1px solid var(--ink);
}

.page-hero .kicker {
  grid-column: 1;
}

.page-hero h1 {
  grid-column: 2 / -1;
  max-width: 13ch;
  margin-bottom: 0;
  font-size: clamp(4rem, 8vw, 8.6rem);
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.page-deck {
  grid-column: 2;
  max-width: 41rem;
  margin: 2rem 0 0;
  font-size: clamp(1.15rem, 1.7vw, 1.7rem);
  line-height: 1.42;
}

.updated {
  grid-column: 3;
  align-self: end;
  margin: 2rem 0 0;
  color: var(--muted);
}

.page-article {
  width: min(100%, 64rem);
  margin: 0 auto;
}

.page-article section {
  display: grid;
  grid-template-columns: 2fr 5fr;
  column-gap: clamp(2rem, 5vw, 6rem);
  padding: clamp(3.5rem, 7vw, 7rem) 0;
  border-bottom: 1px solid var(--rule);
}

.page-article .section-label {
  grid-column: 1;
  grid-row: 1 / span 4;
}

.page-article h2,
.page-article section > p:not(.section-label) {
  grid-column: 2;
}

.page-article section > p:not(.section-label) {
  max-width: 43rem;
  font-size: clamp(1rem, 1.15vw, 1.14rem);
}

.page-article section > p:last-child {
  margin-bottom: 0;
}

.contact-panel a {
  color: var(--cobalt);
  font-weight: 700;
}

@media (max-width: 900px) {
  .header-grid {
    grid-template-columns: 2fr 1fr;
    min-height: 0;
  }

  .issue {
    text-align: right;
  }

  .primary-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-top: 1.2rem;
    border-top: 1px solid var(--rule);
  }

  .hero-title {
    grid-column: 1 / 11;
  }

  .hero-index {
    grid-column: 11 / -1;
  }

  .hero-image {
    grid-column: 2 / 11;
  }

  .hero-note {
    grid-column: 11 / -1;
  }

  .chapter {
    grid-template-columns: 1fr 3fr 6fr;
  }

  .chapter-heading {
    grid-column: 2;
  }

  .chapter-copy {
    grid-column: 3;
  }

  .chapter-background .chapter-heading {
    grid-column: 2 / 4;
  }

  .chapter-background .chapter-copy {
    grid-column: 3;
  }

  .detail-image {
    grid-column: 2 / 4;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-place {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .site-header {
    border-top-width: 5px;
  }

  .header-grid {
    padding-top: 1rem;
  }

  .wordmark {
    font-size: 1.8rem;
  }

  .primary-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 1rem;
    font-size: 0.77rem;
  }

  .hero {
    display: block;
    padding-top: 4rem;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(3.25rem, 15vw, 5.1rem);
  }

  .hero-index {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--cobalt);
  }

  .hero-index::before {
    display: none;
  }

  .hero-image {
    width: 92%;
    margin: 3.5rem 0 0 auto;
  }

  .hero-note {
    width: 72%;
    margin: 1.5rem 0 0;
  }

  .chapter,
  .chapter-background .chapter-heading {
    display: grid;
    grid-template-columns: 3.2rem 1fr;
    gap: 1rem;
  }

  .chapter-number {
    grid-column: 1;
    font-size: 2.6rem;
  }

  .chapter-heading,
  .chapter-background .chapter-heading {
    grid-column: 2;
  }

  .chapter-background .chapter-heading {
    display: block;
  }

  .chapter-copy,
  .chapter-background .chapter-copy {
    grid-column: 1 / -1;
    margin-top: 1.5rem;
  }

  .chapter h2 {
    font-size: clamp(2.15rem, 11vw, 3.2rem);
  }

  .detail-image {
    grid-column: 1 / -1;
    width: 92%;
    margin-top: 3rem;
  }

  .chapter-angle blockquote {
    grid-column: 2;
    margin-top: 2rem;
  }

  .note-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .final-check {
    display: block;
    margin-inline: calc(var(--gutter) * -1);
    padding: 3rem var(--gutter);
  }

  .checklist {
    margin-top: 2rem;
  }

  .checklist li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .closing-note {
    padding-left: 0;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 0;
  }

  .footer-wordmark {
    grid-column: 1 / -1;
    margin-bottom: 2rem;
    font-size: 4rem;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }

  .footer-nav {
    margin-top: 2rem;
  }

  .footer-place {
    margin-top: 2rem;
    text-align: right;
  }

  .page-hero {
    display: block;
    padding-top: 5rem;
  }

  .page-hero h1 {
    max-width: none;
    font-size: clamp(3.7rem, 17vw, 5.5rem);
  }

  .page-deck {
    font-size: 1.17rem;
  }

  .page-article section {
    display: block;
  }

  .page-article .section-label {
    margin-bottom: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
