/* Wick — shared styles for site pages.
   Adapted from the design handoff bundle. The original used a CSS-drawn
   candle for the logomark; we use the actual Wick app icon (PNG). */

:root {
  --bg:          oklch(95% 0.018 82);
  --bg-elev:     oklch(98% 0.012 85);
  --bg-app:      oklch(92% 0.022 78);
  --bg-deep:     oklch(28% 0.04 50);
  --ink:         oklch(22% 0.015 60);
  --ink-muted:   oklch(48% 0.02 60);
  --ink-faint:   oklch(68% 0.015 70);
  --rule:        oklch(85% 0.015 75);
  --accent:      oklch(62% 0.13 40);
  --accent-deep: oklch(48% 0.13 40);
  --accent-soft: oklch(92% 0.05 45);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { overflow-x: hidden; }
button, input, textarea { font: inherit; }
button { cursor: pointer; border: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.serif { font-family: 'Lora', 'Iowan Old Style', Georgia, serif; }
.mono  { font-family: 'JetBrains Mono', ui-monospace, monospace; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 32px; }

/* ── NAV ── */
nav.top {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  background: oklch(95% 0.018 82 / 0.78);
  border-bottom: 0.5px solid var(--rule);
}
nav.top .inner { display: flex; align-items: center; justify-content: space-between; height: 64px; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
nav.top .links { display: flex; gap: 32px; }
nav.top .links a {
  font-size: 14px; color: var(--ink-muted); font-weight: 500;
  transition: color .15s ease;
}
nav.top .links a:hover, nav.top .links a.active { color: var(--ink); }
nav.top .cta {
  height: 36px; padding: 0 16px; border-radius: 8px;
  background: var(--ink); color: var(--bg);
  font-size: 13px; font-weight: 600; letter-spacing: 0.1px;
  display: inline-flex; align-items: center;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Lora', Georgia, serif; font-weight: 600; font-size: 21px;
  letter-spacing: -0.4px; color: var(--ink);
}
.brand .logomark {
  width: 28px; height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
}

/* ── PAGE HEADER ── */
.page-header {
  padding: 100px 0 60px;
  border-bottom: 1px solid var(--rule);
}
.page-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent-deep); margin-bottom: 24px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px;
}
.page-eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--accent-deep); }
.page-h {
  font-family: 'Lora', Georgia, serif;
  font-size: 64px; font-weight: 500; letter-spacing: -1.6px;
  line-height: 1.0; margin-bottom: 24px; text-wrap: balance;
}
.page-h em { font-style: italic; color: var(--accent-deep); }
.page-lede {
  font-family: 'Lora', Georgia, serif;
  font-size: 22px; line-height: 1.5; color: var(--ink-muted);
  max-width: 640px; font-weight: 400;
}

/* ── BODY CONTENT ── */
.body-content {
  padding: 64px 0 80px;
}
.body-content h2 {
  font-family: 'Lora', serif; font-size: 32px; font-weight: 500;
  letter-spacing: -0.8px; line-height: 1.15; margin: 56px 0 16px;
}
.body-content h2:first-child { margin-top: 0; }
.body-content h3 {
  font-family: 'Lora', serif; font-size: 22px; font-weight: 500;
  letter-spacing: -0.3px; margin: 36px 0 10px;
}
.body-content p, .body-content ul, .body-content ol {
  font-family: 'Lora', serif; font-size: 17px; line-height: 1.65;
  color: var(--ink); margin-bottom: 18px;
}
.body-content p.lede {
  font-size: 21px; color: var(--ink-muted); font-style: italic;
  margin-bottom: 28px;
}
.body-content ul, .body-content ol { padding-left: 22px; }
.body-content li { margin-bottom: 10px; }
.body-content a {
  color: var(--accent-deep); text-decoration: underline;
  text-decoration-color: var(--accent-soft); text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.body-content a:hover { text-decoration-color: var(--accent); }
.body-content strong { color: var(--ink); font-weight: 600; }
.body-content em { font-style: italic; }
.body-content hr {
  border: none; border-top: 1px solid var(--rule);
  margin: 48px 0;
}

/* ── BUTTONS ── */
.btn-primary {
  height: 48px; padding: 0 22px; border-radius: 10px;
  background: var(--ink); color: var(--bg);
  font-size: 14px; font-weight: 600; letter-spacing: 0.1px;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 6px 18px oklch(22% 0.015 60 / 0.18);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px oklch(22% 0.015 60 / 0.22); }

/* ── FOOTER ── */
footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--rule);
}
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-top: 0;
  max-width: 1240px; margin: 0 auto; padding-left: 32px; padding-right: 32px;
}
.foot-brand .small-tag {
  font-family: 'Lora', serif; font-size: 14px; font-style: italic;
  color: var(--ink-muted); margin-top: 14px; max-width: 280px; line-height: 1.5;
}
.foot-col-head {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 16px;
}
.foot-col a {
  display: block; padding: 6px 0; font-size: 14px;
  color: var(--ink-muted); transition: color .15s ease;
}
.foot-col a:hover { color: var(--ink); }
.foot-bottom {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--ink-faint); letter-spacing: 0.5px;
  max-width: 1240px; margin-left: auto; margin-right: auto;
  padding-left: 32px; padding-right: 32px;
}

@media (max-width: 980px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  nav.top .links { display: none; }
  .page-h { font-size: 44px; letter-spacing: -1.2px; }
  .body-content h2 { font-size: 26px; }
}
