/* WellThot LLC — shared styles. Plain CSS, no build step. */

:root {
  color-scheme: light dark;   /* real dual-theme support — also stops browser auto-darkening */
  --ink: #1f1d18;
  --ink-soft: #5b564c;
  --paper: #fdfbf4;
  --panel: #ffffff;
  --line: #e7e2d6;
  --accent: #e8b22e;          /* warm gold — echoes the Jots icon */
  --accent-deep: #b3851a;
  --max: 64rem;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31,29,24,.06), 0 8px 24px rgba(31,29,24,.05);
  font-size: 17px;
}

/* Dark: the brand inverted — ink page, paper text, gold unchanged (it reads on both).
   --accent-deep brightens a step so links stay legible on the dark ground. */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f0ece1;
    --ink-soft: #b3ac9d;
    --paper: #191713;
    --panel: #23201a;
    --line: #3b362c;
    --accent-deep: #c9982f;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* Header / nav */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(253,251,244,.85);
  backdrop-filter: saturate(150%) blur(8px);
  position: sticky; top: 0; z-index: 10;
}
@media (prefers-color-scheme: dark) {
  .site-header { background: rgba(25,23,19,.85); }   /* translucent ink, not paper */
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .9rem; padding-bottom: .9rem;
}
.brand { font-weight: 700; font-size: 1.15rem; color: var(--ink); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand .dot { color: var(--accent); }
/* The double-check W: two check marks stand in for the wordmark's initial. Sized so the
   glyph's cap height matches the type; the small negative vertical-align seats the check
   valleys on the text baseline. Colors ride the theme vars (ink first, gold "done" second). */
.brand svg { height: .94em; width: auto; vertical-align: -.09em; }
.brand .w1 { stroke: var(--ink); }
.brand .w2 { stroke: var(--accent); }
.nav a { color: var(--ink-soft); font-weight: 500; margin-left: 1.25rem; }
.nav a:hover { color: var(--ink); text-decoration: none; }

/* Layout blocks */
main { padding: 3rem 0 4rem; }
/* Longhand on purpose: .hero shares elements with .wrap ("hero wrap"), and the shorthand
   `padding: 4rem 0 3rem` would zero .wrap's horizontal padding (same specificity, later
   in the sheet) — which flushed hero text to the screen edge on phones. */
.hero { padding-top: 4rem; padding-bottom: 3rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 1rem; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 40rem; }

h2 { font-size: 1.6rem; letter-spacing: -.01em; margin: 2.5rem 0 1rem; }
h3 { font-size: 1.15rem; margin: 1.75rem 0 .4rem; }
p { margin: 0 0 1rem; }

.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }

.btn {
  display: inline-block; background: var(--accent); color: #2a2107;
  font-weight: 600; padding: .7rem 1.25rem; border-radius: 999px;
  border: 1px solid var(--accent-deep);
}
.btn:hover { background: var(--accent-deep); color: #fff; text-decoration: none; }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { background: var(--panel); color: var(--ink); }

/* Cards */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin: 2rem 0; }
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }

/* Prose pages (privacy, support, about) */
.prose { max-width: 44rem; }
.prose h1 { font-size: 2rem; letter-spacing: -.02em; margin: 0 0 .25rem; }
.prose .effective { color: var(--ink-soft); font-size: .95rem; margin-bottom: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: .3rem 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0; color: var(--ink-soft); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--ink-soft); }
.site-footer nav a { margin-right: 1rem; }

@media (max-width: 36rem) {
  .nav a { margin-left: .9rem; }
  .site-header .brand { font-size: 1.05rem; }
}
