/* Pasley Hill — Specs site shared design system */
:root {
  --bg: #0b0f17;
  --bg-soft: #111827;
  --panel: #151c2b;
  --panel-2: #1b2436;
  --border: #243049;
  --border-soft: #1c2740;
  --text: #e8edf6;
  --text-dim: #9aa7bd;
  --text-faint: #6b788f;
  --accent: #5b8cff;
  --accent-2: #38d39f;
  --accent-3: #f0a93b;
  --danger: #ff6b6b;
  --warn: #f0a93b;
  --ok: #38d39f;
  --shadow: 0 10px 40px rgba(0,0,0,.45);
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1080px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: radial-gradient(1200px 700px at 80% -10%, #16203a 0%, transparent 55%),
              radial-gradient(900px 600px at -10% 10%, #142233 0%, transparent 50%),
              var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11,15,23,.72);
  border-bottom: 1px solid var(--border-soft);
}
.topbar .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .2px; }
.brand .dot { width: 11px; height: 11px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 14px var(--accent); }
.brand small { color: var(--text-faint); font-weight: 500; }
.topbar nav { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.topbar nav a { color: var(--text-dim); padding: 7px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.topbar nav a:hover { color: var(--text); background: var(--panel); text-decoration: none; }

/* Hero */
.hero { padding: 72px 0 36px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; }
.hero h1 .grad { background: linear-gradient(120deg, var(--accent), var(--accent-2) 60%, var(--accent-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lede { margin-top: 18px; font-size: clamp(16px, 2vw, 19px); color: var(--text-dim); max-width: 760px; }
.kicker { display: inline-block; font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); border: 1px solid var(--border); background: var(--panel); padding: 6px 12px; border-radius: 999px; margin-bottom: 22px; }

/* Stat row */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 34px 0; }
.stat { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.stat .num { font-size: 26px; font-weight: 800; color: var(--text); }
.stat .lbl { font-size: 13px; color: var(--text-faint); margin-top: 3px; }

/* Project cards grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin: 28px 0 60px; }
.card {
  display: block; background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  color: var(--text); position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); text-decoration: none; }
.card .tier { position: absolute; top: 16px; right: 16px; font-size: 11px; font-family: var(--mono); padding: 3px 9px; border-radius: 999px; font-weight: 600; }
.card h3 { font-size: 19px; margin-bottom: 8px; padding-right: 70px; }
.card p { color: var(--text-dim); font-size: 14.5px; }
.card .meta { margin-top: 16px; display: flex; gap: 14px; font-size: 12.5px; color: var(--text-faint); font-family: var(--mono); flex-wrap: wrap; }
.card .arrow { margin-top: 16px; color: var(--accent); font-size: 14px; font-weight: 600; }

/* Tier colors */
.t-now { background: rgba(56,211,159,.14); color: var(--ok); border: 1px solid rgba(56,211,159,.3); }
.t-next { background: rgba(91,140,255,.14); color: var(--accent); border: 1px solid rgba(91,140,255,.3); }
.t-big { background: rgba(240,169,59,.14); color: var(--warn); border: 1px solid rgba(240,169,59,.3); }
.t-care { background: rgba(255,107,107,.14); color: var(--danger); border: 1px solid rgba(255,107,107,.3); }

/* Project page layout */
.proj-hero { padding: 56px 0 24px; border-bottom: 1px solid var(--border-soft); }
.proj-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.02em; margin: 14px 0; }
.proj-hero .lede { font-size: 18px; color: var(--text-dim); max-width: 760px; }
.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.badge { font-size: 12.5px; font-family: var(--mono); padding: 6px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--border); color: var(--text-dim); }
.badge b { color: var(--text); font-weight: 600; }

section.block { padding: 38px 0; border-bottom: 1px solid var(--border-soft); }
section.block h2 { font-size: 24px; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
section.block h2::before { content: ""; width: 4px; height: 22px; border-radius: 3px; background: linear-gradient(var(--accent), var(--accent-2)); }
section.block > .wrap > p.sub { color: var(--text-faint); margin-bottom: 22px; }
h3.sh { font-size: 17px; margin: 26px 0 10px; color: var(--text); }
p { margin: 10px 0; color: var(--text-dim); }
ul, ol { margin: 12px 0 12px 22px; color: var(--text-dim); }
li { margin: 7px 0; }
li::marker { color: var(--accent); }
strong, b { color: var(--text); }

.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; margin: 16px 0; }
.panel.soft { background: var(--bg-soft); }
.callout { border-left: 3px solid var(--accent); background: var(--panel); padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 16px 0; }
.callout.warn { border-left-color: var(--warn); }
.callout.danger { border-left-color: var(--danger); }
.callout.ok { border-left-color: var(--ok); }
.callout .tag { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-faint); display: block; margin-bottom: 4px; }

/* Two-column */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } }

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.5px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
th { color: var(--text-faint); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
td { color: var(--text-dim); }
tr:hover td { background: rgba(255,255,255,.02); }

/* Phase timeline */
.timeline { position: relative; margin: 18px 0 8px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.phase { position: relative; margin-bottom: 20px; }
.phase::before { content: ""; position: absolute; left: -23px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.phase .pname { font-weight: 700; color: var(--text); }
.phase .pmeta { font-family: var(--mono); font-size: 12px; color: var(--accent-2); }

/* Pills / tech tags */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.pill { font-family: var(--mono); font-size: 12.5px; padding: 5px 11px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--border); color: var(--text-dim); }

/* Code */
code { font-family: var(--mono); font-size: 13px; background: var(--panel-2); padding: 2px 6px; border-radius: 5px; color: var(--accent-2); }
pre { background: #0a0e16; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; overflow-x: auto; margin: 14px 0; }
pre code { background: none; padding: 0; color: var(--text-dim); font-size: 12.5px; line-height: 1.5; }

/* Back link */
.backlink { display: inline-flex; align-items: center; gap: 7px; color: var(--text-dim); font-size: 14px; margin-top: 6px; }
.backlink:hover { color: var(--accent); text-decoration: none; }

/* Footer */
footer { padding: 40px 0 60px; color: var(--text-faint); font-size: 13.5px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--border-soft); padding-top: 26px; }

/* Reveal on scroll — only when JS is active (html.js), so no-JS users see everything */
.reveal.in { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }

/* Disclaimer */
.disclaimer { font-size: 12.5px; color: var(--text-faint); background: var(--bg-soft); border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 12px 16px; margin: 20px 0; }
