/* EverMama site — design tokens mirrored from the app's ui/tokens/index.ts.
   Cream background, brown ink, two serif families. Generic-serif fallback
   only — the app spec forbids sans, and the marketing surface follows. */

:root {
  --page: #fcf3e4;
  --page-warm: #fff5e0;
  --card: #fdf5ea;
  --ink: #3d2e1f;
  --muted: #8a7058;
  --whisper: #8a7058;
  --border-soft: #e0cfb0;
  --border: #d4c4a0;
  --sage: #7a9268;
  --terracotta: #c47660;

  --morning: #d4915c;
  --afternoon: #c17767;
  --evening: #7a6a9e;
  --anytime: #7a9268;

  --shadow-card: 0 4px 20px rgba(80, 50, 28, 0.06);
  --shadow-ring: 0 2px 10px rgba(80, 50, 28, 0.12);
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--page);
  color: var(--ink);
  font-family: 'EB Garamond', Garamond, 'Iowan Old Style', 'Apple Garamond', serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}
a:hover {
  text-decoration-color: var(--terracotta);
}

/* ---------- layout ---------- */

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 28px;
}

header.site {
  padding: 28px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header.site .wordmark {
  font-family: 'Cormorant Garamond', 'Cormorant', Garamond, serif;
  font-weight: 500;
  font-size: 26px;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

header.site .wordmark-icon {
  width: 30px;
  height: 30px;
}

header.site nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
}
header.site nav a {
  text-decoration: none;
  color: var(--muted);
}
header.site nav a:hover {
  color: var(--ink);
}

footer.site {
  margin: 80px 0 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
  font-size: 14px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
}
footer.site nav {
  display: flex;
  gap: 22px;
}
footer.site a {
  color: var(--muted);
  text-decoration: none;
}
footer.site a:hover {
  color: var(--ink);
}

/* ---------- hero ---------- */

.hero {
  padding: 88px 0 56px;
  text-align: center;
}

.hero h1 {
  font-family: 'Cormorant Garamond', Garamond, serif;
  font-weight: 400;
  font-style: italic;
  font-size: 52px;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin: 0 0 20px;
  color: var(--ink);
}

.hero p.lede {
  font-size: 21px;
  line-height: 1.55;
  color: var(--ink);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero .hero-art {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  margin: 0 auto;
}

.hero .availability {
  font-family: 'Cormorant Garamond', Garamond, serif;
  font-style: italic;
  font-size: 17px;
  color: var(--muted);
  margin-top: 36px;
}

/* ---------- sections ---------- */

section {
  padding: 56px 0;
  border-top: 1px solid var(--border-soft);
}

section h2 {
  font-family: 'Cormorant Garamond', Garamond, serif;
  font-weight: 400;
  font-style: italic;
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 28px;
  color: var(--ink);
  text-align: center;
}

section p {
  margin: 0 0 18px;
}

.kicker {
  display: block;
  text-align: center;
  font-family: 'EB Garamond', serif;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

/* ---------- windows grid ---------- */

.windows {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.window {
  background: var(--card);
  border-radius: 18px;
  padding: 22px 22px 24px;
  box-shadow: var(--shadow-card);
}
.window .glyph {
  font-size: 22px;
  margin-bottom: 6px;
}
.window .label {
  font-family: 'EB Garamond', serif;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 11px;
  margin-bottom: 6px;
}
.window .range {
  font-style: italic;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 10px;
}
.window .theme {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.5;
}

.window.morning .label,
.window.morning .glyph {
  color: var(--morning);
}
.window.afternoon .label,
.window.afternoon .glyph {
  color: var(--afternoon);
}
.window.evening .label,
.window.evening .glyph {
  color: var(--evening);
}
.window.anytime .label,
.window.anytime .glyph {
  color: var(--anytime);
}

/* ---------- habit cards (sample) ---------- */

.habit {
  background: var(--card);
  border-radius: 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.habit img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--page);
}
.habit .habit-text {
  padding: 20px 24px 22px;
}
.habit .name {
  font-family: 'Cormorant Garamond', Garamond, serif;
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 6px;
}
.habit .future {
  font-style: italic;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

/* ---------- privacy band ---------- */

.privacy-band {
  text-align: center;
  background: var(--card);
  border-radius: 18px;
  padding: 36px 28px;
  margin-top: 8px;
  box-shadow: var(--shadow-card);
}
.privacy-band .glyph {
  font-size: 20px;
  color: var(--sage);
  margin-bottom: 14px;
}
.privacy-band p {
  max-width: 520px;
  margin: 0 auto 12px;
}

/* ---------- legal pages (privacy / support) ---------- */

.doc {
  padding: 64px 0 48px;
}
.doc h1 {
  font-family: 'Cormorant Garamond', Garamond, serif;
  font-weight: 400;
  font-style: italic;
  font-size: 42px;
  line-height: 1.15;
  margin: 0 0 8px;
}
.doc .updated {
  display: block;
  font-style: italic;
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 36px;
}
.doc h2 {
  font-family: 'Cormorant Garamond', Garamond, serif;
  font-weight: 500;
  font-size: 24px;
  margin: 36px 0 12px;
}
.doc p,
.doc li {
  font-size: 17px;
  line-height: 1.65;
}
.doc ul {
  padding-left: 22px;
}
.doc li {
  margin-bottom: 8px;
}

/* ---------- responsive ---------- */

@media (max-width: 540px) {
  .page {
    padding: 0 22px;
  }
  .hero {
    padding: 56px 0 40px;
  }
  .hero h1 {
    font-size: 40px;
  }
  .hero p.lede {
    font-size: 19px;
  }
  section h2 {
    font-size: 28px;
  }
  .windows {
    grid-template-columns: 1fr;
  }
  .doc h1 {
    font-size: 34px;
  }
  footer.site {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
