@font-face { font-family: "Iowan Old Style"; src: local("Iowan Old Style"), local("Charter"), local("Source Serif Pro"); }

:root {
  --serif: "Iowan Old Style", "Charter", "Source Serif Pro", "Times New Roman", Georgia, serif;
  --sans: -apple-system, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --accent: #7A1F2B;
  --accent-2: #a93341;
  --accent-deep: #4d1119;
}

:root[data-theme="dark"] {
  --bg: #0E0D0B;
  --bg-2: #15130F;
  --surface: #1A1815;
  --surface-2: #1F1D19;
  --ink: #F2EEE5;
  --ink-dim: rgba(242,238,229,0.62);
  --ink-faint: rgba(242,238,229,0.38);
  --rule: rgba(255,255,255,0.08);
  --rule-strong: rgba(255,255,255,0.18);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #F8F5EE;
  --bg-2: #F1EDE2;
  --surface: #FFFFFF;
  --surface-2: #FAF6EC;
  --ink: #1B1A17;
  --ink-dim: rgba(27,26,23,0.62);
  --ink-faint: rgba(27,26,23,0.42);
  --rule: rgba(0,0,0,0.10);
  --rule-strong: rgba(0,0,0,0.20);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body { padding-top: 56px; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 32px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.eyebrow-line {
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow-line::before, .eyebrow-line::after {
  content: ""; width: 24px; height: 1px; background: var(--rule-strong);
}

/* Apple-style giant page hero */
.page-hero {
  padding: 120px 0 80px;
  text-align: center;
  border-bottom: 0.5px solid var(--rule);
}
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin: 18px 0 24px;
}
.page-hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.page-hero .lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.45;
  color: var(--ink-dim);
  max-width: 64ch;
  margin: 0 auto;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s;
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 20px;
  border: 0.5px solid var(--rule-strong);
  border-radius: 999px;
  font-size: 14px; color: var(--ink);
  background: transparent;
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Tweaks panel font */
.tweaks-root, .tweaks-root * { font-family: var(--sans); }
