/* =========================================================
   Mark Roberts — site styles
   BRAND SETTINGS: change colours and fonts here and the
   whole site updates.
   ========================================================= */
:root {
  /* Colours */
  --bg: #0D1016;          /* page background (charcoal) */
  --panel: #161A22;       /* cards and panels */
  --border: #272C36;      /* lines and card borders */
  --field: #5C6370;       /* form field borders */
  --text: #F2F4F7;        /* main text */
  --muted: #A1A7B3;       /* secondary text */
  --accent: #2563EB;      /* cobalt: buttons */
  --accent-hover: #1D4ED8;
  --highlight: #6EA8FF;   /* sky blue: labels, highlights */
  --footer: #090B0F;

  /* Fonts */
  --font-heading: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Shape */
  --radius: 10px;
  --radius-sm: 6px;
  --max: 1160px;
}

/* Fonts (self-hosted) */
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url(/assets/fonts/space-grotesk-500.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url(/assets/fonts/space-grotesk-700.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(/assets/fonts/inter-400.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(/assets/fonts/inter-500.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(/assets/fonts/inter-600.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url(/assets/fonts/jetbrains-mono-500.woff2) format("woff2"); }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 17px; line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: var(--text); text-underline-offset: 3px; }
a:hover { color: var(--highlight); }
:focus-visible { outline: 3px solid var(--highlight); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; letter-spacing: -0.02em; margin: 0; line-height: 1.1; }
h1 { font-size: clamp(40px, 6vw, 68px); letter-spacing: -0.03em; line-height: 1.02; }
h2 { font-size: clamp(30px, 4vw, 38px); }
h3 { font-size: 22px; }
p { margin: 0; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: #fff; padding: 10px 14px; border-radius: var(--radius-sm); z-index: 10; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.narrow { max-width: 760px; }
.stack { display: flex; flex-direction: column; gap: 36px; }
.muted { color: var(--muted); }

/* Header */
.site-header { border-bottom: 1px solid var(--border); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-heading); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; font-weight: 500; }
.nav a:not(.btn) { text-decoration: none; padding: 10px 0; }
.nav a[aria-current="page"] { color: var(--highlight); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: var(--radius-sm); font-family: var(--font-body); font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { border-color: var(--field); color: var(--text); background: transparent; }
.btn-secondary:hover { border-color: var(--text); color: var(--text); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }

/* Labels */
.eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; color: var(--highlight); }
.lead { font-size: 19px; color: var(--muted); max-width: 560px; }
.kicker { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.num { font-family: var(--font-mono); font-size: 13px; color: var(--highlight); }
.tag { align-self: flex-start; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--highlight); border: 1px solid var(--border); border-radius: 4px; padding: 3px 8px; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 80px; }
.hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.page-hero { display: flex; flex-direction: column; gap: 20px; padding-top: 80px; padding-bottom: 56px; }

/* Example log panel */
.log-panel { flex: 1 1 400px; min-width: 0; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 20px; font-family: var(--font-mono); }
.log-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.pill { border: 1px solid var(--field); border-radius: 4px; padding: 4px 8px; }
.log { width: 100%; border-collapse: collapse; font-size: 16px; }
.log th { text-align: left; font-weight: 500; font-size: 12px; color: var(--muted); text-transform: uppercase; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.log td { padding-top: 14px; }
.log tr.up td { color: var(--highlight); }
.progress { display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--muted); }
.bar { height: 10px; background: var(--border); border-radius: 5px; }
.bar > div { height: 10px; background: var(--highlight); border-radius: 5px; }

/* Sections and cards */
.section { border-top: 1px solid var(--border); padding: 72px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head a { font-size: 15px; font-weight: 600; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card p { color: var(--muted); font-size: 16px; }
.card-link { text-decoration: none; }
.card-link:hover { border-color: var(--highlight); color: var(--text); }
.split { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.split > div { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }

/* Feature box with sign-up */
.feature { background: var(--panel); border: 1px solid var(--accent); border-radius: 12px; padding: 48px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; }
.feature-text { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.feature-text p:not(.eyebrow) { color: var(--muted); }

/* Sign-up form */
.signup { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.signup label { font-size: 14px; font-weight: 600; }
.signup-row { display: flex; flex-wrap: wrap; gap: 10px; }
.signup input { flex: 1 1 200px; min-width: 0; min-height: 48px; font: inherit; font-size: 16px; padding: 0 16px; border: 1.5px solid var(--field); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); }
.signup input::placeholder { color: #7D8492; }
.signup input:focus { border-color: var(--highlight); outline: none; box-shadow: 0 0 0 3px rgba(110, 168, 255, 0.35); }
.fine { font-size: 13px; color: var(--muted); }

/* Landing page */
.landing { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; align-items: center; }
.landing > div:first-child { display: flex; flex-direction: column; gap: 20px; }
.landing .feature { padding: 32px; }

/* About */
.about { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 48px; }
.about-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.photo-slot { flex: 1 1 320px; min-width: 0; height: 380px; background: var(--panel); border: 1px dashed var(--field); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }

/* Long-form text */
.prose { max-width: 720px; display: flex; flex-direction: column; gap: 20px; }
.prose p { color: #D3D7DE; }
.prose h2 { font-size: 24px; margin-top: 16px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--footer); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding-top: 48px; padding-bottom: 48px; }
.footer-inner .brand { font-size: 20px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }
.footer-nav a { padding: 8px 0; }
.copyright { font-size: 13px; color: var(--muted); }

@media (max-width: 640px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 56px; padding-bottom: 56px; gap: 40px; }
  .page-hero { padding-top: 56px; }
  .section { padding: 56px 0; }
  .feature { padding: 28px; }
  .nav { gap: 4px 20px; }
}
