/* HARSH — harshapp.com. Same tokens as theme/tokens.ts: blackout, bone, acid highlighter, square corners. */
:root {
  --bg: #0b0b0a;
  --raised: #151514;
  --fg: #f4f2ec;
  --soft: #d6d3cb;
  --muted: #8f8c84;
  --line: #2a2a27;
  --border: #3a3a36;
  --accent: #e2ff3d;
  --display: 'Anton', Impact, 'Arial Narrow Bold', sans-serif;
  --body: 'Archivo', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --serif: 'Instrument Serif', Georgia, serif;
  --gutter: 20px;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--fg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.5 var(--body);
  background: var(--bg);
  color: var(--soft);
  min-height: 100vh;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: url('grain.png') repeat;
  opacity: 0.08;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 50;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--fg); }
::selection { background: var(--accent); color: var(--bg); }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---- type ---- */
.display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.96;
  letter-spacing: -0.005em;
  color: var(--fg);
  margin: 0;
}
.mono {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.aside {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.25;
  color: var(--soft);
  margin: 0;
}
/* Inline-block so the acid box follows the tight line height instead of Anton's tall content area. */
mark {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  padding: 0.03em 0.1em 0;
  line-height: inherit;
  vertical-align: baseline;
}
.dot { color: var(--accent); }

/* ---- header / footer ---- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  border-bottom: 1px solid var(--line);
}
.wordmark { font-family: var(--display); font-size: 26px; line-height: 1; color: var(--fg); letter-spacing: 0.01em; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav .mono:hover { color: var(--fg); }

.foot { border-top: 1px solid var(--line); padding-top: 32px; padding-bottom: 48px; display: grid; gap: 16px; }
.foot .links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot p { margin: 0; font-size: 13px; color: var(--muted); max-width: 60ch; }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  border: 2px solid var(--fg);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  white-space: nowrap;
}
.btn:hover { background: var(--fg); color: var(--bg); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn.primary:hover { background: var(--fg); border-color: var(--fg); }
.btn.small { height: 40px; padding: 0 14px; font-size: 12px; }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- sections ---- */
section { padding-top: 72px; padding-bottom: 72px; border-bottom: 1px solid var(--line); }
.eyebrow { margin-bottom: 20px; }
.hero { padding-top: 88px; }
.hero h1 { font-size: clamp(56px, 10.5vw, 136px); max-width: 13ch; }
.hero .aside { margin: 28px 0 36px; max-width: 34ch; }
.hero .fine { margin-top: 18px; }

.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid > * { background: var(--bg); padding: 24px; }
.roasts { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.roast .display { font-size: clamp(28px, 3vw, 34px); margin-top: 14px; }
.steps { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.step .num { font-family: var(--display); font-size: 64px; line-height: 1; color: var(--accent); }
.step h3 { font-size: 28px; margin: 16px 0 10px; }
.step p { margin: 0; color: var(--soft); }

.levels { display: grid; border-top: 1px solid var(--line); }
.level { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.level .idx { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.level h3 { font-size: clamp(30px, 4.4vw, 48px); }
.level p { grid-column: 2; margin: 6px 0 0; color: var(--soft); }
.level .tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; padding: 4px 8px; border: 1px solid var(--border); color: var(--muted); }
.level .tag.pro { background: var(--fg); border-color: var(--fg); color: var(--bg); }

.nomercy { position: relative; }
.nomercy:not(.open) .roasts { filter: blur(9px); user-select: none; pointer-events: none; }
.nomercy .veil { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 20px; text-align: center; padding: 24px; }
.nomercy.open .veil { display: none; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.split h2 { font-size: clamp(44px, 7vw, 96px); }
.split ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.split li { padding-left: 22px; position: relative; color: var(--soft); }
.split li::before { content: ''; position: absolute; left: 0; top: 9px; width: 10px; height: 10px; background: var(--accent); }

.cta { padding-top: 96px; padding-bottom: 96px; }
.cta h2 { font-size: clamp(56px, 12vw, 150px); margin-bottom: 36px; }

/* ---- content pages (support, legal) ---- */
.page { padding-top: 56px; padding-bottom: 72px; max-width: calc(72ch + 2 * var(--gutter)); }
.page h1 { font-size: clamp(48px, 9vw, 110px); margin-bottom: 8px; }
.page h2 { font-size: clamp(28px, 4vw, 40px); margin: 44px 0 10px; }
.page h3 { font-family: var(--body); font-weight: 700; font-size: 17px; color: var(--fg); margin: 28px 0 6px; }
.page p { margin: 0 0 14px; }
.page ul { margin: 0 0 14px; padding-left: 22px; }
.page li { margin-bottom: 6px; }
.page li::marker { color: var(--accent); }
.page strong { color: var(--fg); font-weight: 700; }
.page a { text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
.page a:hover { text-decoration-color: var(--accent); }
.page .updated { margin-bottom: 36px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-family: var(--body); font-weight: 500; color: var(--fg); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--mono); color: var(--accent); }
.faq details[open] summary::after { content: '–'; }
.faq details p, .faq details ul { margin-bottom: 18px; }

.nf { padding-top: 120px; padding-bottom: 120px; }
.nf h1 { font-size: clamp(56px, 12vw, 150px); margin-bottom: 32px; }

@media (max-width: 720px) {
  section { padding-top: 56px; padding-bottom: 56px; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .level { grid-template-columns: 40px 1fr auto; }
  .nav .hide-s { display: none; }
}
