/* ==========================================================================
   Thought — website styles
   Shared by every page (home + delete-account).
   Colours match the Thought logo: sage green #6B8F71 and cream #F5F2EB.
   Body font is Cormorant Garamond (same as the app); the "thought." wordmark
   uses Lora Bold Italic (same as the logo).
   Dark mode follows the visitor's phone/computer setting automatically.
   ========================================================================== */

:root {
  --sage: #6B8F71;          /* brand green (logo background) */
  --sage-dark: #56755B;     /* hover/pressed green */
  --cream: #F5F2EB;         /* brand cream (logo text) */
  --bg: #F5F2EB;            /* page background */
  --card: #FBF9F6;          /* card / input background (matches app) */
  --text: #2B2A27;          /* primary text */
  --muted: #6F6A61;         /* secondary text */
  --border: #E0DAD2;        /* input/card borders (matches app login fields) */
  --danger: #B5483B;        /* delete button */
  --danger-dark: #963A2F;
  --success: #4E7A55;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;          /* app dark Primary Background */
    --card: #1C1C1C;        /* app dark Secondary Background */
    --text: #EDE9E1;
    --muted: #A9A398;
    --border: #33302B;
    --danger: #D0614F;
    --danger-dark: #B5483B;
    --success: #8DB592;
  }
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--sage); }
a:hover { color: var(--sage-dark); }

/* ---------- Layout ---------- */

.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 16px 64px;
}

/* ---------- Wordmark (recreates the logo: line / thought. / line) ---------- */

.wordmark {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  text-align: center;
}
.wordmark .rule {
  display: block;
  height: 1.5px;
  background: currentColor;
}
.wordmark .word {
  display: block;
  font-family: "Lora", Georgia, serif;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.5px;
  line-height: 1.05;
  padding: 0.1em 0.35em 0.12em;
}

/* Small wordmark in the page header */
.site-header {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}
.site-header .wordmark { color: var(--sage); }
.site-header .word { font-size: 30px; }

/* Large wordmark on the green hero (home page) */
.hero {
  background: var(--sage);
  color: var(--cream);
  text-align: center;
  padding: 88px 16px 80px;
}
.hero .wordmark .word { font-size: clamp(56px, 16vw, 92px); }
.hero .tagline {
  margin: 28px auto 0;
  max-width: 420px;
  font-size: 22px;
  font-style: italic;
}

/* ---------- Text ---------- */

h1 {
  font-weight: 600;
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 12px;
  text-align: center;
}
h2 {
  font-weight: 600;
  font-size: 24px;
  margin: 0 0 10px;
}
p { margin: 0 0 14px; }
.lead { color: var(--muted); text-align: center; margin-bottom: 28px; }
.small { font-size: 16px; color: var(--muted); }
.center { text-align: center; }

/* ---------- Cards ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 20px;
}

ul.list { margin: 0 0 6px; padding-left: 22px; }
ul.list li { margin-bottom: 4px; }

/* ---------- Forms ---------- */

label {
  display: block;
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 6px 4px;
}
input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  font: inherit;
  font-size: 18px;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 16px;
  outline: none;
}
input:focus { border-color: var(--sage); }

.btn {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 19px;
  font-weight: 600;
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.btn-primary { background: var(--sage); color: var(--cream); }
.btn-primary:hover { background: var(--sage-dark); color: var(--cream); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-dark); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.link-btn {
  background: none;
  border: 0;
  font: inherit;
  font-size: 16px;
  color: var(--sage);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.row-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

/* Status message under a form (errors, confirmations) */
.msg {
  font-size: 16px;
  margin-top: 14px;
  min-height: 1em;
}
.msg.error { color: var(--danger); }
.msg.ok { color: var(--success); }

.hidden { display: none !important; }

/* ---------- Footer ---------- */

.site-footer {
  text-align: center;
  font-size: 15px;
  color: var(--muted);
  padding: 24px 16px 40px;
}
.site-footer a { margin: 0 10px; }
