/* Dumpling Pals site. Palette sampled from Art/Reference/style_bible.png (same values as DumplingPals/App/Theme.swift). */
:root {
  color-scheme: light;
  --bg: #fdf9ed;
  --cream: #f6e3c5;
  --tan: #d2995e;
  --tan-deep: #a5703f;
  --bamboo: #849260;
  --peach: #faa980;
  --lantern: #e16b5b;
  --lantern-deep: #c4503f;
  --blossom: #f3b0a7;
  --gold: #fac86b;
  --ink: #855d47;
  --ink-strong: #5e3f2f;
  --ink-2: #8f6349;
  --line: #ecdcc0;
  --radius: 28px;
  --gutter: clamp(16px, 5vw, 40px);
  --font: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Quicksand", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--lantern-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink-strong); }
:focus-visible { outline: 3px solid var(--lantern); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 14px; z-index: 10; }

/* Header */
.site-head { padding: 18px 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink-strong); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; min-height: 44px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 2px 8px rgba(133, 93, 71, 0.18); }
.head-links { display: flex; gap: 6px; }
.head-links a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; padding: 10px 12px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; }
.head-links a:hover { background: var(--cream); }

/* Hero */
.hero { position: relative; text-align: center; padding: clamp(16px, 4vw, 40px) 0 clamp(40px, 6vw, 72px); }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 100%; z-index: -1;
  background: radial-gradient(60% 55% at 50% 35%, #fbe9cf 0%, rgba(253, 249, 237, 0) 70%);
}
.parade { display: flex; justify-content: center; align-items: flex-end; gap: clamp(2px, 1vw, 10px); margin: 0 auto clamp(20px, 3vw, 32px); max-width: 760px; }
.parade img { width: clamp(46px, 9vw, 92px); flex-shrink: 0; animation: bob 3.2s ease-in-out infinite; filter: drop-shadow(0 6px 6px rgba(133, 93, 71, 0.16)); }
.parade img.big { width: clamp(84px, 17vw, 168px); }
.parade img:nth-child(2n) { animation-delay: -0.8s; }
.parade img:nth-child(3n) { animation-delay: -1.6s; }
.parade img:nth-child(5n) { animation-delay: -2.4s; }
@keyframes bob {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  45% { transform: translateY(-7px) scale(0.98, 1.02); }
  55% { transform: translateY(-7px) scale(0.98, 1.02); }
  80% { transform: translateY(0) scale(1.04, 0.96); }
}
.hide-sm { display: none; }
@media (min-width: 640px) { .hide-sm { display: block; } }

h1, h2, h3 { color: var(--ink-strong); line-height: 1.08; letter-spacing: -0.02em; margin: 0; font-weight: 800; }
h1 { font-size: clamp(38px, 7.4vw, 76px); max-width: 14ch; margin: 0 auto; text-wrap: balance; }
h1 em { font-style: normal; color: var(--lantern); }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-2); max-width: 34ch; margin: 18px auto 30px; text-wrap: balance; }

/* Call to action. While the app is unreleased this is a "Coming soon" pill; swap for the App Store badge at launch. */
.cta { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.soon {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink-strong); color: #fff;
  padding: 14px 26px 14px 18px; border-radius: 999px; min-height: 56px;
  font-weight: 800; font-size: 18px; letter-spacing: -0.01em;
  box-shadow: 0 8px 24px rgba(94, 63, 47, 0.25);
}
.soon .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; flex-shrink: 0; }
.soon .dot svg { width: 18px; height: 18px; }
.soon small { display: block; font-weight: 600; font-size: 12px; opacity: 0.8; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.2; }
.soon span { text-align: left; line-height: 1.15; }
.cta-note { font-size: 14px; color: var(--ink-2); margin: 0; }
.store-badge { display: inline-block; min-height: 44px; }
.store-badge img { height: 56px; width: auto; }

/* Screenshot panorama */
.shots { padding: 0 0 clamp(48px, 7vw, 88px); }
.shots-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(62vw, 260px);
  gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 8px;
  scrollbar-width: none; justify-content: start;
}
.shots-row::-webkit-scrollbar { display: none; }
.shots-row img { scroll-snap-align: center; width: 100%; }
.shots-row img:first-child { border-radius: 22px 0 0 22px; }
.shots-row img:last-child { border-radius: 0 22px 22px 0; }
@media (min-width: 1100px) { .shots-row { justify-content: center; grid-auto-columns: 255px; } }
.swipe-hint { text-align: center; font-size: 14px; color: var(--ink-2); margin: 10px 0 0; }
@media (min-width: 1100px) { .swipe-hint { display: none; } }

/* Features */
.features { padding: 0 0 clamp(48px, 7vw, 88px); }
.features h2 { font-size: clamp(30px, 4.6vw, 46px); text-align: center; margin-bottom: clamp(24px, 4vw, 44px); text-wrap: balance; }
.feature-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 28px; }
.feature img { width: 88px; margin: -4px 0 12px -6px; filter: drop-shadow(0 6px 6px rgba(133, 93, 71, 0.14)); }
.feature h3 { font-size: 22px; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--ink-2); }

/* Teahouse band */
.teahouse { padding: 0 0 clamp(48px, 7vw, 88px); }
.teahouse figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: #3a2b33; }
.teahouse img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.teahouse figcaption {
  position: absolute; inset: auto 0 0 0; padding: clamp(18px, 4vw, 40px);
  background: linear-gradient(0deg, rgba(40, 26, 30, 0.78) 0%, rgba(40, 26, 30, 0) 100%);
  color: #fff;
}
.teahouse figcaption h2 { color: #fff; font-size: clamp(24px, 4vw, 40px); }
.teahouse figcaption p { margin: 6px 0 0; font-size: clamp(15px, 2vw, 19px); opacity: 0.92; }

/* Closing CTA */
.closing { text-align: center; padding: 0 0 clamp(56px, 8vw, 96px); }
.closing h2 { font-size: clamp(28px, 4.4vw, 44px); margin-bottom: 22px; text-wrap: balance; }
.closing .icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 20px; box-shadow: 0 10px 30px rgba(133, 93, 71, 0.22); }

.lost { padding-top: 12vh; }
.lost img { width: 140px; margin: 0 auto 16px; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 15px; color: var(--ink-2); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.site-foot a { color: var(--ink); font-weight: 700; text-decoration: none; padding: 10px 8px; min-height: 44px; display: inline-flex; align-items: center; }
.site-foot a:hover { text-decoration: underline; }

/* Text pages (privacy, support) */
.doc { padding: clamp(16px, 4vw, 40px) 0 clamp(56px, 8vw, 96px); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(34px, 6vw, 52px); margin: 0 0 8px; max-width: none; text-align: left; }
.doc .meta { color: var(--ink-2); margin: 0 0 28px; font-size: 15px; }
.doc h2 { font-size: clamp(22px, 3vw, 27px); margin: 40px 0 10px; }
.doc h3 { font-size: 19px; margin: 24px 0 6px; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--ink-strong); }
.callout { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 20px 22px; margin: 0 0 8px; }
.callout p { margin: 0; }
.callout p + p { margin-top: 8px; }
.table-wrap { overflow-x: auto; margin: 12px 0; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 520px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { color: var(--ink-strong); background: #fffaf0; font-weight: 800; }
tr:last-child td { border-bottom: 0; }

.mail-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 8px 0 12px; }
.mail-card p { margin: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px;
  border-radius: 999px; background: var(--lantern-deep); color: #fff; font-weight: 800; text-decoration: none;
}
.btn:hover { background: var(--ink-strong); color: #fff; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 800; color: var(--ink-strong); font-size: 18px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 26px; font-weight: 700; color: var(--lantern); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 18px; }
.faq details > div p { margin: 0 0 8px; }

@media (prefers-reduced-motion: reduce) {
  .parade img { animation: none; }
  .shots-row { scroll-behavior: auto; }
}
