[hidden] { display: none !important; }
:root {
  --paper: #f7efe3;
  --ink: #2b1d14;
  --muted: #6b5646;
  --accent: #b4532a;
  --deep: #7a3218;
  --card: #fffaf2;
  --hero: #7a3218;
  --hero-ink: #fbeee0;
  --tag: #f3c9a1;
  --rule: rgba(0, 0, 0, 0.14);
  --shadow: rgba(0, 0, 0, 0.08);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh;
  background: var(--paper); color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
}
.skip {
  position: absolute; left: 0.75rem; top: -100px;
  background: var(--deep); color: #fff; padding: 0.5rem 1rem; z-index: 20;
}
.skip:focus { top: 0.75rem; }
:focus-visible { outline: 3px solid var(--deep); outline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--deep); }

.hero { background: var(--hero); color: var(--hero-ink); padding: 1.5rem 1.25rem 1.8rem; }
.hero a { color: inherit; }
.hero-inner, .wrap, footer { width: min(68rem, calc(100% - 2rem)); margin-inline: auto; }
.wordmark { margin: 0; font-family: Georgia, "Iowan Old Style", serif; font-size: clamp(1.9rem, 6vw, 2.9rem); letter-spacing: -0.02em; line-height: 1.05; }
.wordmark a { text-decoration: none; }
.wordmark a:hover, .wordmark a:focus-visible { text-decoration: underline; }
.tagline { margin: 0.4rem 0 0; font-size: 1.15rem; color: var(--tag); }
.callout {
  margin: 1rem 0 0; padding: 0.7rem 0.85rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.95rem;
}
.wrap { padding: 1.4rem 0 2rem; }
.panel {
  background: var(--card); border: 1px solid var(--rule);
  box-shadow: 0 8px 24px var(--shadow);
  padding: 1.15rem 1.1rem 1.35rem; margin-bottom: 1.2rem;
}
.panel h2 { margin: 0 0 0.8rem; font-size: 1.25rem; }
.layout { display: grid; grid-template-columns: minmax(16rem, 26rem) 1fr; gap: 1.2rem; align-items: start; }
@media (max-width: 52rem) { .layout { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.3rem; margin: 0 0 0.85rem; }
.field label, .label { font-weight: 650; font-size: 0.9rem; }
.hint { font-size: 0.88rem; color: var(--muted); margin: 0.3rem 0; }
input[type="text"], input[type="number"], select {
  width: 100%; min-height: 44px;
  border: 2px solid var(--deep); background: #fff;
  padding: 0.45rem 0.65rem; border-radius: 3px;
}
input[type="range"] { width: 100%; min-height: 44px; accent-color: var(--accent); }
input[type="color"] { width: 44px; height: 44px; border: 2px solid var(--deep); padding: 2px; background: #fff; border-radius: 3px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px; padding: 0.45rem 0.95rem;
  background: var(--deep); color: #fff;
  border: 2px solid var(--deep); border-radius: 3px;
  font-weight: 650; cursor: pointer;
}
.btn:hover { filter: brightness(1.1); }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.secondary:hover { background: rgba(0, 0, 0, 0.05); }
.btn.small { min-height: 44px; padding: 0.25rem 0.6rem; font-size: 0.9rem; }
.row-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0 0.3rem; }
.status { min-height: 1.35em; margin: 0.5rem 0 0; font-size: 0.95rem; }
.status.error { color: #8b1c1c; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip {
  min-height: 44px; padding: 0.35rem 0.75rem; border-radius: 999px;
  border: 2px solid var(--deep); background: #fff; color: var(--ink); cursor: pointer; font-weight: 600;
}
.chip[aria-pressed="true"] { background: var(--deep); color: #fff; }
.preview-frame { background: rgba(0, 0, 0, 0.06); padding: 0.6rem; text-align: center; }
.preview-frame canvas { width: min(100%, 26rem); height: auto; display: inline-block; box-shadow: 0 10px 28px var(--shadow); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 0.35rem 0.4rem; border-bottom: 1px solid var(--rule); vertical-align: middle; }
footer { padding: 0 0 2.5rem; font-size: 0.9rem; color: var(--muted); }
footer p { margin: 0.45rem 0; }
.page-privacy h1 { margin: 0 0 0.35rem; font-size: clamp(1.8rem, 5vw, 2.4rem); }
.page-privacy .updated { color: var(--muted); font-size: 0.9rem; margin: 0 0 1.25rem; }
.page-privacy h2 { font-size: 1.25rem; margin: 1.45rem 0 0.45rem; }
.page-privacy ul { padding-left: 1.25rem; }
.page-privacy li { margin: 0.3rem 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Plate Pie */
.subhead { font-size: 1.05rem; margin: 1.1rem 0 0.5rem; }
.inline { display: flex; gap: 0.5rem; }
.inline input { flex: 1; }
.custom-field { margin-top: 1rem; }
.portion-row { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(6rem, 1.3fr) 2ch auto; gap: 0.5rem; align-items: center; margin: 0.25rem 0; }
.portion-row label { display: flex; gap: 0.45rem; align-items: center; font-weight: 600; font-size: 0.95rem; }
.portion-row output { font-weight: 700; text-align: right; }
.swatch { width: 1rem; height: 1rem; border-radius: 3px; border: 1px solid rgba(0,0,0,0.3); flex: none; }
