/* Go and Make — palette matches the app (lib/theme.ts in the app repo). */
:root {
  --bg: #f7f5f0;
  --surface: #fcfbf8;
  --surface-strong: #e6e2d9;
  --ink: #292c29;
  --muted: #5f625c;
  --primary: #607666;
  --primary-strong: #4f6355;
  --on-primary: #ffffff;
  --accent: #ae7757;
  --border: #d9d4c9;
  --radius: 14px;
  --max: 1080px;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f211f;
    --surface: #292c29;
    --surface-strong: #3a3e3a;
    --ink: #f7f5f0;
    --muted: #b3afa6;
    --primary: #8fa595;
    --primary-strong: #a3b8a8;
    --on-primary: #292c29;
    --accent: #c48e6e;
    --border: #3a3e3a;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 12px;
  background: var(--surface);
  padding: 8px 12px;
  z-index: 10;
}

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 40px;
  height: 40px;
}

.site-nav {
  display: flex;
  gap: 8px;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
}

.site-nav a:hover {
  background: var(--surface-strong);
}

.site-nav a[aria-current='page'] {
  background: var(--surface-strong);
}

/* Type */
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(44px, 7vw, 72px);
}

h2 {
  font-size: clamp(32px, 4.5vw, 44px);
}

h3 {
  font-size: 28px;
}

p {
  margin: 0 0 16px;
}

.lede {
  font-size: 20px;
  color: var(--muted);
  max-width: 40em;
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* Sections */
section {
  padding: 72px 0;
}

section + section {
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 44em;
  margin-bottom: 36px;
}

/* Hero */
.hero {
  padding: 80px 0 72px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-art img {
  width: 100%;
  max-width: 360px;
  margin-left: auto;
  border-radius: 22%;
  box-shadow: 0 24px 60px rgba(41, 44, 41, 0.18);
}

.verse {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--muted);
  margin-bottom: 28px;
}

/* Buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: var(--primary-strong);
  color: var(--on-primary);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.button.secondary:hover {
  background: var(--surface-strong);
  color: var(--ink);
}

/* Cards and grids */
.grid {
  display: grid;
  gap: 20px;
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.card h3 {
  margin-bottom: 10px;
}

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

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-strong);
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 16px;
}

/* Pathways */
.section-close {
  margin: 48px 0 0;
  text-align: center;
}

.pathway {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pathway-logo {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pathway-logo img {
  max-height: 88px;
  width: auto;
}

.pathway-logo .dark-only {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .pathway-logo .light-only {
    display: none;
  }

  .pathway-logo .dark-only {
    display: block;
  }
}

.pathway-meta {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tags li {
  font-size: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface-strong);
}

/* Callout */
.callout {
  background: var(--surface-strong);
  border-radius: calc(var(--radius) * 1.5);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: center;
}

.callout h2 {
  margin-bottom: 12px;
}

.callout .actions {
  margin-top: 0;
  justify-content: flex-end;
}

/* Store badges (placeholders until the apps are live) */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 240px;
  padding: 14px 22px;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}

.store-badge svg {
  width: 30px;
  height: 30px;
  flex: none;
}

.store-badge strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
}

.store-badge span {
  font-size: 14px;
  color: var(--muted);
}

/* Lists in content pages */
.steps {
  padding-left: 1.3em;
  margin: 0 0 16px;
}

.steps li {
  margin-bottom: 8px;
}

/* Long-form pages (privacy, support, delete account) */
.prose {
  max-width: 46em;
  padding: 56px 0 72px;
}

.prose h1 {
  font-size: clamp(40px, 6vw, 56px);
}

.prose h2 {
  font-size: 30px;
  margin-top: 40px;
}

.prose ul {
  padding-left: 1.3em;
}

.prose li {
  margin-bottom: 8px;
}

.prose .updated {
  color: var(--muted);
  font-size: 15px;
}

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

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq details p {
  margin: 12px 0 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 40px;
  font-size: 15px;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

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

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

.footer-links a:hover {
  color: var(--ink);
}

/* Small screens */
@media (max-width: 820px) {
  section {
    padding: 56px 0;
  }

  .hero {
    padding: 48px 0 56px;
  }

  .hero .wrap,
  .callout,
  .grid.three,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
  }

  .hero-art img {
    max-width: 180px;
    margin: 0;
  }

  .callout {
    padding: 32px 24px;
  }

  .callout .actions {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 20px;
  }

  .brand span {
    font-size: 22px;
  }

  .site-nav a {
    padding: 8px 10px;
  }

  .store-badge {
    width: 100%;
  }
}
