/* Junbo Food · phase 1 landing page */
:root {
  --red: #C2351E;
  --red-dark: #A82A17;
  --lacquer: #7E1A10;
  --cream: #FBF6EC;
  --paper: #FFFDF8;
  --tile: #F3E9D7;
  --line: #EDE3D1;
  --ink: #1F1B18;
  --muted: #5E5650;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --caps: "Nunito Sans", system-ui, sans-serif;
  --brush: "LXGW WenKai TC", serif;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.02; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-red :focus-visible, .on-dark :focus-visible { outline-color: var(--cream); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }

.eyebrow { font-family: var(--caps); font-weight: 900; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 30px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.btn:active { transform: scale(.97); }
.btn-cream { background: var(--cream); color: var(--red); }
.btn-outline { border-color: var(--cream); color: var(--cream); background: transparent; }
.btn-outline:hover { background: rgba(251,246,236,.12); }
.btn-red { background: var(--red); color: var(--cream); border-color: var(--red); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-ghost-red { background: transparent; color: var(--red); border-color: var(--red); }
.btn-ink { background: var(--ink); color: var(--cream); border-color: var(--cream); }

/* Announcement */
.announce { background: var(--ink); color: var(--cream); text-align: center; padding: 10px 16px; font-family: var(--caps); font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }

/* Hero */
.hero { background: var(--red); color: var(--cream); position: relative; overflow: hidden; }
.ghost-zh { position: absolute; font-family: var(--brush); font-weight: 700; line-height: 1; writing-mode: vertical-rl; white-space: nowrap; opacity: .09; pointer-events: none; user-select: none; }
.hero .ghost-zh { right: -40px; top: 40px; font-size: clamp(260px, 40vw, 520px); }
.site-header { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.site-header .logo img { height: 64px; width: auto; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 28px; font-weight: 500; }
.site-header nav a { text-decoration: none; padding: 10px 0; }
.site-header nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-header .btn { min-height: 44px; padding: 10px 20px; font-size: 15px; }

.hero-body { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 112px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(52px, 7vw, 104px); line-height: .98; letter-spacing: -.01em; }
.hero-copy > p:not(.eyebrow) { font-size: 20px; max-width: 520px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-jars { flex: 1 1 400px; min-width: 0; display: flex; justify-content: center; align-items: flex-end; gap: 28px; }

/* Jar illustration */
.jar { --w: 150px; --h: 190px; --bg: var(--lacquer); --fg: var(--cream); width: var(--w); display: flex; flex-direction: column; align-items: center; }
.jar-lid { width: 78%; height: calc(var(--h) * .15); background: var(--ink); border-radius: 10px 10px 4px 4px; }
.jar-body { width: 100%; height: var(--h); border-radius: calc(var(--w) * .15); background: var(--bg); color: var(--fg); position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.jar-body .ghost-zh { left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: calc(var(--h) * .47); opacity: .12; color: var(--fg); }
.jar-body img { width: 42%; position: relative; }
.jar-name { position: relative; font-family: var(--serif); font-size: calc(var(--w) * .15); }
.jar-size { position: relative; font-family: var(--caps); font-weight: 800; font-size: 11px; letter-spacing: .14em; }
.jar-lg { --w: 210px; --h: 270px; }
.jar-md { --w: 170px; --h: 220px; }
.hero-jars .jar-body { box-shadow: 0 24px 48px rgba(31,27,24,.35); }

/* Values strip */
.values { background: var(--ink); color: var(--cream); padding: 22px 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; font-family: var(--serif); font-size: 26px; list-style: none; margin: 0; }
.values li + li::before { content: "·"; color: var(--red); margin-right: 40px; }

/* Sections */
.section { padding-top: 104px; padding-bottom: 104px; display: flex; flex-direction: column; gap: 44px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.section h2 { font-size: clamp(40px, 5vw, 64px); line-height: 1; }
.section-head p { font-size: 17px; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 28px; }
.card { background: var(--paper); border: 1.5px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.card-art { height: 300px; border-radius: 18px; background: var(--tile); display: flex; align-items: center; justify-content: center; }
.card-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card h3 { font-size: 30px; }
.tag { font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--cream); white-space: nowrap; }
.tag-soft { background: var(--tile); color: var(--ink); }
.card-desc { color: var(--muted); }
.card-size { font-family: var(--caps); font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card .btn { margin-top: auto; width: 100%; font-size: 16px; min-height: 50px; }

/* Story */
.story { background: var(--lacquer); color: var(--cream); }
.story .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; padding-top: 104px; padding-bottom: 104px; }
.story-photo { flex: 1 1 440px; min-width: 0; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; }
.story-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.story h2 { font-size: clamp(40px, 5vw, 60px); line-height: 1.04; }
.story-copy p:not(.eyebrow) { font-size: 18px; line-height: 1.65; }

/* Placeholder boxes (replace with real photos) */
.ph { display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; font-size: 15px; color: var(--muted); background: var(--tile); }
.story .ph { background: transparent; border: 2px dashed rgba(251,246,236,.5); color: var(--cream); height: 100%; border-radius: 24px; }
/* Brand panel shown until the family photo is ready */
.story-mark { position: relative; height: 100%; border-radius: 24px; background: var(--red); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.story-mark .ghost-zh { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: clamp(160px, 22vw, 300px); opacity: .14; color: var(--cream); }
.story-mark img { position: relative; width: 44%; max-width: 220px; }

/* Recipes */
.recipes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; }
.recipe { display: flex; flex-direction: column; gap: 10px; }
.recipe .ph { aspect-ratio: 1 / 1; border-radius: 20px; }
.recipe h3 { font-size: 26px; margin-top: 4px; }
.recipe p { color: var(--muted); font-size: 15px; }

/* Vote */
.vote { background: var(--red); color: var(--cream); position: relative; overflow: hidden; }
.vote .ghost-zh { left: -60px; top: 40px; font-size: clamp(240px, 32vw, 420px); }
.vote-inner { position: relative; max-width: 1000px; margin: 0 auto; padding: 104px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.vote h2 { font-size: clamp(44px, 5.6vw, 72px); line-height: 1; }
.vote-intro { font-size: 18px; max-width: 600px; }
.vote form { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.options { border: 0; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.option label { cursor: pointer; text-align: left; padding: 24px; border-radius: 22px; border: 2px solid var(--cream); display: flex; flex-direction: column; gap: 10px; min-height: 190px; height: 100%; transition: background-color .15s ease, color .15s ease; }
.option .kind { font-family: var(--caps); font-weight: 900; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.option .name { font-family: var(--serif); font-size: 28px; line-height: 1.05; }
.option .pick { margin-top: auto; font-weight: 700; font-size: 15px; }
.option .pick::before { content: "Pick this"; }
.option input:checked + label { background: var(--cream); color: var(--red); }
.option input:checked + label .pick::before { content: "Your pick"; }
.option input:focus-visible + label { outline: 3px solid var(--cream); outline-offset: 3px; }
.other-idea { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 8px; text-align: left; font-weight: 700; }
.other-idea[hidden] { display: none; }
.other-idea input { min-height: 52px; padding: 0 22px; border-radius: 999px; border: 0; font: inherit; font-weight: 400; font-size: 16px; color: var(--ink); background: var(--cream); }
.signup { width: 100%; max-width: 560px; display: flex; flex-wrap: wrap; gap: 12px; }
.signup input[type=email] { flex: 1 1 260px; min-height: 56px; padding: 0 22px; border-radius: 999px; border: 0; font: inherit; font-size: 16px; color: var(--ink); background: var(--cream); }
.signup .btn { min-height: 56px; font-size: 16px; }
.fine { font-size: 14px; }
.form-msg { font-size: 18px; font-weight: 700; min-height: 1.5em; }
.form-msg[data-state="error"] { background: var(--cream); color: var(--red); padding: 8px 16px; border-radius: 12px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--cream); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-top: 64px; padding-bottom: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 320px; }
.footer-brand img { width: 96px; }
.footer-brand p { font-size: 15px; opacity: .85; }
.footer-links { display: flex; flex-wrap: wrap; gap: 56px; font-size: 15px; }
.footer-links div { display: flex; flex-direction: column; gap: 4px; }
.footer-links strong { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.footer-links a { text-decoration: none; padding: 6px 0; }
.footer-links a:hover { text-decoration: underline; }
.copyright { text-align: center; padding: 0 24px 32px; font-size: 13px; opacity: .8; }
.copyright-only { padding-top: 32px; }

/* Simple text pages (privacy, 404) */
.page-header { background: var(--red); color: var(--cream); }
.prose { max-width: 720px; margin: 0 auto; padding: 72px 24px 104px; display: flex; flex-direction: column; gap: 18px; font-size: 17px; }
.prose h1 { font-size: clamp(44px, 6vw, 64px); margin-bottom: 8px; }
.prose h2 { font-size: 30px; margin-top: 20px; }
.prose ul { margin: 0; padding-left: 22px; }

@media (max-width: 640px) {
  .site-header { row-gap: 4px; }
  .site-header nav { order: 3; width: 100%; gap: 20px; }
  .hero-body { padding-top: 40px; padding-bottom: 72px; }
  .jar-lg { --w: 150px; --h: 196px; }
  .jar-md { --w: 124px; --h: 160px; }
  .hero-jars { gap: 16px; }
  .values { font-size: 20px; gap: 8px 20px; }
  .values li + li::before { margin-right: 20px; }
  .section, .story .wrap { padding-top: 72px; padding-bottom: 72px; }
  .vote-inner { padding: 72px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
