/* Random Idea Studio website. Plain CSS, no build step, no external resources.
   Colours from Branding/README.md. Dark by default, light when the system asks for it. */

@font-face {
  font-family: "Nunito Studio";
  src: url("fonts/nunito-800.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #10141C;
  --surface: #171D29;
  --surface-2: #1E2533;
  --fg: #F4F1EA;
  --muted: #A9B0BC;
  --line: #2A3242;
  --teal: #3FD6C1;
  --teal-ink: #3FD6C1;
  --core: #FFC145;
  --mark-dot: #3FD6C1;
  --pending: #3A3220;
  --pending-fg: #FFD27A;
  --f-display: "Nunito Studio", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --f-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #F4F1EA; --surface: #FFFFFF; --surface-2: #ECE8DE; --fg: #10141C; --muted: #4E5663;
    --line: #DAD5C8; --teal-ink: #137A6D; --mark-dot: #178F80;
    --pending: #FFF0C7; --pending-fg: #6B4A00;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg); color: var(--fg);
  font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
.wrap {
  max-width: 68rem; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }
a { color: var(--teal-ink); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--core); outline-offset: 3px; border-radius: 4px; }
.eyebrow { font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-ink); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 38rem; }
.prose { max-width: 40rem; display: grid; gap: 1rem; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--fg); }
.pending { background: var(--pending); color: var(--pending-fg); padding: 1px 6px; border-radius: 4px; font-family: var(--f-mono); font-size: 0.85em; }

/* Header */
header.top { padding-block: 20px; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; min-height: 44px; }
.brand svg { width: 36px; height: 36px; }
.brand b { color: var(--teal-ink); }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 700; font-size: 0.95rem; }
nav a:hover { color: var(--fg); background: var(--surface); }

/* Hero */
.hero { padding-block: 40px 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-text { display: grid; gap: 22px; min-width: 0; }
.hero h1 .hl { color: var(--teal-ink); }
.hero-mark { margin: 0; max-width: 420px; width: 100%; justify-self: center; }
.hero-mark svg { width: 100%; height: auto; display: block; overflow: visible; }
.hero-mark .dot, .brand .dots { fill: var(--mark-dot); }
.brand .core { fill: var(--core); }
.hero-mark .core { fill: var(--core); }
.hero-note { font-family: var(--f-mono); font-size: 0.8rem; color: var(--muted); text-align: center; margin-top: 8px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.btn.primary { background: var(--teal); color: #10141C; }
.btn.ghost { border: 2px solid var(--line); color: var(--fg); }
.btn.ghost:hover { border-color: var(--teal); }
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-mark { max-width: 260px; order: -1; }
}
/* The dots start scattered and gather into the bulb once, on load. */
@media (prefers-reduced-motion: no-preference) {
  .hero-mark .dot { animation: gather 1.6s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d, 0s); }
  .hero-mark .core { animation: glow 1.6s ease-out both; }
}
@keyframes gather { from { transform: translate(var(--x, 0), var(--y, 0)); } to { transform: translate(0, 0); } }
@keyframes glow { from { opacity: .35; } to { opacity: 1; } }

/* Sections */
section.band { padding-block: 72px; border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 44rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.split .section-head { margin: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.step .who { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.step .num { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 1.05rem; background: var(--surface-2); color: var(--fg); border: 2px solid var(--teal); }
.step:nth-child(2) .num { background: var(--teal); color: #10141C; }
.step:nth-child(3) .num { background: linear-gradient(90deg, var(--surface-2) 50%, var(--teal) 50%); }
.step p { color: var(--muted); }
.loop-note { margin-top: 20px; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Where the time goes */
.focus { list-style: none; margin: 0; padding: 0; max-width: 44rem; }
.focus li { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.focus li:first-child { border-top: 1px solid var(--line); }
.focus li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); margin-top: 8px; }
.focus b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 1.1rem; }
.focus span { color: var(--muted); }

/* Limits */
.limits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.limit { border-left: 3px solid var(--core); padding: 4px 0 4px 18px; min-width: 0; }
.limit b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 1.1rem; margin-bottom: 4px; }
.limit span { color: var(--muted); }
@media (max-width: 720px) { .limits { grid-template-columns: 1fr; } }

/* Name */
.name-quote { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.2; max-width: 46rem; text-wrap: balance; }
.name-quote .hl { color: var(--teal-ink); }
.name-band .prose { margin-top: 28px; }

/* Projects */
.projects { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.project { display: grid; grid-template-columns: 56px minmax(0, 15rem) minmax(0, 1fr); gap: 8px 24px; padding-block: 28px; border-bottom: 1px solid var(--line); align-items: start; }
.project .mark { width: 56px; height: 56px; display: grid; place-items: center; }
.project .mark i { display: block; border-radius: 50%; background: var(--teal); }
.project h3 { font-size: 1.35rem; }
.project .kind { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.project .status { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 0.85rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg); }
.project .status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--teal); }
.project .body { display: grid; gap: 10px; min-width: 0; }
.project .body p { color: var(--muted); }
.project .why { color: var(--fg); font-size: 0.97rem; }
.project .why b { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-ink); margin-right: 8px; }
.project .why.soon { color: var(--muted); font-style: italic; }
@media (max-width: 760px) {
  .project { grid-template-columns: 44px minmax(0, 1fr); }
  .project .mark { width: 44px; height: 44px; }
  .project .body { grid-column: 1 / -1; }
}

/* Privacy page */
.doc { padding-block: 24px 72px; }
.doc .prose { max-width: 44rem; }
.doc h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 8px; }
.doc h2 { font-size: 1.4rem; margin-top: 16px; }
.doc ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 6px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding-block: 56px 40px; background: var(--surface); }
footer .grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; }
@media (max-width: 760px) { footer .grid { grid-template-columns: 1fr; } }
footer h2 { font-size: 1.6rem; margin-bottom: 12px; }
footer p, footer dd { color: var(--muted); }
.legal { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; font-size: 0.95rem; }
.legal dt { font-weight: 700; }
.legal dd { margin: 0; }
.mail { font-family: var(--f-mono); font-size: 1.05rem; color: var(--fg); }
.fine { margin-top: 40px; font-size: 0.9rem; color: var(--muted); display: flex; gap: 8px 16px; flex-wrap: wrap; justify-content: space-between; }
.fine a { display: inline-flex; align-items: center; min-height: 44px; }
