/* fontombo — design system. See BRAND.md */
:root {
  --ink: #16141A; --ink-2: #2A2730; --ink-3: #423E48;
  --paper: #F7F4EE; --paper-2: #EFEAE1; --card: #FFFDF9; --line: #E2DCD0; --muted: #6E6A73;
  --h: #FF4D2E; --a: #FFB01F; --b: #2B4CFF;
  --h-soft: #FFE4DD; --a-soft: #FFF0CF; --b-soft: #E3E8FF;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --ui: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --r: 18px; --r-sm: 12px;
  --ease: cubic-bezier(.2, .9, .25, 1.15); --out: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 1px 0 rgba(22, 20, 26, .04), 0 12px 32px -12px rgba(22, 20, 26, .18);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--ui); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
::selection { background: var(--a); color: var(--ink); }
a { color: var(--b); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, .display { font-family: var(--display); font-weight: 600; font-variation-settings: 'SOFT' 50, 'WONK' 0; letter-spacing: -0.02em; line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 0 0 .5em; }
h3 { font-size: 1.25rem; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 780px; }
.center { text-align: center; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--b); outline-offset: 3px; border-radius: 6px; }

/* ---------- atoms ---------- */
.eyebrow { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--h); box-shadow: 12px 0 0 var(--a), 24px 0 0 var(--b); margin-right: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); padding: 11px 20px; border-radius: 999px; font: 600 14.5px var(--ui); cursor: pointer; text-decoration: none !important; transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 -1px var(--ink); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--h); border-color: var(--h); box-shadow: 0 6px 0 -1px var(--ink); color: #fff; }
.btn.hot { background: var(--h); border-color: var(--h); color: #fff; }
.btn.big { padding: 15px 26px; font-size: 16px; }
.btn.small { padding: 7px 14px; font-size: 13px; }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 24px 0; }
kbd { font: 500 11px var(--mono); border: 1px solid currentColor; border-bottom-width: 2px; border-radius: 5px; padding: 1px 5px; opacity: .7; }
.role { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font: 700 11px var(--mono); color: #fff; flex: none; }
.role.h { background: var(--h); } .role.a { background: var(--a); color: var(--ink); } .role.b { background: var(--b); }
.mood { font: 500 11px var(--mono); text-transform: lowercase; padding: 3px 8px; border-radius: 999px; background: var(--paper-2); color: var(--ink-3); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--out), transform .7s var(--out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }

/* ---------- wordmark + header ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; }
.logo svg { width: 34px; height: 34px; transition: transform .5s var(--ease); }
.logo:hover svg { transform: rotate(-12deg) scale(1.06); }
.wordmark { font: 600 24px/1 var(--display); font-variation-settings: 'SOFT' 50, 'opsz' 144; letter-spacing: -0.035em; white-space: nowrap; }
.wordmark i { font-style: normal; display: inline-block; transition: transform .35s var(--ease); }
.wordmark .o1 { font-style: italic; font-weight: 400; color: var(--h); }
.wordmark .o2 { font-family: var(--ui); font-weight: 600; font-size: .9em; color: var(--a); letter-spacing: 0; }
.wordmark .o3 { font-family: var(--mono); font-weight: 500; font-size: .86em; color: var(--b); letter-spacing: 0; }
.logo:hover .o1 { transform: translateY(-3px) rotate(-8deg); }
.logo:hover .o2 { transform: translateY(-3px); transition-delay: .05s; }
.logo:hover .o3 { transform: translateY(-3px) rotate(8deg); transition-delay: .1s; }

.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.hdr { display: flex; align-items: center; gap: 28px; height: 68px; }
.hdr nav { display: flex; gap: 2px; flex: 1; }
.hdr nav a { color: var(--ink-3); padding: 7px 12px; border-radius: 999px; font-size: 14.5px; font-weight: 500; transition: background .15s, color .15s; }
.hdr nav a:hover, .hdr nav a[aria-current] { color: var(--ink); background: var(--paper-2); text-decoration: none; }

/* ---------- footer ---------- */
.site-footer { margin-top: 120px; background: var(--ink); color: #C9C5CE; padding: 70px 0 30px; overflow: hidden; }
.ft-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.ft-grid h4 { color: #fff; margin: 0 0 14px; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.ft-grid a { display: block; color: #C9C5CE; padding: 3px 0; font-size: 15px; }
.ft-grid a:hover { color: #fff; }
.ft-grid p { max-width: 34ch; }
.ft-giant { font: 600 clamp(4rem, 17vw, 15rem)/.8 var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 144; letter-spacing: -0.06em; color: #fff; margin: 60px 0 10px; white-space: nowrap; user-select: none; }
.ft-giant i { font-style: normal; display: inline-block; }
.ft-giant .o1 { font-style: italic; font-weight: 400; color: var(--h); }
.ft-giant .o2 { font-family: var(--ui); font-weight: 600; font-size: .88em; color: var(--a); letter-spacing: 0; }
.ft-giant .o3 { font-family: var(--mono); font-weight: 500; font-size: .84em; color: #6F86FF; letter-spacing: 0; }
.ft-small { font: 12px var(--mono); color: #8C8892; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid #2E2B33; padding-top: 20px; }

/* ---------- page heads, crumbs ---------- */
.crumbs { font: 12.5px var(--mono); color: var(--muted); margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--muted); }
.crumbs .sep { opacity: .4; }
.page-head { margin: 26px 0 34px; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 14px; }
.page-head .sub { color: var(--ink-3); font-size: 1.15rem; margin: 0; max-width: 62ch; }
.byline { font: 12px var(--mono); color: var(--muted); margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.chips span, .chips button { font: 500 12px var(--mono); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; color: var(--ink-3); }
.chips button { cursor: pointer; transition: all .15s; }
.chips button:hover { border-color: var(--ink); }
.chips button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* rail layout */
.with-rail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; }
.rail-inner { position: sticky; top: 92px; padding-top: 90px; display: grid; gap: 20px; }
@media (max-width: 1100px) { .with-rail { grid-template-columns: minmax(0, 1fr); } .rail { display: none; } }
section.block { margin-top: 72px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); max-width: 52ch; }

/* ---------- prose ---------- */
.prose { font-size: 17.5px; line-height: 1.75; max-width: 70ch; color: #2D2A31; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { font-size: 1.8rem; margin: 1.8em 0 .5em; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: .4em 0; }
.prose li::marker { color: var(--h); }
.prose code { font: .86em var(--mono); background: var(--paper-2); border-radius: 6px; padding: 2px 6px; }
.prose pre { background: var(--ink); color: #EDEAF0; border-radius: var(--r-sm); padding: 18px 20px; overflow-x: auto; font: 14px/1.6 var(--mono); }
.prose pre code { background: none; padding: 0; font-size: inherit; }
.prose a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--b) 35%, transparent); text-underline-offset: 3px; }
.guide-pair { margin: 26px 0; max-width: 580px; }

/* ---------- ads ---------- */
.ad { margin: 44px 0; min-height: 120px; text-align: center; background: var(--paper-2); border-radius: var(--r-sm); padding: 10px; }
.ad-label { display: block; font: 500 10px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 6px; }
.ad-placeholder { display: grid; place-items: center; color: #A29C92; font: 12px var(--mono); min-height: 140px; border: 1.5px dashed #D5CEC2; background: repeating-linear-gradient(-45deg, transparent 0 12px, rgba(0, 0, 0, .025) 12px 24px); }
.ad-rail { min-height: 600px; margin: 0; }
.carbon-ph { min-height: 130px; margin: 0; }
.affiliates { margin: 40px 0; padding: 20px 22px; border-radius: var(--r); background: var(--a-soft); }
.affiliates h3 { margin: 0 0 8px; font-size: 1.1rem; }
.aff-note { font: 11.5px var(--mono); color: var(--muted); margin: 10px 0 0; }

/* ---------- pair cards ---------- */
.pair-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.pair-item { display: flex; flex-direction: column; gap: 10px; transition: opacity .35s var(--out), transform .35s var(--out); }
.pair-item.out { opacity: 0; transform: scale(.96); pointer-events: none; position: absolute; visibility: hidden; }
.pair-card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: var(--ink); text-decoration: none !important; transition: transform .35s var(--ease), box-shadow .35s var(--out), border-color .2s; }
.pair-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--h) 0 50%, var(--b) 50% 100%); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--out); }
.pair-card:hover { transform: translateY(-5px) rotate(-.4deg); box-shadow: var(--shadow); border-color: transparent; }
.pair-card:hover::before { transform: scaleX(1); }
.pc-preview { padding: 26px 26px 16px; flex: 1; }
.pc-h { font-size: 31px; line-height: 1.08; margin-bottom: 12px; letter-spacing: -0.01em; }
.pc-b { font-size: 15.5px; line-height: 1.6; color: #45414B; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-meta { padding: 12px 18px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; border-top: 1px dashed var(--line); }
.pc-font { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.pc-font .role { width: 18px; height: 18px; font-size: 10px; border-radius: 5px; }
.pc-go { margin-left: auto; font: 500 12px var(--mono); color: var(--muted); transition: color .2s, transform .3s var(--ease); }
.pair-card:hover .pc-go { color: var(--h); transform: translateX(3px); }
.pair-reason { margin: 0 4px; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ---------- font tiles ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; margin: 18px 0; }
.font-tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 18px 18px; color: var(--ink); text-decoration: none !important; display: grid; gap: 10px; transition: transform .3s var(--ease), box-shadow .3s, border-color .2s; }
.font-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.ft-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font: 500 12px var(--mono); color: var(--muted); }
.ft-top b { font: 600 14px var(--ui); color: var(--ink); }
.rank { color: var(--h); margin-right: 6px; font: 600 12px var(--mono); }
.ft-sample { font-size: 27px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- specimen (pairing / hero preview) ---------- */
.specimen { --sp-bg: var(--card); --sp-ink: var(--ink); --sp-sub: #4B4751; --sp-accent: var(--h); background: var(--sp-bg); color: var(--sp-ink); border: 1px solid var(--line); border-radius: var(--r); padding: 34px 36px; transition: background .4s var(--out), color .4s var(--out); }
.specimen.big { padding: 52px 56px; --sp-scale: 1; }
.specimen[data-theme="ink"] { --sp-bg: var(--ink); --sp-ink: #F4F1EC; --sp-sub: #B9B4BF; --sp-accent: var(--a); border-color: var(--ink); }
.specimen[data-theme="cobalt"] { --sp-bg: var(--b); --sp-ink: #fff; --sp-sub: #D8DEFF; --sp-accent: var(--a); border-color: var(--b); }
.specimen[data-theme="vermilion"] { --sp-bg: var(--h); --sp-ink: #fff; --sp-sub: #FFE1D9; --sp-accent: var(--ink); border-color: var(--h); }
.specimen[data-theme="marigold"] { --sp-bg: var(--a); --sp-ink: var(--ink); --sp-sub: #4A3A12; --sp-accent: var(--ink); border-color: var(--a); }
.sp-eyebrow { font-family: var(--bf); font-weight: 600; font-size: calc(12px * var(--sp-scale, 1)); text-transform: uppercase; letter-spacing: .14em; color: var(--sp-accent); margin-bottom: 16px; }
.sp-h { font-family: var(--hf); font-weight: var(--hw); font-size: calc(40px * var(--sp-scale, 1)); line-height: 1.08; letter-spacing: -0.015em; margin-bottom: 16px; text-wrap: balance; }
.specimen.big .sp-h { font-size: calc(clamp(38px, 5.2vw, 62px) * var(--sp-scale, 1)); }
.sp-lead { font-family: var(--bf); font-weight: var(--bw); font-size: calc(19px * var(--sp-scale, 1)); line-height: 1.5; color: var(--sp-sub); margin: 0 0 20px; }
.sp-b { font-family: var(--bf); font-weight: var(--bw); font-size: calc(16.5px * var(--sp-scale, 1)); line-height: 1.7; margin: 0 0 14px; max-width: 66ch; }
.sp-h2 { font-family: var(--hf); font-weight: var(--hw); font-size: calc(27px * var(--sp-scale, 1)); line-height: 1.2; margin: 28px 0 10px; }
.sp-swap { animation: spSwap .5s var(--out); }
@keyframes spSwap { from { opacity: .2; transform: translateY(6px); filter: blur(3px); } }
.sp-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 12px; font: 500 12px var(--mono); color: var(--muted); }
.sp-toolbar .grp { display: inline-flex; align-items: center; gap: 8px; }
.swatches { display: inline-flex; gap: 6px; }
.swatches button { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--line); cursor: pointer; transition: transform .2s var(--ease); padding: 0; }
.swatches button:hover { transform: scale(1.15); }
.swatches button.on { box-shadow: 0 0 0 2px var(--ink); }
input[type=range] { accent-color: var(--h); width: 120px; }

/* ---------- font page ---------- */
.tester { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tester-bar { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 500 12px var(--mono); color: var(--muted); background: var(--paper); }
.tester-bar input[type=text] { flex: 1 1 220px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 14px; font: 15px var(--ui); color: var(--ink); outline: none; }
.tester-bar input[type=text]:focus { border-color: var(--ink); }
.tester-bar label { display: inline-flex; align-items: center; gap: 8px; }
.tester-bar .val { min-width: 34px; color: var(--ink); }
.tester-out { padding: 34px 30px 40px; font-size: 72px; line-height: 1.1; word-break: break-word; outline: none; transition: background .3s, color .3s; min-height: 160px; }
.tester-out.dark { background: var(--ink); color: #F4F1EC; }
.waterfall { margin: 18px 0 30px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); padding: 6px 24px; }
.waterfall div { font-size: 26px; line-height: 1.7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid var(--paper-2); }
.waterfall div:last-child { border-bottom: 0; }
.waterfall small { display: inline-block; width: 46px; font: 11px var(--mono); color: var(--muted); }
.alpha { font-size: 26px; line-height: 1.5; letter-spacing: .02em; word-break: break-all; color: var(--ink-3); margin: 0 0 8px; }

/* code */
.code { border-radius: var(--r-sm); overflow: hidden; margin: 16px 0; background: var(--ink); }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; background: var(--ink-2); color: #A9A4AF; font: 12px var(--mono); }
.copy { border: 0; background: var(--h); color: #fff; border-radius: 999px; padding: 5px 12px; font: 600 12px var(--ui); cursor: pointer; transition: transform .2s var(--ease); }
.copy:hover { transform: scale(1.05); }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; color: #EDEAF0; font: 13.5px/1.6 var(--mono); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 20px 0; }
.about-font { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; font-size: 15px; position: relative; }
.about-font h3 { margin: 0 0 10px; display: flex; gap: 10px; align-items: center; }
.about-font p { color: #45414B; margin: 0 0 12px; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }

.faq { margin-top: 64px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 20px; margin: 10px 0; transition: border-color .2s; }
.faq details[open] { border-color: var(--ink); }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; font: 400 22px/1 var(--mono); color: var(--h); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 12px 0 0; color: #45414B; }

/* ---------- HOME ---------- */
.hero { position: relative; padding: 56px 0 70px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); opacity: .55; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(3rem, 7.2vw, 6.4rem); line-height: .95; letter-spacing: -0.04em; margin: 0 0 24px; font-weight: 600; font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; }
.hero h1 .line { display: block; white-space: nowrap; }
.hero h1 .live span { display: inline-block; transition: font-variation-settings .25s ease-out; }
.hero h1 em { font-style: italic; color: var(--h); font-weight: 400; }
.hero h1 .u { position: relative; }
.hero h1 .u::after { content: ''; position: absolute; left: 2%; right: 2%; bottom: .06em; height: .09em; background: var(--a); border-radius: 99px; z-index: -1; transform-origin: left; animation: draw 1.2s .5s var(--out) both; }
@keyframes draw { from { transform: scaleX(0); } }
.lead { font-size: 1.22rem; line-height: 1.55; color: var(--ink-3); max-width: 44ch; margin: 0; }
.hero-note { font: 12px var(--mono); color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
.hero-note span::before { content: '✓ '; color: var(--b); }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding-top: 36px; } }

/* combo machine */
.machine { background: var(--ink); color: #F4F1EC; border-radius: 26px; padding: 18px; box-shadow: 0 40px 80px -30px rgba(22, 20, 26, .55); position: relative; }
.machine::after { content: ''; position: absolute; top: -14px; left: 34px; width: 28px; height: 28px; border-radius: 50%; background: var(--a); box-shadow: 0 0 0 6px var(--paper); }
.m-top { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 14px; font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #8F8A96; }
.m-lights { display: inline-flex; gap: 6px; }
.m-lights i { width: 8px; height: 8px; border-radius: 50%; background: #3A3640; transition: background .2s; }
.machine.spinning .m-lights i { animation: blink .5s infinite alternate; }
.machine.spinning .m-lights i:nth-child(1) { background: var(--h); } .machine.spinning .m-lights i:nth-child(2) { background: var(--a); animation-delay: .15s; } .machine.spinning .m-lights i:nth-child(3) { background: #6F86FF; animation-delay: .3s; }
@keyframes blink { to { opacity: .3; } }
.reels { display: grid; gap: 8px; }
.reel { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px; background: var(--ink-2); border-radius: 14px; padding: 6px 8px 6px 12px; }
.reel .role { width: 26px; height: 26px; font-size: 12px; }
.reel-win { height: 58px; overflow: hidden; position: relative; mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.reel-strip { will-change: transform; }
.reel-strip div { height: 58px; display: flex; align-items: center; font-size: 30px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #F4F1EC; }
.reel-meta { display: flex; align-items: center; gap: 6px; }
.lock { width: 34px; height: 34px; border-radius: 10px; border: 1px solid #3A3640; background: transparent; color: #8F8A96; cursor: pointer; display: grid; place-items: center; transition: all .2s; }
.lock:hover { color: #fff; border-color: #6A6570; }
.lock[aria-pressed="true"] { background: var(--a); color: var(--ink); border-color: var(--a); }
.lock svg { width: 15px; height: 15px; }
.m-preview { margin-top: 12px; border-radius: 16px; background: var(--paper); color: var(--ink); padding: 24px 26px 22px; min-height: 236px; position: relative; overflow: hidden; }
.m-preview .mp-eyebrow { font-family: var(--af); font-weight: var(--aw); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--h); margin-bottom: 10px; }
.m-preview .mp-h { font-family: var(--hf); font-weight: var(--hw); font-size: 38px; line-height: 1.05; letter-spacing: -0.015em; margin-bottom: 12px; text-wrap: balance; }
.m-preview .mp-b { font-family: var(--bf); font-weight: var(--bw); font-size: 15.5px; line-height: 1.6; color: #45414B; margin: 0; }
.m-actions { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.spin-btn { flex: 1; min-width: 180px; height: 58px; border: 0; border-radius: 16px; background: var(--h); color: #fff; font: 600 19px var(--display); font-variation-settings: 'SOFT' 100, 'WONK' 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .18); transition: transform .15s var(--ease), box-shadow .15s; }
.spin-btn:hover { transform: translateY(-2px); }
.spin-btn:active { transform: translateY(2px); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .18); }
.spin-btn svg { width: 20px; height: 20px; transition: transform .6s var(--out); }
.machine.spinning .spin-btn svg { transform: rotate(540deg); }
.spin-btn kbd { color: #fff; opacity: .65; }
.m-open { height: 58px; border-radius: 16px; padding: 0 20px; background: transparent; border: 1px solid #3A3640; color: #F4F1EC; display: inline-flex; align-items: center; gap: 8px; font: 600 14.5px var(--ui); text-decoration: none !important; transition: border-color .2s, background .2s; }
.m-open:hover { border-color: #F4F1EC; background: var(--ink-2); }

/* marquee */
.marquee { border-block: 1px solid var(--line); background: var(--card); overflow: hidden; padding: 16px 0; display: grid; gap: 6px; }
.mq-row { display: flex; width: max-content; animation: mq 70s linear infinite; }
.mq-row.rev { animation-direction: reverse; animation-duration: 85s; }
.marquee:hover .mq-row { animation-play-state: paused; }
.mq-row a { font-size: 40px; line-height: 1.25; color: var(--ink); padding: 0 22px; white-space: nowrap; text-decoration: none !important; transition: color .2s; display: inline-flex; align-items: center; gap: 44px; }
.mq-row a::after { content: '✳'; font: 400 20px var(--ui); color: var(--h); }
.mq-row a:nth-child(3n+2)::after { color: var(--a); }
.mq-row a:nth-child(3n)::after { color: var(--b); }
.mq-row a:hover { color: var(--h); }
@keyframes mq { to { transform: translateX(-50%); } }

/* word tester */
.wt-panel { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 26px; }
.wt-input { width: 100%; border: 0; border-bottom: 2px solid var(--ink); background: transparent; font: 600 clamp(28px, 4.5vw, 48px)/1.2 var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 144; letter-spacing: -0.02em; padding: 6px 0 12px; outline: none; color: var(--ink); }
.wt-input::placeholder { color: #BDB6AA; }
.wt-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0 20px; }
.wt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.wt-tile { background: var(--paper); border-radius: 16px; padding: 18px 18px 14px; color: var(--ink); text-decoration: none !important; display: grid; gap: 10px; min-height: 130px; align-content: space-between; transition: background .25s, color .25s, transform .3s var(--ease); }
.wt-tile:hover { transform: translateY(-3px); }
.wt-tile:nth-child(4n+1):hover { background: var(--h); color: #fff; }
.wt-tile:nth-child(4n+2):hover { background: var(--a); }
.wt-tile:nth-child(4n+3):hover { background: var(--b); color: #fff; }
.wt-tile:nth-child(4n+4):hover { background: var(--ink); color: #fff; }
.wt-text { font-size: 34px; line-height: 1.1; word-break: break-word; }
.wt-name { font: 500 11.5px var(--mono); opacity: .65; display: flex; justify-content: space-between; }

/* moods */
.mood-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.mood-chips button, .mood-chips a { font: 500 14px var(--ui); padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; transition: all .2s var(--ease); text-decoration: none !important; }
.mood-chips button:hover, .mood-chips a:hover { border-color: var(--ink); transform: translateY(-2px); }
.mood-chips button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pair-grid.filtering { position: relative; }

/* stats band */
.stats { background: var(--ink); color: #F4F1EC; border-radius: 30px; padding: 46px 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 80px; }
.stat b { display: block; font: 600 clamp(2.4rem, 5vw, 4rem)/1 var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 144; letter-spacing: -0.03em; margin-bottom: 8px; }
.stat:nth-child(1) b { color: var(--h); } .stat:nth-child(2) b { color: var(--a); } .stat:nth-child(3) b { color: #7D90FF; } .stat:nth-child(4) b { color: #F4F1EC; }
.stat span { font: 500 12.5px var(--mono); color: #A9A4AF; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; padding: 32px 26px; } }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; overflow: hidden; }
.step h3 { margin: 18px 0 6px; }
.step p { margin: 0; color: var(--ink-3); font-size: 15px; }
.step-art { height: 150px; border-radius: 14px; background: var(--paper); position: relative; overflow: hidden; display: grid; place-items: center; }
.art-reels { display: grid; gap: 6px; width: 70%; }
.art-reels i { height: 22px; border-radius: 6px; background: var(--ink); position: relative; overflow: hidden; }
.art-reels i::after { content: ''; position: absolute; left: 10px; top: 7px; height: 8px; width: 55%; border-radius: 4px; background: var(--h); animation: reelArt 2.4s var(--ease) infinite; }
.art-reels i:nth-child(2)::after { background: var(--a); animation-delay: .15s; width: 40%; }
.art-reels i:nth-child(3)::after { background: #7D90FF; animation-delay: .3s; width: 65%; }
@keyframes reelArt { 0%, 30% { transform: translateY(0); } 45% { transform: translateY(-30px); } 46% { transform: translateY(30px); } 60%, 100% { transform: translateY(0); } }
.art-cards { display: flex; gap: 10px; }
.art-cards i { width: 74px; height: 96px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; font: 600 30px var(--display); color: var(--ink); font-style: normal; animation: bob 3s ease-in-out infinite; }
.art-cards i:nth-child(1) { font-family: Georgia, serif; color: var(--h); }
.art-cards i:nth-child(2) { font-family: var(--ui); animation-delay: .3s; color: var(--a); }
.art-cards i:nth-child(3) { font-family: var(--mono); animation-delay: .6s; color: var(--b); }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-2deg); } }
.art-code { width: 78%; background: var(--ink); border-radius: 10px; padding: 14px; display: grid; gap: 7px; }
.art-code i { height: 7px; border-radius: 4px; background: #4A4650; width: 0; animation: type 3s steps(12) infinite; }
.art-code i:nth-child(1) { background: var(--h); --w: 70%; } .art-code i:nth-child(2) { --w: 90%; animation-delay: .3s; } .art-code i:nth-child(3) { background: var(--a); --w: 55%; animation-delay: .6s; } .art-code i:nth-child(4) { --w: 80%; animation-delay: .9s; } .art-code i:nth-child(5) { background: #7D90FF; --w: 40%; animation-delay: 1.2s; }
@keyframes type { 0% { width: 0; } 40%, 100% { width: var(--w); } }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* categories */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 16px; color: var(--ink); text-decoration: none !important; display: grid; gap: 2px; transition: transform .3s var(--ease), background .25s, color .25s; }
.cat-sample { font-size: 64px; line-height: 1.05; margin-bottom: 14px; transition: transform .4s var(--ease); }
.cat-card small { font: 12px var(--mono); color: var(--muted); }
.cat-card:hover { transform: translateY(-4px); }
.cat-card:hover .cat-sample { transform: scale(1.08) rotate(-3deg); }
.cat-card:nth-child(1):hover { background: var(--h); color: #fff; } .cat-card:nth-child(2):hover { background: var(--a); } .cat-card:nth-child(3):hover { background: var(--b); color: #fff; } .cat-card:nth-child(4):hover { background: var(--ink); color: #fff; } .cat-card:nth-child(5):hover { background: var(--h-soft); }
.cat-card:hover small { color: inherit; opacity: .75; }
@media (max-width: 980px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }

/* guides */
.guide-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.guide-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; color: var(--ink); text-decoration: none !important; display: flex; flex-direction: column; gap: 10px; transition: transform .3s var(--ease), box-shadow .3s; position: relative; overflow: hidden; }
.guide-card::before { content: attr(data-n); font: 600 64px/1 var(--display); font-variation-settings: 'SOFT' 100, 'WONK' 1; color: var(--paper-2); position: absolute; right: 18px; top: 10px; transition: color .3s; }
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.guide-card:hover::before { color: var(--a-soft); }
.guide-card h2, .guide-card h3 { margin: 0; font-size: 1.35rem; position: relative; max-width: calc(100% - 78px); }
.guide-card p { color: var(--ink-3); margin: 0; flex: 1; font-size: 15px; position: relative; }
.guide-card span { font: 500 12.5px var(--mono); color: var(--h); }
.guide-list li { margin: 8px 0; }

/* CTA band */
.cta-band { margin-top: 90px; background: var(--h); color: #fff; border-radius: 34px; padding: 64px 48px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(2.2rem, 5vw, 4rem); margin: 0; line-height: 1; letter-spacing: -0.035em; font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; max-width: 14ch; position: relative; z-index: 1; }
.cta-band .btn { background: var(--ink); border-color: var(--ink); color: #fff; position: relative; z-index: 1; }
.cta-band .btn:hover { background: #fff; color: var(--ink); border-color: #fff; box-shadow: 0 6px 0 -1px var(--ink); }
.cta-band .glyph { position: absolute; right: -30px; bottom: -120px; font: 400 420px/1 var(--display); font-style: italic; font-variation-settings: 'SOFT' 100, 'WONK' 1; color: rgba(255, 255, 255, .13); pointer-events: none; animation: sway 8s ease-in-out infinite; }
@keyframes sway { 50% { transform: rotate(-6deg) translateY(-10px); } }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; padding: 44px 28px; } }

/* fonts index */
.filter-bar { display: grid; gap: 12px; position: sticky; top: 68px; background: var(--paper); padding: 12px 0; z-index: 5; }
.filter-bar input { width: 100%; padding: 14px 18px; border: 1.5px solid var(--line); border-radius: 999px; font: 16px var(--ui); background: var(--card); outline: none; }
.filter-bar input:focus { border-color: var(--ink); }
.best-links { font-size: 14px; color: var(--muted); }
.font-index { list-style: none; padding: 0; columns: 4 230px; column-gap: 28px; }
.font-index li { break-inside: avoid; padding: 5px 0; display: flex; justify-content: space-between; gap: 8px; font-size: 14.5px; border-bottom: 1px solid var(--paper-2); }
.font-index a { color: var(--ink); }
.font-index a:hover { color: var(--h); }
.font-index small { font: 10.5px var(--mono); color: var(--muted); }
.link-cols { columns: 3 260px; column-gap: 28px; padding: 0; list-style: none; font-size: 14.5px; }
.link-cols li { padding: 4px 0; break-inside: avoid; }
.link-cols a { color: var(--ink); } .link-cols a:hover { color: var(--h); }

/* contact */
.contact-form { display: grid; gap: 16px; max-width: 540px; margin: 22px 0; }
.contact-form label { display: grid; gap: 6px; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-form input, .contact-form textarea { font: 16px var(--ui); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); outline: none; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--ink); }
.contact-form .hp { position: absolute; left: -9999px; }
.contact-form button { justify-self: start; }

.toast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px; font: 500 14px var(--ui); opacity: 0; transition: .3s var(--ease); pointer-events: none; z-index: 60; display: inline-flex; gap: 8px; align-items: center; }
.toast::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--a); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 860px) {
  .hdr nav { display: none; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .wrap { padding: 0 18px; }
  .specimen.big { padding: 30px 24px; }
  .tester-out { font-size: 48px; padding: 24px 20px; }
  .reel-strip div { font-size: 24px; }
  .m-preview .mp-h { font-size: 30px; }
  .mq-row a { font-size: 30px; }
}

/* =================== mobile & touch =================== */
html { -webkit-tap-highlight-color: transparent; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; place-items: center; align-content: center; gap: 5px; padding: 0; }
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mnav { display: none; }
@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .hdr { gap: 10px; height: 62px; }
  .hdr .logo { margin-right: auto; }
  .hdr-cta { padding: 8px 13px; font-size: 13px; }
  .logo svg { width: 30px; height: 30px; }
  .wordmark { font-size: 21px; }
  .mnav { display: grid; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 18px 22px; gap: 2px; box-shadow: 0 30px 40px -30px rgba(22, 20, 26, .35); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .4s var(--out), visibility 0s .4s; }
  .site-header.menu-open .mnav { clip-path: inset(0 0 -60px 0); visibility: visible; transition: clip-path .45s var(--out); }
  .site-header.menu-open { border-bottom-color: var(--line); background: var(--paper); }
  .mnav > a { display: flex; justify-content: space-between; align-items: center; font: 600 30px/1.1 var(--display); font-variation-settings: 'SOFT' 100, 'WONK' 1; letter-spacing: -0.02em; color: var(--ink); padding: 12px 2px; border-bottom: 1px solid var(--line); text-decoration: none !important; }
  .mnav > a span { font: 400 18px var(--mono); color: var(--h); }
  .site-header.menu-open .mnav > a { animation: mnavIn .5s var(--out) both; animation-delay: calc(var(--i) * 50ms); }
  @keyframes mnavIn { from { opacity: 0; transform: translateY(-8px); } }
  .mnav-moods { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 14px; }
  .mnav-moods a { font: 500 13px var(--ui); padding: 8px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
  body.no-scroll { overflow: hidden; }

  section.block { margin-top: 56px; }
  .section-head { margin-bottom: 18px; }
  .page-head { margin: 18px 0 24px; }
  .page-head .sub { font-size: 1.05rem; }
  .crumbs { margin-top: 18px; }
  .filter-bar { top: 62px; }

  /* horizontal, swipeable chip rows instead of wrapping into 3 lines */
  .mood-chips, .wt-tabs, #catFilter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -18px; padding: 2px 18px 4px; scroll-snap-type: x proximity; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 28px), transparent); }
  .mood-chips::-webkit-scrollbar, .wt-tabs::-webkit-scrollbar, #catFilter::-webkit-scrollbar { display: none; }
  .mood-chips > *, .wt-tabs > *, #catFilter > * { flex: none; scroll-snap-align: start; }
  .mood-chips button, .mood-chips a { padding: 10px 16px; }

  /* hero + machine */
  .hero { padding: 26px 0 44px; }
  .hero .actions .btn { flex: 1 1 auto; }
  .machine { padding: 14px; border-radius: 22px; }
  .reel { padding: 4px 6px 4px 10px; }
  .lock { width: 42px; height: 42px; }
  .m-preview { padding: 20px; min-height: 0; }
  .m-actions { flex-direction: column; align-items: stretch; }
  .m-open { justify-content: center; height: 50px; }
  .marquee { padding: 12px 0; }

  /* word tester: 2 compact columns */
  .wt-panel { padding: 18px; border-radius: 20px; }
  .wt-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .wt-tile { min-height: 104px; padding: 12px 12px 10px; border-radius: 12px; }
  .wt-text { font-size: 21px; }
  .wt-name { font-size: 10px; }

  .pair-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pc-preview { padding: 20px 20px 12px; }
  .pc-h { font-size: 27px; }
  .stats { gap: 22px 16px; margin-top: 56px; }
  .cat-sample { font-size: 48px; }
  .cta-band { margin-top: 60px; border-radius: 26px; }
  .cta-band .glyph { font-size: 300px; bottom: -90px; }
  .site-footer { margin-top: 80px; padding-top: 50px; }

  /* pages */
  .tester-bar { padding: 12px; gap: 10px 16px; }
  .tester-bar input[type=text] { flex-basis: 100%; font-size: 16px; padding: 10px 14px; }
  .tester-bar label:has(input[type=range]) { flex: 1 1 140px; }
  .tester-bar input[type=range] { flex: 1; }
  .tester-bar input[type=checkbox] { width: 20px; height: 20px; }
  .waterfall div { font-size: 21px; }
  .alpha { font-size: 20px; }
  .sp-toolbar { gap: 12px; }
  .sp-toolbar .grp { width: 100%; justify-content: space-between; }
  .sp-toolbar input[type=range] { flex: 1; max-width: 220px; }
  .swatches { gap: 10px; }
  .swatches button { width: 32px; height: 32px; }
  .font-index li { padding: 10px 0; font-size: 15.5px; }
  .link-cols li { padding: 8px 0; }
  .code pre { font-size: 12.5px; }
  .faq summary { padding: 4px 0; }
  .prose { font-size: 17px; }
}
@media (hover: none) {
  .spin-btn kbd { display: none; }
  .pair-card:hover, .font-tile:hover, .guide-card:hover, .cat-card:hover, .wt-tile:hover { transform: none; }
  .pair-card:active, .font-tile:active, .wt-tile:active, .cat-card:active, .guide-card:active { transform: scale(.985); transition-duration: .1s; }
}
@media (max-width: 359px) {
  .hdr-cta { display: none; }
}
.form-error { color: #B42318; background: #FEE4E2; border-radius: 12px; padding: 10px 14px; margin: 0; font-size: 14px; }

/* AdSense marks empty slots; never show visitors a blank box */
.ad:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
