/* sowcode.com: all styles for the site. Design: "Terminal meets field" (concepts canvas, 2026-11-25).
   Wide screens follow the desktop artboard; at 700px and below, the phone artboard. */

/* ---------- Fonts (self-hosted, see fonts/LICENSE-*.txt) ---------- */
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); }

/* ---------- Colours ---------- */
:root {
  --bg: #15242c;
  --bg-band: #1b2f3a;
  --card: #1d3340;
  --card-bar: #192d38;
  --line: #2d4a59;
  --line-strong: #4f7385;
  --text: #e6eadb;
  --text-soft: #c3cbbd;
  --muted: #93a8b3;
  --white: #ffffff;
  --sage: #cfd6ab;
  --sage-dark: #a9b47a;
  --gold: #d9b768;
  --sky: #9fd3ee;
  --blue: #4caad8;
  --blue-ink: #0f2a36;
  --code-num: #5c7886;
  --code-comment: #7f97a3;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); }
p, h1, h2, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--sky); }
a:hover { color: var(--white); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 40px; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 16px; line-height: 1.2;
  text-decoration: none; border-radius: 6px; padding: 13px 22px; border: 0; cursor: pointer; text-align: center; }
.btn-blue { background: var(--blue); color: var(--blue-ink); }
.btn-blue:hover { background: #63b8e2; color: var(--blue-ink); }
.btn-outline { border: 1px solid var(--line-strong); color: var(--text); padding: 12px 22px; }
.btn-outline:hover { border-color: var(--sky); color: var(--white); }
.btn-dark { background: var(--bg); color: var(--white); padding: 12px 22px; }
.btn-dark:hover { background: #22394a; color: var(--white); }
.btn-lg { font-size: 17px; padding: 15px 24px; }
.btn-outline.btn-lg { padding: 14px 24px; }

/* ---------- December match band ---------- */
.match { background: var(--sage); color: var(--bg); }
.match-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; padding-top: 18px; padding-bottom: 18px; }
.match-text { flex: 3 1 380px; min-width: 0; }
.match-tag { margin-bottom: 4px; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .5px; }
.match-tag .dot { width: 8px; height: 8px; border-radius: 4px; background: var(--bg); }
.match-line { font-size: 16px; line-height: 1.45; }
.match-line strong { font-weight: 600; }
.match-tracker { flex: 2 1 280px; min-width: 0; font-family: var(--mono); }
.match-bar { display: block; width: 100%; height: 12px; border: 0; border-radius: 2px; overflow: hidden;
  -webkit-appearance: none; appearance: none; background: var(--sage-dark); color: var(--bg); }
.match-bar::-webkit-progress-bar { background: var(--sage-dark); border-radius: 2px; }
.match-bar::-webkit-progress-value { background: var(--bg); }
.match-bar::-moz-progress-bar { background: var(--bg); }
.match-scale { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; }
.match-status { margin-top: 2px; font-size: 13px; font-weight: 700; }

/* ---------- Header and menu ---------- */
.site-header { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
.logo { text-decoration: none; color: var(--text); font-family: var(--mono); font-weight: 700; font-size: 20px; }
.logo span { color: var(--sage); }
.nav-wide { display: flex; flex-wrap: wrap; gap: 28px; font-family: var(--mono); font-size: 14px; }
.nav-wide a, .nav-phone a { text-decoration: none; }
.nav-phone { display: none; }
.nav-phone summary { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 6px; display: flex; align-items: center; justify-content: center; cursor: pointer; list-style: none; color: var(--text); }
.nav-phone summary::-webkit-details-marker { display: none; }
.nav-phone[open] summary { border-color: var(--line-strong); }
.nav-phone nav { position: absolute; left: 20px; right: 20px; top: 100%; z-index: 2; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; font-family: var(--mono); font-size: 16px; }
.nav-phone nav a { padding: 14px 18px; }
.nav-phone nav a + a { border-top: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero { padding-top: 56px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-text { flex: 1 1 440px; min-width: 0; }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 6.6vw, 88px); line-height: 1; letter-spacing: -1px; color: var(--white); }
h1 em { color: var(--sage); }
.lead { margin-top: 28px; font-size: 20px; line-height: 1.55; color: var(--text-soft); max-width: 520px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Code panel: lines of code that turn into field rows */
.code { flex: 1 1 440px; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-family: var(--mono); font-size: 15px; }
.code-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--card-bar); }
.code-bar span { width: 10px; height: 10px; border-radius: 5px; background: var(--line-strong); }
.code-bar b { margin-left: 10px; font-weight: 400; font-size: 13px; color: var(--muted); }
.code-body { padding: 18px 0 22px; counter-reset: ln; }
.ln { display: flex; gap: 18px; padding: 4px 20px; counter-increment: ln; }
.ln::before { content: counter(ln); flex: none; width: 18px; text-align: right; color: var(--code-num); }
.ln > span { min-width: 0; overflow-wrap: anywhere; }
.ln.row { align-items: center; }
.ln.row i { flex: 1; height: 2px; }
.c-fn { color: var(--gold); }
.c-str { color: var(--sage); }
.c-m { color: var(--sky); }
.c-com { color: var(--code-comment); }
.sage { background: var(--sage); }
.gold { background: var(--gold); }
.o35 { opacity: .35; } .o40 { opacity: .4; } .o45 { opacity: .45; } .o55 { opacity: .55; } .o60 { opacity: .6; }

/* ---------- Two doors ---------- */
.doors { padding-bottom: 88px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.door { padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.kicker { font-family: var(--mono); font-size: 13px; color: var(--gold); }
.door h2 { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1.05; color: var(--white); }
.door p { font-size: 17px; line-height: 1.6; color: var(--text-soft); }
.door p.kicker { font-size: 13px; line-height: normal; color: var(--gold); }
.door p.mono-note { font-family: var(--mono); font-size: 13px; line-height: normal; color: var(--sage); }
.door .btn { align-self: flex-start; margin-top: 6px; }

/* ---------- Days meter ---------- */
.days { background: var(--bg-band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.days-inner { padding-top: 80px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.days-text { flex: 1 1 380px; min-width: 0; }
.days-text h2 { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1.1; color: var(--white); }
.days-text p { margin-top: 22px; font-size: 18px; line-height: 1.6; color: var(--text-soft); max-width: 460px; }
.meter { flex: 1 1 440px; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 28px; }
.meter-box { font-family: var(--mono); }
.meter-count { margin-bottom: 18px; font-size: 15px; color: var(--muted); }
.meter-count .eq { color: var(--text); }
.meter-count b { color: var(--gold); font-weight: 700; font-size: 22px; }
.meter-days { display: flex; flex-direction: column; gap: 10px; }
.day { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.day span:first-child { width: 44px; }
.day span:last-child { width: 60px; }
.day i { flex: 1; height: 12px; border-radius: 2px; border: 1px dashed var(--line-strong); }
.day.funded i { border: 0; background: var(--sage); }
.day.funded span:last-child { color: var(--sage); }
.meter-note { margin-top: 20px; font-family: var(--sans); font-size: 16px; color: var(--text-soft); }
.meter .btn { margin-top: 16px; padding: 12px 20px; }

/* ---------- Proof lines ---------- */
.proof { padding-top: 72px; padding-bottom: 72px; }
.proof-cmd { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.proof-list { border-top: 1px solid var(--line); }
.proof-list li { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.proof-key { width: 120px; font-family: var(--mono); font-size: 14px; color: var(--gold); }
.proof-val { flex: 1 1 300px; font-size: 21px; color: var(--white); }

/* ---------- Sign-up ---------- */
.signup-wrap { padding-bottom: 88px; }
.signup { padding: 36px; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-end; }
.signup-text { flex: 1 1 300px; min-width: 0; }
.signup-text .kicker { margin-bottom: 8px; }
.signup-text h2 { margin-bottom: 8px; font-family: var(--serif); font-weight: 400; font-size: 34px; color: var(--white); }
.signup-text p:last-child { font-size: 16px; line-height: 1.5; color: var(--text-soft); }
.signup-fields { position: relative; flex: 2 1 420px; min-width: 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.signup label { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.f-name { flex: 1 1 150px; }
.f-email { flex: 2 1 220px; }
.signup input { font-family: var(--sans); font-size: 16px; padding: 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--bg); color: var(--white); width: 100%; }
.signup input:focus { border-color: var(--sky); }
.hp { position: absolute; left: -5000px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 36px; font-size: 14px; color: var(--muted); }
.footer-inner p { max-width: 620px; line-height: 1.5; }
.footer-inner .sig { font-family: var(--mono); font-size: 13px; }

/* ---------- 404 ---------- */
.notfound { padding-top: 56px; padding-bottom: 120px; }
.notfound .lead { margin-bottom: 32px; }

/* ================= Phone (the phone artboard) ================= */
@media (max-width: 700px) {
  .wrap { padding: 0 20px; }
  .wide-only { display: none !important; }

  .match-inner { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 16px; padding-bottom: 18px; }
  .match-text, .match-tracker { flex: none; }
  .match-tag { font-size: 11px; margin-bottom: 10px; }
  .match-tag .dot { width: 7px; height: 7px; }
  .match-line { font-size: 15px; }
  .match-bar { height: 10px; }
  .match-scale { margin-top: 5px; font-size: 11px; }
  .match-status { font-size: 12px; }
  .match .btn { display: block; padding: 13px; }

  .site-header { flex-wrap: nowrap; padding-top: 16px; padding-bottom: 16px; }
  .logo { font-size: 18px; }
  .nav-wide { display: none; }
  .nav-phone { display: block; }

  .hero { display: block; padding-top: 28px; padding-bottom: 40px; }
  h1 { font-size: 52px; letter-spacing: 0; }
  .lead { margin-top: 20px; font-size: 17px; }
  .code { margin-top: 28px; font-size: 12px; }
  .code-bar { gap: 6px; padding: 10px 14px; }
  .code-bar span { width: 8px; height: 8px; border-radius: 4px; }
  .code-bar b { margin-left: 8px; font-size: 12px; }
  .code-body { padding: 12px 0 16px; }
  .ln { gap: 14px; padding: 3px 14px; }
  .ln::before { width: 12px; }
  .ln.row { height: 20px; }

  .doors { grid-template-columns: 1fr; gap: 16px; padding-bottom: 40px; }
  .door { padding: 24px; gap: 12px; }
  .door p.kicker, .door p.mono-note { font-size: 12px; }
  .door h2 { font-size: 36px; }
  .door p { font-size: 16px; }
  .door .btn { align-self: stretch; margin-top: 4px; padding: 14px; }
  .door .btn-outline { padding: 13px; }

  .days-inner { display: block; padding-top: 40px; padding-bottom: 44px; }
  .days-text h2 { font-size: 34px; }
  .days-text p { margin: 16px 0 24px; font-size: 16px; }
  .meter { background: none; border: 0; border-radius: 0; padding: 0; }
  .meter-box { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
  .meter-count { margin-bottom: 14px; font-size: 14px; }
  .meter-count b { font-size: 20px; }
  .meter-days { gap: 9px; }
  .day { gap: 10px; font-size: 12px; }
  .day span:first-child { width: 30px; }
  .day span:last-child { width: 48px; }
  .day i { height: 10px; }
  .meter-note { margin-top: 16px; font-size: 15px; }
  .meter .btn { display: block; padding: 14px; }

  .proof { padding-top: 36px; padding-bottom: 36px; }
  .proof-cmd { font-size: 12px; margin-bottom: 12px; }
  .proof-list li { display: block; padding: 16px 0; }
  .proof-key { display: block; width: auto; margin-bottom: 4px; font-size: 12px; }
  .proof-val { display: block; font-size: 18px; line-height: 1.4; }

  .signup-wrap { padding-bottom: 40px; }
  .signup { padding: 24px 20px; flex-direction: column; align-items: stretch; gap: 14px; }
  .signup-text, .signup-fields { flex: none; flex-direction: column; align-items: stretch; gap: 14px; }
  .signup-text { display: flex; }
  .signup-text .kicker, .signup-text h2 { margin-bottom: 0; }
  .signup-text h2 { font-size: 30px; }
  .signup-text p:last-child { font-size: 15px; }
  .signup label { flex: none; font-size: 12px; }
  .signup .btn { padding: 14px; }

  .footer-inner { display: block; padding-top: 22px; padding-bottom: 30px; }
  .footer-inner p { margin-bottom: 10px; }
  .footer-inner .sig { margin-bottom: 0; font-size: 12px; }
}
