/* =========================================================================
   Cause — minimal editorial styles
   Fonts: Fraunces (display) + Geist (body), both free.
   Palette: warm cream bg, ink foreground, clay accent.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Geist:wght@400;500;600&display=swap');

:root {
  --bg: #F5F1EA;
  --bg-alt: #EFEAE0;
  --ink: #1A1814;
  --ink-soft: #4A453E;
  --ink-muted: #7A736A;
  --line: #D9D2C4;
  --accent: #B85C3C;
  --accent-soft: #E8C9BC;

  --display: 'Fraunces', Georgia, serif;
  --body: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1080px;
  --reading: 680px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle paper grain on the background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 15% 15%, rgba(184, 92, 60, 0.04), transparent 35%),
    radial-gradient(circle at 85% 80%, rgba(26, 24, 20, 0.03), transparent 40%);
}

main, header, footer { position: relative; z-index: 1; }

a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.15s ease; }
a:hover { color: var(--accent); }

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

/* ---------- Layout ---------- */

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.wrap-narrow {
  max-width: var(--reading);
  margin: 0 auto;
  padding: 0 28px;
}

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

.site-header {
  padding: 32px 0 16px;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand:hover { color: var(--accent); }

.site-header nav a {
  margin-left: 24px;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink-soft);
}
.site-header nav a:hover { color: var(--accent); }

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

.hero {
  padding: 80px 0 48px;
  text-align: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(40px, 6.5vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  font-variation-settings: 'opsz' 96, 'SOFT' 30;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

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

.hero-image {
  padding: 24px;
  background: var(--bg-alt);
  border-radius: 24px;
  border: 1px solid var(--line);
}
.hero-image img { border-radius: 12px; width: 100%; display: block; }

/* ---------- App store buttons ---------- */

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 42px;
  justify-content: center;
  align-items: center;
}
.store-buttons a {
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
}
.store-buttons a:hover { transform: translateY(-2px); opacity: 0.85; }
.store-buttons img { height: 56px; width: auto; }

/* ---------- Hero two-column desktop ---------- */

@media (min-width: 760px) {
  .hero { text-align: left; }
  .hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
  }
  .hero .lede { margin-left: 0; margin-right: 0; }
  .hero .store-buttons { justify-content: flex-start; }
}

/* ---------- Features (editorial, numbered) ---------- */

.features {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  max-width: 980px;
  margin: 0 auto;
}

.feature .num {
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.feature h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.feature p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .features-grid { grid-template-columns: 1fr; gap: 48px; }
  .features { padding: 64px 0; }
  .hero { padding: 48px 0 32px; }
}

/* ---------- Try-it section ---------- */

.try-it {
  padding: 96px 0 64px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.try-it h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

/* ---------- Article (privacy / delete pages) ---------- */

.article {
  padding: 64px 0 96px;
}

.article h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.article .meta {
  color: var(--ink-muted);
  font-size: 14px;
  margin-bottom: 48px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.article h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.01em;
  margin: 56px 0 16px;
  line-height: 1.25;
}

.article p { margin-bottom: 18px; color: var(--ink-soft); }
.article p strong { color: var(--ink); font-weight: 600; }

.article ol, .article ul { margin: 0 0 18px 24px; }
.article li { color: var(--ink-soft); margin-bottom: 8px; }

.article img { margin: 24px 0; border-radius: 12px; border: 1px solid var(--line); }

.article a { color: var(--accent); }
.article a:hover { color: var(--ink); }

/* ---------- 404 page ---------- */

.notfound {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 28px;
}

.notfound .code {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(96px, 18vw, 200px);
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 24px;
}

.notfound h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.notfound p { color: var(--ink-soft); margin-bottom: 32px; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-family: var(--body);
  font-weight: 500;
  border-radius: 999px;
  font-size: 15px;
  transition: background 0.2s ease;
}
.btn:hover { background: var(--accent); color: var(--bg); }

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 48px;
  background: var(--bg-alt);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img { width: 56px; height: 56px; border-radius: 12px; margin-bottom: 16px; }
.footer-brand p { color: var(--ink-muted); font-size: 14px; max-width: 280px; }

.footer-col h4 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 16px;
  color: var(--ink-soft);
}

.footer-col a {
  display: block;
  color: var(--ink-soft);
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--accent); }

.social { display: flex; gap: 12px; margin-top: 8px; }
.social a img { width: 22px; height: 22px; opacity: 0.7; transition: opacity 0.2s ease; }
.social a:hover img { opacity: 1; }

.copyright {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 13px;
  color: var(--ink-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .site-header nav a { margin-left: 0; margin-right: 16px; }
}

/* ---------- Subtle entrance animation ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lede, .store-buttons, .hero-image,
  .article h1, .article .meta, .notfound .code, .notfound h1 {
    animation: rise 0.8s cubic-bezier(.2,.7,.2,1) both;
  }
  .hero .lede { animation-delay: 0.1s; }
  .store-buttons { animation-delay: 0.2s; }
  .hero-image { animation-delay: 0.3s; }
  .article .meta { animation-delay: 0.1s; }
  .notfound h1 { animation-delay: 0.15s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
