/* Classic Is Coming — landing styles
 * Design tokens drawn from the Phoenix Project palette (palette etc.jpg),
 * retuned to a mint accent:
 *   ruby #E60029 · emerald #33FF99 · coal #161A1D · ash #A6B0AC · conch #E1E6E2 · snow #F5F6F4
 * Static-deploy friendly (Cloudflare Pages). No external fonts, no frameworks.
 */

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }

/* ---------- Tokens ---------- */
:root {
  --ruby: #E60029;
  --emerald: #33FF99;
  --emerald-bright: #7DFFBF;
  --emerald-deep: #1FBF73;
  --coal: #161A1D;
  --coal-2: #0B0F11;
  --ash: #A6B0AC;
  --conch: #E1E6E2;
  --snow: #F5F6F4;
  --white: #FFFFFF;

  --bg: var(--snow);
  --bg-2: var(--conch);
  --ink: var(--coal);
  --ink-soft: #2A2F33;
  --muted: #5A6663;
  --line: rgba(22, 26, 29, 0.12);
  --accent: var(--emerald);
  --accent-strong: var(--emerald-deep);
  --accent-on: var(--coal);

  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);

  --font-display: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  /* Dark mode intentionally disabled — brand stays light on every OS theme. */
}

/* ---------- Utilities ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip {
  position: absolute;
  left: 12px; top: 12px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
  transition: transform 160ms ease;
  z-index: 1000;
  text-decoration: none;
  font-weight: 600;
}
.skip:focus { transform: translateY(0); outline: 2px solid var(--accent); outline-offset: 2px; }

/* Focus states */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 40px;
  flex: 0 0 auto;
  aspect-ratio: 64 / 96;
}
.brand-word {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
}
.brand-line-2 { color: var(--accent); }
.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
}
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 17px;
  padding: 10px 4px;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.nav-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}
.nav-x:hover { color: var(--ink); border-color: var(--ink); }
.nav-x svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(56px, 9vw, 120px);
  padding-bottom: clamp(72px, 11vw, 140px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(1100px 480px at 80% -10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    radial-gradient(900px 420px at 10% 10%, color-mix(in srgb, var(--ruby) 8%, transparent), transparent 60%),
    var(--bg);
}
.hero-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
  position: relative;
}
.headline {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.92;
  margin: 6px 0 0;
  font-size: clamp(56px, 11vw, 168px);
  text-transform: uppercase;
}
.headline .line { display: block; }
.headline .line-2 { color: var(--ink); }
.headline .line-1 {
  background: linear-gradient(180deg, var(--ink) 0%, color-mix(in srgb, var(--ink) 70%, transparent) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (prefers-color-scheme: dark) {
  /* Headline gradient stays the same on every OS theme. */
}

.lede {
  max-width: 60ch;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-soft);
  margin: 18px 0 0;
}

.hero-tagline {
  margin: 22px 0 0;
  padding: 14px 0 14px 22px;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  max-width: 60ch;
}
.hero-tagline-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 6px;
}
.hero-tagline-line {
  display: block;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink);
}
.hero-tagline-sub {
  margin: 14px 0 0;
  padding: 0 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.4vw, 17px);
  font-style: italic;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 52ch;
}

.hero-tagline-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin: 22px 0 0;
  max-width: 720px;
}
.hero-tagline-copy {
  flex: 1 1 auto;
  min-width: 0;
}
.hero-phoenix {
  flex: 0 0 auto;
  width: clamp(220px, 32vw, 320px);
  height: auto;
  align-self: center;
}
@media (min-width: 720px) {
  .hero-tagline-block {
    flex-direction: row;
    align-items: center;
    gap: 28px;
  }
  .hero-phoenix {
    align-self: center;
  }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: var(--accent);
  color: var(--accent-on);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-1px); }

.hero-mark {
  position: absolute;
  inset: auto 0 -40px auto;
  width: clamp(220px, 36vw, 480px);
  opacity: 0.18;
  pointer-events: none;
  filter: saturate(110%);
}
.hero-mark img { width: 100%; height: auto; }

/* ---------- Sections ---------- */
.section {
  padding-block: var(--section-y);
  border-bottom: 1px solid var(--line);
}
.section:last-of-type { border-bottom: 0; }
.kicker {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 12px;
}
.section h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  margin: 0 0 16px;
  max-width: 22ch;
}
.section p { color: var(--ink-soft); max-width: 64ch; }

/* Ethos removed. */
/* Principles removed. */

/* Signal */
.signal-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
@media (min-width: 880px) {
  .signal-wrap { grid-template-columns: 1.2fr 1fr; }
}
.signal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--emerald);
  border-radius: var(--radius);
  background: var(--bg-2);
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.signal-cta:hover {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--emerald) 14%, var(--bg-2));
  border-color: var(--accent-strong);
}
.signal-cta-text { display: flex; flex-direction: column; line-height: 1.1; }
.signal-cta-eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  opacity: 0.75;
  margin-bottom: 4px;
}
.signal-cta-line {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.signal-cta svg { width: 24px; height: 24px; flex: 0 0 auto; }

/* Essay — Code Is Law (replaces Manifesto) */
.section.essay {
  background:
    linear-gradient(180deg, #DCFFE9 0%, var(--emerald-bright) 35%, var(--emerald) 100%);
  color: var(--coal-2);
  border-top: 1px solid var(--line);
}
.essay-wrap {
  max-width: 760px;
}
.essay-kicker {
  color: var(--coal-2);
  opacity: 0.75;
}
.essay-h {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  margin: 0 0 32px;
  max-width: 22ch;
  color: var(--coal-2);
}
.essay-body {
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.7;
  color: var(--coal-2);
}
.essay-body p { margin: 0 0 1.1em; }
.essay-body strong { font-weight: 700; }
.essay-pullquote {
  font-style: italic;
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.55;
  padding: 12px 0 12px 20px;
  border-left: 3px solid var(--coal-2);
  margin: 1.4em 0;
  color: var(--coal-2);
}
.essay-attribution {
  margin-top: 36px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--coal-2);
  text-align: right;
}
.essay-attribution cite {
  font-style: normal;
  font-weight: 700;
}
.essay-attribution::before {
  content: "\2014\00a0"; /* em-dash + nbsp, mirrors the prior byline */
  margin-right: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 48px 28px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.footer-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
@media (min-width: 760px) {
  .footer-wrap { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-left .brand { font-size: inherit; }
.footer-tag {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 30ch;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14px;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  width: fit-content;
}
.footer-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.x-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}
.x-icon:hover { background: var(--emerald); color: var(--coal-2); border-color: var(--emerald); }
.x-icon svg { width: 18px; height: 18px; }
.handle {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.footer-meta p { margin: 0; }
.footer-links a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line); }
.footer-links a:hover { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .header-wrap { gap: 12px; }
  .nav { gap: 14px; }
  .nav a:not(.nav-x) { display: none; }
  .hero-mark { display: none; }
  .signal-cta-line { font-size: 18px; }
}

/* ---------- Selection ---------- */
::selection { background: var(--accent); color: var(--accent-on); }
