:root {
  --navy: #1d2a44;
  --navy-2: #26375a;
  --cream: #f6f0e4;
  --paper: #fbf7ef;
  --sand: #e9dcc3;
  --red: #c8352e;
  --red-2: #a82a24;
  --gold: #e0a526;
  --ink: #1f1b18;
  --muted: #5d564d;
  --line: #d9cdb6;
  --radius: 14px;
  --shadow: 0 2px 0 var(--navy);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red-2); }
a:hover { color: var(--red); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Satire banner */
.satire-bar {
  background: var(--gold);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  padding: 8px 16px;
}
.satire-bar a { color: var(--navy); }

/* Header */
.site-header { background: var(--navy); color: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; }
.logo-mark { width: 38px; height: 38px; border-radius: 50%; background: var(--red); display: grid; place-items: center; font-family: var(--serif); font-weight: 800; color: var(--paper); font-size: 16px; border: 2px solid var(--gold); }
.logo-text { font-family: var(--serif); font-weight: 700; font-size: 19px; line-height: 1.1; }
.logo-text small { display: block; font-family: var(--sans); font-weight: 500; font-size: 12px; opacity: .75; letter-spacing: .04em; text-transform: uppercase; }
.site-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-nav a { color: var(--paper); text-decoration: none; font-weight: 600; font-size: 15px; opacity: .9; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold); opacity: 1; }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red-2); margin-bottom: 12px; }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.1; margin: 0 0 14px; }
h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; letter-spacing: -.01em; }
h1 em { font-style: italic; color: var(--red); }
h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
h3 { font-size: 22px; font-weight: 700; }
.lede { font-size: 20px; color: var(--muted); max-width: 34em; margin: 0 0 26px; }
.hero-art { position: relative; }
.hero-art .caption { font-size: 12px; color: var(--muted); text-align: center; margin-top: 6px; }
.badge-open { position: absolute; top: 8%; left: -4%; background: var(--red); color: var(--paper); font-family: var(--serif); font-weight: 800; font-size: 18px; padding: 10px 16px; border-radius: 999px; transform: rotate(-10deg); box-shadow: var(--shadow); border: 2px solid var(--navy); }

.btn { display: inline-flex; align-items: center; gap: 8px; font: 700 16px var(--sans); padding: 13px 22px; border-radius: 999px; border: 2px solid var(--navy); cursor: pointer; text-decoration: none; transition: transform .08s ease, box-shadow .08s ease; }
.btn:active { transform: translateY(2px); box-shadow: none; }
.btn-primary { background: var(--red); color: var(--paper); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--red-2); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--paper); color: var(--navy); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */
section { padding: 56px 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 30px; }
.section-head p { color: var(--muted); margin: 0; }

/* Gift grid */
.gift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.gift { background: var(--paper); border: 2px solid var(--navy); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; box-shadow: 0 4px 0 var(--navy); }
.gift-icon { width: 56px; height: 56px; border-radius: 12px; background: var(--sand); display: grid; place-items: center; font-size: 28px; margin-bottom: 14px; }
.gift h3 { font-size: 20px; margin-bottom: 8px; }
.gift p { color: var(--muted); font-size: 15px; margin: 0 0 16px; flex: 1; }
.gift .fn { font-size: 12px; color: var(--muted); margin-top: -8px; margin-bottom: 14px; }
.price { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; align-items: flex-end; border-top: 1px dashed var(--line); padding-top: 12px; margin-bottom: 14px; }
.price .value { font-size: 13px; color: var(--muted); }
.price .value s { color: var(--muted); }
.price .fee { margin-left: auto; text-align: right; font-family: var(--serif); font-weight: 800; font-size: 22px; color: var(--red); }
.price .fee small { font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--muted); display: block; text-align: right; }
.gift .btn { justify-content: center; width: 100%; }

/* Calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.calc-form, .calc-result { background: var(--cream); border: 2px solid var(--navy); border-radius: var(--radius); padding: 26px; }
.calc-form label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.calc-form .hint { font-size: 13px; color: var(--muted); margin: -2px 0 8px; }
.calc-form input[type="text"], .calc-form input[type="number"] { width: 100%; font: 500 17px var(--sans); padding: 12px 14px; border: 2px solid var(--navy); border-radius: 10px; background: var(--paper); color: var(--ink); margin-bottom: 18px; }
.calc-form input:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { font: 600 13px var(--sans); padding: 7px 12px; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--navy); color: var(--navy); cursor: pointer; }
.chip:hover { background: var(--sand); }
input[type="range"] { width: 100%; accent-color: var(--red); margin-bottom: 18px; }
.calc-result { background: var(--navy); color: var(--paper); display: flex; flex-direction: column; justify-content: center; }
.calc-result .label { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.calc-result .big { font-family: var(--serif); font-weight: 800; font-size: clamp(40px, 6vw, 60px); color: var(--gold); line-height: 1; margin: 6px 0 14px; word-break: break-word; }
.calc-result .for { font-size: 17px; margin-bottom: 18px; }
.calc-result .compare { font-size: 14px; opacity: .85; border-top: 1px solid rgba(255,255,255,.2); padding-top: 14px; margin-bottom: 20px; }
.calc-result .btn-primary { border-color: var(--paper); align-self: flex-start; }

/* Fine print strip */
.fineprint { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fact { background: var(--paper); border-left: 5px solid var(--red); border-radius: 8px; padding: 18px 20px; }
.fact .num { font-family: var(--serif); font-weight: 800; font-size: 32px; color: var(--navy); line-height: 1; margin-bottom: 6px; }
.fact p { margin: 0; font-size: 15px; color: var(--muted); }
.denial { margin-top: 22px; background: var(--sand); border-radius: 10px; padding: 16px 20px; font-size: 15px; }

/* Share */
.share-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.share-card { background: var(--paper); border: 2px solid var(--navy); border-radius: var(--radius); overflow: hidden; }
.share-card img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-bottom: 2px solid var(--navy); }
.share-card .actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; }
.share-card .actions a, .share-card .actions button { font: 600 13px var(--sans); padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--navy); background: var(--cream); color: var(--navy); cursor: pointer; text-decoration: none; }
.share-card .actions a:hover, .share-card .actions button:hover { background: var(--sand); }

/* Modal / receipt */
.modal { position: fixed; inset: 0; background: rgba(20, 26, 40, .72); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modal.open { display: flex; }
.receipt { position: relative; background: #fffdf8; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; border-radius: 6px; padding: 28px 26px 24px; font-family: "Courier New", Courier, monospace; color: var(--ink); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.receipt h3 { font-family: "Courier New", Courier, monospace; text-align: center; font-size: 18px; letter-spacing: .06em; margin-bottom: 4px; }
.receipt .sub { text-align: center; font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.receipt .row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 4px 0; }
.receipt .row span:last-child { text-align: right; }
.receipt hr { border: 0; border-top: 2px dashed #bbb; margin: 12px 0; }
.receipt .total { font-weight: 700; font-size: 16px; }
.receipt .status { text-align: center; font-size: 14px; margin: 14px 0 6px; min-height: 22px; }
.stamp { display: none; margin: 16px auto 10px; text-align: center; border: 4px solid var(--red); color: var(--red); font: 800 22px var(--sans); letter-spacing: .06em; padding: 8px 12px; transform: rotate(-6deg); width: fit-content; border-radius: 6px; }
.stamp small { display: block; font-size: 12px; letter-spacing: .02em; font-weight: 700; }
.reveal { display: none; font-family: var(--sans); }
.reveal p { font-size: 15px; margin: 10px 0; }
.reveal ul { padding-left: 18px; margin: 8px 0 16px; font-size: 15px; }
.reveal li { margin: 6px 0; }
.receipt.done .stamp, .receipt.done .reveal { display: block; }
.close-x { position: absolute; top: 8px; right: 10px; background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); }

/* Facts page */
.article { max-width: 760px; }
.article p { margin: 0 0 16px; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--navy); }
.timeline li { position: relative; padding: 0 0 26px 26px; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px; background: var(--red); border: 3px solid var(--cream); border-radius: 50%; }
.timeline .when { font-weight: 800; color: var(--navy); font-family: var(--serif); font-size: 19px; }
.timeline p { margin: 4px 0 0; color: var(--ink); }
.callout { background: var(--paper); border: 2px solid var(--navy); border-radius: var(--radius); padding: 22px 24px; margin: 28px 0; }
.callout h3 { margin-bottom: 8px; }
.math { font-family: var(--serif); font-size: 22px; color: var(--navy); font-weight: 700; }
cite, .cite { font-size: 13px; color: var(--muted); font-style: normal; }

/* Footer */
.site-footer { background: var(--navy); color: #cfd6e4; font-size: 14px; padding: 36px 0; }
.site-footer a { color: var(--gold); }
.site-footer p { margin: 0 0 10px; max-width: 70em; }
.site-footer strong { color: var(--paper); }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--navy); color: var(--paper); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 60; }
.toast.show { opacity: 1; }

@media (max-width: 860px) {
  .hero .wrap, .calc { grid-template-columns: 1fr; }
  .hero-art { max-width: 380px; margin: 0 auto; }
  .fineprint { grid-template-columns: 1fr; }
  .badge-open { left: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
