/* Kin Foundry: midnight & terracotta. Light by default, dark when the visitor's device asks for it. */
@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url("/fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 600; font-display: swap; src: url("/fonts/dm-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-display: swap; src: url("/fonts/dm-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; 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"); }

:root {
  color-scheme: light dark;
  --paper: #f7f4ef; --card: #ffffff; --ink: #12141b; --muted: #4f535f; --line: #e3ded6; --faint: #c3bdb3; --soft: #efe9e2;
  --accent: #c4582f; --accent-text: #a8441c; --button: #12141b; --on-button: #f7f4ef;
  --band: #12141b; --on-band: #f4efe8; --band-muted: #c9c3ba; --band-accent: #ee9a74; --band-line: #4a4f5e;
  --live-bg: #e1f3e8; --live-ink: #1d6b40; --pill: #efe9e2;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12141b; --card: #1c1f29; --ink: #f4efe8; --muted: #b4ada4; --line: #2c303c; --faint: #4a4f5e; --soft: #1c1f29;
    --accent: #e07a4f; --accent-text: #ee9a74; --button: #e07a4f; --on-button: #12141b;
    --band: #f4efe8; --on-band: #12141b; --band-muted: #4f535f; --band-accent: #a8441c; --band-line: #b9b1a7;
    --live-bg: #163322; --live-ink: #8fdcae; --pill: #2c303c;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); color: var(--ink); padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 40px; }

/* Header and logo */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; color: var(--ink); }
.brand svg { flex: none; }
.brand span { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; }
.mark-stroke { stroke: currentColor; }
.mark-flame { fill: var(--accent); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 15px; font-weight: 600; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.nav .s { display: none; }

/* Shared pieces */
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.label { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); }
.display { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; }
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.btn-primary { background: var(--button); color: var(--on-button); }
.btn-primary:hover { filter: brightness(1.12); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: 88px 96px; }
.hero-copy { flex: 1 1 480px; min-width: 0; }
.hero h1 { margin: 0 0 24px; font-size: clamp(56px, 8vw, 96px); line-height: 0.98; letter-spacing: -0.03em; }
.hero h1 em { color: var(--accent); }
.lede { max-width: 520px; font-size: 20px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-art { flex: 1 1 360px; max-width: 480px; aspect-ratio: 1 / 1; border-radius: 28px; background: var(--soft); position: relative; overflow: hidden; color: var(--ink); }
.hero-art svg { width: 100%; height: 100%; display: block; }
.ring { stroke: var(--faint); }
.hero-art p { position: absolute; left: 24px; right: 24px; bottom: 18px; display: flex; justify-content: space-between; gap: 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); }

/* What we're building */
.band { background: var(--band); color: var(--on-band); padding-block: 96px; }
.band .label { color: var(--band-accent); }
.band h2 { margin: 14px 0 48px; max-width: 760px; font-size: clamp(40px, 5vw, 56px); line-height: 1.05; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.card { background: var(--card); color: var(--ink); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.1; }
.card p { color: var(--muted); }
.card .more { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.card-open { background: transparent; color: var(--on-band); border: 1.5px dashed var(--band-line); }
.card-open p { color: var(--band-muted); }
.pill { align-self: flex-start; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--pill); color: var(--ink); }
.pill-live { background: var(--live-bg); color: var(--live-ink); }
.pill-open { background: transparent; border: 1px solid var(--band-line); color: var(--on-band); }

/* Feedback invite */
.feedback { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; margin-block: 96px 0; padding-block: 48px; padding-inline: 48px; max-width: 1120px; border-radius: 28px; background: var(--soft); }
.feedback > div { flex: 1 1 520px; min-width: 0; }
.feedback h2 { margin: 12px 0 14px; font-size: clamp(34px, 4vw, 46px); line-height: 1.08; }
.feedback p:not(.label) { max-width: 640px; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Mission and approach */
.split { display: flex; flex-wrap: wrap; gap: 24px 64px; padding-block: 96px; }
.split > .label { flex: 1 1 240px; }
.split > div { flex: 2 1 560px; min-width: 0; }
.split + .split { padding-top: 0; }
.split + .split > .label, .split + .split > div { padding-top: 48px; border-top: 1px solid var(--line); }
.split h2 { font-size: clamp(38px, 4.5vw, 52px); line-height: 1.08; }
.split > div > p { margin-top: 20px; max-width: 660px; color: var(--muted); }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 16px; margin-top: 36px; }
.principle { background: var(--soft); border-radius: 16px; padding: 24px; }
.principle h3 { margin: 8px 0 6px; font-size: 18px; }
.principle p:last-child { font-size: 15px; color: var(--muted); }

/* Simple pages (privacy, 404) */
.page { max-width: 760px; margin: 0 auto; padding: 72px 40px 96px; }
.page h1 { font-size: clamp(44px, 6vw, 64px); line-height: 1.05; margin: 16px 0 24px; }
.page h2 { font-size: 22px; margin: 36px 0 8px; }
.page p, .page li { color: var(--muted); }
.page ul { padding-left: 22px; }
.page .lede { margin-bottom: 8px; }

/* Footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-block: 28px 44px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot .brand span { font-size: 20px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }

@media (max-width: 640px) {
  .wrap, .page { padding-inline: 20px; }
  .hero { padding-block: 48px 64px; gap: 36px; }
  .band, .split { padding-block: 64px; }
  .card { padding: 24px; }
  .feedback { margin: 64px 20px 0; padding: 28px 24px; }
  .nav { width: 100%; flex-wrap: nowrap; justify-content: space-between; gap: 0 12px; }
  .nav .l, .nav .nav-extra { display: none; }
  .nav .s { display: inline; }
}

/* Founder page: the photo sits in a soft panel, like the home page logo, so the text can stay left-aligned */
.founder-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; padding-block: 80px 72px; }
.founder-art { flex: 0 1 420px; max-width: 420px; aspect-ratio: 1 / 1; border-radius: 28px; background: var(--soft); display: grid; place-items: center; }
.founder-photo { width: 62%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; outline: 1px solid var(--faint); outline-offset: 18px; }
.founder-hero > div:not(.founder-art) { flex: 1 1 460px; min-width: 0; }
.founder-hero h1 { margin: 18px 0 24px; font-size: clamp(56px, 7vw, 84px); line-height: 1; letter-spacing: -0.03em; }
.founder-story { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 48px 64px; padding-block: 24px 96px; border-top: 1px solid var(--line); padding-top: 64px; }
.founder-story h2 { margin-bottom: 14px; font-size: clamp(32px, 3.5vw, 40px); line-height: 1.1; }
.founder-story p { color: var(--muted); }
.founder-story p + p { margin-top: 12px; }
.founder-story a { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) {
  .founder-hero { padding-block: 28px 48px; gap: 28px; }
  .founder-art { flex: 1 1 100%; max-width: none; aspect-ratio: auto; padding-block: 40px; }
  .founder-photo { width: 168px; outline-offset: 12px; }
  .founder-hero h1 { margin-top: 14px; }
  .founder-hero .lede { font-size: 18px; }
  .founder-story { padding-block: 48px 64px; }
}

/* Ideas board */
/* Ideas board: from idea to launch. Phones show one stage at a time; wide screens show all four. */
.page.ideas { max-width: 1180px; }
.ideas-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.ideas-head > div { max-width: 640px; }
.ideas h1 em { color: var(--accent-text); }
.ideas .lede { margin-bottom: 0; }
.ideas-head .btn { flex: none; }
.moved { display: flex; align-items: center; gap: 12px; margin: 32px 0 0; padding: 14px 20px; border-radius: 18px; background: var(--band); color: var(--on-band); }
.moved[hidden] { display: none; }
.moved svg { flex: none; fill: var(--band-accent); }
.page .moved p { color: var(--on-band); font-size: 15px; }
.stage-picker { display: none; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; margin-top: 28px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); }
.stage-picker button { font: inherit; font-size: 14px; font-weight: 700; min-height: 44px; padding: 0 4px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; }
.stage-picker button[aria-pressed="true"] { background: var(--button); color: var(--on-button); }
.stage-picker button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.board { display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; margin-top: 28px; }
.stage { padding: 16px; border-radius: 24px; background: var(--soft); border: 1px solid var(--line); }
.stage-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 4px 0; }
.page .stage h2 { font-family: var(--sans); font-size: 18px; margin: 0; }
.stage-count { min-width: 28px; text-align: center; padding: 1px 8px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--card); border: 1px solid var(--line); }
.stage-count:empty { display: none; }
.page .stage-sub { margin: 2px 4px 14px; font-size: 14px; }
.stage .ideas-list { gap: 10px; }
.stage .idea { padding: 14px; gap: 12px; flex-direction: row-reverse; }
.stage .idea h3 { font-size: 16px; }
.stage .idea p { font-size: 14px; }
.stage .vote { min-width: 56px; min-height: 56px; }
.stage .pill { display: inline-block; margin-bottom: 6px; font-size: 12px; padding: 2px 10px; }
.pill-top { background: var(--accent-text); color: var(--paper); }
.meter { height: 8px; margin-top: 12px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.meter > div { height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .3s ease; }
@media (prefers-reduced-motion: reduce) { .meter > div { transition: none; } }
.page .to-go { margin-top: 6px; font-size: 13px; }
.page .stage-empty { border: 1.5px dashed var(--faint); border-radius: 18px; padding: 20px 14px; text-align: center; font-size: 14px; }
.stage-empty[hidden] { display: none; }
@media (max-width: 1000px) and (min-width: 641px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .stage-picker { display: grid; }
  .board { display: block; margin-top: 16px; }
  .board .stage { display: none; padding: 0; background: none; border: 0; }
  .board[data-showing="idea"] [data-stage="idea"], .board[data-showing="exploring"] [data-stage="exploring"],
  .board[data-showing="building"] [data-stage="building"], .board[data-showing="launched"] [data-stage="launched"] { display: block; }
  .board .stage-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .page .stage-sub { margin: 0 0 12px; }
  .ideas-head .btn { display: none; }
}
.ideas-status:empty, .form-status:empty { display: none; }
.ideas-status, .form-status { color: var(--muted); margin: 12px 0; }
.ideas-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.page .idea { color: var(--ink); }
.idea { display: flex; align-items: flex-start; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.idea > div { flex: 1; min-width: 0; }
.idea h3 { font-size: 18px; line-height: 1.35; overflow-wrap: anywhere; }
.idea p { margin-top: 6px; color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.vote { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 64px; min-height: 64px; padding: 8px; border-radius: 14px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.vote:hover { border-color: var(--ink); }
.vote[aria-pressed="true"] { background: var(--button); border-color: var(--button); color: var(--on-button); }
.vote:disabled { opacity: 0.6; cursor: progress; }
.vote-count { font-size: 20px; font-weight: 700; line-height: 1; }
.vote-label { font-size: 12px; font-weight: 600; }
.suggest { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.suggest h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.1; margin-bottom: 8px; }
.suggest > p { color: var(--muted); margin-bottom: 20px; }
.suggest form, .admin-login { display: grid; gap: 8px; max-width: 560px; }
.suggest label, .admin-login label { font-weight: 600; margin-top: 8px; }
.optional { font-weight: 400; color: var(--muted); }
.suggest input, .suggest textarea, .admin-login input { font: inherit; color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 48px; }
.suggest input:focus-visible, .suggest textarea:focus-visible, .admin-login input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--ink); }
.suggest .btn, .admin-login .btn { justify-self: start; margin-top: 12px; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; cursor: pointer; font-family: inherit; }
.btn-ghost.btn-sm { background: transparent; }
button.btn-primary { border: 0; }
.admin-idea { flex-wrap: wrap; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-idea .pill { display: inline-block; margin-bottom: 6px; }
.status-approved { background: var(--live-bg); color: var(--live-ink); }
.meta { font-size: 13px !important; }
#logout { margin-top: 32px; font: inherit; font-weight: 600; cursor: pointer; }
.stage-select { font: inherit; font-size: 14px; font-weight: 600; min-height: 40px; padding: 0 10px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); }
/* Suggest an idea: a sticky note, plus optional sparks. The note keeps its paper colors in dark mode too. */
.spark { margin: 4px 0 28px; }
.suggest .spark .btn { margin-top: 0; border: 1.5px solid var(--line); background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.suggest .spark .btn:hover { border-color: var(--ink); }
.spark-card { position: relative; max-width: 520px; margin-top: 14px; padding: 18px 20px; border-radius: 22px; background: var(--band); color: var(--on-band); transform: rotate(1deg); box-shadow: 6px 8px 0 var(--soft); }
.spark-card[data-tilt="1"] { transform: rotate(-1.2deg); }
.spark-card[hidden] { display: none; }
.page .spark-n { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--band-accent); }
.page .spark-q { margin: 6px 0 0; font-family: var(--serif); font-size: clamp(24px, 3vw, 30px); line-height: 1.2; color: var(--on-band); }
.note { position: relative; max-width: 560px; margin: 8px 6px 18px; padding: 26px 20px 14px; background: #fde9a8; color: #12141b; border-radius: 4px 4px 22px 4px; box-shadow: 0 10px 24px rgba(18, 20, 27, .14); transform: rotate(-1deg); transition: transform .3s ease; }
.note-tape { position: absolute; top: -10px; left: 50%; width: 84px; height: 22px; margin-left: -42px; background: rgba(196, 88, 47, .38); transform: rotate(-2deg); }
.suggest .note label { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6b5a26; }
.suggest .note textarea { display: block; width: 100%; margin-top: 4px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #12141b; font-family: var(--serif); font-size: clamp(26px, 3.4vw, 32px); line-height: 1.2; resize: none; min-height: 0; }
.suggest .note textarea::placeholder { color: #8f7b3f; }
.suggest .note textarea:focus-visible { outline: 2px dashed #a8441c; outline-offset: 6px; border-color: transparent; }
.page .note-count { margin: 6px 0 0; font-size: 13px; color: #6b5a26; text-align: right; }
.note-stamp { position: absolute; right: 14px; top: 14px; padding: 4px 10px; border: 2.5px solid #1d6b40; border-radius: 8px; color: #1d6b40; background: rgba(225, 243, 232, .8); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; transform: rotate(8deg) scale(1.6); opacity: 0; pointer-events: none; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), opacity .2s; }
.note.is-sent { transform: rotate(-3deg); }
.note.is-sent .note-stamp { opacity: 1; transform: rotate(8deg) scale(1); }
@media (prefers-reduced-motion: reduce) { .note, .note-stamp { transition: none; } }
.suggest #suggest-again { justify-self: start; margin-top: 4px; border: 1.5px solid var(--line); background: transparent; font: inherit; font-weight: 600; cursor: pointer; }
.suggest #suggest-again[hidden], .suggest #suggest-send[hidden] { display: none; }
