@font-face { font-family: Fraunces; src: url(fonts/Fraunces.woff) format("woff"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Fraunces; src: url(fonts/Fraunces-Italic.woff) format("woff"); font-style: italic; font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(fonts/JetBrainsMono.woff) format("woff"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Starworld Inter"; src: url(fonts/InterVariable.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
	--soot: #120b07;
	--walnut: #3b2416;
	--kraft: #c49a66;
	--paper: #efe3cc;
	--paper-2: #e4d3b4;
	--ink: #24160c;
	--ink-2: #5c4530;
	--blaze: #ff5714;
	--ember: #ff8a3d;
	--brass: #c9a35a;
	--chalk: #f6efe2;
	--teal: #2fb3a3;
	--serif: Fraunces, "Iowan Old Style", Georgia, serif;
	--mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { background: var(--soot); color: var(--chalk); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--serif); font-size: 17px; line-height: 1.5; font-variation-settings: "opsz" 18, "SOFT" 50; background: var(--soot); overflow-x: hidden; }
a { color: inherit; }
#bench { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; }
body.no-gl #bench { display: none; }
/* until the bench has drawn, its own still stands in, so a step link never opens on black */
body { background: var(--soot) url(poster.jpg) center / cover fixed no-repeat; }
#bench { opacity: 0; transition: opacity 0.6s ease; }
body.lit #bench { opacity: 1; }
body.no-gl { background: var(--soot) url(../og/hat.jpg) center / cover fixed no-repeat; }

/* the bar at the top: whose bench, and which hat */
.top { position: fixed; z-index: 5; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(16px, 3vw, 40px); pointer-events: none; }
.top > * { pointer-events: auto; }
.top::before { content: ""; position: absolute; inset: 0 0 -34px 0; z-index: -1; pointer-events: none; background: linear-gradient(#120b07 70%, rgba(18, 11, 7, 0)); }
.mark { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.mark b { font-style: italic; font-weight: 640; font-size: 26px; font-variation-settings: "opsz" 72, "WONK" 1, "SOFT" 100; color: var(--chalk); letter-spacing: -0.01em; }
.mark span { font-size: 14px; color: var(--brass); }
.switch { display: flex; gap: 6px; padding: 5px; background: rgba(18, 11, 7, 0.62); backdrop-filter: blur(10px); border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(201, 163, 90, 0.35); }
.pick-hat { font: 600 15px/1 var(--serif); color: var(--chalk); background: transparent; border: 0; padding: 10px 14px; border-radius: 4px; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.pick-hat i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.pick-hat[data-hat="trucker"] i { background: var(--blaze); box-shadow: 0 0 10px var(--blaze); }
.pick-hat[data-hat="felt"] i { background: #8a5a3a; box-shadow: 0 0 10px #c48a5a; }
.pick-hat[aria-pressed="true"] { background: var(--paper); color: var(--ink); }

/* the hats: only the open one is in the page */
main { position: relative; z-index: 2; }
body[data-hat="trucker"] .hat[data-hat="felt"], body[data-hat="felt"] .hat[data-hat="trucker"] { display: none; }
.open { min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 clamp(16px, 5vw, 72px) 12vh; }
.open h1 { margin: 0; max-width: 11ch; font-weight: 300; font-size: clamp(52px, 8.6vw, 128px); line-height: 0.92; letter-spacing: -0.035em; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; text-shadow: 0 6px 40px rgba(0, 0, 0, 0.6); }
.open h1 em { font-weight: 500; color: var(--ember); }
.open p { max-width: 30ch; font-size: 20px; color: rgba(246, 239, 226, 0.86); margin: 22px 0 0; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8); }
.open .go { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; font-size: 16px; }
.open .go a { font-weight: 600; color: var(--chalk); text-decoration-color: var(--blaze); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.scrollcue { font-family: var(--mono); font-size: 13px; color: var(--brass); animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 50% { transform: translateY(6px); opacity: 0.6; } }

/* each step is a slip of paper pinned beside the hat */
.step { min-height: 125vh; display: flex; align-items: center; padding: 0 clamp(16px, 4vw, 64px); }
.slip { position: relative; width: min(430px, 40vw); color: var(--ink); background:
	radial-gradient(120% 80% at 20% 0%, rgba(255, 255, 255, 0.35), transparent 60%),
	repeating-linear-gradient(0deg, transparent 0 31px, rgba(92, 69, 48, 0.09) 31px 32px),
	var(--paper);
	padding: 30px 30px 26px; transform: rotate(-0.8deg); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.75), 0 2px 0 rgba(255, 255, 255, 0.4) inset;
	clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%); }
.step:nth-child(odd) .slip { transform: rotate(0.7deg); }
.slip::before { content: ""; position: absolute; top: 12px; left: 50%; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffb27a, var(--blaze) 55%, #8a2a05); box-shadow: 0 3px 4px rgba(0, 0, 0, 0.4); }
.num { font-weight: 200; font-size: 84px; line-height: 0.8; letter-spacing: -0.05em; color: var(--blaze); font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1; font-style: italic; }
.slip h2 { margin: 6px 0 8px; font-weight: 600; font-size: 34px; line-height: 1.02; letter-spacing: -0.02em; font-variation-settings: "opsz" 72, "SOFT" 30; }
.slip p { margin: 0; font-size: 17px; color: var(--ink-2); }
.thermo { margin-top: 16px; display: flex; align-items: baseline; gap: 10px; font-family: var(--mono); font-size: 14px; color: var(--ink-2); }
.thermo b { font-size: 44px; font-weight: 300; color: var(--blaze); letter-spacing: -0.03em; }

/* tools are price tags tied to the slip */
.tags { display: grid; gap: 10px; margin-top: 18px; }
.tag { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 12px 16px 12px 34px; text-decoration: none; color: var(--ink); background: linear-gradient(180deg, #f8efdc, #ecdcbd); clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 50%); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.18)); transition: transform 0.25s ease; }
.tag::before { content: ""; position: absolute; left: 14px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45); }
.tag:hover, .tag:focus-visible { transform: translateX(6px) rotate(-0.6deg); }
.tag strong { font-weight: 650; font-size: 16px; line-height: 1.2; }
.tag .price { font-family: var(--mono); font-weight: 600; font-size: 17px; color: var(--ink); align-self: start; }
.tag small { grid-column: 1 / -1; font-size: 14px; color: var(--ink-2); }
.tag .stars { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.tag .stars b { color: #b2560c; font-weight: 700; }
.tag .under { color: #a23a0c; }
.tag .buy { font-family: var(--mono); font-size: 13px; color: var(--blaze); text-align: right; }

/* where you are, on the right edge */
.rail { position: fixed; z-index: 4; right: clamp(10px, 2vw, 28px); top: 50%; transform: translateY(-50%); display: grid; gap: 6px; font-family: var(--mono); font-size: 13px; }
.rail a { display: flex; justify-content: flex-end; align-items: center; gap: 10px; text-decoration: none; color: rgba(246, 239, 226, 0.45); padding: 3px 0; }
.rail a span { opacity: 0; transform: translateX(6px); transition: 0.25s; }
.rail a::after { content: ""; width: 18px; height: 2px; background: currentColor; transition: width 0.25s; }
.rail a.on { color: var(--ember); }
.rail a.on::after { width: 34px; }
.rail a.on span, .rail:hover a span { opacity: 1; transform: none; }
body.past .rail { opacity: 0; pointer-events: none; }
.rail { transition: opacity 0.3s; }

/* the bench: four kits hung on a brass rod */
.kits { position: relative; padding: 18vh clamp(16px, 5vw, 72px) 10vh; background: linear-gradient(180deg, rgba(18, 11, 7, 0) 0, rgba(18, 11, 7, 0.82) 14vh, var(--soot) 40vh); }
.kits h2, .supply h2 { margin: 0; font-weight: 300; font-size: clamp(44px, 6vw, 84px); line-height: 0.95; letter-spacing: -0.03em; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.kits h2 em, .supply h2 em { color: var(--ember); font-weight: 500; }
.kits > p { max-width: 46ch; color: rgba(246, 239, 226, 0.8); font-size: 18px; }
.rod { position: relative; margin-top: 54px; padding-top: 34px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); align-items: start; }
.rod::before { content: ""; position: absolute; left: -2%; right: -2%; top: 0; height: 9px; border-radius: 5px; background: linear-gradient(180deg, #f1d79b, #a77c34 55%, #5d421a); box-shadow: 0 10px 18px rgba(0, 0, 0, 0.5); }
.kit { position: relative; color: var(--ink); padding: 34px 22px 22px; background: linear-gradient(180deg, #f6ead2, #e7d4b1); transform-origin: 50% -34px; transform: rotate(var(--sway, 0deg)); box-shadow: 0 24px 40px -18px rgba(0, 0, 0, 0.8); clip-path: polygon(14% 0, 86% 0, 100% 9%, 100% 100%, 0 100%, 0 9%); }
.kit::before { content: ""; position: absolute; top: -34px; left: 50%; width: 2px; height: 46px; background: #2b1d10; }
.kit::after { content: ""; position: absolute; top: 12px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--soot); box-shadow: 0 0 0 3px #b8955a; }
.kit:nth-child(1) { --sway: -1.2deg; } .kit:nth-child(2) { --sway: 0.8deg; } .kit:nth-child(3) { --sway: -0.6deg; } .kit:nth-child(4) { --sway: 1.1deg; }
.kit.pick { background: linear-gradient(180deg, #ffd9b8, #ffb27a); box-shadow: 0 0 0 0 transparent, 0 30px 80px -20px rgba(255, 120, 40, 0.65); }
.kit .for { font-size: 15px; color: var(--ink-2); font-style: italic; }
.kit h3 { margin: 2px 0 10px; font-size: 26px; line-height: 1.05; font-weight: 600; letter-spacing: -0.02em; }
.kit .sum { font-family: var(--mono); font-size: 34px; font-weight: 300; letter-spacing: -0.04em; }
.kit .sum small { display: block; font-size: 13px; letter-spacing: 0; color: var(--ink-2); }
.kit ul { list-style: none; margin: 14px 0 0; padding: 0; font-size: 15px; }
.kit li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px dashed rgba(92, 69, 48, 0.35); }
.kit li span:last-child { font-family: var(--mono); font-size: 14px; white-space: nowrap; }
.kit li a { text-decoration: none; }
.kit .why { margin: 12px 0 0; font-size: 15px; color: var(--ink-2); }
.kit .start { position: absolute; top: 16px; right: 14px; transform: rotate(8deg); font-style: italic; font-weight: 700; font-size: 20px; color: #b23a08; font-variation-settings: "WONK" 1, "SOFT" 100; }

/* where the pieces come from: an order slip */
.supply { position: relative; padding: 8vh clamp(16px, 5vw, 72px) 12vh; background: var(--soot); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.order { color: var(--ink); background: repeating-linear-gradient(0deg, transparent 0 35px, rgba(92, 69, 48, 0.12) 35px 36px), var(--paper); padding: 26px 30px; transform: rotate(0.5deg); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.9); }
.order h3 { margin: 18px 0 4px; font-size: 22px; font-style: italic; font-weight: 500; color: #8a3a10; }
.order h3:first-child { margin-top: 0; }
.order a { display: flex; gap: 10px; align-items: baseline; text-decoration: none; padding: 5px 0; font-size: 17px; }
.order a span:first-child { flex: 0 1 auto; }
.order a i { flex: 1 1 auto; border-bottom: 2px dotted rgba(92, 69, 48, 0.4); transform: translateY(-4px); min-width: 12px; }
.order a span:last-child { font-family: var(--mono); font-size: 14px; color: var(--ink-2); }
.order a:hover span:first-child { color: #b23a08; }
.later { margin-top: 22px; font-size: 16px; color: rgba(246, 239, 226, 0.75); max-width: 40ch; }
.supply .note { font-size: 16px; color: rgba(246, 239, 226, 0.75); max-width: 38ch; }

footer { position: relative; z-index: 2; background: #0b0704; color: rgba(246, 239, 226, 0.7); padding: 30px clamp(16px, 5vw, 72px) 26px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; font-size: 15px; }
footer a { text-decoration-color: rgba(201, 163, 90, 0.6); text-underline-offset: 4px; }
footer .access { display: inline-flex; align-items: center; }
footer .access svg { width: 18px; height: 18px; }
footer .build-stamp { font: 400 13px/1.4 var(--mono) !important; color: rgba(246, 239, 226, 0.55) !important; }
footer .grow { flex: 1; }

@media (max-width: 759px) {
	body { font-size: 16px; }
	.top { padding: 12px 14px; flex-wrap: wrap; }
	.mark span { display: none; }
	.mark b { font-size: 22px; }
	.pick-hat { padding: 9px 10px; font-size: 14px; }
	.open { padding-bottom: 7vh; }
	.open p { font-size: 18px; }
	.step { min-height: 120vh; align-items: flex-end; padding: 0 12px 6vh; }
	.slip { width: 100%; padding: 24px 20px 20px; }
	.num { font-size: 60px; }
	.slip h2 { font-size: 28px; }
	.rail { display: none; }
	.rod { grid-template-columns: 1fr; gap: 40px; }
	.supply { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.scrollcue { animation: none; }
	.tag, .rail a span, .rail a::after { transition: none; }
}
