/* Vowday web tokens: the same as the app (ui/theme/Color.kt). One accent, CoralDeep. */
@font-face { font-family: "Plus Jakarta Sans"; src: url("/assets/fonts/jakarta.woff2") format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/assets/fonts/jakarta-ext.woff2") format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light dark;
  --bg: #faf8f6;
  --card: #ffffff;
  --tint: #f9efeb;
  --ink: #1f2433;
  --ink-soft: #4e4b4a;
  --muted: #615b56;
  --primary: #b8463a;
  --primary-press: #9c3a30;
  --primary-ink: #ffffff;
  --line: #e8ded3;
  --shadow: 0 8px 24px rgba(31, 36, 51, .08);
  --radius-hero: 24px;
  --radius: 20px;
  --radius-sm: 8px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171311;
    --card: #2a2422;
    --tint: #3a2c29;
    --ink: #f7f1ea;
    --ink-soft: #ddd3cb;
    --muted: #b3a8a0;
    --primary: #f08a7c;
    --primary-press: #f4a296;
    --primary-ink: #171311;
    --line: #383130;
    --shadow: 0 8px 24px rgba(0, 0, 0, .32);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

h1, h2, h3 { line-height: 1.2; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }

h1 { font-size: clamp(30px, 6vw, 44px); margin: 0 0 16px; }
h2 { font-size: 24px; margin: 48px 0 12px; }
h3 { font-size: 18px; margin: 24px 0 8px; }

a { color: var(--primary); text-underline-offset: 4px; }

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }

header.site { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; min-height: 64px; }

.logo { font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }

.logo span { color: inherit; }

nav a { margin-left: 16px; color: var(--muted); text-decoration: none; }

.hero { padding: 32px 0 24px; }

.lead { font-size: 18px; color: var(--ink-soft); max-width: 34em; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px 24px;
  border-radius: 999px;
  border: 0;
  background: var(--primary);
  color: var(--primary-ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(184, 70, 58, .22);
  transition: transform .15s ease-out, background-color .15s ease-out;
}

.button:hover { background: var(--primary-press); }
.button:active { transform: scale(.97); }

/* A tool's own main action (generator): ink, so the store button keeps the accent. */
.button.ink { background: var(--ink); color: var(--bg); box-shadow: none; }
.button.ink:hover { background: var(--ink-soft); }

/* Second actions are quiet: ink outline, never the accent. */
.button.secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.button.secondary:hover { background: var(--tint); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(208px, 1fr)); gap: 16px; margin: 24px 0; }

.card { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }

.card h3 { margin-top: 0; }

.card p { margin: 0; color: var(--muted); }

.code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(32px, 10vw, 48px);
  letter-spacing: .3em;
  font-weight: 700;
  text-align: center;
  padding: 16px 0;
}

.code.plain { font-family: inherit; font-size: 18px; letter-spacing: 0; }

.center { text-align: center; }

.steps { padding-left: 24px; }

.steps li, ol li, .legal li { margin-bottom: 8px; }

.legal h2 { font-size: 20px; }

.table-wrap { overflow-x: auto; }

.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }

.legal th, .legal td { text-align: left; vertical-align: top; padding: 8px; border-bottom: 1px solid var(--line); }

.note { color: var(--muted); font-size: 15px; }

footer.site { margin-top: 64px; padding: 24px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }

footer.site a { color: var(--muted); margin-right: 16px; display: inline-block; min-height: 48px; line-height: 48px; }

details { background: var(--card); border-radius: 16px; padding: 12px 16px; margin: 8px 0; box-shadow: var(--shadow); }

summary { cursor: pointer; font-weight: 500; min-height: 32px; display: flex; align-items: center; }

[hidden] { display: none !important; }

/* Store block at the end of article pages. */
.get-app { margin-top: 48px; padding: 24px; background: var(--tint); border-radius: var(--radius-hero); }
.get-app h2 { margin-top: 0; }
.get-app .button { margin-top: 16px; }

/* Invite page */
.join .card { max-width: 360px; margin: 24px auto; }
.join .code { padding: 8px 0; }
.join .button { display: flex; max-width: 360px; margin: 12px auto; }
.join .note { max-width: 30em; margin: 8px auto; }
.what { max-width: 34em; }
.what li { margin-bottom: 8px; }

/* Question generator */
.gen { background: var(--card); border-radius: var(--radius-hero); padding: 24px; margin: 24px 0 32px; box-shadow: var(--shadow); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.chip { font: inherit; font-size: 15px; min-height: 48px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: inherit; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.gen-q { font-size: 22px; font-weight: 500; line-height: 1.35; min-height: 4.2em; margin: 8px 0; }
.gen-meta { font-size: 14px; color: var(--muted); margin: 0; }
.gen-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.gen-actions button { cursor: pointer; font: inherit; }
.gen-actions button:disabled { opacity: .45; cursor: default; }
.gen-status { font-size: 14px; min-height: 1.2em; margin: 8px 0 0; }
details ol { margin-top: 8px; }
#gen-list-out:empty { display: none; }

@media (max-width: 520px) {
  nav { display: none; }
}

.hero.center .lead { margin: 0 auto; }

.hero.center .card { margin: 24px auto; max-width: 360px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
