@import url('fonts/fonts.css');

:root {
  color-scheme: light;
  --paper: #f4f2ec;
  --sheet: #faf8f3;
  --ink: #211e1b;
  --muted: #605850;
  --rule: #d7d0c4;
  --rust: #9d3b28;
  --sans: 'Geist', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --serif: 'Instrument Serif', Georgia, serif;
  --gutter: clamp(26px, 7.5vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
::selection { background: #e9c7bb; color: var(--ink); }
a:focus-visible { outline: 2px solid var(--rust); outline-offset: 5px; }
.shell { width: min(calc(100% - var(--gutter) * 2), 1260px); margin-inline: auto; }

.masthead {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 17px;
  border-bottom: 1px solid var(--rule);
}
.kick {
  margin: 0;
  font: 500 .72rem/1.4 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.down-link {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--rule);
  color: var(--ink);
  transition: color .2s, background-color .2s, border-color .2s;
}
.down-link:hover { color: var(--sheet); border-color: var(--ink); background: var(--ink); }
.down-link span { position: relative; width: 1px; height: 15px; background: currentColor; }
.down-link span::after {
  content: '';
  position: absolute;
  left: -4px;
  bottom: 0;
  width: 9px;
  height: 9px;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4.2vw, 64px);
  padding-block: clamp(34px, 5.6vw, 80px);
  border-bottom: 1px solid var(--rule);
}
.hero-copy { padding-block: 22px; }
.sub {
  max-width: 43ch;
  margin: 0 0 clamp(28px, 4.2vw, 64px);
  color: var(--muted);
  font: 500 clamp(.68rem, .87vw, .78rem)/1.55 var(--mono);
  letter-spacing: .025em;
}
h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.6vw, 4.1rem);
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: 1.02;
  text-wrap: balance;
}
h1 em {
  display: block;
  margin-top: .12em;
  color: var(--rust);
  font: italic 400 1.12em/.96 var(--serif);
  letter-spacing: -.048em;
}
.hero-art {
  display: block;
  width: 100%;
  height: auto;
  max-height: 410px;
  stroke-linejoin: round;
}
.hero-art .g { fill: none; stroke: #7f7568; stroke-width: .75; stroke-dasharray: 2 3; }
.hero-art .f { fill: #e9dfd1; stroke: #3e352d; stroke-width: 1; }
.hero-art .in { fill: #f5eee4; stroke: #3e352d; stroke-width: .85; }
.hero-art .liq { fill: #dbbda4; stroke: #3e352d; stroke-width: .75; }
.hero-art .liqH { fill: #bf6550; stroke: #863925; stroke-width: 1; }
.hero-art .rim, .hero-art .rimH { fill: none; stroke: #3e352d; stroke-width: 1; }
.hero-art .rimH { stroke: #863925; }
.hero-art .hero-flow { fill: none; stroke: #4c4034; stroke-dasharray: 3 4; stroke-linecap: round; }
.hero-art .flowH { stroke: var(--rust); }

.story {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(30px, 6.2vw, 105px);
  row-gap: 36px;
  padding-block: clamp(36px, 5vw, 76px);
}
.story-section { min-width: 0; border-top: 1px solid var(--rule); padding-top: 17px; }
.story-section h2 {
  display: flex;
  align-items: baseline;
  gap: 11px;
  margin: 0 0 16px;
  font: 600 .75rem/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: .065em;
}
.story-section h2::before {
  content: '';
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  align-self: center;
  background: var(--rust);
  border-radius: 50%;
}
.story-section p, .story-section ul {
  max-width: 64ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(.97rem, 1.18vw, 1.1rem);
  line-height: 1.64;
}
.story-section p + p { margin-top: 12px; }
.story-section ul { list-style: none; padding: 0; }
.story-section li { position: relative; padding-left: 17px; }
.story-section li + li { margin-top: 6px; }
.story-section li::before { content: ''; position: absolute; top: .82em; left: 0; width: 7px; height: 1px; background: var(--rust); }
.story-section b { color: var(--ink); font-weight: 600; }
code { color: var(--rust); font: .9em var(--mono); }

.gal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.35vw, 34px);
  scroll-margin-top: 24px;
}
.cell { min-width: 0; display: flex; }
.cell .cfx {
  --bg: #fbf9f5;
  --panel: #fbf9f5;
  --panel2: #eeebe4;
  --line: #27231e;
  --dim: #a59c90;
  --muted: #60584f;
  --rule: #e0d9ce;
  --sans: 'Geist', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: clamp(17px, 2.25vw, 32px);
  border-color: var(--rule);
  border-radius: 0;
}
.cell .cfx-top { column-gap: 12px; }
.cell .cfx-case, .cell .cfx-k { font-size: .65rem; line-height: 1.45; }
.cell .cfx-case { color: var(--line); background: transparent; padding: 0; }
.cell .cfx-case::before {
  content: '';
  display: inline-block;
  margin-right: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: .12em;
}
.cell .cfx-k { color: var(--muted); }
.cell .cfx h3 {
  margin: 12px 0 4px;
  font-size: clamp(1.65rem, 3.4vw, 3.25rem);
  line-height: 1.05;
  font-weight: 530;
  letter-spacing: -.068em;
  text-wrap: initial;
}
.cell .cfx-sub { margin-bottom: 12px; font-weight: 550; }
.cell .cfx-brief { color: var(--muted); }
.cell .cfx dl { margin: 18px 0 6px; }
.cell .cfx dt { line-height: 1.35; overflow-wrap: anywhere; }
.cell .cfx dd { font-weight: 620; }
.cell .cfx-stage { margin-block: auto; border-radius: 0; }
.cell .cfx button { min-height: 33px; padding-inline: 9px; border-radius: 3px; }
.cell .cfx .cfx-ro { flex-basis: 230px; min-height: 34px; align-content: center; }
.cell .cfx .cfx-play { white-space: nowrap; }

.story-outro { padding-bottom: clamp(32px, 5vw, 70px); }
.story-outro .story-section:first-child { grid-row: span 2; }
.footer { border-top: 1px solid var(--rule); padding-block: clamp(30px, 4vw, 60px); }
.cta { max-width: 32ch; margin: 0; font-size: clamp(1.6rem, 3.1vw, 3.05rem); font-weight: 500; line-height: 1.12; letter-spacing: -.045em; }
.cta a { color: var(--rust); text-underline-offset: .16em; text-decoration-thickness: 1px; white-space: nowrap; }
.footer-meta { margin: clamp(28px, 4vw, 58px) 0 0; color: var(--muted); font: .8rem/1.6 var(--sans); }
.footer-meta span { margin-inline: .25em; }
.footer-meta a { color: inherit; text-underline-offset: .22em; }
.footer-meta a:hover { color: var(--rust); }

@media (max-width: 860px) {
  .gal { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  :root { --gutter: clamp(24px, 6.5vw, 36px); }
  .masthead { min-height: 62px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 24px; }
  .hero-copy { padding-block: 12px 0; }
  h1 { font-size: clamp(2.1rem, 8.6vw, 3.4rem); }
  .hero-art { max-height: 300px; }
  .story { grid-template-columns: minmax(0, 1fr); row-gap: 25px; }
  .story-outro .story-section:first-child { grid-row: auto; }
  .cell .cfx button { min-height: 37px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .down-link { transition: none; }
}
