/* whipplescript.com — landing for WhippleScript.
   Uses the GaugeWright colour scheme (navy ground, blue accent, blue/gold/red
   tricolor, STIX serif voice) with the WhippleScript whippletree mark. */

:root {
  /* brand tricolor (shared with the ecosystem) */
  --blue: #4f8fe6;
  --gold: #e0b24e;
  --red:  #e0655c;

  /* interactive accent — scheme blue */
  --accent: #4f8fe6;
  --accent-hover: #6ba3ee;
  --accent-strong: #2a6fce;
  --on-accent: #08111e;

  /* surfaces & text — navy family, shared with the ecosystem */
  --bg: #0c1a2e;
  --panel: #12233b;
  --edge: #24344e;
  --ink: #e6ebf2;
  --muted: #8b98ab;

  /* code card */
  --code-bg: #0a1728;
  --code-kw: #6aa3ff;   /* keywords (blue) */
  --code-str: #d6a95f;  /* strings (gold) */
  --code-dim: #6b7890;  /* annotations / punctuation-lite */
  --code-op: #9fb0c6;   /* operators */

  --serif: "STIX Two Text", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, ui-serif, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Inconsolata", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand, .nav a, .btn { font-family: var(--serif); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: 0.92em; background: color-mix(in srgb, var(--ink) 8%, transparent); padding: 1px 5px; border-radius: 5px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---- Header ---- */
.site-header {
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--blue), var(--gold) 55%, var(--red)) 1;
  border-bottom: 1px solid var(--edge);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  z-index: 10;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 20px; letter-spacing: -0.01em; color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand .tree { color: var(--accent); flex: none; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--muted); font-weight: 600; font-size: 16px; }
.nav a:hover { color: var(--ink); text-decoration: none; }

/* ---- Buttons ---- */
.btn {
  display: inline-block; padding: 10px 20px; border-radius: 9px;
  font-weight: 600; font-size: 16px;
  border: 1px solid var(--edge); color: var(--ink); background: var(--panel);
  cursor: pointer; transition: border-color .15s, background .15s, color .15s;
}
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* ---- Hero ---- */
.hero { padding: 76px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.eyebrow {
  color: var(--gold); font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; font-size: 12.5px; margin-bottom: 18px;
}
.hero h1 {
  font-size: 54px; line-height: 1.05; margin: 0 0 22px; max-width: 520px;
  font-weight: 400; letter-spacing: -0.02em; text-wrap: balance;
}
.hero .lede { font-size: 18.5px; color: var(--muted); max-width: 520px; margin: 0 0 30px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.pre-note {
  margin: 22px 0 0; color: var(--muted); font-family: var(--mono);
  font-size: 13px; letter-spacing: 0.02em;
}

/* ---- Code card ---- */
.code-card {
  background: var(--code-bg);
  border: 1px solid var(--edge);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.7);
}
.code-head {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px; border-bottom: 1px solid var(--edge);
  background: color-mix(in srgb, var(--ink) 3%, var(--code-bg));
}
.code-head .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--edge); }
.code-head .dot:first-child { background: #e0655c; }
.code-head .dot:nth-child(2) { background: #e0b24e; }
.code-head .dot:nth-child(3) { background: var(--accent); }
.code-name { margin-left: 8px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
pre.code {
  margin: 0; padding: 20px 22px;
  font-family: var(--mono); font-size: 14px; line-height: 1.62;
  color: var(--ink); overflow-x: auto; tab-size: 2;
}
pre.code .k { color: var(--code-kw); }
pre.code .s { color: var(--code-str); }
pre.code .a { color: var(--code-dim); font-style: italic; }
pre.code .c { color: var(--code-dim); }
pre.code .op { color: var(--code-op); }

/* ---- Sections ---- */
section { padding: 58px 0; }
section h2 { font-size: 32px; font-weight: 400; letter-spacing: -0.01em; margin: 0 0 8px; }
section .wrap > .eyebrow + h2 { margin-top: 0; }
section .wrap > h2::after {
  content: ""; display: block; width: 44px; height: 2px; margin-top: 16px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.section-lede { color: var(--muted); margin: 20px 0 36px; max-width: 620px; }
.section-lede.center { margin-left: auto; margin-right: auto; text-align: center; }
.band { border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge);
  background: color-mix(in srgb, var(--accent) 4%, var(--bg)); }

/* two-column split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 8px; }
.split-col {
  background: var(--panel); border: 1px solid var(--edge); border-radius: 12px;
  padding: 26px; border-left: 3px solid var(--accent);
}
.split-col h3 { margin: 0 0 10px; font-size: 21px; font-weight: 400; }
.split-col p { margin: 0; color: var(--muted); font-size: 15.5px; }
.split-col code { color: var(--ink); }

/* feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--panel); border: 1px solid var(--edge); border-radius: 12px;
  padding: 24px; transition: border-color .15s, transform .15s;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--edge)); transform: translateY(-2px); }
.card .ic {
  width: 36px; height: 36px; border-radius: 8px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 19px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
}
.card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 400; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card code { color: var(--ink); font-size: 0.88em; }

/* metaphor */
.metaphor { text-align: center; max-width: 720px; }
.metaphor h2 { margin: 8px 0 0; }
.metaphor h2::after { margin-left: auto; margin-right: auto; }
.tree-big { color: var(--accent); display: flex; justify-content: center; }
.cta.center { justify-content: center; margin-top: 30px; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--edge); padding: 40px 0 28px;
  color: var(--muted); font-size: 14px;
  background: color-mix(in srgb, var(--accent) 3%, var(--bg)); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; }
.foot-col { display: flex; flex-direction: column; gap: 8px; max-width: 300px; }
.foot-brand { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--ink); gap: 9px; }
.foot-brand .tree { color: var(--accent); }
.foot-h { color: var(--ink); font-weight: 600; font-size: 13px; letter-spacing: 0.03em; text-transform: uppercase; margin-bottom: 4px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.muted-line { color: var(--muted); }
.foot-legal {
  margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--edge);
  display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted);
}
.foot-legal a { color: var(--muted); text-decoration: underline; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 40px; }
  .split, .grid { grid-template-columns: 1fr; }
  .nav .nav-hide { display: none; }
  .foot-legal { flex-direction: column; gap: 6px; }
}
