/*
Theme Name: Elf Dispatch
Theme URI: https://elfdispatch.com
Author: Elf Dispatch
Description: A magical, mobile-first storefront for personalised North Pole messages.
Version: 1.2.1
Requires at least: 6.3
Requires PHP: 8.0
Text Domain: elf-dispatch
*/

:root {
  --pine: #073b32;
  --pine-deep: #03251f;
  --holly: #b5222c;
  --holly-dark: #8d1620;
  --cream: #fffaf0;
  --paper: #fffdf7;
  --gold: #e7b94f;
  --ink: #18352f;
  --muted: #65746f;
  --snow: #f1f8f6;
  --shadow: 0 24px 70px rgba(3, 37, 31, .16);
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.ed-container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.ed-skip { position: absolute; left: -9999px; }
.ed-skip:focus { left: 16px; top: 16px; z-index: 999; padding: 12px; background: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 80;
  color: #fff; background: rgba(3, 37, 31, .94);
  border-bottom: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(18px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; font-family: Georgia, serif; font-weight: 800; font-size: 1.35rem; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--holly); box-shadow: 0 0 0 4px rgba(255,255,255,.08); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: #fff; text-decoration: none; font-weight: 700; font-size: .92rem; }
.ed-button, .site-nav .menu-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 0; border-radius: 999px; padding: 14px 22px; cursor: pointer;
  color: #fff; background: var(--holly); text-decoration: none; font-weight: 800;
  box-shadow: 0 10px 24px rgba(181,34,44,.24); transition: .2s ease;
}
.ed-button:hover { transform: translateY(-2px); background: var(--holly-dark); }
.ed-button--light { color: var(--pine); background: #fff; box-shadow: none; }
.ed-button--ghost { color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.35); box-shadow: none; }

.hero {
  position: relative; overflow: hidden; min-height: 740px; color: #fff;
  display: grid; align-items: center; padding: 100px 0 130px;
  background:
    radial-gradient(circle at 82% 22%, rgba(231,185,79,.22), transparent 26%),
    radial-gradient(circle at 8% 10%, rgba(255,255,255,.08), transparent 18%),
    linear-gradient(135deg, var(--pine-deep), #0b5b4d 65%, #0a443b);
}
.hero::after { content: ""; position: absolute; inset: auto -5% -90px; height: 180px; background: var(--cream); border-radius: 50% 50% 0 0; }
.snowflake { position: absolute; top: -30px; color: rgba(255,255,255,.55); pointer-events: none; animation: snowfall linear infinite; }
@keyframes snowfall { to { transform: translate3d(30px, 820px, 0) rotate(360deg); } }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; text-transform: uppercase; letter-spacing: .13em; font-size: .76rem; font-weight: 900; color: #ffe6a9; }
.hero h1 { margin: 15px 0 22px; max-width: 760px; font-family: Georgia, serif; font-size: clamp(3.4rem, 7vw, 6.4rem); line-height: .94; letter-spacing: -.055em; }
.hero h1 em { color: #ffd978; font-style: normal; }
.hero-copy { max-width: 640px; color: rgba(255,255,255,.83); font-size: 1.14rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.trust-line { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 28px; color: rgba(255,255,255,.72); font-size: .84rem; font-weight: 700; }
.dispatch-card { position: relative; transform: rotate(2deg); background: var(--paper); color: var(--ink); border-radius: 8px; padding: 30px; box-shadow: 0 35px 90px rgba(0,0,0,.38); }
.dispatch-card::before { content: "NORTH POLE PRIORITY"; position: absolute; right: -17px; top: 26px; color: #fff; background: var(--holly); padding: 7px 18px; font-size: .68rem; font-weight: 900; letter-spacing: .12em; transform: rotate(7deg); }
.stamp { width: 76px; height: 76px; display: grid; place-items: center; border: 3px double var(--holly); border-radius: 50%; color: var(--holly); font-size: .67rem; line-height: 1.1; text-align: center; font-weight: 900; transform: rotate(-9deg); }
.dispatch-card h2 { font-family: Georgia, serif; font-size: 2rem; margin: 24px 0 12px; }
.dispatch-card p { color: #52635f; }
.signature { font-family: cursive; color: var(--holly); font-size: 1.7rem; }

.section { padding: 96px 0; }
.section--snow { background: var(--snow); }
.section--dark { color: #fff; background: var(--pine-deep); }
.section-head { max-width: 700px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { margin: 10px 0 15px; font-family: Georgia, serif; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.05; letter-spacing: -.035em; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section--dark .section-head p { color: rgba(255,255,255,.7); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-card { position: relative; padding: 32px; background: #fff; border: 1px solid #e5ede9; border-radius: var(--radius); box-shadow: 0 14px 40px rgba(7,59,50,.07); }
.step-no { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--pine); font-weight: 900; }
.step-card h3 { font-family: Georgia, serif; font-size: 1.5rem; margin: 24px 0 10px; }
.step-card p { margin: 0; color: var(--muted); }
.message-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.message-tile { padding: 24px 20px; text-align: center; background: #fff; border-radius: 20px; border: 1px solid #e6ece9; }
.message-icon { font-size: 2rem; }
.message-tile strong { display: block; margin-top: 10px; }
.archives-preview { background: #fffaf0; }
.archives-preview-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.archive-preview-card { position: relative; overflow: hidden; padding: 30px; border: 1px solid #eadfc9; border-radius: 8px; background: #fffdf7; box-shadow: 0 16px 40px rgba(7,59,50,.08); }
.archive-preview-card::before { content:""; position:absolute; inset:10px; border:1px solid #f0e7d7; pointer-events:none; }
.archive-preview-card span, .archive-preview-card h3, .archive-preview-card p, .archive-preview-card strong { position: relative; }
.archive-preview-card span { color: var(--holly); font-size: .66rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.archive-preview-card h3 { margin: 9px 0 18px; font-family: Georgia,serif; font-size: 2rem; }
.archive-preview-card p { color: #52635f; font-family: Georgia,serif; font-size: .93rem; line-height: 1.75; }
.archive-preview-card strong { color: var(--holly); font-family: cursive; }
.archives-preview-action { margin-top: 34px; text-align: center; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 34px; background: #fff; border: 1px solid #dfebe7; border-radius: var(--radius); }
.price-card.featured { transform: translateY(-12px); border: 2px solid var(--gold); box-shadow: var(--shadow); }
.popular { position: absolute; left: 50%; top: -15px; transform: translateX(-50%); padding: 7px 15px; border-radius: 99px; background: var(--gold); font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.price-card h3 { margin: 0; font-family: Georgia, serif; font-size: 1.65rem; }
.price { margin: 12px 0; font-size: 2.6rem; line-height: 1; font-weight: 900; color: var(--pine); }
.price small { font-size: .86rem; color: var(--muted); font-weight: 600; }
.price-card ul { flex: 1; padding: 0; margin: 22px 0 30px; list-style: none; }
.price-card li { margin: 10px 0; color: #53645f; }
.price-card li::before { content: "✓"; color: #16805f; margin-right: 9px; font-weight: 900; }
.cta-band { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; padding: 50px; color: #fff; background: linear-gradient(135deg, var(--holly-dark), var(--holly)); border-radius: 34px; box-shadow: var(--shadow); }
.cta-band h2 { margin: 0 0 10px; font-family: Georgia, serif; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; }
.cta-actions { text-align: right; }
.site-footer { padding: 54px 0 28px; color: rgba(255,255,255,.7); background: #021d18; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: start; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: inherit; text-decoration: none; }
.footer-note { max-width: 660px; margin-top: 16px; font-size: .8rem; }
.copyright { margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; }
.site-main--page { min-height: 65vh; }
.page-shell { padding: 70px 0 100px; }
.page-shell h1 { font-family: Georgia, serif; font-size: clamp(2.4rem, 5vw, 4rem); }

@media (max-width: 900px) {
  .site-nav > a:not(.menu-cta) { display: none; }
  .hero { min-height: auto; padding: 76px 0 130px; }
  .hero-grid, .cta-band { grid-template-columns: 1fr; }
  .dispatch-card { max-width: 520px; margin: 25px auto 0; }
  .steps, .pricing-grid { grid-template-columns: 1fr; }
  .archives-preview-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .message-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-actions { text-align: left; }
}
@media (max-width: 560px) {
  .ed-container { width: min(100% - 26px, 1180px); }
  .header-inner { min-height: 66px; }
  .brand { font-size: 1.08rem; }
  .brand-mark { width: 36px; height: 36px; }
  .site-nav .menu-cta { padding: 10px 14px; font-size: .78rem; }
  .hero h1 { font-size: 3.35rem; }
  .hero-copy { font-size: 1rem; }
  .hero-actions .ed-button { width: 100%; }
  .dispatch-card { padding: 24px; transform: none; }
  .message-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .message-tile { padding: 18px 10px; font-size: .84rem; }
  .section { padding: 72px 0; }
  .cta-band { padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}

