/* ==========================================================================
   Deck of Days — brand design system
   Cozy candlelit palette: amber/candle (#F6C468 / #D69A4E) and cream cards
   (#F7ECCE) on the app's warm dark canvas (#16110C / surfaces #241A10).
   Display: Fraunces (serif) · Body: Hanken Grotesk
   ========================================================================== */

:root {
  --bg:          #16110c;
  --bg-2:        #1e160d;
  --surface:     #241a10;
  --surface-2:   #2c2013;
  --ink:         #f7eece;
  --ink-soft:    rgba(247, 238, 206, 0.74);
  --muted:       rgba(247, 238, 206, 0.50);
  --line:        rgba(247, 238, 206, 0.10);
  --line-strong: rgba(247, 238, 206, 0.20);

  --amber:       #f6c468;
  --amber-soft:  #f0d29a;
  --gold:        #d69a4e;
  --gold-deep:   #c9852f;
  --amber-tint:  rgba(246, 196, 104, 0.14);

  --heart:       #c4382b;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 18px 44px -16px rgba(0, 0, 0, 0.65);
  --shadow-lg: 0 50px 120px -40px rgba(0, 0, 0, 0.8);
  --glow:      0 0 60px -8px rgba(246, 196, 104, 0.45);

  --radius:    20px;
  --radius-sm: 12px;
  --maxw:      1080px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 620px at 50% -8%, rgba(246, 196, 104, 0.22), transparent 62%),
    radial-gradient(1100px 700px at 82% 4%, rgba(201, 133, 47, 0.20), transparent 60%),
    radial-gradient(760px 520px at 6% 96%, rgba(122, 82, 34, 0.28), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Fine grain overlay — like candlelight on a wall */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body > * { position: relative; z-index: 1; }

::selection { background: var(--gold); color: #16110c; }

a { color: var(--amber); }

/* ---- Layout ---------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* ---- Header ---------------------------------------------------------------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0 14px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 42px; height: 42px; border-radius: 11px; box-shadow: var(--shadow-sm); }
.brand b {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
}

/* ---- Hero ------------------------------------------------------------------ */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
  padding: 48px 0 80px;
  min-height: 68vh;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 16px 2px rgba(246, 196, 104, 0.8);
  animation: flicker 3.6s ease-in-out infinite;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--ink);
}
.hero h1 em {
  font-style: italic;
  color: var(--amber);
}
.hero .tagline {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 40ch;
  margin: 0 0 32px;
}
.hero .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
}
.hero .meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero .meta span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---- Store badges (coming soon, non-clickable) ----------------------------- */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 22px; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  height: 56px;
  padding: 0 22px;
  border-radius: 13px;
  background: rgba(36, 26, 16, 0.7);
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.store-btn .label small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}
.store-btn .label span { display: block; font-size: 17px; font-weight: 600; line-height: 1.1; color: var(--ink); }

/* ---- Card + hat scene ------------------------------------------------------ */
.scene {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}
.scene-glow {
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 196, 104, 0.30), transparent 68%);
  filter: blur(6px);
  animation: flicker 4.2s ease-in-out infinite;
}
.deck {
  position: relative;
  width: 210px;
  height: 292px;
  animation: float 6s ease-in-out infinite;
}
.playcard {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(160deg, #f7eece, #e2cb98);
  border: 3px solid #c9a45e;
  box-shadow: var(--shadow-lg), var(--glow);
  display: flex;
  align-items: center;
  justify-content: center;
}
.playcard.b1 { transform: rotate(-9deg) translate(-26px, 16px) scale(0.97); filter: brightness(0.82); z-index: 0; }
.playcard.b2 { transform: rotate(5deg) translate(18px, 8px) scale(0.985); filter: brightness(0.9); z-index: 1; }
.playcard.top { z-index: 2; }
.playcard .pip {
  color: var(--heart);
  width: 88px; height: 88px;
}
.playcard .corner {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--heart);
  line-height: 0.9;
  text-align: center;
}
.playcard .corner.tl { top: 12px; left: 14px; }
.playcard .corner.br { bottom: 12px; right: 14px; transform: rotate(180deg); }
.playcard .corner small { display: block; font-size: 15px; }

/* ---- Section / notify ------------------------------------------------------ */
.band {
  margin: 8px 0 64px;
  padding: 52px 40px;
  border-radius: 26px;
  background:
    radial-gradient(700px 260px at 50% -30%, rgba(246, 196, 104, 0.22), transparent 70%),
    linear-gradient(150deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.band h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 12px;
}
.band p { color: var(--ink-soft); margin: 0 auto 8px; max-width: 48ch; }
.band .mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--amber);
  color: #16110c;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--glow);
  transition: transform 0.15s ease, background 0.15s ease;
}
.band .mail:hover { transform: translateY(-2px); background: var(--amber-soft); }

/* ---- Footer ---------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .row { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---- Article (privacy page) ------------------------------------------------ */
.article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 52px clamp(26px, 5vw, 56px);
  box-shadow: var(--shadow-md);
  margin: 20px auto 48px;
}
.article h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--ink);
}
.article .eff { color: var(--muted); font-size: 14px; margin: 0 0 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.article h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  margin: 30px 0 8px;
  padding-left: 15px;
  position: relative;
  color: var(--ink);
}
.article h2::before {
  content: "";
  position: absolute;
  left: 0; top: 0.2em;
  width: 4px; height: 1em;
  border-radius: 2px;
  background: var(--amber);
}
.article p { margin: 0 0 14px; color: var(--ink-soft); }
.article a { color: var(--amber); text-underline-offset: 3px; }

/* ---- Animations ------------------------------------------------------------ */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-16px) rotate(1deg); }
}
@keyframes flicker {
  0%, 100% { opacity: 1; }
  45%      { opacity: 0.7; }
  60%      { opacity: 0.95; }
  75%      { opacity: 0.62; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise { opacity: 0; animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.16s; }
.d3 { animation-delay: 0.27s; }
.d4 { animation-delay: 0.38s; }
.d5 { animation-delay: 0.49s; }

/* ---- Responsive ------------------------------------------------------------ */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 24px; text-align: center; padding: 24px 0 56px; min-height: 0; }
  .eyebrow { justify-content: center; }
  .hero .tagline { margin-left: auto; margin-right: auto; }
  .hero .stores, .hero .meta { justify-content: center; }
  .scene { order: -1; min-height: 340px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .deck { width: 180px; height: 250px; }
  .band { padding: 40px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  html { scroll-behavior: auto; }
}
