/* Taiko Kitchen: Forest Tint tokens, light reading surface for a 65+ audience */
:root {
  --forest: #0e1e15;
  --forest-2: #0a1712;
  --forest-3: #17301f;
  --cream: #f3efe4;
  --paper: #fbf9f3;
  --ink: #16201a;
  --ink-2: #4a5249;
  --line: #ddd5c4;
  --brass: #c9a961;
  --brass-deep: #8a6d2c;   /* brass that passes contrast on cream */
  --ok: #2f6b3f;
  --radius: 14px;
  --fs: 19px;
}
html[data-size="large"] { --fs: 22px; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: var(--fs); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: Manrope, system-ui, sans-serif; line-height: 1.55;
  min-height: 100vh; padding-bottom: calc(84px + env(safe-area-inset-bottom));
}
h1, h2, h3 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: 2.1rem; } h2 { font-size: 1.6rem; } h3 { font-size: 1.25rem; }
em { font-family: "Instrument Serif", Georgia, serif; font-style: italic; color: var(--brass-deep); font-size: 1.08em; }
p { margin: 0 0 1em; }
a { color: var(--forest); }
button, a, input, label { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 10; background: var(--forest); color: var(--cream);
  display: flex; align-items: center; justify-content: center; min-height: 60px;
  padding: env(safe-area-inset-top) 16px 0;
}
.brand { font-weight: 800; letter-spacing: .22em; font-size: .85rem; }
.brand span { font-family: "Instrument Serif", serif; font-style: italic; letter-spacing: 0; font-weight: 400; font-size: 1.25rem; color: var(--brass); margin-left: 4px; }
.back {
  position: absolute; left: 8px; bottom: 6px; background: none; border: 0; color: var(--cream);
  font: inherit; font-weight: 600; font-size: 1rem; padding: 10px 12px; cursor: pointer; min-height: 48px;
}

main { max-width: 640px; margin: 0 auto; padding: 24px 16px 32px; outline: none; }

/* buttons */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 60px; padding: 14px 20px; border-radius: 100px; border: 2px solid var(--forest);
  background: var(--forest); color: var(--cream); font: inherit; font-weight: 700; font-size: 1.05rem;
  cursor: pointer; text-decoration: none; text-align: center;
}
.btn.secondary { background: transparent; color: var(--forest); }
.btn.brass { background: var(--brass); border-color: var(--brass); color: #171310; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn + .btn { margin-top: 12px; }
.link { background: none; border: 0; font: inherit; color: var(--forest); text-decoration: underline; cursor: pointer; padding: 12px 0; min-height: 48px; }

/* welcome */
.hero { background: var(--forest); color: var(--cream); border-radius: var(--radius); padding: 32px 22px; margin-bottom: 20px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -40px -60px auto; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(201,169,97,.28), transparent 70%); }
.hero h1 { color: var(--cream); }
.hero em { color: var(--brass); }
.hero p { color: #d9d3c4; font-size: 1.05rem; }
.kicker { font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-deep); margin-bottom: 8px; }
.hero .kicker { color: var(--brass); }
.bullets { list-style: none; padding: 0; margin: 0 0 24px; }
.bullets li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
.bullets li span { font-size: 1.4rem; line-height: 1.2; }
.fine { font-size: .85rem; color: var(--ink-2); text-align: center; margin-top: 14px; }

/* setup */
.progress { height: 8px; background: var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
.progress div { height: 100%; background: var(--brass); transition: width .3s; }
.stepno { font-size: .85rem; color: var(--ink-2); margin-bottom: 18px; }
.hint { color: var(--ink-2); margin-top: -4px; }
.options { display: grid; gap: 12px; margin: 18px 0 26px; }
.options.two { grid-template-columns: 1fr 1fr; }
.opt {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px;
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius);
  font: inherit; font-weight: 600; font-size: 1.02rem; color: var(--ink); cursor: pointer; text-align: left; width: 100%;
}
.opt .oe { font-size: 1.5rem; }
.opt .check { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; color: transparent; font-size: .9rem; }
.opt[aria-pressed="true"] { border-color: var(--forest); background: #e9efe6; }
.opt[aria-pressed="true"] .check { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.navrow { display: flex; gap: 12px; }
.navrow .btn { margin: 0; }

/* dinner list */
.intro { margin-bottom: 18px; }
.cards { display: grid; gap: 14px; }
.card {
  display: flex; gap: 14px; align-items: center; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; text-decoration: none; color: var(--ink); min-height: 96px;
}
.card .thumb { width: 72px; height: 72px; border-radius: 12px; background: var(--forest-3); display: grid; place-items: center; font-size: 2.1rem; flex: none; }
.card h3 { font-family: Manrope, sans-serif; font-weight: 700; font-size: 1.02rem; margin: 0 0 4px; line-height: 1.3; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-2); font-size: .85rem; }
.rank { font-size: .7rem; font-weight: 800; letter-spacing: .12em; color: var(--brass-deep); text-transform: uppercase; }

.notice { background: #fff6dd; border: 1px solid #ead9a8; border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; font-size: .95rem; }

/* recipe */
.rhead { text-align: center; margin-bottom: 18px; }
.rhead .big { font-size: 3.4rem; line-height: 1; margin-bottom: 8px; }
.rhead .meta { justify-content: center; font-size: .95rem; }
.pill { display: inline-block; background: var(--forest); color: var(--cream); border-radius: 100px; padding: 2px 12px; font-size: .8rem; font-weight: 700; }
.tip { background: var(--forest); color: var(--cream); border-radius: var(--radius); padding: 16px 18px; margin: 18px 0 24px; font-size: .98rem; }
.tip b { color: var(--brass); display: block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 4px; }
.serv { display: flex; align-items: center; justify-content: space-between; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 16px; }
.serv button { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--forest); background: transparent; color: var(--forest); font-size: 1.5rem; font-weight: 700; cursor: pointer; }
.serv strong { font-size: 1.15rem; }
.ing { list-style: none; padding: 0; margin: 0 0 24px; }
.ing li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; }
.ing .q { font-weight: 700; min-width: 5.2em; flex: none; }
.steps { list-style: none; padding: 0; margin: 0 0 24px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 18px 54px; font-size: 1.04rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--brass); color: #171310; font-weight: 800; display: grid; place-items: center; }
.done-note { text-align: center; color: var(--ok); font-weight: 700; margin-top: 10px; min-height: 1.5em; }

/* shopping list */
.aisle { margin-bottom: 22px; }
.aisle h3 { font-family: Manrope, sans-serif; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-deep); font-weight: 800; }
.item { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 8px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.item input { width: 30px; height: 30px; accent-color: var(--forest); flex: none; }
.item.got span { text-decoration: line-through; color: var(--ink-2); }
.item .q { font-weight: 700; }
.empty { text-align: center; padding: 40px 10px; color: var(--ink-2); }
.empty .big { font-size: 3rem; }
.soon { border: 2px dashed var(--line); border-radius: var(--radius); padding: 16px; margin-top: 10px; color: var(--ink-2); font-size: .95rem; }
.soon b { color: var(--ink); }

/* community */
.post { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.post .ph { height: 180px; display: grid; place-items: center; font-size: 4rem; background: linear-gradient(135deg, #20382a, var(--forest)); }
.post .pb { padding: 14px 16px; }
.post .who { font-weight: 700; }
.post .likes { color: var(--ink-2); font-size: .9rem; margin-top: 6px; }
.badge { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: var(--line); color: var(--ink-2); padding: 3px 8px; border-radius: 6px; margin-bottom: 14px; }

/* account */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row span:first-child { color: var(--ink-2); white-space: nowrap; }
.row span:last-child { font-weight: 600; text-align: right; }
.sizes { display: flex; gap: 10px; }
.sizes .opt { justify-content: center; min-height: 56px; }

/* tab bar */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--forest);
  display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a { color: #b9b3a5; text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 70px; font-size: .78rem; font-weight: 600; position: relative; }
.tabbar a .ti { font-size: 1.45rem; line-height: 1.2; filter: grayscale(1) brightness(1.4); }
.tabbar a.on { color: var(--brass); }
.tabbar a.on .ti { filter: none; }
.tabbar b { position: absolute; top: 8px; left: calc(50% + 10px); background: var(--brass); color: #171310; font-size: .7rem; border-radius: 10px; padding: 0 6px; min-width: 20px; text-align: center; }

/* forms */
.form { margin: 20px 0 8px; }
.lbl { display: block; font-weight: 700; margin-bottom: 8px; }
.field {
  width: 100%; min-height: 60px; padding: 12px 16px; font: inherit; font-size: 1.1rem; color: var(--ink);
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius);
}
.field:focus { border-color: var(--forest); outline: none; }
.field.code { font-size: 1.8rem; letter-spacing: .5em; text-align: center; font-weight: 700; }
.err { color: #a3322a; font-weight: 600; min-height: 1.5em; margin: 8px 0 12px; }
.btn.danger { background: #a3322a; border-color: #a3322a; color: #fff; }
.link.danger { color: #a3322a; display: block; margin: 8px auto 0; }
.panel.warn { border-color: #e2b4ad; background: #fff4f2; margin-top: 12px; }
.panel h3 { margin-bottom: 6px; }

.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--cream); padding: 12px 20px; border-radius: 100px; font-weight: 600; z-index: 20; max-width: calc(100% - 32px); text-align: center; }
.install { background: #e9efe6; border: 1px solid #c9d6c4; border-radius: var(--radius); padding: 14px 16px; margin-top: 16px; font-size: .95rem; }

@media (prefers-reduced-motion: no-preference) {
  main > * { animation: up .35s ease both; }
  @keyframes up { from { opacity: 0; transform: translateY(10px); } }
}

/* recipe photos */
.card .thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block; }
.card .thumb:has(img) { background: none; }
.hero-img { width: calc(100% + 32px); max-width: none; margin: -24px -16px 18px; aspect-ratio: 3 / 2; height: auto; object-fit: cover; display: block; }
@media (min-width: 672px) { .hero-img { width: 100%; margin: 0 0 18px; border-radius: var(--radius); } }

/* business footer */
footer.legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; font-size: .82rem; color: var(--ink-2); line-height: 1.6; }
footer.legal nav { margin-bottom: 6px; }
footer.legal a { color: var(--ink-2); }
