/* ============================================================
   Alpdep — alpine-themed Minecraft server plugin landing
   Two themes:  data-theme="light"  Summer snowfield
                data-theme="dark"   Midnight pine forest
============================================================ */

/* ---------- LIGHT · Summer snowfield ---------- */
:root,
[data-theme="light"] {
  --bg:        #F5F1E8;   /* warm cream paper */
  --bg-2:      #FFFFFF;   /* snow */
  --bg-3:      #ECE6D6;   /* parchment */
  --ink:       #1A2620;   /* deep forest */
  --ink-2:     #4A5651;
  --muted:     #8A938E;
  --line:      #D9D2BF;
  --line-2:    #C9C0AA;

  --pine:      #2D4A2B;   /* pine green */
  --lichen:    #6B7F4A;
  --rust:      #B8593A;   /* trail marker */
  --ice:       #6E8B97;
  --amber:     #B07A2A;

  --accent:    var(--pine);
  --accent-2:  var(--rust);

  --grain-opacity: 0.30;
  --grain-blend:   multiply;

  --ridge:     #C9D6CE;
  --ridge-2:   #B4C2B7;

  --shadow-1:  0 1px 0 rgba(26,38,32,.04), 0 8px 24px -16px rgba(26,38,32,.18);
  --shadow-2:  0 1px 0 rgba(26,38,32,.05), 0 24px 60px -28px rgba(26,38,32,.25);
}

/* ---------- DARK · Midnight pine forest ---------- */
[data-theme="dark"] {
  --bg:        #0E1612;   /* deep forest night */
  --bg-2:      #141F1A;
  --bg-3:      #0A110D;
  --ink:       #ECE5D2;   /* warm cream */
  --ink-2:     #A8A797;
  --muted:     #5C6359;
  --line:      #1E2A24;
  --line-2:    #2A3831;

  --pine:      #8DB87E;   /* lichen glow */
  --lichen:    #B4C68A;
  --rust:      #D27A4D;   /* lantern */
  --ice:       #A8C5D1;
  --amber:     #D9A05B;   /* lantern amber */

  --accent:    var(--lichen);
  --accent-2:  var(--amber);

  --grain-opacity: 0.40;
  --grain-blend:   screen;

  --ridge:     #142019;
  --ridge-2:   #0C1612;

  --shadow-1:  0 1px 0 rgba(0,0,0,.4), 0 8px 24px -16px rgba(0,0,0,.6);
  --shadow-2:  0 1px 0 rgba(0,0,0,.4), 0 24px 60px -28px rgba(0,0,0,.7);
}

/* ---------- TOKENS ---------- */
:root {
  --serif: "Fraunces", "Iowan Old Style", "Apple Garamond", "Baskerville", "Times New Roman", serif;
  --sans:  "Instrument Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --max:    1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --pad:    clamp(20px, 4vw, 40px);
  --radius: 4px;

  --t-fast: 160ms cubic-bezier(.2,.7,.2,1);
  --t-mid:  280ms cubic-bezier(.2,.7,.2,1);
  --t-slow: 520ms cubic-bezier(.2,.7,.2,1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background var(--t-mid), color var(--t-mid);
  background-image:
    radial-gradient(900px 480px at 88% -8%, color-mix(in oklab, var(--pine) 10%, transparent), transparent 60%),
    radial-gradient(700px 480px at -8% 110%, color-mix(in oklab, var(--rust) 8%, transparent), transparent 60%);
}

body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: var(--grain-opacity);
  mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.94  0 0 0 0 0.92  0 0 0 0 0.87  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

::selection { background: var(--accent); color: var(--bg); }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 2; }

/* ---------- TOP BAR ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
  transition: background var(--t-mid), border-color var(--t-mid);
}
.top__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  height: 68px;
}
@media (max-width: 720px) {
  .top__row { grid-template-columns: auto 1fr auto; gap: 12px; }
  .top__nav { display: none !important; }
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--ink);
}
.brand__mark { width: 26px; height: 26px; color: var(--accent); transition: color var(--t-fast); }
.brand:hover .brand__mark { color: var(--accent-2); }
.brand__name { font-weight: 500; }
.brand__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 55%, transparent); }
  50%      { box-shadow: 0 0 0 7px color-mix(in oklab, var(--accent) 0%, transparent); }
}

.top__nav {
  display: flex; align-items: center; gap: 28px;
  justify-self: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.top__nav a { position: relative; transition: color var(--t-fast); padding: 4px 0; }
.top__nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 1px; background: var(--accent);
  transition: right var(--t-mid);
}
.top__nav a:hover { color: var(--ink); }
.top__nav a:hover::after { right: 0; }

.top__tools { display: inline-flex; align-items: center; gap: 8px; }

/* theme toggle */
.theme {
  width: 36px; height: 36px;
  display: inline-grid; place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-2);
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.theme:hover { color: var(--ink); border-color: var(--line-2); background: var(--bg-3); }
.theme__sun, .theme__moon { width: 16px; height: 16px; }
[data-theme="light"] .theme__moon { display: none; }
[data-theme="dark"]  .theme__sun  { display: none; }

/* ---------- HIDDEN SWIRL — lights up on hover ---------- */
.swirl {
  --sw-size: 34px;
  position: relative;
  width: var(--sw-size);
  height: var(--sw-size);
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  transition: color var(--t-fast),
              border-color var(--t-mid),
              background var(--t-mid),
              box-shadow var(--t-mid);
}
.swirl__mark {
  width: 18px;
  height: 18px;
  opacity: 0.35;
  transition: opacity var(--t-fast),
              transform var(--t-slow),
              color var(--t-fast),
              filter var(--t-mid);
}
.swirl:hover,
.swirl:focus-visible {
  color: var(--accent);
  background: color-mix(in oklab, var(--accent) 8%, transparent);
  border-color: color-mix(in oklab, var(--accent) 35%, transparent);
  box-shadow:
    0 0 0 3px color-mix(in oklab, var(--accent) 14%, transparent),
    0 0 22px color-mix(in oklab, var(--accent) 45%, transparent);
}
.swirl:focus-visible {
  animation: swirl-beacon 2.4s ease-in-out infinite;
}
.swirl:hover .swirl__mark,
.swirl:focus-visible .swirl__mark {
  opacity: 1;
  color: var(--accent);
  transform: rotate(180deg);
  filter: drop-shadow(0 0 6px color-mix(in oklab, var(--accent) 75%, transparent));
}
@keyframes swirl-beacon {
  0%, 100% {
    box-shadow:
      0 0 0 3px color-mix(in oklab, var(--accent) 14%, transparent),
      0 0 18px color-mix(in oklab, var(--accent) 35%, transparent);
  }
  50% {
    box-shadow:
      0 0 0 5px color-mix(in oklab, var(--accent) 22%, transparent),
      0 0 30px color-mix(in oklab, var(--accent) 65%, transparent);
  }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: clamp(80px, 14vh, 160px) 0 clamp(80px, 12vh, 140px);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: auto 0 0 0;
  height: 38%;
  pointer-events: none;
  z-index: 0;
}
.hero__ridge {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  display: block;
}
.hero__ridge--back  { color: var(--ridge); opacity: 0.55; }
.hero__ridge--front { color: var(--ridge-2); opacity: 0.95; }

.hero__eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 48px);
  position: relative; z-index: 2;
}
.hero__eyebrow .bar { width: 36px; height: 1px; background: currentColor; display: inline-block; }
.hero__eyebrow .idx { color: var(--accent); }

.hero__grid {
  display: grid;
  grid-template-columns: 1.5fr 0.85fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
  position: relative; z-index: 2;
}
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

h1.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
  font-size: clamp(48px, 9.5vw, 144px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: var(--ink);
}
h1.hero__title em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
}
.hero__title .amp { font-style: italic; color: var(--ink-2); font-weight: 300; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }

.hero__side { padding-bottom: 12px; max-width: 420px; }
.hero__lede {
  font-family: var(--serif);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
  margin-bottom: 32px;
  font-variation-settings: "opsz" 24, "SOFT" 50;
}
.hero__lede strong { font-weight: 500; color: var(--ink); }
.hero__lede .cmd {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 1px 6px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  color: var(--ink);
  background: var(--bg-2);
  white-space: nowrap;
}

.cta {
  display: inline-flex; align-items: baseline; gap: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 48, "SOFT" 100, "WONK" 1;
  font-size: clamp(22px, 2.4vw, 32px);
  color: var(--ink);
  padding: 4px 0;
  position: relative;
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast);
}
.cta::after {
  content: "→";
  font-style: normal;
  font-family: var(--sans);
  transition: transform var(--t-mid);
  display: inline-block;
}
.cta .underline {
  position: absolute; left: 0; right: 28px; bottom: -2px;
  height: 1px; background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform var(--t-slow);
}
.cta:hover { color: var(--accent); }
.cta:hover::after { transform: translateX(8px); }
.cta:hover .underline { transform: scaleX(1); }

/* ---------- META STRIP ---------- */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative; z-index: 2;
}
.strip__row {
  display: flex; flex-wrap: wrap; gap: 14px 36px;
  align-items: center;
}
.strip__row b { color: var(--ink-2); font-weight: 500; }
.strip__row .sep { color: var(--line-2); }
.strip__tag--ok { color: var(--accent); }
.strip em { font-style: italic; color: var(--accent-2); text-transform: none; letter-spacing: 0.04em; }

/* ---------- COMING SOON SIGN ---------- */
.sign {
  padding: clamp(72px, 11vh, 130px) 0;
  position: relative;
  background:
    radial-gradient(600px 320px at 20% 30%, color-mix(in oklab, var(--amber) 7%, transparent), transparent 70%),
    radial-gradient(500px 280px at 80% 70%, color-mix(in oklab, var(--rust) 6%, transparent), transparent 70%);
}
.sign__wrap {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: clamp(16px, 3vw, 32px);
  align-items: center;
}
@media (max-width: 720px) { .sign__wrap { grid-template-columns: 1fr; } }
.sign__post {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px;
  height: 100%;
  min-height: 360px;
  justify-content: space-between;
}
.sign__post-line {
  width: 4px; flex: 1; background: var(--ink-2); border-radius: 2px; opacity: 0.7;
}
.sign__board {
  position: relative;
  background:
    repeating-linear-gradient(
      90deg,
      var(--bg-2) 0 14px,
      color-mix(in oklab, var(--bg-2) 92%, var(--ink)) 14px 15px
    );
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-2);
  isolation: isolate;
}
.sign__board::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 20%, color-mix(in oklab, var(--rust) 10%, transparent), transparent 40%),
    radial-gradient(circle at 70% 80%, color-mix(in oklab, var(--pine) 8%, transparent), transparent 40%);
  pointer-events: none; z-index: -1; border-radius: inherit;
}
.sign__head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-2);
  padding-bottom: 16px; margin-bottom: 18px;
  border-bottom: 1px dashed color-mix(in oklab, var(--ink) 30%, transparent);
}
.sign__route { color: var(--accent-2); font-weight: 600; }
.sign__title {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
  font-size: clamp(36px, 5.6vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.sign__sub {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 18px;
}
.sign__tape {
  position: absolute;
  top: 24px; right: -20px;
  transform: rotate(4deg);
  background: var(--rust);
  color: var(--bg-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 2px;
  box-shadow: 0 6px 18px -10px rgba(0,0,0,.4);
}
[data-theme="dark"] .sign__tape { color: var(--bg-3); }
.sign__body {
  font-family: var(--sans);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
  margin-bottom: 24px;
}
.sign__body strong { color: var(--ink); font-weight: 600; }
.sign__cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 500;
  transition: transform var(--t-fast), background var(--t-fast), gap var(--t-fast);
}
.sign__cta:hover { background: var(--accent); transform: translateY(-1px); gap: 16px; }
.sign__arrow { transition: transform var(--t-fast); }

/* ---------- FEATURE SECTIONS ---------- */
.feat {
  padding: clamp(80px, 12vh, 140px) 0;
  position: relative;
}
.feat--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.feat__head {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
@media (max-width: 820px) { .feat__head { grid-template-columns: 1fr; align-items: start; } }

.feat__eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
}
.feat__eyebrow .bar { width: 36px; height: 1px; background: currentColor; }

.feat__title {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 0;
  font-size: clamp(36px, 5.4vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.feat__title em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.feat__lede {
  font-family: var(--serif);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 46ch;
  font-variation-settings: "opsz" 24, "SOFT" 60;
}
.feat__lede code {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 1px 5px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
}

/* ---------- COMMAND CARDS ---------- */
.cmds {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 1080px) { .cmds { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .cmds { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .cmds { grid-template-columns: 1fr; } }

.cmd-card {
  position: relative;
  background: var(--bg);
  padding: 24px 22px 22px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 220px;
  transition: background var(--t-fast);
}
.cmd-card:hover { background: var(--bg-2); }
.cmd-card__num {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}
.cmd-card__name {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.005em;
  word-break: break-word;
}
.cmd-card__desc {
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
  flex: 1;
}
.cmd-card__meta {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  margin-top: auto;
}

/* ---------- CUSTOMIZATION ---------- */
.cust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 28px);
}
@media (max-width: 980px) { .cust { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cust { grid-template-columns: 1fr; } }

.cust__card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 24px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color var(--t-fast), transform var(--t-fast), background var(--t-fast);
}
.cust__card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.cust__h {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "opsz" 48, "SOFT" 40, "WONK" 0;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.cust__card p {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}
.cust__code {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--ink);
  overflow-x: auto;
  margin-top: auto;
}
.cust__code code { color: inherit; }
.cust__code .k { color: var(--accent); }
.cust__code .s { color: var(--accent-2); }

/* ---------- STACK ---------- */
.stack {
  padding: clamp(80px, 12vh, 140px) 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.stack__head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.stack__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (max-width: 900px) { .stack__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stack__grid { grid-template-columns: 1fr; } }

.stack__cell {
  padding: 24px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
  transition: background var(--t-fast);
}
.stack__cell:hover { background: var(--bg-2); }
.stack__k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.stack__v {
  font-family: var(--serif);
  font-variation-settings: "opsz" 24, "SOFT" 50;
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--ink);
  letter-spacing: -0.005em;
}

/* ---------- LOG / SIGNUP ---------- */
.log {
  padding: clamp(80px, 12vh, 140px) 0;
  background:
    radial-gradient(700px 400px at 80% 0%, color-mix(in oklab, var(--pine) 8%, transparent), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.log__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 860px) { .log__grid { grid-template-columns: 1fr; } }

.log__title {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 1;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 16px;
}
.log__title em { font-style: italic; color: var(--accent); }
.log__lede {
  font-family: var(--serif);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 48ch;
  font-variation-settings: "opsz" 24, "SOFT" 60;
}
.log__lede strong { color: var(--ink); font-weight: 500; }

.log__form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-1);
}

/* ---------- coming-soon form ---------- */
.log__form--soon {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  background:
    repeating-linear-gradient(
      45deg,
      var(--bg) 0 14px,
      var(--bg-3) 14px 15px
    );
  border-style: dashed;
}
.log__soon {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 1;
  width: 100%;
}
.log__soon-tags {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.log__soon-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 600;
}
.log__soon-tag--alt { color: var(--muted); font-weight: 500; }
.log__soon-title {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 72, "SOFT" 30, "WONK" 1;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.018em;
  max-width: 18ch;
}
.log__soon-title em { font-style: italic; color: var(--accent); }
.log__soon-text {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 48ch;
}
.log__soon-row {
  display: flex;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px;
  background: var(--bg-3);
  margin-top: 4px;
  filter: saturate(0.4);
  opacity: 0.85;
}
.log__soon-input {
  flex: 1;
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted);
  user-select: none;
}
.log__soon-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: var(--ink-2);
  color: var(--bg);
  border-radius: calc(var(--radius) - 1px);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
}
.log__soon-tape {
  position: absolute;
  top: 50%;
  right: -34px;
  transform: rotate(8deg) translateY(-50%);
  background: var(--rust);
  color: var(--bg-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.20em;
  font-weight: 600;
  padding: 8px 40px;
  box-shadow: 0 8px 24px -10px rgba(0,0,0,.4);
  z-index: 2;
  text-transform: uppercase;
}
[data-theme="dark"] .log__soon-tape { color: var(--bg-3); }
.log__label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.log__row {
  display: flex; gap: 8px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 4px;
  background: var(--bg-2);
  transition: border-color var(--t-fast);
}
.log__row:focus-within { border-color: var(--accent); }
.log__input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  min-width: 0;
}
.log__input::placeholder { color: var(--muted); }
.log__btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--bg);
  border: 0;
  border-radius: calc(var(--radius) - 1px);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--t-fast), gap var(--t-fast);
  white-space: nowrap;
}
.log__btn:hover { background: var(--accent); gap: 14px; }
.log__btn:disabled { opacity: 0.6; cursor: not-allowed; }
.log__ok {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.log__fine {
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- ESSAY (SEO COPY) ---------- */
.essay {
  padding: clamp(72px, 11vh, 120px) 0;
}
.essay__grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 760px) { .essay__grid { grid-template-columns: 1fr; } }
.essay__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 12px;
  position: sticky; top: 88px;
}
.essay__body p {
  font-family: var(--serif);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 64ch;
  margin-bottom: 1.1em;
  font-variation-settings: "opsz" 24, "SOFT" 50;
}
.essay__body p:last-child { margin-bottom: 0; }
.essay__body strong { color: var(--ink); font-weight: 500; }
.essay__body em { font-style: italic; color: var(--accent); }
.essay__body code {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 1px 5px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
}
.essay__body a {
  border-bottom: 1px solid var(--line-2);
  transition: border-color var(--t-fast), color var(--t-fast);
}
.essay__body a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 44px;
  position: relative; z-index: 2;
  background: var(--bg);
}
.foot {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center;
  gap: 18px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
}
.foot__left, .foot__right { display: inline-flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.foot .sep { color: var(--line-2); }
.foot a { transition: color var(--t-fast); }
.foot a:hover { color: var(--ink); }

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal { opacity: 0; transform: translateY(8px); animation: rise 800ms cubic-bezier(.2,.7,.2,1) forwards; }
.reveal.d1 { animation-delay: 60ms; }
.reveal.d2 { animation-delay: 180ms; }
.reveal.d3 { animation-delay: 300ms; }
.reveal.d4 { animation-delay: 420ms; }
.reveal.d5 { animation-delay: 560ms; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- MOBILE POLISH ---------- */
@media (max-width: 720px) {
  .sign__tape { right: 8px; top: 8px; }
  .top__row { height: 60px; }
  .hero__eyebrow { font-size: 10.5px; }
  .strip__row { font-size: 10.5px; }
  .cmd-card { min-height: 0; }
  .log__soon-tape { right: -20px; padding: 6px 28px; font-size: 10px; }
}
