:root {
  --paper: #f3ecdc;
  --paper-deep: #e7dcc7;
  --ink: #201b16;
  --red: #a53b31;
  --red-dark: #77241f;
  --pink: #efa2ac;
  --pink-deep: #d86e7e;
  --green: #255645;
  --cream: #fffaf0;
  --yellow: #ffd847;
  --line: rgba(32, 27, 22, 0.34);
  --body: "Trebuchet MS", "Lucida Sans Unicode", sans-serif;
  --display: Georgia, "Times New Roman", serif;
  --mono: "Courier New", Courier, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 4px solid var(--yellow);
  outline-offset: 3px;
  background: var(--ink);
  color: var(--cream);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--yellow);
  color: var(--ink);
  font: 700 0.85rem var(--mono);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.masthead {
  width: min(100% - 48px, 1380px);
  margin: 0 auto;
  min-height: 108px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  border-bottom: 2px solid var(--ink);
}

.wordmark {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font: 900 0.79rem/0.95 var(--body);
  letter-spacing: 0.08em;
}

.wordmark-mark {
  width: 45px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pink);
  font: 700 1.8rem var(--display);
  border: 2px solid var(--ink);
  position: relative;
  overflow: hidden;
}

.wordmark-mark::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  right: -5px;
  top: -4px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
}

.edition {
  margin: 0;
  text-align: center;
  font: 0.7rem/1.35 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.edition span {
  color: var(--red);
}

.masthead nav {
  justify-self: end;
  display: flex;
  gap: clamp(18px, 3vw, 44px);
}

.masthead nav a {
  font: 700 0.78rem var(--mono);
  text-transform: uppercase;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
  text-decoration-color: transparent;
}

.masthead nav a:hover {
  text-decoration-color: var(--red);
}

.hero {
  min-height: 720px;
  width: min(100% - 48px, 1380px);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 120px) 0 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  align-items: center;
  gap: clamp(40px, 7vw, 120px);
}

.kicker,
.eyebrow,
.specimen-id,
.figure-stamp,
.era-number {
  margin: 0;
  color: var(--red);
  font: 700 0.72rem var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 20px 0 26px;
  font: 500 clamp(3.8rem, 7.1vw, 7.15rem)/0.89 var(--display);
  letter-spacing: -0.045em;
}

.hero h1 em {
  color: var(--red);
  font-weight: 500;
}

.dek {
  max-width: 700px;
  margin: 0 0 32px;
  font-size: clamp(1.05rem, 1.4vw, 1.28rem);
  line-height: 1.55;
}

.text-link {
  display: inline-block;
  color: var(--red-dark);
  font: 700 0.88rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-underline-offset: 8px;
  text-decoration-thickness: 2px;
}

.text-link span {
  display: inline-block;
  margin-left: 10px;
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateY(5px);
}

.hero-figure {
  position: relative;
  align-self: stretch;
  min-height: 560px;
  display: grid;
  place-items: center;
  border-left: 2px solid var(--ink);
}

.hero-figure::before,
.hero-figure::after {
  content: "";
  position: absolute;
  left: -6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}

.hero-figure::before { top: 0; }
.hero-figure::after { bottom: 0; }

.figure-stamp {
  position: absolute;
  top: 0;
  left: 24px;
}

.profile-illustration {
  width: min(100%, 510px);
  max-height: 580px;
  overflow: visible;
}

.profile-illustration .hair { fill: var(--green); }
.profile-illustration .face { fill: #d58d62; }
.profile-illustration .neck { fill: #bd744f; }
.profile-illustration .line,
.profile-illustration .ear {
  fill: none;
  stroke: var(--ink);
  stroke-width: 7;
  stroke-linecap: round;
}
.profile-illustration .bubble {
  fill: var(--pink);
  stroke: var(--ink);
  stroke-width: 6;
  transform-origin: 414px 317px;
  transition: transform 430ms cubic-bezier(.2, .8, .3, 1.25);
}
.profile-illustration .bubble-shine {
  fill: rgba(255, 255, 255, 0.68);
  transform-origin: 414px 317px;
  transition: transform 430ms cubic-bezier(.2, .8, .3, 1.25);
}

.hero-figure.is-blown .bubble,
.hero-figure.is-blown .bubble-shine {
  transform: scale(1.75);
}

.hero-figure.is-popped .bubble {
  transform: scale(0.02);
  transition-duration: 100ms;
}

.hero-figure.is-popped .bubble-shine {
  transform: scale(0);
  transition-duration: 100ms;
}

.bubble-control {
  position: absolute;
  right: 0;
  bottom: 15px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0 8px 16px;
  background: var(--paper);
}

.bubble-control button {
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 12px 16px;
  color: var(--cream);
  background: var(--red);
  font: 700 0.72rem var(--mono);
  text-transform: uppercase;
  cursor: pointer;
}

.bubble-control button:hover {
  background: var(--ink);
}

.bubble-control span {
  max-width: 90px;
  font: 0.63rem/1.25 var(--mono);
}

.fact-ribbon {
  background: var(--ink);
  color: var(--cream);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0 max(24px, calc((100% - 1380px) / 2));
}

.fact-ribbon div {
  min-height: 118px;
  padding: 24px clamp(20px, 3vw, 54px);
  display: flex;
  align-items: baseline;
  gap: 18px;
  border-right: 1px solid rgba(255, 250, 240, 0.35);
}

.fact-ribbon div:first-child { padding-left: 0; }
.fact-ribbon div:last-child { border-right: 0; }
.fact-ribbon strong {
  color: var(--pink);
  font: 500 1.8rem var(--display);
  white-space: nowrap;
}
.fact-ribbon span { font-size: 0.8rem; line-height: 1.3; }

.chapter {
  width: min(100% - 48px, 1380px);
  margin: 0 auto;
  padding: clamp(90px, 11vw, 170px) 0;
}

.chapter-heading {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  align-items: start;
  padding-bottom: 45px;
  border-bottom: 2px solid var(--ink);
}

.chapter-number {
  color: var(--red);
  font: 500 clamp(2.8rem, 4vw, 4.2rem)/0.85 var(--display);
}

.chapter h2,
.sources h2,
.lola-feature h2 {
  margin: 8px 0 0;
  font: 500 clamp(2.8rem, 5.4vw, 5.5rem)/0.98 var(--display);
  letter-spacing: -0.035em;
}

.origin-intro {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(50px, 10vw, 150px);
  padding: 64px 0 96px 118px;
}

.origin-intro p {
  margin: 0;
  max-width: 700px;
}

.dropcap {
  font: 500 clamp(1.6rem, 2.5vw, 2.5rem)/1.3 var(--display);
}

.dropcap::first-letter {
  float: left;
  margin: 4px 9px 0 0;
  color: var(--red);
  font-size: 4.2em;
  line-height: 0.72;
}

.specimen-index {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.specimen {
  padding: 42px clamp(24px, 3vw, 52px) 38px;
  border-right: 1px solid var(--line);
}

.specimen:first-child { padding-left: 0; }
.specimen:last-child { padding-right: 0; border-right: 0; }

.specimen-visual {
  height: 250px;
  display: grid;
  place-items: center;
  margin-bottom: 38px;
  overflow: hidden;
  background: var(--paper-deep);
  border: 1px solid var(--line);
}

.specimen-visual span { display: block; }
.specimen-visual.pitch span {
  width: 126px;
  height: 105px;
  border-radius: 54% 32% 61% 42%;
  background: #251c18;
  border: 5px solid #3b2d27;
  transform: rotate(-13deg);
  position: relative;
}
.specimen-visual.pitch span::after {
  content: "";
  position: absolute;
  inset: 22px 32px;
  border: 5px dotted #5e4940;
  border-radius: 50%;
}
.specimen-visual.chicle { background: var(--green); }
.specimen-visual.chicle span {
  width: 104px;
  height: 128px;
  background: #e8c995;
  border-radius: 47% 53% 55% 45%;
  border: 4px solid var(--ink);
  transform: rotate(18deg);
}
.specimen-visual.spruce { background: #c04c3f; }
.specimen-visual.spruce span {
  width: 95px;
  height: 142px;
  background: #8d491d;
  clip-path: polygon(50% 0, 67% 32%, 94% 70%, 77% 100%, 21% 94%, 3% 59%, 35% 30%);
  border: 0;
}

.specimen h3 {
  margin: 12px 0 8px;
  font: 500 2rem var(--display);
}

.specimen p:not(.specimen-id) {
  min-height: 110px;
  margin: 0;
  font-size: 0.92rem;
}

.region {
  display: block;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font: 700 0.67rem var(--mono);
  text-transform: uppercase;
}

.lola-feature {
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(190px, 0.55fr) minmax(420px, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(30px, 5vw, 86px);
  align-items: center;
  padding: clamp(70px, 9vw, 130px) max(24px, calc((100% - 1380px) / 2));
  background: var(--red);
  color: var(--cream);
}

.lola-label {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 30px;
  border-right: 1px solid rgba(255, 250, 240, 0.4);
  font: 0.67rem var(--mono);
  letter-spacing: 0.08em;
}

.lola-label span { writing-mode: vertical-rl; }
.lola-label strong { font-weight: 400; }

.lola-copy { position: relative; }
.quote-mark {
  position: absolute;
  top: -105px;
  left: -6px;
  margin: 0;
  color: var(--pink);
  font: 9rem/1 var(--display);
}

.lola-feature h2 {
  max-width: 750px;
  margin-bottom: 30px;
}

.lola-copy > p:not(.quote-mark) {
  max-width: 670px;
  font-size: 1.05rem;
}

.lola-copy a {
  display: inline-block;
  margin-top: 18px;
  font: 700 0.74rem var(--mono);
  text-transform: uppercase;
  text-underline-offset: 7px;
}

.pitch-impression {
  position: relative;
  width: min(100%, 345px);
  aspect-ratio: 1;
  justify-self: end;
  border-radius: 44% 58% 45% 61%;
  background: var(--ink);
  border: 12px solid var(--red-dark);
  transform: rotate(9deg);
}

.pitch-impression::before {
  content: "";
  position: absolute;
  inset: 16%;
  border: 4px dashed #5d514a;
  border-radius: 50%;
}

.pitch-impression .tooth {
  position: absolute;
  width: 45px;
  height: 27px;
  border: 6px solid #4b3f39;
  border-radius: 50%;
}
.t1 { left: 27%; top: 25%; transform: rotate(-25deg); }
.t2 { right: 23%; top: 33%; transform: rotate(18deg); }
.t3 { left: 25%; bottom: 29%; transform: rotate(19deg); }
.t4 { right: 22%; bottom: 21%; transform: rotate(-12deg); }
.pitch-impression small {
  position: absolute;
  bottom: -45px;
  right: 0;
  font: 0.58rem var(--mono);
  text-transform: uppercase;
}

.timeline-section { padding-bottom: 110px; }
.timeline {
  margin: 70px 0 0 118px;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: minmax(150px, 0.38fr) minmax(360px, 1fr) minmax(130px, 0.45fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: center;
  min-height: 240px;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}

.timeline li:last-child { border-bottom: 0; }
.timeline time {
  color: var(--red);
  font: 500 clamp(2.6rem, 4.6vw, 5rem)/1 var(--display);
}
.timeline-copy h3 {
  margin: 0 0 10px;
  font: 500 1.65rem var(--display);
}
.timeline-copy p { max-width: 680px; margin: 0; }

.timeline-mark {
  display: block;
  justify-self: center;
  color: var(--cream);
  background: var(--red);
}
.resin-mark {
  width: 75px;
  height: 106px;
  background: #91501f;
  clip-path: polygon(50% 0, 75% 37%, 95% 72%, 76% 100%, 20% 93%, 4% 54%, 32% 30%);
}
.strip-mark {
  width: 130px;
  height: 34px;
  border: 2px solid var(--ink);
  background: #d6bd85;
  transform: rotate(-9deg);
}
.packet-mark {
  width: 114px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 3px double var(--cream);
  font: 700 1.3rem var(--display);
  transform: rotate(6deg);
}
.bubble-mark {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--pink);
  border: 3px solid var(--ink);
}
.ration-mark {
  width: 122px;
  min-height: 75px;
  display: grid;
  place-items: center;
  padding: 12px;
  background: var(--green);
  font: 700 0.66rem/1.3 var(--mono);
  text-align: center;
  transform: rotate(-4deg);
}

.inside {
  width: 100%;
  padding-left: max(24px, calc((100% - 1380px) / 2));
  padding-right: max(24px, calc((100% - 1380px) / 2));
  background: var(--paper-deep);
}

.material-lab {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 650px;
  border-bottom: 2px solid var(--ink);
}

.material-stage {
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
}

.material-orbit {
  width: min(80%, 440px);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.material-orbit::before {
  content: "";
  position: absolute;
  inset: 11%;
  border: 1px dashed var(--line);
  border-radius: 50%;
}

.orbit-label {
  position: absolute;
  padding: 0 8px;
  background: var(--paper-deep);
  font: 700 0.64rem var(--mono);
  letter-spacing: 0.08em;
}
.orbit-label.top { top: -5px; }
.orbit-label.bottom { bottom: -5px; }

.material-sample {
  width: 42%;
  height: 34%;
  z-index: 1;
  border: 5px solid var(--ink);
  transition: background 220ms ease, border-radius 220ms ease, transform 220ms ease;
}
.material-sample.natural {
  border-radius: 47% 61% 40% 55%;
  background: #2b211d;
  transform: rotate(-9deg);
}
.material-sample.chicle-sample {
  border-radius: 45% 55% 52% 48%;
  background: #d8bb80;
  transform: rotate(12deg);
}
.material-sample.modern-sample {
  border-radius: 3px;
  background: var(--pink);
  transform: rotate(-3deg) scaleX(1.08);
}

.material-copy {
  padding: clamp(50px, 7vw, 100px);
  align-self: center;
}
.lab-intro { margin: 0 0 20px; }
.era-switcher {
  display: flex;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.era-button {
  flex: 1;
  border: 0;
  border-right: 1px solid var(--ink);
  padding: 16px 8px;
  color: var(--ink);
  background: transparent;
  font: 700 0.71rem var(--mono);
  text-transform: uppercase;
  cursor: pointer;
}
.era-button:last-child { border-right: 0; }
.era-button:hover { background: rgba(165, 59, 49, 0.12); }
.era-button.active { color: var(--cream); background: var(--red); }
.era-reading { min-height: 250px; padding-top: 45px; }
.era-reading h3 {
  margin: 10px 0 12px;
  font: 500 clamp(2rem, 3vw, 3.2rem)/1.1 var(--display);
}
.era-reading p:last-child { max-width: 680px; }

.sources {
  width: min(100% - 48px, 920px);
  margin: 0 auto;
  padding: clamp(90px, 10vw, 150px) 0;
}
.sources h2 { margin-bottom: 45px; }
.sources ol {
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: source;
  border-top: 2px solid var(--ink);
}
.sources li {
  counter-increment: source;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.sources li::before {
  content: "[" counter(source, decimal-leading-zero) "]";
  color: var(--red);
  font: 700 0.72rem var(--mono);
}
.sources a { text-underline-offset: 4px; text-decoration-color: var(--red); }

footer {
  min-height: 240px;
  padding: 54px max(24px, calc((100% - 1380px) / 2));
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 30px;
  background: var(--ink);
  color: var(--cream);
}
.footer-title {
  margin: 0;
  font: 500 clamp(2rem, 4vw, 4.6rem)/0.8 var(--display);
}
.footer-title span { color: var(--pink); }
footer > p:not(.footer-title),
footer a { margin: 0; font: 0.72rem var(--mono); }
footer a { text-underline-offset: 6px; }

@media (max-width: 980px) {
  .masthead { grid-template-columns: 1fr 1fr; }
  .edition { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 80px; }
  .hero-copy { max-width: 850px; }
  .hero-figure { border-left: 0; border-top: 2px solid var(--ink); }
  .hero-figure::before, .hero-figure::after { top: -6px; }
  .hero-figure::before { left: 0; }
  .hero-figure::after { left: auto; right: 0; bottom: auto; }
  .figure-stamp { top: 18px; left: 0; }
  .fact-ribbon { grid-template-columns: 1fr; padding: 0 24px; }
  .fact-ribbon div,
  .fact-ribbon div:first-child { padding: 20px 0; border-right: 0; border-bottom: 1px solid rgba(255, 250, 240, 0.35); }
  .fact-ribbon div:last-child { border-bottom: 0; }
  .origin-intro { padding-left: 0; }
  .lola-feature { grid-template-columns: 100px 1fr; }
  .pitch-impression { display: none; }
  .timeline { margin-left: 0; }
  .timeline li { grid-template-columns: 150px 1fr 120px; gap: 30px; }
  .material-lab { grid-template-columns: 1fr; }
  .material-stage { min-height: 520px; border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 700px) {
  body { font-size: 17px; }
  .masthead { width: min(100% - 32px, 1380px); min-height: 90px; }
  .masthead nav { gap: 14px; }
  .masthead nav a { font-size: 0.63rem; }
  .masthead nav a:nth-child(2) { display: none; }
  .wordmark-mark { width: 38px; }
  .hero,
  .chapter { width: min(100% - 32px, 1380px); }
  .hero { min-height: auto; padding-top: 60px; gap: 60px; }
  .hero h1 { font-size: clamp(3.35rem, 17vw, 5.2rem); }
  .hero-figure { min-height: 470px; }
  .profile-illustration { transform: translateX(-5px); }
  .bubble-control { left: 0; right: auto; bottom: 0; }
  .bubble-control span { display: none; }
  .fact-ribbon strong { font-size: 1.55rem; }
  .chapter-heading { grid-template-columns: 55px 1fr; gap: 10px; }
  .chapter-number { font-size: 2.25rem; }
  .chapter h2, .sources h2, .lola-feature h2 { font-size: clamp(2.5rem, 13vw, 4.2rem); }
  .origin-intro { grid-template-columns: 1fr; gap: 30px; padding: 50px 0 70px; }
  .specimen-index { grid-template-columns: 1fr; }
  .specimen,
  .specimen:first-child,
  .specimen:last-child { padding: 32px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .specimen:last-child { border-bottom: 0; }
  .specimen-visual { height: 210px; }
  .specimen p:not(.specimen-id) { min-height: auto; }
  .lola-feature { grid-template-columns: 1fr; gap: 60px; }
  .lola-label { min-height: auto; flex-direction: row; border-right: 0; border-bottom: 1px solid rgba(255, 250, 240, 0.4); padding: 0 0 18px; }
  .lola-label span { writing-mode: initial; }
  .quote-mark { top: -86px; }
  .timeline { margin-top: 35px; }
  .timeline li { grid-template-columns: 1fr 76px; gap: 12px 20px; }
  .timeline time { grid-column: 1; font-size: 3.5rem; }
  .timeline-copy { grid-column: 1; }
  .timeline-mark { grid-column: 2; grid-row: 1 / span 2; transform: scale(0.75); }
  .inside { width: 100%; padding-left: 16px; padding-right: 16px; }
  .material-stage { min-height: 400px; }
  .material-orbit { width: min(88%, 350px); }
  .material-copy { padding: 50px 0; }
  .era-button { font-size: 0.62rem; }
  footer { grid-template-columns: 1fr; min-height: 300px; align-items: start; }
}

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