/* PalmCards site — "warm paper, Apple press"
   Mirrors app/DESIGN.md tokens: cream page, ember accent, ink, Fraunces + Inter. */

:root {
  --bg: #FAF6F0;
  --surface: #FFFFFF;
  --surface-sunken: #F3ECE2;
  --ink: #211C16;
  --ink-soft: #6F675D;
  --ink-faint: #A39A8E;
  --ember: #C44B14;
  --ember-bright: #F0703A;
  --hairline: #E7DECF;
  --on-ember: #FFFFFF;
  --maxw: 1080px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(33, 28, 22, 0.04), 0 12px 32px rgba(33, 28, 22, 0.08);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .display {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink);
}

a { color: var(--ember); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---- registration dot: the brand fingerprint ---- */
.dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ember);
  vertical-align: middle;
}

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 246, 240, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: 'Fraunces', serif; font-weight: 600; font-size: 20px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mark { width: 30px; height: 30px; border-radius: 8px; box-shadow: var(--shadow); }
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 15px; }
.nav-links a { color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 16px;
  background: var(--ember); color: var(--on-ember);
  border: none; cursor: pointer; transition: transform .12s ease, filter .12s ease;
}
.btn:hover { filter: brightness(1.04); text-decoration: none; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--hairline); }

/* ---- hero ---- */
.hero { padding: 88px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ember); margin: 0 0 18px; }
.hero h1 { font-size: clamp(40px, 6vw, 62px); margin: 0 0 22px; font-weight: 700; }
.hero p.lede { font-size: 21px; color: var(--ink-soft); margin: 0 0 32px; max-width: 30ch; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.store-note { font-size: 14px; color: var(--ink-faint); margin-top: 18px; }

/* ---- cue card mock ---- */
.cardstack { position: relative; height: 392px; }
.cue {
  position: absolute; inset: 0; margin: auto;
  width: 400px; height: 320px;
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 30px 34px;
  display: flex; flex-direction: column; gap: 15px;
}
.cue.back1 { transform: rotate(-6deg) translate(-26px, 14px) scale(.96); opacity: .55; }
.cue.back2 { transform: rotate(4deg) translate(24px, 8px) scale(.98); opacity: .8; }
.cue.front { transform: rotate(0deg); }
.cue .heading { height: 18px; width: 64%; background: var(--ink); border-radius: 5px; }
.cue .rule { height: 12px; width: 38%; background: var(--ember); border-radius: 4px; }
.cue .line { height: 11px; background: var(--surface-sunken); border-radius: 4px; }
.cue .line.l1 { width: 92%; } .cue .line.l2 { width: 78%; } .cue .line.l3 { width: 85%; }
.cue .spacer { flex: 1; }
.cue .pager { font-size: 13px; color: var(--ink-faint); display: flex; justify-content: space-between; align-items: center; }

/* ---- sections ---- */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); margin: 0 0 14px; }
.section-head p { font-size: 19px; color: var(--ink-soft); margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-md); padding: 32px 28px; }
.step .n { font-family: 'Fraunces', serif; font-weight: 700; font-size: 22px; color: var(--ember); margin-bottom: 14px; }
.step h3 { font-size: 21px; margin: 0 0 10px; }
.step p { margin: 0; font-size: 16px; color: var(--ink-soft); }

.occasions { background: var(--surface-sunken); }
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 720px; margin: 0 auto; }
.chip { background: var(--surface); border: 1px solid var(--hairline); border-radius: 999px; padding: 11px 20px; font-size: 15px; font-weight: 500; color: var(--ink); }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .ic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: rgba(196, 75, 20, 0.10); display: grid; place-items: center; }
.feature h3 { font-size: 19px; margin: 2px 0 6px; }
.feature p { margin: 0; font-size: 16px; color: var(--ink-soft); }

.closer { text-align: center; }
.closer h2 { font-size: clamp(32px, 4.5vw, 46px); margin: 0 0 16px; }
.closer p { font-size: 19px; color: var(--ink-soft); margin: 0 0 28px; }

/* ---- footer ---- */
footer { border-top: 1px solid var(--hairline); padding: 44px 0; color: var(--ink-faint); font-size: 15px; }
.foot-grid { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 22px; }
.foot-links a { color: var(--ink-soft); }

/* ---- legal pages ---- */
.legal { padding: 56px 0 80px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); margin: 0 0 8px; }
.legal .updated { color: var(--ink-faint); font-size: 15px; margin: 0 0 40px; }
.legal h2 { font-size: 24px; margin: 40px 0 12px; }
.legal h3 { font-size: 19px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink); font-size: 17px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal .callout { background: var(--surface); border: 1px solid var(--hairline); border-left: 3px solid var(--ember); border-radius: var(--radius-sm); padding: 18px 22px; margin: 24px 0; font-size: 16px; color: var(--ink-soft); }
.legal table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 16px; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.legal th { font-weight: 600; color: var(--ink); }
.legal td { color: var(--ink-soft); }

/* ---- responsive ---- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero p.lede { max-width: none; }
  .cardstack { height: 312px; order: -1; }
  .cue { width: 300px; height: 240px; padding: 24px 26px; gap: 13px; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero { padding: 56px 0 40px; }
}
