/* Moments — shared styles.
   Design tokens mirror the app's theme (src/theme.ts) so the site and the
   app read as one system. */

:root {
  --bg: #f5f1e9;
  --card: #fcfaf6;
  --card-alt: #f0ebe0;

  --primary: #2e6e5e;
  --primary-dark: #22574a;
  --primary-soft: #e3ede7;

  --accent: #c97b4a;

  --text: #22201c;
  --text-muted: #6f6a61;
  --border: #e8e1d4;

  --hero-from: #39806c;
  --hero-to: #22574a;

  --shadow-soft: 0 3px 10px rgba(58, 46, 30, 0.06);
  --shadow: 0 8px 20px rgba(58, 46, 30, 0.1);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --measure: 68ch;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171a19;
    --card: #1f2422;
    --card-alt: #262b29;

    --primary: #7bc4ac;
    --primary-dark: #a8dcc9;
    --primary-soft: #24322d;

    --accent: #e0a077;

    --text: #eceae4;
    --text-muted: #a39d92;
    --border: #303634;

    --shadow-soft: 0 3px 10px rgba(0, 0, 0, 0.3);
    --shadow: 0 8px 20px rgba(0, 0, 0, 0.38);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  padding: 28px 0 8px;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.2px;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: var(--shadow-soft);
}

.nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
}

.nav a:hover {
  color: var(--text);
  background: var(--card-alt);
}

.nav a[aria-current="page"] {
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-weight: 600;
}

/* ---------- Typography ---------- */

h1,
h2,
h3 {
  font-family: var(--serif);
  letter-spacing: -0.4px;
  line-height: 1.2;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 6vw, 2.9rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.35rem, 3.6vw, 1.7rem);
  font-weight: 600;
  margin-top: 2.6rem;
  margin-bottom: 0.6rem;
}

h3 {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

p,
ul,
ol {
  max-width: var(--measure);
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

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

ul,
ol {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

strong {
  font-weight: 650;
}

.lede {
  font-size: 1.12rem;
  color: var(--text-muted);
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: 0.92rem;
}

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

main {
  padding-bottom: 40px;
}

section {
  margin-top: 8px;
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 6vw, 52px);
  margin: 20px 0 8px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.hero h1 {
  color: #fff;
  position: relative;
}

.hero p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
  margin: 0.75rem 0 0;
  position: relative;
  max-width: 46ch;
}

.hero-icon {
  width: 76px;
  height: 76px;
  border-radius: 19px;
  margin-bottom: 22px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  position: relative;
}

.badge {
  display: inline-block;
  margin-top: 26px;
  padding: 11px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  position: relative;
}

a.badge:hover {
  background: rgba(255, 255, 255, 0.26);
  color: #fff;
}

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

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 1.2rem;
}

.card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin-top: 0;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.97rem;
}

.card .ico {
  font-size: 1.5rem;
  line-height: 1;
  display: block;
  margin-bottom: 10px;
}

.note {
  background: var(--primary-soft);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 1.6rem 0;
}

.note p:last-child {
  margin-bottom: 0;
}

/* ---------- Contact ---------- */

.contact {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  margin: 1.4rem 0 0;
}

.contact a {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  word-break: break-all;
}

/* ---------- FAQ ---------- */

.faq {
  margin-top: 1.2rem;
  border-top: 1px solid var(--border);
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  cursor: pointer;
  padding: 15px 34px 15px 2px;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2013";
}

.faq summary:hover {
  color: var(--primary);
}

.faq .answer {
  padding: 0 2px 18px;
}

.faq .answer > :last-child {
  margin-bottom: 0;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 26px 0 44px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  align-items: center;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--text);
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* ---------- Accessibility ---------- */

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
