/* Design tokens cloned from the app's DesignSystem/Editorial.swift (light palette):
   cream canvas, warm ink, one orange stamp. Web + app read as one brand. */
:root {
  --bg-primary: #f9f7f3;      /* colors.canvas */
  --bg-secondary: #f9f7f3;    /* colors.canvas */
  --bg-content: #f3f0e8;      /* colors.surface-bone */
  --bg-content-2: #ffffff;    /* colors.surface-card */
  --surface: #ffffff;
  --surface-hover: #f3f0e8;
  --border: rgba(32, 32, 32, 0.12);        /* colors.hairline */
  --border-subtle: rgba(32, 32, 32, 0.08);

  --accent: #ea2804;          /* colors.primary */
  --accent-deep: #c01f00;     /* colors.primary-deep */
  --accent-glow: #ff6a3d;     /* colors.hero-glow */
  --accent-pink: #f4a8a0;     /* colors.hero-pink */
  --ink: #202020;             /* colors.ink / inverse */
  --text-primary: #202020;
  --text-secondary: #3a3a3a;  /* colors.body */
  --text-tertiary: #575757;   /* colors.charcoal */
  --text-quaternary: #8d8d8d; /* colors.ash */
  --text-on-accent: #ffffff;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

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

/* ---------- Site header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 247, 243, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14.5px;
}
.nav a { color: var(--text-tertiary); }
.nav a:hover { color: var(--text-primary); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn-primary {
  background: var(--ink);
  color: #fcfcfc;
}
.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-primary);
}
.btn-ghost:hover { background: var(--surface-hover); }

/* ---------- Section scaffolding ---------- */
.section { padding: 92px 0; }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 14px; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 750; letter-spacing: -0.02em; }
h3 { font-size: 19px; font-weight: 700; }
.lede { color: var(--text-tertiary); font-size: 17px; margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  padding: 52px 0 40px;
  color: var(--text-quaternary);
  font-size: 14px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--text-tertiary); }
.footer-bottom {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .nav { gap: 14px; font-size: 13.5px; }
  .nav .nav-hide-sm { display: none; }
}
