/* HARU Cookies public coming-soon site (docs/DEPLOYMENT.md, ARCH D-50).
   A cream "bakery counter": the badge logo and a big rounded headline beside one framed photo,
   then a shelf of cookies and a gift-box row, divided by scalloped edges like a cookie cutter.
   Colours are the admin app's brand tokens (ARCH §7.2). */
:root {
  --cream: #fff8f5;
  --card: #ffffff;
  --blush: #fde4ea;
  --blush-deep: #f9c3cc;
  --choc: #3b0a0f;
  --choc-soft: #7a4a50;
  --primary: #d81b55;
  --brand: #fb2562;

  --font-display: "Fredoka", "Nunito", ui-rounded, system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.84rem, 0.8rem + 0.15vw, 0.92rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.6rem, 1.35rem + 1vw, 2.2rem);
  --step-4: clamp(2.6rem, 1.9rem + 3.4vw, 4.8rem);

  --radius: 28px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--choc);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
}
img {
  max-width: 100%;
}
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 12px;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(60rem 30rem at 85% -10%, var(--blush) 0%, transparent 60%),
    radial-gradient(40rem 24rem at -10% 110%, var(--blush) 0%, transparent 65%), var(--cream);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(28px, 5vw, 64px) clamp(48px, 7vw, 96px);
}
.hero-copy {
  display: grid;
  gap: 22px;
  justify-items: start;
  min-width: 0;
}
.logo {
  width: clamp(120px, 16vw, 168px);
  height: auto;
  display: block;
}

.timer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  border-radius: 999px;
  background: var(--card);
  border: 2px solid var(--blush-deep);
  font-weight: 800;
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.timer .dial {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: conic-gradient(var(--brand) 0 72%, var(--blush) 72% 100%);
  display: grid;
  place-items: center;
}
.timer .dial::after {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--card);
}
.timer .temp {
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.hero h1 {
  font-size: var(--step-4);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: normal;
  color: var(--brand);
}
.lede {
  font-size: var(--step-1);
  color: var(--choc-soft);
  max-width: 34ch;
  line-height: 1.5;
}

/* Framed hero photo, echoing the logo's pink ring */
.hero-photo {
  position: relative;
  justify-self: center;
  width: min(100%, 500px);
}
.hero-photo .frame {
  aspect-ratio: 1 / 1;
  max-width: 100%;
  border-radius: 50%;
  padding: 14px;
  background: var(--brand);
  box-shadow: 0 30px 60px -30px rgba(176, 18, 74, 0.55);
}
.heart {
  position: absolute;
  width: clamp(34px, 5vw, 54px);
  color: var(--brand);
  filter: drop-shadow(0 6px 8px rgba(176, 18, 74, 0.25));
}
.heart svg {
  display: block;
  width: 100%;
  height: auto;
}
.heart.h1 {
  left: -2%;
  top: 18%;
  transform: rotate(-14deg);
}
.heart.h2 {
  right: 0;
  bottom: 6%;
  transform: rotate(12deg);
  width: clamp(26px, 3.6vw, 40px);
}
.heart.h3 {
  right: 10%;
  top: -2%;
  transform: rotate(8deg);
  width: clamp(20px, 2.6vw, 30px);
  color: var(--blush-deep);
}

/* ---------- Photos ---------- */
.photo {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: var(--blush);
}
.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photo .photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 10px solid var(--cream);
}

/* ---------- Scalloped divider ---------- */
.scallop {
  display: block;
  height: 22px;
  width: 100%;
  background: radial-gradient(circle at 18px -4px, transparent 20px, var(--blush) 21px) 0 0 / 36px
    22px repeat-x;
}
.scallop.flip {
  transform: scaleY(-1);
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(48px, 7vw, 88px);
}
.section-head {
  display: grid;
  gap: 10px;
  max-width: 46rem;
  margin-bottom: clamp(24px, 4vw, 40px);
}
.eyebrow {
  font-weight: 800;
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}
.section h2 {
  font-size: var(--step-2);
  font-weight: 600;
}
.section-head p {
  color: var(--choc-soft);
  max-width: 60ch;
}

.shelf {
  background: var(--blush);
}
.cookies {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}
.cookie-card {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.cookie-card .photo {
  aspect-ratio: 4 / 3;
  max-width: 100%;
  border-radius: var(--radius);
  background: var(--cream);
}
.cookie-card h3 {
  font-size: var(--step-1);
  font-weight: 600;
}
.cookie-card p {
  color: var(--choc-soft);
  font-size: var(--step--1);
}
.status {
  display: inline-block;
  margin-top: 2px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--card);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gifts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 28px);
}
.gift {
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 2px solid var(--blush);
  min-width: 0;
}
.gift .photo {
  aspect-ratio: 4 / 5;
  max-width: 100%;
  max-height: 520px;
  width: 100%;
}
.gift-body {
  padding: 20px 22px 24px;
  display: grid;
  gap: 6px;
  align-content: start;
}
.gift h3 {
  font-size: var(--step-1);
  font-weight: 600;
}
.gift p {
  color: var(--choc-soft);
  font-size: var(--step--1);
}

.promise {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
  margin: clamp(28px, 5vw, 48px) 0 0;
  padding: 0;
  list-style: none;
}
.promise li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.promise .ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blush);
  display: grid;
  place-items: center;
  color: var(--primary);
}
.promise .ico svg {
  width: 22px;
  height: 22px;
}
.promise strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-0);
}
.promise span {
  color: var(--choc-soft);
  font-size: var(--step--1);
}

/* ---------- Footer ---------- */
footer {
  background: var(--choc);
  color: var(--blush);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
  padding-block: 28px;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.foot-brand img {
  width: 48px;
  height: 48px;
}
.foot-brand strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
  color: var(--card);
}
footer small {
  font-size: var(--step--1);
  color: var(--blush-deep);
}

/* ---------- 404 ---------- */
.lost {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 48px;
}
.lost .wrap {
  display: grid;
  gap: 18px;
  justify-items: center;
}
.lost h1 {
  font-size: var(--step-2);
}
.lost p {
  color: var(--choc-soft);
}
.lost a {
  color: var(--primary);
  font-weight: 800;
}

/* ---------- Load moment ---------- */
@keyframes rise {
  from {
    transform: translateY(14px) scale(0.98);
  }
  to {
    transform: none;
  }
}
@keyframes wobble {
  0%,
  100% {
    transform: rotate(-14deg);
  }
  50% {
    transform: rotate(-6deg) translateY(-4px);
  }
}
.hero-copy > * {
  animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hero-copy > *:nth-child(2) {
  animation-delay: 0.06s;
}
.hero-copy > *:nth-child(3) {
  animation-delay: 0.12s;
}
.hero-copy > *:nth-child(4) {
  animation-delay: 0.18s;
}
.heart.h1 {
  animation: wobble 4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Narrow screens ---------- */
@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-copy {
    justify-items: center;
    text-align: center;
  }
  .lede {
    margin-inline: auto;
  }
  .hero-photo {
    width: min(100%, 380px);
  }
  .cookies {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .cookies .cookie-card:last-child {
    grid-column: 1 / -1;
  }
  .cookies .cookie-card:last-child .photo {
    aspect-ratio: 16 / 7;
  }
  .promise {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  .cookies,
  .gifts {
    grid-template-columns: minmax(0, 1fr);
  }
  .cookies .cookie-card:last-child .photo {
    aspect-ratio: 4 / 3;
  }
  .gift .photo {
    aspect-ratio: 4 / 3.4;
  }
}
