/* yummerz.app — shared stylesheet
   Palette mirrors Packages/YummerzDesign/Sources/YummerzDesign/Tokens/Palette.swift.
   System fonts only. No external assets. */

:root {
  --cream: #F7F2EA;
  --surface: #FDFBF6;
  --surface-elevated: #FFFEFB;
  --charcoal: #2A2622;
  --warm-gray: #8C7F71;
  --muted-gray: #B8AEA1;
  --text-secondary: #6E6256;
  --divider: #E5DDD0;
  --accent: #C2632A;
  --accent-text: #A84E1D;
  --accent-pale: #F5E8DF;
  --appetite: #E2725B;
  --appetite-ink: #2A2622;
  --danger: #A3341C;
  --success: #3B6B45;
  --memory: #4F5942;
  --memory-wash: #EEF0E8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cream: #1A1816;
    --surface: #221F1B;
    --surface-elevated: #2A2621;
    --charcoal: #F2EFE9;
    --warm-gray: #A89C94;
    --muted-gray: #6F6861;
    --text-secondary: #B6ABA1;
    --divider: #2D2A26;
    --accent: #E08A52;
    --accent-text: #E08A52;
    --accent-pale: #3A2518;
    --appetite: #E5765F;
    --appetite-ink: #2A2622;
    --danger: #E07A5A;
    --success: #8FBC96;
    --memory: #9CA88D;
    --memory-wash: #262A1F;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent-text);
  text-decoration-color: var(--divider);
  text-underline-offset: 0.15em;
}

a:hover,
a:focus {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

/* Layout */

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

/* Header */

.site-header {
  padding: 1.5rem 0;
}

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

.wordmark {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
}

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

/* Hero */

.hero {
  padding: 3rem 0 2.5rem;
  text-align: center;
}

.hero .wordmark-hero {
  font-size: clamp(2.5rem, 8vw, 3.75rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--charcoal);
}

.hero .tagline {
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  color: var(--text-secondary);
  margin: 0 0 2rem;
}

/* App Store badge (placeholder — not Apple's official artwork) */

.app-store-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  background: var(--charcoal);
  color: var(--cream);
  text-decoration: none;
  padding: 0.6rem 1.25rem 0.7rem;
  border-radius: 0.85rem;
  transition: opacity 0.15s ease;
}

.app-store-badge:hover,
.app-store-badge:focus-visible {
  opacity: 0.85;
}

.app-store-badge .badge-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: var(--cream);
  opacity: 0.85;
}

.app-store-badge .badge-title {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

@media (prefers-reduced-motion: reduce) {
  .app-store-badge {
    transition: none;
  }
}

/* Marketing sections (index.html) */

.pitch {
  padding: 2rem 0;
  border-top: 1px solid var(--divider);
}

.pitch h2 {
  font-size: 1.4rem;
  margin: 0 0 0.85rem;
  letter-spacing: -0.01em;
}

.pitch p {
  margin: 0 0 0.85rem;
  color: var(--charcoal);
}

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

.pitch p.emphasis {
  color: var(--accent-text);
  font-weight: 600;
}

.cta {
  padding: 2.5rem 0 3.5rem;
  text-align: center;
  border-top: 1px solid var(--divider);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--divider);
  padding: 2rem 0 3rem;
  margin-top: 1rem;
}

.site-footer .footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0 0 1rem;
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
}

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

.site-footer .fine-print {
  color: var(--muted-gray);
  font-size: 0.85rem;
  margin: 0.25rem 0;
}

/* Legal documents (terms.html, privacy.html) */

.legal {
  padding: 2.5rem 0 4rem;
}

.legal h1 {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.legal .doc-meta {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0 0 1.75rem;
}

.legal .intro p {
  margin: 0 0 1rem;
}

.legal h2 {
  font-size: 1.3rem;
  margin: 0 0 1rem;
  letter-spacing: -0.005em;
  scroll-margin-top: 1.5rem;
}

.legal h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.75rem;
}

.legal p {
  margin: 0 0 1rem;
}

.legal ul {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
}

.legal li {
  margin: 0 0 0.5rem;
}

.legal li:last-child {
  margin-bottom: 0;
}

.legal hr {
  border: none;
  border-top: 1px solid var(--divider);
  margin: 2.25rem 0;
}

.legal blockquote {
  margin: 0 0 1rem;
  padding: 0.9rem 1.1rem;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0.25rem;
}

.legal blockquote p {
  margin: 0 0 0.4rem;
}

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

.legal code {
  background: var(--accent-pale);
  color: var(--charcoal);
  padding: 0.1em 0.35em;
  border-radius: 0.3em;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
}

.legal caption {
  caption-side: top;
  text-align: left;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.legal th,
.legal td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--divider);
  vertical-align: top;
}

.legal th {
  background: var(--surface);
  font-weight: 600;
  white-space: nowrap;
}

.legal table td:last-child,
.legal table th:last-child {
  white-space: nowrap;
}

@media (max-width: 600px) {
  .legal table {
    font-size: 0.88rem;
  }
  .legal th,
  .legal td {
    padding: 0.5rem;
  }
  .legal table td:last-child,
  .legal table th:last-child {
    white-space: normal;
  }
}

/* Support page */

.support-intro {
  padding: 0.5rem 0 1.5rem;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 0.9rem;
  padding: 1.25rem 1.4rem;
  margin: 0 0 2rem;
}

.contact-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.contact-card p {
  margin: 0;
  color: var(--text-secondary);
}

.contact-card a {
  color: var(--accent-text);
  font-weight: 600;
}

.faq {
  padding: 0.5rem 0 2.5rem;
}

.faq h2.section-title {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-transform: lowercase;
  letter-spacing: 0.02em;
  margin: 0 0 1.25rem;
}

.faq-item {
  padding: 1.35rem 0;
  border-top: 1px solid var(--divider);
}

.faq-item:last-child {
  padding-bottom: 0;
}

.faq-item h3 {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
}

.faq-item p {
  margin: 0 0 0.75rem;
  color: var(--charcoal);
}

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

.deletion-note {
  margin-top: 2.5rem;
  padding: 1.25rem 1.4rem;
  background: var(--memory-wash);
  border-radius: 0.9rem;
}

.deletion-note h2 {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
  color: var(--memory);
}

.deletion-note p {
  margin: 0 0 0.75rem;
}

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