/* Dhucha, paper-and-ink editorial. No purple gradients, no neon, no robots. */

:root {
  --paper: #faf6ef;
  --ink: #1d1a16;
  --ink-soft: #55504a;
  --accent: #14603f;      /* deep growth green */
  --accent-ink: #0e4a30;
  --line: #e4dcce;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Dark palette: follows the device unless the user picks a theme with the toggle
   (data-theme on <html>, saved in localStorage by /theme.js). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #191713;
    --ink: #f1ece3;
    --ink-soft: #b0a89b;
    --accent: #3fae7c;
    --accent-ink: #57c493;
    --line: #353028;
  }
}
:root[data-theme="dark"] {
  --paper: #191713;
  --ink: #f1ece3;
  --ink-soft: #b0a89b;
  --accent: #3fae7c;
  --accent-ink: #57c493;
  --line: #353028;
}

.theme-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  border-radius: 999px;
  width: 30px; height: 30px;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
}
.theme-btn:hover { border-color: var(--accent); }

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

/* header */
.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.wordmark .dot { color: var(--accent); }
.beta-tag {
  font-size: 0.78rem;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}

/* hero */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 1.25rem 4rem;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 7.5vw, 5rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 24ch;
}
.hero h1 em {
  display: block;
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  font-size: 0.62em;
  margin-top: 0.35em;
  line-height: 1.15;
}
.sub {
  margin-top: 1.4rem;
  font-size: clamp(1.02rem, 2.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 44ch;
}

/* the one big input */
.start {
  margin-top: 2.4rem;
  display: flex;
  width: 100%;
  max-width: 34rem;
  border: 2px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
}
.start input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 1.1rem;
  padding: 1.05rem 1.15rem;
}
.start input::placeholder { color: var(--ink-soft); opacity: 0.7; }
.start button {
  border: 0;
  background: var(--accent);
  color: #fff;
  font-size: 1.02rem;
  font-weight: 600;
  padding: 0 1.4rem;
  cursor: pointer;
  white-space: nowrap;
}
.start button:hover { background: var(--accent-ink); }

.note {
  margin-top: 1rem;
  font-size: 0.98rem;
  color: var(--accent-ink);
  max-width: 40ch;
  line-height: 1.5;
}

.trust {
  margin-top: 2.2rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* footer */
.foot {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
}

/* small screens: stack the input */
@media (max-width: 480px) {
  .start { flex-direction: column; border-radius: 16px; }
  .start button { padding: 0.95rem; }
}
