:root {
  color-scheme: light;
  --ink: #221a1f;
  --muted: #53454d;
  --mulberry: #5b2a4a;
  --apricot: #f0a35e;
  --paper: #fff;
  --warm: #f5efec;
  --off-white: #fffbf8;
  --rose: #f3e6eb;
  --rule: #d9cbd0;
  --marker: #9c7789;
  --display: "Bodoni Moda", Georgia, serif;
  --reading: "Onest", system-ui, sans-serif;
  --gutter: clamp(1.125rem, 4.5vw, 4.5rem);
  --band-space: clamp(3rem, 7.4vw, 6.75rem);
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--reading);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
}

h1, h2, h3, p, figure, ol, ul { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; }
h1 { color: var(--mulberry); font-size: clamp(2.625rem, 4.5vw, 4.0625rem); line-height: 1.05; letter-spacing: -.012em; }
h2 { color: var(--mulberry); font-size: clamp(2.125rem, 3.6vw, 3.1875rem); line-height: 1.1; letter-spacing: -.012em; }
h3 { font-size: 1.0625rem; line-height: 1.4; font-weight: 500; }
strong { font-weight: 500; }
a { color: var(--mulberry); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .12em; }

a:focus-visible { outline: 2px solid var(--mulberry); outline-offset: 4px; }
[id] { scroll-margin-top: 1.5rem; }

.sg-wrap {
  width: min(calc(100% - 2 * var(--gutter)), 76rem);
  margin-inline: auto;
}

.sg-skip {
  position: absolute;
  z-index: 2;
  inset: .5rem auto auto .5rem;
  padding: .5rem .875rem;
  background: var(--paper);
  transform: translateY(calc(-100% - 1rem));
}

.sg-skip:focus { transform: none; }

.sg-masthead { padding: clamp(.875rem, 1.7vw, 1.5rem) 0 0; }
.sg-home .sg-masthead { background: var(--rose); }

.sg-mastbox {
  width: min(calc(100% - clamp(1.5rem, 3.4vw, 3rem)), 88rem);
  margin-inline: auto;
  background: var(--off-white);
  border: 1px solid var(--rule);
  text-align: center;
}

.sg-identity { padding: 1.125rem .75rem .9375rem; }

.sg-identity a {
  display: inline-block;
  color: var(--mulberry);
  font-size: 1.5625rem;
  font-weight: 500;
  letter-spacing: .055em;
  line-height: 1.2;
  text-decoration: none;
}

.sg-identity p { margin-top: .375rem; color: var(--muted); font-size: 1rem; line-height: 1.35; }

.sg-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: center;
  padding-inline: max(0rem, calc((100% - 34rem) / 2));
  border-top: 1px solid var(--rule);
}

.sg-nav a {
  display: grid;
  min-height: 2.875rem;
  align-content: center;
  padding: .5rem .25rem;
  color: var(--ink);
  font-size: .96875rem;
  line-height: 1.3;
  text-decoration: none;
}

.sg-nav a + a { border-left: 1px solid var(--rule); }
.sg-nav a:hover { background: var(--warm); }
.sg-nav a[aria-current="page"] { box-shadow: inset 0 -2px var(--mulberry); color: var(--mulberry); font-weight: 500; }

.sg-hero {
  background: var(--rose);
  border-bottom: 1px solid var(--rule);
  padding-block: clamp(2.5rem, 4.7vw, 4.75rem) clamp(3rem, 6vw, 5.75rem);
}

.sg-hero-grid,
.sg-measure-grid,
.sg-lead-split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5.25rem);
}

.sg-photo { min-width: 0; }
.sg-photo img { display: block; width: 100%; height: auto; object-fit: cover; }
.sg-hero .sg-photo img { aspect-ratio: 7 / 6; }
.sg-hero-copy h1 { text-wrap: balance; }
.sg-hero-copy p { max-width: 40ch; margin-top: 1.25rem; color: var(--muted); font-size: 1.125rem; line-height: 1.55; }

.sg-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: .75rem; margin-top: 1.625rem; }

.sg-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.125rem;
  padding: .625rem .875rem .625rem 1rem;
  border: 1px solid var(--mulberry);
  border-radius: 2px;
  background: var(--mulberry);
  color: var(--paper);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
}

.sg-button:hover { background: #472039; }
.sg-outline { background: transparent; color: var(--mulberry); }
.sg-outline:hover { background: var(--off-white); }
.sg-arrow {
  display: grid;
  flex: 0 0 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
  place-items: center;
  border-radius: 1px;
  background: var(--apricot);
  color: var(--ink);
}

.sg-band { padding-block: var(--band-space); }
.sg-questions h2, .sg-year h2 { text-align: center; text-wrap: balance; }

.sg-question-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(1.75rem, 3.4vw, 3rem);
  padding: 0;
  border: 1px solid var(--rule);
  background: var(--rule);
  list-style: none;
}

.sg-question-grid li {
  display: flex;
  min-height: 10rem;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.125rem, 2.2vw, 2rem);
  background: var(--paper);
}

.sg-question-grid p { color: var(--muted); font-size: 1rem; line-height: 1.55; }
.sg-question-grid a { color: inherit; }
.sg-measure { background: var(--warm); border-block: 1px solid var(--rule); }
.sg-measure-copy p { max-width: 54ch; margin-top: 1.125rem; }
.sg-measure .sg-photo img { aspect-ratio: 4 / 3; }

.sg-year > p { margin: .875rem auto 0; max-width: 50ch; text-align: center; color: var(--muted); }

.sg-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 57rem;
  margin: 2.5rem auto 0;
  padding: 0;
  list-style: none;
}

.sg-timeline::before {
  position: absolute;
  inset: .6875rem calc(100% / 6) auto;
  border-top: 2px dotted var(--marker);
  content: "";
}

.sg-timeline li { position: relative; padding: 2rem 1rem 0; text-align: center; }

.sg-timeline li::before {
  position: absolute;
  top: .375rem;
  left: calc(50% - .375rem);
  width: .75rem;
  height: .75rem;
  border: 1px solid var(--mulberry);
  border-radius: 50%;
  background: var(--apricot);
  content: "";
}

.sg-timeline h3 { color: var(--mulberry); }
.sg-timeline p { margin: .625rem auto 0; max-width: 26ch; font-size: 1rem; }
.sg-timeline-note { max-width: 62ch; margin: 1.75rem auto 0; text-align: center; color: var(--muted); font-size: 1rem; }

.sg-sources {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  margin-bottom: var(--band-space);
  border-radius: 2px;
  background: var(--mulberry);
  color: var(--paper);
}

.sg-source-copy { padding: clamp(1.5rem, 4vw, 3.625rem); }
.sg-source-copy h2 { color: inherit; font-size: clamp(2rem, 3.25vw, 2.875rem); }
.sg-source-copy p { max-width: 44ch; margin-top: .875rem; }
.sg-paper-button { margin-top: 1.25rem; border-color: var(--paper); background: var(--paper); color: var(--mulberry); }
.sg-paper-button:hover { background: var(--warm); }
.sg-paper-button:focus-visible { outline-color: var(--paper); }
.sg-sources .sg-photo { display: grid; grid-template-rows: minmax(15rem, 1fr) auto; }
.sg-sources .sg-photo img { height: 100%; min-height: 15rem; object-position: 60% center; }
.sg-sources figcaption { padding: .625rem 1rem .75rem; font-size: 1rem; line-height: 1.45; }

.sg-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: .625rem;
  margin-top: 1.625rem;
  color: var(--muted);
  font-size: .96875rem;
}

.sg-article-lead { padding-block: clamp(2rem, 4.5vw, 4rem) clamp(2.5rem, 5.5vw, 5rem); }
.sg-lead-copy h1 { max-width: 19ch; font-size: clamp(2.5rem, 4.2vw, 3.75rem); }
.sg-lead-copy p { max-width: 55ch; margin-top: 1.25rem; color: var(--muted); font-size: 1.125rem; }
.sg-lead-split .sg-photo img { aspect-ratio: 4 / 3; }
.sg-article-band { border-block-start: 1px solid var(--rule); }

.sg-article-grid {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 45rem);
  gap: clamp(2.25rem, 6vw, 6rem);
  align-items: start;
  padding-block: clamp(2.5rem, 6vw, 5.5rem) var(--band-space);
}

.sg-contents { position: sticky; top: 1.5rem; background: var(--warm); border: 1px solid var(--rule); }
.sg-contents p { padding: .875rem 1rem; border-bottom: 1px solid var(--rule); color: var(--ink); font-weight: 500; }
.sg-contents ol { padding: .375rem 0; list-style: none; }
.sg-contents a { display: block; border-left: 2px solid transparent; padding: .5rem .875rem; font-size: 1rem; line-height: 1.4; text-decoration: none; }
.sg-contents a:hover { text-decoration: underline; }
.sg-contents a[aria-current="location"] { border-left-color: var(--mulberry); background: var(--off-white); }

.sg-text section + section { margin-top: clamp(2rem, 4.5vw, 4rem); padding-top: clamp(2rem, 4.5vw, 4rem); border-top: 1px solid var(--rule); }
.sg-text h2 { max-width: 24ch; font-size: clamp(2rem, 3vw, 2.75rem); }
.sg-text p { margin-top: 1.0625rem; max-width: 68ch; }
.sg-text .sg-photo { max-width: 34rem; margin-block: 1.5rem; }
.sg-text .sg-photo img { aspect-ratio: 16 / 10; }
.sg-error { padding-block: var(--band-space); }
.sg-error p { margin-top: 1.125rem; }

.sg-footer { padding-block: 2.5rem; border-top: 1px solid var(--rule); background: var(--warm); }
.sg-footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.75rem 3rem; }
.sg-footer-name { font-weight: 500; font-size: 1.25rem; text-decoration: none; }
.sg-footer p { max-width: 42ch; margin-top: .5rem; color: var(--muted); font-size: 1rem; }
.sg-footer nav { display: flex; flex-wrap: wrap; align-content: start; gap: .5rem 1.25rem; font-size: 1rem; }

@media (width > 54rem) {
  .sg-hero-copy h1 { font-size: clamp(2.5rem, 3.75vw, 3.375rem); }
}

@media (max-width: 54rem) {
  .sg-hero-grid, .sg-lead-split { grid-template-columns: minmax(0, 1fr); }
  .sg-hero .sg-photo img { aspect-ratio: 16 / 9; }
  .sg-hero-copy { text-align: center; }
  .sg-hero-copy h1 { max-width: 20ch; margin-inline: auto; }
  .sg-hero-copy p { margin-inline: auto; }
  .sg-actions { justify-content: center; }
  .sg-lead-split .sg-photo img { aspect-ratio: 16 / 9; }
  .sg-article-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .sg-contents { position: static; }
  .sg-contents ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 38rem) {
  h1 { font-size: clamp(2.125rem, 9.9vw, 2.625rem); }
  .sg-identity { padding-block: .875rem .75rem; }
  .sg-identity a { font-size: 1.4375rem; }
  .sg-hero { padding-block: 1.125rem 2.625rem; }
  .sg-hero-grid { gap: 1.5rem; }
  .sg-hero .sg-photo img { aspect-ratio: 7 / 5; }
  .sg-hero-copy p { font-size: 1.0625rem; }
  .sg-actions { display: grid; justify-content: stretch; margin-top: 1.25rem; }
  .sg-question-grid { grid-template-columns: minmax(0, 1fr); }
  .sg-question-grid li { min-height: 0; gap: .5rem; }
  .sg-measure-grid, .sg-sources, .sg-footer-grid { grid-template-columns: minmax(0, 1fr); }
  .sg-measure-grid { gap: 1.75rem; }
  .sg-year h2, .sg-year > p, .sg-timeline-note { text-align: left; }
  .sg-timeline { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; margin-top: 1.375rem; }
  .sg-timeline::before { inset: .5rem auto 2.75rem .3125rem; border-top: 0; border-left: 2px dotted var(--marker); }
  .sg-timeline li { padding: 0 0 0 1.75rem; text-align: left; }
  .sg-timeline li::before { left: 0; }
  .sg-timeline p { max-width: none; margin: .25rem 0 0; }
  .sg-sources .sg-photo { display: block; }
  .sg-sources .sg-photo img { aspect-ratio: 2 / 1; height: auto; min-height: 0; }
  .sg-lead-copy h1 { font-size: clamp(2.125rem, 9.2vw, 2.625rem); }
  .sg-lead-copy p { font-size: 1.0625rem; }
  .sg-contents ol { grid-template-columns: minmax(0, 1fr); }
}
