/* ==========================================================
   CHANGE YOUR COLORS HERE
   ----------------------------------------------------------
   Every color and font on the site comes from these lines.
   Change a value, save, refresh. The first block is light
   mode, the second block is dark mode (used automatically
   when a phone or computer is set to dark).
   ========================================================== */
:root {
  /* page */
  --paper: #f1f4f2;        /* page background, a cool sage white */
  --surface: #ffffff;      /* raised panels */
  --ink: #0f2620;          /* main text, deep green black */
  --ink-soft: #3e524a;     /* body text */
  --muted: #61736b;        /* small notes and dates */
  --rule: #ccd8d1;         /* thin lines between rows */

  /* brand */
  --brand: #17463a;        /* forest green, buttons and headings */
  --brand-ink: #f1f4f2;    /* text on forest green */
  --brand-soft: #e1ebe5;   /* light green fills */
  --accent: #2f5bd3;       /* cobalt blue, links and placeholders */
  --accent-soft: #e4eafb;

  /* top banner (hero) */
  --hero-bg: #123a2f;
  --hero-ink: #eef5f1;
  --hero-muted: #a9c4b7;
  --chart: #7fd1a8;        /* the line that draws across the banner */

  /* fonts */
  --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b1814;
    --surface: #11231d;
    --ink: #e4ede8;
    --ink-soft: #b8c9c0;
    --muted: #8aa096;
    --rule: #24392f;
    --brand: #8fd3b2;
    --brand-ink: #0b1814;
    --brand-soft: #173128;
    --accent: #93aef7;
    --accent-soft: #1b2a4a;
    --hero-bg: #0f2d24;
    --hero-ink: #eef5f1;
    --hero-muted: #9cb8ab;
    --chart: #7fd1a8;
  }
}
:root[data-theme="dark"] {
  --paper: #0b1814; --surface: #11231d; --ink: #e4ede8; --ink-soft: #b8c9c0;
  --muted: #8aa096; --rule: #24392f; --brand: #8fd3b2; --brand-ink: #0b1814;
  --brand-soft: #173128; --accent: #93aef7; --accent-soft: #1b2a4a;
  --hero-bg: #0f2d24; --hero-ink: #eef5f1; --hero-muted: #9cb8ab; --chart: #7fd1a8;
}
/* ============== end of colors and fonts ============== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0; line-height: 1.1; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--brand-ink); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- sticky header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.top .name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; white-space: nowrap; letter-spacing: -0.01em; }
.top nav { margin-left: auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.top nav::-webkit-scrollbar { display: none; }
.top nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.top nav a { display: block; padding: 8px 9px; font-family: var(--font-display); font-weight: 500; font-size: 0.92rem; color: var(--ink-soft); text-decoration: none; white-space: nowrap; border-radius: 6px; }
.top nav a:hover { color: var(--ink); background: var(--brand-soft); }
.top nav .hide-sm { display: none; }
@media (min-width: 720px) { .top nav .hide-sm { display: block; } }

/* ---------- hero ---------- */
.hero { background: var(--hero-bg); color: var(--hero-ink); position: relative; overflow: hidden; }
.hero .wrap { padding-top: 40px; position: relative; z-index: 1; }
.who { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.who img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--hero-bg), 0 0 0 4px var(--chart); }
.who p { margin: 0; line-height: 1.35; }
.who .full { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--hero-ink); }
.who .place { font-size: 0.95rem; color: var(--hero-muted); }
.hero h1 {
  color: var(--hero-ink);
  font-size: clamp(2.75rem, 13vw, 6.5rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 96;
}
.hero h1 span { display: block; }
.hero .lead { max-width: 34rem; margin: 24px 0 28px; font-size: 1.15rem; color: var(--hero-muted); }
.hero .lead strong { color: var(--hero-ink); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px; border-radius: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1.5px solid transparent;
}
.hero .btn-main { background: var(--chart); color: #0b241c; }
.hero .btn-main:hover { background: #a3e2c2; }
.hero .btn-alt { border-color: color-mix(in srgb, var(--hero-ink) 40%, transparent); color: var(--hero-ink); }
.hero .btn-alt:hover { border-color: var(--hero-ink); }
.chart { display: block; width: 100%; height: 120px; margin-top: 36px; }
.chart .grid { stroke: color-mix(in srgb, var(--hero-ink) 12%, transparent); stroke-width: 1; }
.chart .line { fill: none; stroke: var(--chart); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 3200; stroke-dashoffset: 3200; animation: draw 2.4s 0.3s cubic-bezier(.5,0,.2,1) forwards; }
.chart .area { fill: color-mix(in srgb, var(--chart) 14%, transparent); opacity: 0; animation: fade 1s 2.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chart .line { animation: none; stroke-dashoffset: 0; }
  .chart .area { animation: none; opacity: 1; }
}

/* ---------- sections ---------- */
.sec { padding: 52px 0; border-top: 1px solid var(--rule); }
.sec:first-of-type { border-top: 0; }
.sec .wrap { display: grid; gap: 20px; }
.sec-head h2 { font-size: clamp(1.6rem, 6vw, 2.1rem); font-weight: 700; letter-spacing: -0.02em; }
.sec-head p { margin: 8px 0 0; color: var(--muted); font-size: 0.98rem; max-width: 22rem; }
.sec-body { max-width: 44rem; }
.sec-body > p:last-child { margin-bottom: 0; }
@media (min-width: 880px) {
  .sec { padding: 72px 0; }
  .sec .wrap { grid-template-columns: 260px 1fr; gap: 56px; }
  .sec-head { position: sticky; top: 88px; align-self: start; }
}
.big { font-size: 1.2rem; color: var(--ink); line-height: 1.5; }

blockquote.josh { margin: 28px 0 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--brand); }
blockquote.josh p { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 4.6vw, 1.55rem); line-height: 1.3; color: var(--ink); letter-spacing: -0.01em; margin: 0 0 10px; }
blockquote.josh cite { font-style: normal; font-size: 0.95rem; color: var(--muted); }

.values { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.values li { background: var(--surface); padding: 14px 16px; }
.values b { display: block; font-family: var(--font-display); color: var(--ink); font-weight: 600; }
@media (min-width: 600px) { .values { grid-template-columns: repeat(3, 1fr); } }

/* Kinno block */
.venture { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 22px 20px; }
.venture h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }
.venture .role { font-family: var(--font-display); font-weight: 600; color: var(--brand); margin: 4px 0 14px; }
.venture a.out { font-family: var(--font-display); font-weight: 600; }

/* ledger rows (investing, licenses) */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.ledger li { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.ledger .k { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.ledger .v { margin: 0; }
@media (min-width: 600px) { .ledger li { grid-template-columns: 200px 1fr; gap: 20px; align-items: baseline; } }
.status { display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; padding: 3px 10px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); white-space: nowrap; }
.disclaim { margin-top: 18px; font-size: 0.92rem; color: var(--muted); }

/* placeholders, meant to be replaced */
.ph {
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 5px;
  padding: 0 6px;
  font-style: italic;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  white-space: normal;
}

/* experience timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--rule); }
.timeline li { position: relative; padding: 0 0 30px 30px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--brand); }
.timeline li.now::before { background: var(--brand); }
.timeline .when { font-family: var(--font-display); font-size: 0.9rem; font-weight: 500; color: var(--muted); margin: 0 0 4px; font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.timeline .org { margin: 3px 0 8px; color: var(--ink-soft); }
.timeline .note { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* contact */
.contact-lines { margin: 0 0 24px; }
.contact-lines a { display: block; font-family: var(--font-display); font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; line-height: 1.2; }
.contact-lines .mail { font-size: clamp(1.3rem, 6.4vw, 2.2rem); }
.contact-lines .tel { font-size: clamp(1.15rem, 5vw, 1.6rem); color: var(--ink-soft); margin-top: 6px; }
.contact-lines a:hover { color: var(--accent); }
.sec .btn-main { background: var(--brand); color: var(--brand-ink); }
.sec .btn-main:hover { filter: brightness(1.1); }
.sec .btn-alt { border-color: var(--rule); color: var(--ink); background: var(--surface); }
.sec .btn-alt:hover { border-color: var(--brand); }
.qr-mini { display: flex; align-items: center; gap: 14px; margin-top: 26px; color: var(--muted); font-size: 0.95rem; }
.qr-mini img { width: 84px; height: 84px; border-radius: 8px; background: #fff; padding: 4px; border: 1px solid var(--rule); }
.qr-mini p { margin: 0; }

/* footer */
.foot { border-top: 1px solid var(--rule); padding: 28px 0 36px; font-size: 0.95rem; color: var(--muted); }
.foot .wrap { display: grid; gap: 6px; }
.foot p { margin: 0; }
.foot a { font-family: var(--font-display); font-weight: 600; color: var(--brand); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* 404 */
.lost { min-height: 70vh; display: grid; align-content: center; padding: 64px 0; }
.lost h1 { font-size: clamp(2.4rem, 10vw, 4.5rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; }
.lost .btn-main { background: var(--brand); color: var(--brand-ink); }

/* hero facts panel, shown on wider screens */
.hero-grid { display: grid; gap: 40px; }
.facts { display: none; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1fr 320px; align-items: end; }
  .facts { display: block; margin: 0; padding: 6px 22px; border: 1px solid color-mix(in srgb, var(--hero-ink) 18%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--hero-ink) 5%, transparent); }
  .facts div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid color-mix(in srgb, var(--hero-ink) 14%, transparent); }
  .facts div:last-child { border-bottom: 0; }
  .facts dt { color: var(--hero-muted); font-size: 0.95rem; }
  .facts dd { margin: 0; font-family: var(--font-display); font-weight: 600; color: var(--hero-ink); text-align: right; }
}
