:root {
  --teal: #14b8d4;
  --teal-deep: #0c7f99;
  --blue: #1a6fd4;
  --indigo: #1a2f86;
  --navy: #0c1848;
  --ink: #122044;
  --muted: #5c6d8c;
  --line: #e2eaf3;
  --paper: #ffffff;
  --wash: #f4f8fb;
  --soft: #e7f6fa;
  --danger: #9d2436;
  --ok: #0d7a4b;
  --shadow: 0 16px 40px rgba(12, 24, 72, 0.08);
  --radius: 18px;
  --font: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --max: 1080px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 90% -10%, rgba(58, 212, 242, 0.18), transparent 60%),
    radial-gradient(700px 380px at -10% 8%, rgba(26, 47, 134, 0.08), transparent 55%),
    var(--paper);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--indigo); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.03em; color: var(--navy); }
h1 { font-size: clamp(2.15rem, 6vw, 3.6rem); margin: 0; }
h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin: 0 0 0.4rem; }
h3 { font-size: 1.05rem; margin: 0 0 0.6rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--teal-deep); }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--navy);
  color: white;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar { height: 6px; background: linear-gradient(90deg, #3ad4f2 0%, #1a7fe0 46%, #152a78 100%); }
.header-inner, .wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; text-decoration: none; color: inherit; }
.brand img { width: 56px; height: 56px; }
.eyebrow, .kicker {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal-deep);
}
.brand strong { display: block; font-size: 1.05rem; letter-spacing: -0.02em; }
.brand span { display: block; color: var(--muted); font-size: 0.92rem; }

.button, button.button, a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--navy);
  color: white;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}
.button.secondary, button.secondary {
  background: white;
  color: var(--navy);
  border-color: #c9d5e6;
}
.button:hover { filter: brightness(1.08); }
.button:disabled { opacity: 0.6; cursor: progress; }
.button.danger { background: white; color: var(--danger); border-color: #f0c6cd; }

main { padding-bottom: 64px; }
.hero { padding: 36px 0 8px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.campuses { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 18px 0 0; list-style: none; }
.campuses li {
  background: var(--soft);
  color: var(--navy);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.92rem;
  font-weight: 600;
}

.letter, .panel, .fact, .map-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.letter { margin-top: 22px; padding: 22px 20px; max-width: 46rem; }
.letter p { margin: 0 0 0.9rem; }
.letter .when { display: grid; gap: 4px; font-weight: 600; }
.signoff { margin-bottom: 0 !important; }

.facts {
  display: grid;
  gap: 12px;
  margin: 22px auto;
}
.fact { padding: 16px 18px; }
.fact p { margin: 4px 0 0; }
.fact a { font-weight: 600; }

.map-card { overflow: hidden; margin: 8px auto 28px; }
.map-card iframe { width: 100%; height: 280px; border: 0; display: block; }
.map-card .map-foot { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 16px; flex-wrap: wrap; }
.map-card p { margin: 0; color: var(--muted); }

.section { margin: 10px auto 28px; }
.section-head { margin-bottom: 14px; }
.note {
  background: #fff8e8;
  border: 1px solid #f0ddb0;
  color: #6a4b09;
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 16px;
}
.banner { border-radius: 14px; padding: 12px 14px; margin: 0 0 12px; }
.banner.error { background: #fff1f2; color: var(--danger); border: 1px solid #f3c5cb; }
.banner.ok { background: #eefbf4; color: var(--ok); border: 1px solid #b7e7cc; }
.fine { color: var(--muted); font-size: 0.95rem; }

.dish-group { margin: 0 0 18px; }
.dishes { display: grid; gap: 10px; }
.dish {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  cursor: pointer;
}
.dish input { width: 1.15rem; height: 1.15rem; margin: 0; grid-row: 1 / span 2; accent-color: var(--indigo); }
.dish-name { font-weight: 600; }
.dish-meta { color: var(--muted); font-size: 0.92rem; }
.dish:has(input:checked) { border-color: var(--blue); background: #f3f9ff; }
.dish.taken { cursor: not-allowed; background: var(--wash); }
.dish.taken .dish-name { color: var(--muted); }
.dish-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}
.dish-card.taken { background: var(--wash); }
.dish-card .dish-name { font-weight: 600; }
.dish-card.taken .dish-name { color: var(--muted); }
.pill {
  justify-self: end;
  grid-row: 1 / span 2;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel { padding: 18px 16px 20px; }
form { display: grid; gap: 14px; }
.grid-2 { display: grid; gap: 14px; }
label span, legend { display: block; font-weight: 600; margin-bottom: 6px; }
fieldset { border: 0; padding: 0; margin: 0; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.choice:has(input:checked) { border-color: var(--blue); background: #f3f9ff; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #cdd8e8;
  background: white;
}
textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }

.success { text-align: left; scroll-margin-top: 96px; }
.success-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #3ad4f2, #1a4eae);
  color: white;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.success dl { display: grid; gap: 8px; margin: 16px 0; }
.success dl > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 8px; }
.success dt { color: var(--muted); }
.success dd { margin: 0; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 32px;
  color: var(--muted);
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer p { margin: 0; }

.admin-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.stat { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.stat b { display: block; font-size: 1.8rem; letter-spacing: -0.04em; color: var(--navy); }
.stat span { color: var(--muted); font-size: 0.92rem; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0 12px; }
.toolbar input[type="search"] { flex: 1; min-width: 180px; min-height: 46px; border-radius: 12px; border: 1px solid #cdd8e8; padding: 8px 12px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: white; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th button { background: none; border: 0; padding: 0; font-weight: 700; cursor: pointer; color: var(--navy); }
.cards { display: grid; gap: 10px; }
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}
.card p { margin: 0 0 4px; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.claimant { font-size: 0.92rem; color: var(--muted); margin: 2px 0; }
dialog {
  width: min(560px, calc(100% - 24px));
  border: 0;
  border-radius: 18px;
  padding: 0;
  box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(12, 24, 72, 0.45); }
.dialog-body { padding: 18px; }
.login-card { max-width: 420px; margin: 48px auto; }

@media (min-width: 720px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .dishes { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .letter, .panel { padding: 28px; }
  .map-card iframe { height: 360px; }
  .admin-stats { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 799px) {
  .only-wide { display: none; }
}
@media (min-width: 800px) {
  .only-narrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
