:root { color-scheme: light; --ink: #243137; --muted: #50616a; --paper: #fffaf2; --line: #d9d8cd; --green: #5c984f; --orange: #e3873d; --blue: #4e78a8; --red: #a54137; font-family: ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: radial-gradient(circle at top left, #fff3da, transparent 38rem), var(--paper); font-size: 1rem; }
a { color: #245582; text-underline-offset: .18em; }
button, input, select { font: inherit; }
button, .button { display: inline-flex; justify-content: center; align-items: center; min-height: 56px; border: 2px solid #355e3a; border-radius: 16px; padding: .75rem 1rem; background: #4f8549; color: #fff; font-weight: 750; text-decoration: none; cursor: pointer; }
button:hover, .button:hover { filter: brightness(.96); }
button:disabled { opacity: .48; cursor: not-allowed; }
button.secondary, .button.secondary { background: #fff; color: #294e70; border-color: #7797b8; }
button.quiet-button { color: #43555d; background: transparent; border-color: transparent; }
button.danger { background: #fff1ef; color: #752e29; border-color: #bd7770; }
input, select { min-height: 52px; border: 2px solid #9ba7a3; border-radius: 12px; padding: .65rem .8rem; background: #fff; color: var(--ink); }
:focus-visible { outline: 4px solid #bd7512; outline-offset: 3px; }
.skip-link { position: absolute; z-index: 10; top: .5rem; left: .5rem; transform: translateY(-160%); background: #fff; padding: .7rem; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem clamp(1rem, 4vw, 2.5rem); border-bottom: 1px solid #e4ded1; background: #fffaf2eF; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--ink); font-size: 1.2rem; font-weight: 850; text-decoration: none; }
.brand small { display: block; margin-top: .18rem; font-size: .74rem; color: var(--muted); font-weight: 600; }
.brand-mark, .welcome-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: #fff0d4; color: var(--orange); font-size: 2rem; }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; justify-content: end; gap: .35rem .85rem; }
.site-header nav a, .site-footer nav a { padding: .6rem .4rem; font-weight: 700; }
main { max-width: 1180px; min-height: 72vh; margin: 0 auto; padding: 1rem clamp(1rem, 3vw, 2rem) 3rem; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem clamp(1rem, 4vw, 2.5rem); border-top: 1px solid #e4ded1; color: var(--muted); font-size: .9rem; }
.live-note { min-height: 1.5rem; margin: 0 0 .5rem; color: #395e3d; }
.live-note.is-error { color: #8a342e; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin: 1.3rem 0 1rem; }
.eyebrow { margin: 0 0 .35rem; color: #5b6d55; font-size: .84rem; font-weight: 800; letter-spacing: .025em; }
h1, h2, h3 { line-height: 1.25; }
h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { margin: 0 0 .6rem; font-size: clamp(1.2rem, 2.6vw, 1.6rem); }
h3 { margin: 0 0 .5rem; font-size: 1.15rem; }
p { line-height: 1.65; }
.lede { max-width: 48rem; margin: .6rem 0 0; color: var(--muted); font-size: 1.08rem; }
.review-banner { display: grid; grid-template-columns: auto 1fr; gap: .6rem; padding: .85rem 1rem; border: 1px solid #dca35a; border-radius: 16px; background: #fff2dd; }
.review-banner strong { color: #754316; }
.review-banner span { line-height: 1.55; }
.welcome-card, .resume-card, .parent-preview, .complete-card { display: flex; align-items: center; gap: 1rem; margin: 1rem 0; padding: 1.1rem; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 6px 18px #4d40300b; }
.welcome-card h2, .resume-card h2, .parent-preview h2, .complete-card h2 { margin-bottom: .25rem; }
.welcome-card p, .resume-card p, .parent-preview p { margin: .25rem 0; color: var(--muted); }
.welcome-mark { flex: none; width: 62px; height: 62px; border-radius: 20px; font-size: 2.4rem; }
.resume-card { justify-content: space-between; background: #f4faef; }
.home-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0; }
.home-card { display: flex; min-height: 165px; flex-direction: column; align-items: flex-start; justify-content: center; gap: .3rem; padding: 1rem; border: 1px solid var(--line); border-radius: 20px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 5px 16px #463a280b; }
.home-card span { font-size: 1.9rem; }
.home-card strong { font-size: 1.12rem; }
.home-card small { color: var(--muted); font-size: .9rem; }
.home-card.primary { border-color: #88a87b; background: #eef7e9; }
.mission-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin: 1rem 0; }
.mission-card, .panel, .complete-card { padding: 1rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.mission-card p { color: var(--muted); }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .8rem; }
.ingredient-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0; }
.ingredient-card { display: flex; min-height: 172px; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; padding: .8rem .55rem; border: 1px solid #cad5c7; border-radius: 18px; background: #fff; color: var(--ink); text-align: center; }
button.ingredient-card { min-height: 172px; }
.ingredient-art-wrap { display: grid; flex: none; place-items: center; width: 80px; height: 80px; overflow: hidden; border: 1px solid #e2e2d7; border-radius: 26px; background: radial-gradient(circle at 50% 37%, #fff 0 16%, var(--food-wash, #f6f0df) 74%); }
.ingredient-art-wrap[data-category="grain"], .ingredient-art-wrap[data-category="prepared"] { --food-wash: #f3e6c9; }
.ingredient-art-wrap[data-category="vegetable"], .ingredient-art-wrap[data-category="other"] { --food-wash: #e6f1d9; }
.ingredient-art-wrap[data-category="fruit"] { --food-wash: #ffecd8; }
.ingredient-art-wrap[data-category="dairy"] { --food-wash: #eaf1ee; }
.ingredient-art-wrap[data-category="protein"], .ingredient-art-wrap[data-category="legume"] { --food-wash: #f1e8da; }
.ingredient-art-wrap[data-category="topping"] { --food-wash: #eee8f2; }
.ingredient-art-wrap[data-category="sauce"] { --food-wash: #f8e7d9; }
.ingredient-art { display: block; width: 72px; height: 72px; overflow: visible; }
.ingredient-art--small { width: 42px; height: 42px; }
.ingredient-card > strong { max-width: 100%; font-size: 1rem; line-height: 1.35; overflow-wrap: anywhere; }
.ingredient-card > small { min-height: 1.2em; color: var(--muted); }
.ingredient-card.is-selected { border-color: #466f42; background: #eaf4e5; box-shadow: inset 0 0 0 2px #8db182; }
.ingredient-card.is-selected > small { color: #365b37; font-weight: 800; }
.mission-ingredient-preview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; margin: .9rem 0; }
.mission-ingredient { display: flex; min-width: 0; flex-direction: column; align-items: center; gap: .15rem; text-align: center; }
.mission-ingredient .ingredient-art { width: 56px; height: 56px; }
.mission-ingredient small { width: 100%; color: var(--muted); font-size: .78rem; line-height: 1.25; overflow-wrap: anywhere; }
.mission-card { display: flex; flex-direction: column; align-items: stretch; }
.mission-card .card-actions { margin-top: auto; }
.step-count { color: #395e3d; font-weight: 800; }
.order-grid { display: grid; grid-template-columns: 1fr; gap: .7rem; max-width: 760px; }
.order-card { justify-content: flex-start; gap: .9rem; background: #fff; color: var(--ink); border-color: #8d9daf; text-align: left; }
.step-number { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #e7f0f7; color: #315b7d; font-size: 1.25rem; font-weight: 850; }
.plate-builder { display: grid; gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.choice-grid, .filter-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0; }
button.chip { min-height: 48px; padding: .55rem .85rem; border-color: #91a39a; background: #fff; color: var(--ink); }
button.chip-with-art { min-height: 58px; justify-content: flex-start; gap: .4rem; padding: .35rem .6rem; }
button.chip-with-art .ingredient-art { flex: none; width: 38px; height: 38px; }
.completed-plate { display: flex; align-items: center; justify-content: center; gap: .75rem; width: min(100%, 300px); min-height: 150px; margin: 0 auto; border: 9px solid #f0eee6; border-radius: 50%; background: radial-gradient(circle, #fff 0 49%, #f4f3ed 50% 70%, #fff 71%); box-shadow: 0 5px 14px #47433515, inset 0 0 0 2px #dedbd0; }
.completed-plate .ingredient-art-wrap { width: 76px; height: 76px; border-color: transparent; background: transparent; }
.completed-plate .ingredient-art { width: 70px; height: 70px; }
.combo-preview { margin: 0; padding: .8rem; border-radius: 14px; background: #f4f0fa; font-weight: 800; }
.complete-card { flex-direction: column; align-items: flex-start; max-width: 740px; margin: 1.3rem auto; padding: 1.4rem; }
.tool-card { min-height: 175px; }
.tool-card > span { font-size: 1.5rem; }
.tool-card.adult-only { border-color: #d7a07e; background: #fff7f0; }
.hygiene-card { display: flex; flex-direction: column; align-items: flex-start; }
.gate-card { max-width: 640px; margin: 1rem auto; }
.gate-card form { display: grid; gap: .65rem; margin: 1rem 0; }
.gate-card input[type="number"] { max-width: 10rem; }
.check-row { min-height: 44px; display: flex; align-items: center; gap: .7rem; margin: .6rem 0; line-height: 1.5; }
.check-row input { flex: none; width: 24px; min-height: 24px; height: 24px; margin-top: .1rem; accent-color: var(--green); }
.warning-panel { border-color: #d9a164; background: #fff4e4; }
.warning-panel strong { color: #804519; }
.plain-list { display: grid; gap: .8rem; padding-left: 1.25rem; line-height: 1.65; }
.plain-list li span { display: block; color: var(--muted); font-size: .92rem; }
.adult-steps { display: grid; gap: .8rem; padding-left: 1.4rem; }
.adult-steps li { padding: .8rem; border-radius: 14px; background: #fff7f0; }
.adult-steps p { margin: .35rem 0; }
.adult-steps small { color: #6e554a; }
.print-box { display: inline; font-size: 1.2rem; }
.source-card a { display: inline-block; padding: .5rem 0; font-weight: 750; }
.storage-note, .content-note { color: var(--muted); font-size: .92rem; }
.storage-error { border-left: 4px solid #9b3f37; padding: .5rem .7rem; background: #fff0eb; color: #713027; }

@media (max-width: 900px) {
  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mission-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .site-header, .site-footer { align-items: flex-start; flex-direction: column; }
  .site-header nav, .site-footer nav { justify-content: flex-start; }
  .home-grid, .mission-grid { grid-template-columns: 1fr; }
  .ingredient-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .welcome-card, .resume-card { align-items: flex-start; flex-direction: column; }
  .review-banner { grid-template-columns: 1fr; }
  main { padding-right: 1rem; padding-left: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  body { background: #fff; color: #000; font: 12pt serif; }
  .site-header, .site-footer, button, nav, .review-banner, .live-note, .storage-note, .content-note, .skip-link { display: none !important; }
  main { max-width: none; min-height: auto; padding: 0; }
  .page-heading { margin: 0 0 1rem; }
  .panel { break-inside: avoid; border: 1px solid #777; box-shadow: none; }
  a { color: #000; }
}
