:root {
  color-scheme: light;
  --paper: #eeeae0;
  --ink: #211c2c;
  --muted: #524a58;
  --rule: #c3bdc3;
  --accent: #5d3fb3;
  --deep: #1c1431;
  --light: #eecdf6;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --mono: ui-monospace, 'SF Mono', Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.55 system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .25em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
a, section, footer { scroll-margin-top: 2rem; }
.frame { width: min(100% - 4rem, 83rem); margin-inline: auto; }
.bar { min-height: 5rem; border-bottom: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; font-size: .86rem; font-weight: 750; letter-spacing: .23em; }
.wordmark > span { color: var(--accent); font-size: 1.4rem; line-height: 1; }
nav { display: flex; gap: clamp(1rem, 3vw, 3.2rem); font-size: .88rem; }
nav a { padding-block: .65rem; }
nav span, .footer a span { margin-inline-start: .2rem; color: var(--accent); }
.hero { display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); align-items: center; gap: clamp(2rem, 5vw, 6rem); padding-block: clamp(3rem, 7vw, 7rem); }
.introduction { padding-block: .5rem; }
.eyebrow, .plate-header, figcaption { font: 600 .72rem/1.5 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.eyebrow { color: var(--accent); margin: 0; }
.point { display: inline-block; width: .42rem; height: .42rem; margin: 0 .45rem .15rem 0; border-radius: 50%; background: currentColor; }
h1, h3 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(4.3rem, 7.3vw, 8.5rem); letter-spacing: -.09em; line-height: .92; margin: 1.75rem 0 1.7rem; }
h1 em { font-weight: inherit; color: var(--accent); }
.lede { max-width: 27rem; margin: 0 0 1.85rem; color: var(--muted); font-size: clamp(1.03rem, 1.45vw, 1.25rem); }
.more { display: inline-flex; align-items: center; gap: 1.05rem; padding-block: .42rem; border-bottom: 1px solid currentColor; color: var(--accent); font-size: .91rem; font-weight: 650; }
.more:hover { text-decoration: none; color: var(--ink); }
.plate { position: relative; margin: 0; aspect-ratio: 1.08; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 49% 45%, #372651 0, #231837 55%, #1c1431 100%); color: var(--light); }
.plate::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(#eee0ff0a 1px, transparent 1px), linear-gradient(90deg, #eee0ff0a 1px, transparent 1px); background-size: 8.333% 10%; background-position: center; }
.plate-header, figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: .75em; margin: 0 clamp(1rem, 3vw, 2.25rem); padding-block: 1.02rem; }
.plate-header { border-bottom: 1px solid #eecdf64a; }
figcaption { border-top: 1px solid #eecdf64a; }
figcaption span:last-child, .plate-header span:last-child { text-transform: none; letter-spacing: .04em; }
.drawing { position: relative; flex: 1; min-height: 0; }
canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.formula { margin: 0; display: grid; height: 100%; place-items: center; font-size: clamp(1rem, 4vw, 3rem); font-family: var(--serif); }
.research { border-block: 1px solid var(--rule); padding-block: 2.35rem 3.1rem; }
.directions { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 1.55rem; }
.directions article { padding-inline: clamp(1.2rem, 3vw, 3rem); }
.directions article:first-child { padding-left: 0; }
.directions article + article { border-left: 1px solid var(--rule); }
.directions h3 { font-size: clamp(1.8rem, 3vw, 2.95rem); line-height: 1.1; margin: 0 0 .6rem; }
.directions p { max-width: 16.5rem; color: var(--muted); margin: 0; }
.footer { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: space-between; align-items: center; min-height: 5.5rem; padding-block: 1rem; font-size: .88rem; }
.footer a { padding-block: .5rem; }

@media (max-width: 860px) {
  .frame { width: min(100% - 2.5rem, 43rem); }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  h1 { font-size: clamp(4.15rem, 12vw, 7rem); }
  .plate { aspect-ratio: 1.15; }
}

@media (max-width: 500px) {
  .frame { width: calc(100% - 2rem); }
  .bar { min-height: 4rem; }
  .wordmark { gap: .4rem; }
  .hero { padding-block: 2.65rem; }
  h1 { font-size: clamp(3.6rem, 14vw, 5rem); }
  .plate { aspect-ratio: 1.02; }
  .directions { grid-template-columns: 1fr; gap: 1rem; }
  .directions article { padding: 0; }
  .directions article + article { border-left: 0; border-top: 1px solid var(--rule); padding-top: 1rem; }
  .directions p { max-width: 27rem; }
}

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