:root {
  color-scheme: light;
  --ink: #153246;
  --muted: #526a7c;
  --subtle: #61798a;
  --line: #dce7eb;
  --line-strong: #c9d9df;
  --surface: #ffffff;
  --surface-soft: #f5f9fa;
  --surface-green: #edf8f4;
  --brand: #006b73;
  --brand-deep: #004d59;
  --brand-bright: #0b8b78;
  --accent: #d9a22a;
  --success: #0b7a5c;
  --warning: #9b6511;
  --danger: #ad3131;
  --shadow: 0 12px 32px rgba(18, 53, 68, 0.09);
  --shadow-hover: 0 18px 42px rgba(18, 53, 68, 0.14);
  --radius-lg: 24px;
  --radius-md: 17px;
  --radius-sm: 12px;
  --shell: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 85% 4%, rgba(14, 139, 120, 0.07), transparent 28rem),
    #f7fafb;
  color: var(--ink);
  font-family: Inter, Aptos, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  color: var(--brand-deep);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--brand-deep);
  color: #fff;
}

.site-header__inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  text-decoration: none;
}

.brand__mark {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  filter: drop-shadow(0 5px 12px rgba(0, 31, 37, 0.22));
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.brand small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.faculty-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.faculty-link svg {
  width: 18px;
  height: 18px;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 87% 32%, rgba(83, 214, 175, 0.24), transparent 18rem),
    linear-gradient(118deg, var(--brand-deep) 0%, var(--brand) 55%, #0d8b7b 100%);
  color: #fff;
}

.hero::before,
.hero::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  content: "";
}

.hero::before {
  width: 350px;
  height: 350px;
  top: -210px;
  right: 7%;
}

.hero::after {
  width: 190px;
  height: 190px;
  right: 19%;
  bottom: -150px;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 64px;
  align-items: center;
  padding-block: 72px 78px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 9px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  color: #a5ead5;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(39px, 5vw, 66px);
  line-height: 1.03;
  letter-spacing: -0.047em;
}

.hero__lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.79);
  font-size: clamp(17px, 1.8vw, 20px);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 29px;
}

.date-pill {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 14px;
  font-weight: 700;
}

.date-pill svg {
  width: 18px;
  height: 18px;
}

.freshness {
  color: rgba(255, 255, 255, 0.71);
  font-size: 13px;
}

.hero__spotlight {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 50px rgba(0, 35, 43, 0.18);
  backdrop-filter: blur(10px);
}

.spotlight-icon {
  display: grid;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 17px;
  background: #fff;
  color: var(--brand);
}

.spotlight-icon svg {
  width: 28px;
  height: 28px;
}

.spotlight-label,
.hero__spotlight strong,
.hero__spotlight small {
  display: block;
}

.spotlight-label {
  margin-bottom: 2px;
  color: #a5ead5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero__spotlight strong {
  font-size: 18px;
}

.hero__spotlight small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.68);
}

.content-shell {
  padding-block: 44px 70px;
}

.controls {
  margin-bottom: 28px;
}

.controls__top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.section-kicker {
  color: var(--brand-bright);
}

.controls h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.results-summary {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 14px;
}

.day-tabs,
.filter-row {
  display: flex;
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.day-tabs {
  gap: 9px;
  margin-top: 22px;
  padding: 2px 2px 8px;
}

.day-tab {
  display: inline-flex;
  min-width: 113px;
  min-height: 58px;
  flex: 1 0 108px;
  scroll-snap-align: start;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, transform 150ms ease;
}

.day-tab strong,
.day-tab small {
  display: block;
}

.day-tab strong {
  font-size: 14px;
  line-height: 1.15;
}

.day-tab small {
  margin-top: 2px;
  font-size: 11px;
}

.day-tab.is-active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 7px 18px rgba(0, 107, 115, 0.18);
}

.day-tab.is-today:not(.is-active) {
  border-color: #96cfc8;
  color: var(--brand);
}

.filter-row {
  gap: 10px;
  margin-top: 14px;
  padding: 2px 2px 7px;
}

.filter-chip {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.filter-chip svg {
  width: 18px;
  height: 18px;
}

.filter-chip.is-active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.restaurant-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.restaurant-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.restaurant-card.is-closed {
  border-color: #e4b4b4;
  background: #fffafa;
  box-shadow: 0 12px 34px rgba(151, 48, 48, 0.12);
}

.restaurant-card.is-closed .restaurant-card__header {
  border-bottom-color: #efd2d2;
  background: linear-gradient(180deg, #fff8f8, #fffdfd);
}

.restaurant-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 24px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fbfdfd);
}

.restaurant-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.restaurant-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 15px;
  background: var(--surface-green);
  color: var(--brand-bright);
}

.restaurant-icon svg {
  width: 24px;
  height: 24px;
}

.restaurant-card h2 {
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.restaurant-meta,
.restaurant-address {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.restaurant-meta svg,
.restaurant-address svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.restaurant-address {
  color: var(--muted);
  text-decoration: none;
}

.restaurant-address:hover {
  color: var(--brand);
  text-decoration: underline;
}

.status-pill {
  display: inline-flex;
  min-height: 28px;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e7f6ef;
  color: var(--success);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-pill.is-closed {
  background: #f7ecec;
  color: var(--danger);
}

.status-pill.is-stale {
  background: #fff3d8;
  color: var(--warning);
}

.menu-list {
  flex: 1;
  margin: 0;
  padding: 0 24px;
  list-style: none;
}

.menu-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid #e7eef1;
}

.menu-item:last-child {
  border-bottom: 0;
}

.menu-item h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.42;
}

.menu-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.menu-price {
  color: var(--success);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.price-notice {
  margin: 0;
  padding: 0 24px 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.menu-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  background: #e9f7ef;
  color: var(--success);
  font-size: 10px;
  font-weight: 800;
}

.card-state {
  display: grid;
  min-height: 210px;
  flex: 1;
  place-items: center;
  padding: 34px;
  text-align: center;
}

.card-state__icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 13px;
  place-items: center;
  border-radius: 50%;
  background: #f7f1e4;
  color: var(--warning);
}

.card-state__icon svg {
  width: 25px;
  height: 25px;
}

.card-state.is-closed .card-state__icon {
  background: #f7e3e3;
  color: var(--danger);
}

.card-state.is-closed strong {
  color: var(--danger);
}

.card-state strong {
  display: block;
  font-size: 16px;
}

.card-state p {
  max-width: 360px;
  margin: 7px auto 0;
  color: var(--muted);
  font-size: 13px;
}

.restaurant-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 24px;
  border-top: 1px solid var(--line);
  background: #fbfdfd;
}

.source-note {
  color: var(--subtle);
  font-size: 12px;
}

.card-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 14px;
}

.text-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 5px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.text-link svg {
  width: 15px;
  height: 15px;
}

.text-link:hover {
  text-decoration: underline;
}

.notice,
.about-panel {
  display: flex;
  align-items: center;
  gap: 17px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.notice {
  margin-bottom: 22px;
  padding: 18px 20px;
  border-color: #efcb83;
  background: #fffbf1;
}

.notice__icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #fff0cc;
  color: var(--warning);
  font-weight: 900;
}

.notice strong {
  display: block;
}

.notice p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.fallback-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 13px;
  margin-top: 9px;
}

.fallback-links a {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.notice .button {
  margin-left: auto;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.button--primary {
  background: var(--brand);
  color: #fff;
}

.button--secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--brand);
}

.empty-state {
  margin-block: 22px;
  padding: 56px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  text-align: center;
}

.empty-state__icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: 19px;
  background: var(--surface-green);
  color: var(--brand-bright);
}

.empty-state__icon svg {
  width: 29px;
  height: 29px;
}

.empty-state h2 {
  margin: 0;
  font-size: 22px;
}

.empty-state p {
  margin: 8px 0 19px;
  color: var(--muted);
}

.about-panel {
  margin-top: 30px;
  padding: 24px;
  background: linear-gradient(105deg, #eff8f5, #f8fbfb);
}

.about-panel__icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  background: #fff;
  color: var(--brand);
}

.about-panel__icon svg {
  width: 24px;
  height: 24px;
}

.about-panel h2 {
  margin: 0;
  font-size: 17px;
}

.about-panel p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.about-panel .button {
  margin-left: auto;
  flex: 0 0 auto;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #eef4f5;
}

.site-footer__inner {
  display: flex;
  min-height: 94px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: var(--muted);
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

.site-footer strong {
  color: var(--brand-deep);
}

.is-hidden {
  display: none !important;
}

.skeleton-card {
  min-height: 370px;
  padding: 26px;
}

.skeleton {
  border-radius: 8px;
  background: linear-gradient(100deg, #eef3f4 30%, #f9fbfb 48%, #eef3f4 66%);
  background-size: 250% 100%;
  animation: shimmer 1.4s infinite linear;
}

.skeleton--title {
  width: 44%;
  height: 24px;
}

.skeleton--meta {
  width: 64%;
  height: 13px;
  margin-top: 12px;
}

.skeleton--line {
  width: 100%;
  height: 52px;
  margin-top: 30px;
}

.skeleton--line.short {
  width: 74%;
}

@keyframes shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

:focus-visible {
  outline: 3px solid #e6b83f;
  outline-offset: 3px;
}

.noscript {
  position: fixed;
  z-index: 100;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 16px;
  border-radius: 12px;
  background: #fff4d7;
  color: #633e00;
  box-shadow: var(--shadow-hover);
  text-align: center;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 55px;
  }

  .hero__spotlight {
    max-width: 470px;
  }

  .restaurant-grid {
    grid-template-columns: 1fr;
  }

  .about-panel {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .about-panel .button {
    margin-left: 63px;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .site-header__inner {
    min-height: 68px;
  }

  .brand__mark {
    width: 39px;
    height: 39px;
    flex-basis: 39px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small,
  .faculty-link {
    font-size: 11px;
  }

  .faculty-link {
    gap: 4px;
  }

  .faculty-link svg {
    width: 15px;
    height: 15px;
  }

  .hero__grid {
    gap: 26px;
    padding-block: 43px 46px;
  }

  .hero h1 {
    font-size: clamp(37px, 12vw, 50px);
  }

  .hero__lead {
    margin-top: 17px;
    font-size: 16px;
  }

  .hero__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-top: 23px;
  }

  .hero__spotlight {
    padding: 17px;
  }

  .spotlight-icon {
    width: 49px;
    height: 49px;
  }

  .content-shell {
    padding-block: 33px 50px;
  }

  .controls__top {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .results-summary {
    margin: 0;
  }

  .day-tabs {
    margin-right: -14px;
  }

  .day-tab {
    min-width: 102px;
  }

  .filter-row {
    position: sticky;
    z-index: 5;
    top: 0;
    margin-right: -14px;
    margin-left: -14px;
    padding: 9px 14px 10px;
    background: rgba(247, 250, 251, 0.94);
    backdrop-filter: blur(10px);
  }

  .restaurant-grid {
    gap: 16px;
  }

  .restaurant-card__header {
    gap: 11px;
    padding: 19px 17px 17px;
  }

  .restaurant-heading {
    gap: 11px;
  }

  .restaurant-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .restaurant-card h2 {
    font-size: 17px;
  }

  .status-pill {
    padding-inline: 7px;
    font-size: 10px;
  }

  .menu-list {
    padding-inline: 17px;
  }

  .menu-item {
    gap: 12px;
    padding-block: 17px;
  }

  .restaurant-card__footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding: 13px 17px;
  }

  .card-actions {
    width: 100%;
    justify-content: space-between;
  }

  .notice {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .notice .button {
    width: 100%;
    margin: 0;
  }

  .about-panel {
    padding: 20px;
  }

  .about-panel .button {
    width: 100%;
    margin: 2px 0 0;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding-block: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
