/* /burns. One sheet of burnt orange paper, taken from the picture of her made of matches. */
:root { --paper: #c8472a; --char: #190a05; --wood: #f3d3a2; --white: #fff; --soft: #ffe4d8; --line: rgba(25, 10, 5, .26); --g: clamp(18px, 4vw, 64px); --ease: cubic-bezier(.2, .7, .2, 1); }
* { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--white); font: 400 17px/1.5 Geist, system-ui, sans-serif; overflow-x: hidden; }
a { color: inherit; }
h1, h2, p, dl, dd, ol { margin: 0; padding: 0; }
h1, h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; letter-spacing: -0.02em; }
h2 { font-size: clamp(42px, 6vw, 84px); line-height: .95; color: var(--char); }
:focus-visible { outline: 3px solid var(--char); outline-offset: 3px; border-radius: 8px; }
section { padding: clamp(56px, 8vw, 120px) var(--g) 0; }
.lead { max-width: 40em; margin-top: 20px; font-size: clamp(17px, 1.5vw, 20px); color: var(--white); }
.lead b { font-weight: 600; }

.top { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 20px var(--g); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 400 30px/1 "Instrument Serif", serif; }
.brand img { filter: drop-shadow(0 0 0 #fff); }
.pill { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border: 0; border-radius: 99px; background: var(--char); color: #fff; font: 500 15px/1 Geist, sans-serif; text-decoration: none; cursor: pointer; transition: background .2s; }
.pill:hover { background: #000; }

.hero { position: relative; min-height: min(100svh, 940px); padding: 120px var(--g) 64px; display: flex; align-items: flex-end; overflow: hidden; }
.hero-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.hero-copy { position: relative; z-index: 1; }
h1 { font-size: clamp(76px, 15.5vw, 250px); line-height: .82; letter-spacing: -0.04em; margin-left: -.03em; font-variant-numeric: tabular-nums; }
.what { margin-top: 24px; font-size: clamp(21px, 2.4vw, 34px); line-height: 1.25; letter-spacing: -0.015em; max-width: 17em; }
.what b { font-weight: 600; }
.when { margin-top: 14px; max-width: 25em; font-size: 17px; line-height: 1.45; color: var(--soft); font-variant-numeric: tabular-nums; }

/* the matchbox: one match a burn, taller is bigger */
.picked { min-height: 1.5em; margin-top: 18px; font-size: clamp(17px, 1.6vw, 21px); }
.box { display: flex; align-items: flex-end; gap: clamp(5px, .8vw, 12px); height: clamp(220px, 34vw, 420px); margin-top: 26px; padding-bottom: 0; border-bottom: 2px solid var(--char); overflow-x: auto; scrollbar-width: none; }
.match { position: relative; flex: 1 0 12px; max-width: 34px; height: 100%; display: flex; align-items: flex-end; justify-content: center; padding: 0; border: 0; background: none; cursor: pointer; text-decoration: none; }
.match i { display: block; position: relative; width: clamp(7px, 46%, 14px); height: calc(var(--h) * 1%); min-height: 40px; background: linear-gradient(90deg, #d9b079, var(--wood) 40%, #e7c08b); transform-origin: bottom; animation: stand .7s var(--ease) both; animation-delay: calc(var(--n) * 26ms); }
/* burnt: the top of the stick chars, more for a bigger burn */
.match i::before { content: ""; position: absolute; inset: 0 0 auto; height: calc(18px + 24%); background: linear-gradient(var(--char) 55%, rgba(25, 10, 5, .55) 82%, transparent); }
.match i::after { content: ""; position: absolute; left: 50%; top: -9px; width: calc(100% + 7px); aspect-ratio: 1 / 1.35; translate: -50% 0; border-radius: 50% 50% 46% 46%; background: var(--char); }
.match.held i { background: linear-gradient(90deg, #c9c2ba, #fff 40%, #d8d1c9); }
.match.last i::after { background: #ffcf3f; box-shadow: 0 -6px 0 -2px #fff1b8, 0 0 0 4px #f5822a; animation: flame 1.1s ease-in-out infinite; transform-origin: bottom; }
.match:hover i, .match[aria-current] i { filter: brightness(1.14); }
.match[aria-current]::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--char); }
@keyframes stand { from { transform: scaleY(0); } }
@keyframes flame { 50% { transform: scale(.94, 1.16); } }

.bar { display: flex; gap: 6px; margin-top: 34px; height: clamp(150px, 16vw, 210px); }
.bar div { position: relative; flex: var(--v) 1 0; min-width: 78px; padding: 18px 20px; border-radius: 6px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.bar b { font: 400 clamp(32px, 4.4vw, 62px)/1 "Instrument Serif", serif; letter-spacing: -0.02em; white-space: nowrap; }
.bar span { font-size: 16px; line-height: 1.25; }
.bar .m { background: var(--white); color: var(--char); }
.bar .b { background: var(--char); color: var(--white); }
.bar .k { background: rgba(255, 255, 255, .2); padding: 18px 14px; min-width: 128px; }
.bar .k b { font-size: clamp(22px, 2vw, 30px); }

.rows { list-style: none; margin-top: 30px; border-top: 2px solid var(--char); }
.rows a { display: grid; grid-template-columns: 9.5em 1fr auto; gap: 8px 24px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.rows a:hover { background: rgba(25, 10, 5, .08); }
.rows time { color: var(--soft); font-size: 16px; font-variant-numeric: tabular-nums; }
.rows b { font-weight: 500; }
.rows .fire b { color: var(--char); font-weight: 600; }
.rows span { font-variant-numeric: tabular-nums; text-align: right; }
.more { margin-top: 24px; }

.check dl { margin-top: 30px; display: grid; gap: 0; border-top: 2px solid var(--char); }
.check div { display: grid; grid-template-columns: 11em 1fr; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.check dt { color: var(--char); font-weight: 600; }
.check dd { min-width: 0; overflow-wrap: anywhere; }
.check dd a { font: 500 15px/1.5 "Geist Mono", monospace; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .5); }
.check dd small { display: block; font-size: 16px; color: var(--soft); }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 30px; padding: clamp(70px, 9vw, 130px) var(--g) 34px; font-size: 15px; color: var(--soft); }
.empty { padding: 26px 0; color: var(--soft); }

@media (max-width: 720px) {
  .hero { min-height: 92svh; padding-bottom: 40px; }
  .hero-pic { height: 76%; object-position: 58% 50%; }
  h1 { font-size: clamp(66px, 21vw, 110px); }
  .bar { flex-direction: column; height: auto; }
  .bar div { flex: none; min-height: 92px; }
  .bar .m { min-height: 168px; }
  .bar .b { min-height: 122px; }
  .bar .k { min-height: 64px; flex-direction: row; align-items: baseline; padding: 18px 20px; }
  .rows a { grid-template-columns: 1fr auto; }
  .rows time { grid-column: 1 / -1; font-size: 15px; }
  .check div { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .match i, .match.last i::after { animation: none; } }
