:root {
  --bg: #e7efe4;
  --ink: #1a261c;
  --muted: #5c6b60;
  --card: #f7faf6;
  --line: #c9d7c8;
  --pine: #1e4a38;
  --pine-2: #16382b;
  --tangerine: #e15a1b;
  --today: #fff6ee;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
a { color: var(--pine); }
a:hover { color: var(--tangerine); }
:focus-visible { outline: 2px solid var(--tangerine); outline-offset: 3px; }
.skip {
  position: absolute; left: 12px; top: -40px;
  background: var(--ink); color: white; padding: 8px 12px;
}
.skip:focus { top: 12px; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.top {
  background: var(--pine-2);
  color: #f4faf6;
  padding: 16px 0;
}
.top a { color: inherit; text-decoration: none; }
.top-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand span { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.brand small { color: #b7d0c4; font-size: 12px; margin-top: 3px; }
.search { display: flex; gap: 8px; width: min(420px, 100%); }
.search input, .search button, .filters a, .pager a, .week-nav a {
  font: inherit;
}
.search input {
  flex: 1;
  border: 0;
  border-radius: 0;
  padding: 10px 12px;
  background: #f7faf6;
  color: var(--ink);
}
.search button, .week-nav a, .pager a, .filters a {
  border: 0;
  background: var(--tangerine);
  color: white;
  text-decoration: none;
  padding: 10px 14px;
  cursor: pointer;
}
.filters a, .week-nav a, .pager a { background: var(--pine); }
.filters a[aria-current="page"] { background: var(--tangerine); }
main { padding: 28px 0 12px; }
h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.2; letter-spacing: -0.04em; margin: 0 0 10px; }
h2 { font-size: 18px; margin: 28px 0 10px; }
.kicker { margin: 0; color: var(--tangerine); font-weight: 700; letter-spacing: 0.01em; }
.lede { max-width: 38rem; font-size: 18px; }
.eng, .meta, .note, .foot, .empty { color: var(--muted); }
.regions, .week, .filters, .week-nav, .pager { display: flex; flex-wrap: wrap; gap: 8px; }
.region {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  text-decoration: none;
  padding: 12px 14px;
  min-width: 140px;
}
.region strong { color: var(--ink); }
.region span, .school-list span { color: var(--muted); font-size: 14px; }
.school-list { list-style: none; padding: 0; margin: 12px 0 0; }
.school-list li { border-bottom: 1px solid var(--line); }
.school-list a {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 0; text-decoration: none; color: var(--ink);
}
.week { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.day {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 12px 14px 8px;
}
.day.today { background: var(--today); border-color: var(--tangerine); }
.day h2 { margin: 0 0 8px; font-size: 16px; }
.day h2 em {
  font-style: normal; background: var(--tangerine); color: white;
  font-size: 12px; padding: 1px 6px; margin-left: 6px;
}
.meal h3 { margin: 10px 0 6px; font-size: 15px; }
.meal h3 span { color: var(--muted); font-weight: 500; }
.meal ul, .origin, .allergy { margin: 0; padding-left: 1.1em; }
.meal li { margin: 3px 0; }
.meal sup { color: var(--tangerine); font-size: 11px; }
.meal details { margin: 8px 0 12px; color: var(--muted); font-size: 14px; }
.error { background: #fff1f0; border: 1px solid #e7b2aa; padding: 10px 12px; }
.allergy { columns: 2; }
.foot { padding: 8px 0 36px; font-size: 14px; }
.links { display: flex; gap: 14px; }
@media (max-width: 720px) {
  .top-row, .school-list a { flex-direction: column; align-items: stretch; }
  .week, .allergy { grid-template-columns: 1fr; columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  .top, .foot, .week-nav, .links, .skip { display: none; }
  body { background: white; }
  .week { display: block; }
  .day { break-inside: avoid; border: 0; border-top: 1px solid #ccc; }
}
