:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  line-height: 1.6;
  color: #24372d;
  background: #f8f6ef;
  --ink: #24372d;
  --muted: #59695c;
  --green: #315b40;
  --green-deep: #234632;
  --leaf: #e5ecd9;
  --line: #d9dfd2;
  --card: #fffef9;
  --clay: #aa654e;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
a { color: var(--green); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 16px; background: white; border-radius: 10px; }
.skip-link:focus { top: 12px; }
header, main, footer { max-width: 1160px; margin: auto; padding-left: 32px; padding-right: 32px; }
header { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: baseline; gap: 18px; color: var(--ink); font-size: 29px; font-weight: 800; letter-spacing: -1.4px; text-decoration: none; white-space: nowrap; }
.logo span { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .06em; }
#locale-switch { flex: none; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; text-decoration: none; }
main { padding-top: 24px; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(270px, .7fr); align-items: center; overflow: hidden; min-height: 390px; padding: 42px 50px 36px; margin-bottom: 28px; border: 1px solid #e3e7d7; border-radius: 26px; background: radial-gradient(circle at 70% 30%, #edf2dc 0, transparent 43%), linear-gradient(135deg, #fbfaf3 0%, #eef2e5 100%); }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { margin: 0; color: #59714d; font-size: 11px; font-weight: 700; letter-spacing: .19em; }
h1 { max-width: 660px; margin: 16px 0; font-size: clamp(35px, 4.5vw, 58px); line-height: 1.18; letter-spacing: -.04em; }
.hero-copy > p:not(.eyebrow) { margin: 0; color: #4f6455; font-size: 16px; line-height: 1.8; }
.steps { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 24px 0 0; list-style: none; }
.steps li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 7px; border: 1px solid #dbe3d2; border-radius: 100px; background: #ffffffb8; color: #3c5a43; font-size: 12px; font-weight: 600; }
.steps li > span:first-child { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--green); color: white; font-size: 10px; }
.hero-visual { position: relative; height: 310px; min-width: 260px; }
.orbit { position: absolute; inset: 19px 10px; border: 2px dashed #9aaf87; border-radius: 50%; transform: rotate(-23deg); opacity: .62; }
.plate { position: absolute; width: 184px; height: 184px; border: 11px solid #fffef9; border-radius: 50%; box-shadow: 0 18px 35px #42543b2c, inset 0 0 0 3px #e7e5d8; }
.plate-a { left: 4px; top: 12px; transform: rotate(-15deg); background: #efd4a6; }
.plate-b { right: 0; bottom: 6px; transform: rotate(18deg); background: #b7c994; }
.plate i, .plate b, .plate em { position: absolute; display: block; border-radius: 50%; }
.plate-a i { width: 104px; height: 58px; left: 31px; top: 51px; background: #d4774c; transform: rotate(20deg); }
.plate-a b { width: 52px; height: 34px; left: 52px; top: 61px; background: #f5e3bd; transform: rotate(22deg); }
.plate-a em { width: 37px; height: 22px; left: 86px; top: 75px; background: #527b4c; transform: rotate(-28deg); }
.plate-b i { width: 111px; height: 64px; left: 29px; top: 48px; background: #f1daaa; transform: rotate(-12deg); }
.plate-b b { width: 53px; height: 49px; left: 44px; top: 54px; background: #b96547; }
.plate-b em { width: 46px; height: 23px; left: 86px; top: 83px; background: #3e774c; transform: rotate(31deg); }
.spark { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #b8794f; }
.spark-a { right: 40px; top: 32px; }.spark-b { left: 32px; bottom: 28px; width: 7px; height: 7px; background: #65834f; }
.has-session .hero { display: block; min-height: 0; padding: 20px 30px; }
.has-session .hero h1 { margin: 7px 0 0; font-size: clamp(23px, 3vw, 29px); letter-spacing: -.025em; }
.has-session .hero h1 br, .has-session .hero-copy > p:not(.eyebrow), .has-session .steps, .has-session .hero-visual { display: none; }
h2 { margin: 0 0 16px; font-size: 23px; line-height: 1.3; letter-spacing: -.02em; overflow-wrap: anywhere; }
h3 { margin: 0 0 12px; font-size: 18px; line-height: 1.35; overflow-wrap: anywhere; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card { padding: 28px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: 0 8px 28px #334c3310; }
.card .card { background: #fafbf6; box-shadow: none; }
.login { max-width: 620px; }
.muted, .empty { color: var(--muted); font-size: 13px; }
.empty { padding: 24px 0; }
label { display: block; margin: 16px 0 5px; font-size: 14px; font-weight: 600; }
input, textarea, select { display: block; width: 100%; min-height: 46px; margin-top: 6px; padding: 10px 12px; border: 1px solid #bfcabf; border-radius: 10px; background: #fff; color: var(--ink); }
textarea { min-height: 104px; resize: vertical; }
input[type=checkbox] { display: inline-block; width: 18px; min-height: 0; height: 18px; margin: 0 8px 0 0; vertical-align: middle; accent-color: var(--green); }
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #a5c69a; outline-offset: 2px; }
button { min-height: 44px; margin: 16px 8px 0 0; padding: 10px 18px; border: 1px solid transparent; border-radius: 10px; background: var(--green); color: white; font-size: 14px; font-weight: 650; cursor: pointer; transition: background .15s ease, transform .15s ease; }
button:hover { background: var(--green-deep); transform: translateY(-1px); }
button:disabled { opacity: .52; cursor: wait; transform: none; }
button.secondary { border-color: #cfddce; background: #e7eee4; color: var(--green-deep); }
button.secondary:hover { background: #d8e7d7; }
button.danger { border-color: #efcfc5; background: #f8eae4; color: #823d30; }
button.danger:hover { background: #f4ddd4; }
.badge { display: inline-block; padding: 5px 12px; margin-bottom: 12px; border-radius: 100px; background: var(--leaf); color: var(--green-deep); font-size: 12px; font-weight: 700; }
.invite-progress { display: flex; flex-wrap: wrap; gap: 9px; margin: 16px 0; }
.invite-progress span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; font-weight: 650; }
.invite-progress .done { border-color: #cbdcc9; background: #e7f1e5; color: var(--green-deep); }
.invite-progress .pending { background: #f4f3eb; color: #5c665a; }
.story { overflow-wrap: anywhere; white-space: pre-wrap; }
.story-panel { padding: 18px; margin: 12px 0; border-radius: 12px; background: #f3f6ed; }
.ingredient-pairs { padding: 0; margin: 12px 0; list-style: none; }
.ingredient-pairs li { display: flex; flex-wrap: wrap; gap: 10px; padding: 8px 0; border-bottom: 1px solid #d9dfd2; overflow-wrap: anywhere; }
.ingredient-pairs strong { color: #234632; }
.actions, .history-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.history-list { margin-bottom: 16px; }.history-list button { max-width: 100%; margin: 0; overflow-wrap: anywhere; }.history-list button[aria-current=true] { background: var(--green-deep); color: white; }
.pair-row { display: flex; gap: 14px; }.pair-row label { flex: 1; }
.stack { display: grid; gap: 12px; }
.small, .notice { font-size: 12px; }
.notice { padding: 11px 14px; border: 1px solid #d9dfcb; border-radius: 10px; color: #5d674e; }
#message:not(:empty) { padding: 13px 16px; margin-bottom: 20px; border: 1px solid #cddfca; border-radius: 12px; background: #ecf5e8; color: #25462f; }
#message.error { border-color: #ebc8b9; background: #fff1eb; color: #813b2e; }
#account { font-size: 13px; }.account button, #account button { min-height: 36px; margin: 4px 0 4px 8px; padding: 5px 10px; font-size: 12px; }
.review, .review-plan { padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--line); }
.meal-photo { display: block; max-width: 100%; max-height: 360px; margin: 12px 0; border-radius: 12px; object-fit: contain; }.meal-photo:not([src]) { min-height: 24px; }
.invite-code { overflow-wrap: anywhere; padding: 12px; border-radius: 10px; background: #f2f5ec; font-family: ui-monospace, SFMono-Regular, monospace; }
footer { padding-top: 24px; padding-bottom: 32px; margin-top: 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
[hidden] { display: none !important; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; min-height: 0; padding: 36px; }.hero-visual { display: none; } }
@media (max-width: 680px) {
  header, main, footer { padding-left: 20px; padding-right: 20px; }
  header { min-height: 70px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .logo { font-size: 27px; }.logo span { display: none; }
  main { padding-top: 16px; }
  .hero { padding: 27px 23px 26px; margin-bottom: 20px; border-radius: 20px; }
  .has-session .hero { padding: 15px 20px; }
  h1 { margin: 13px 0; font-size: clamp(32px, 8vw, 40px); }
  .hero-copy > p:not(.eyebrow) { font-size: 14px; }
  .hero-copy br { display: none; }
  .steps { margin-top: 18px; gap: 5px; }.steps li { font-size: 11px; padding-right: 9px; }
  .grid { grid-template-columns: 1fr; gap: 0; }
  .card { padding: 22px; border-radius: 16px; }
  .pair-row { display: block; }
  form > button:not(.secondary):not(.danger) { width: 100%; margin-right: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } button { transition: none; } button:hover { transform: none; } }
