/* Still Have It — Packing Stamp chrome + soft payload */

/* Soft payload type (inside card / shell only) */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&family=DM+Sans:wght@400;500;600&display=swap");

:root {
  /* Stamp chrome tokens */
  --stamp-ink: #1A120C;
  --stamp-kraft: #D7C4A8;
  --stamp-paper: #EFE2CD;
  --stamp-card: #FFFDF8;

  /* Soft payload tokens (kept warm) */
  --bg0: #fff8f2;
  --bg1: #f4e8de;
  --bg2: #efe0d4;
  --page: #EFE2CD;
  --ink: #2f2924;
  --muted: #6e6258;
  --brand: #a08878;
  --time: #c07860;
  --cta: #e08a6d;
  --cta-ink: #fffaf6;
  --card-border: rgba(160, 140, 120, 0.18);
  --secondary-border: rgba(120, 100, 85, 0.28);
  --secondary-ink: #7a6c62;
}

html[data-skin="clippers"] {
  --bg0: #f7faf4;
  --bg1: #ebf1e6;
  --bg2: #e3ebd9;
  --brand: #87987c;
  --time: #6a8758;
  --cta: #6f8f5c;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ——— Stamp chrome (site frame) ——— */
body {
  min-height: 100dvh;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--stamp-paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 16px 40px;
}

.home-logo {
  /* Stamp UL escape — mark SVG carries ink stroke; no soft SaaS shadow */
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  display: inline-block;
  padding: 0;
  background: var(--stamp-paper);
  border: none;
  border-radius: 0;
  box-shadow: none;
  text-decoration: none;
  color: inherit;
  line-height: 0;
}

.home-logo img {
  display: block;
  height: 32px;
  width: auto;
}

/* Outer stamp stage around soft payload */
.shell {
  width: min(100%, 390px);
  font-family: "DM Sans", system-ui, sans-serif;
  background: linear-gradient(165deg, var(--bg0) 0%, var(--bg1) 55%, var(--bg2) 100%);
  border: 3px solid var(--stamp-ink);
  border-radius: 0;
  padding: 28px 22px 22px;
  box-shadow: none;
}

/* ——— Soft payload (inside stamp stage) ——— */
.brand {
  font-family: "Fraunces", Georgia, serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--brand);
  text-align: center;
  margin-bottom: 14px;
}

.card {
  background: rgba(255, 252, 248, 0.97);
  border-radius: 30px;
  padding: 22px 22px 26px;
  box-shadow: 0 16px 44px rgba(60, 50, 40, 0.1);
  border: 1px solid var(--card-border);
  text-align: center;
}

.hero {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  max-height: 340px;
  object-fit: contain;
  object-position: center;
  margin: 0 auto 6px;
  display: block;
}

.line {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(22px, 6vw, 26px);
  line-height: 1.28;
  margin-bottom: 6px;
}

.time {
  font-family: "Fraunces", Georgia, serif;
  font-size: 20px;
  color: var(--time);
  font-weight: 500;
  margin-bottom: 12px;
}

.soft {
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 280px;
  margin: 0 auto 22px;
}

.cta {
  display: block;
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 15px 18px;
  background: var(--cta);
  color: var(--cta-ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.cta:active {
  transform: translateY(1px);
}

.cta.secondary {
  margin-top: 10px;
  background: transparent;
  color: var(--secondary-ink);
  box-shadow: none;
  border: 1px solid var(--secondary-border);
  font-weight: 500;
}

.preview-wrap {
  display: none;
  margin-top: 18px;
  text-align: center;
}

.preview-wrap.is-visible {
  display: block;
}

.preview-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 10px;
}

.preview-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(40, 40, 40, 0.14);
  border: 1px solid var(--card-border);
  background: #fff;
}

.toast {
  margin-top: 12px;
  min-height: 1.2em;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* Age modal (soft payload dialog) */
.age-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(47, 41, 36, 0.45);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.age-overlay.is-open {
  display: flex;
}

.age-modal {
  width: min(100%, 340px);
  background: #fffaf6;
  border-radius: 20px;
  padding: 28px 24px 22px;
  box-shadow: 0 24px 48px rgba(40, 40, 40, 0.2);
  text-align: center;
  font-family: "DM Sans", system-ui, sans-serif;
}

.age-modal h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.age-modal p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 20px;
}

.age-modal .cta {
  margin-top: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
