:root {
  --cream: #f4f0e6;
  --paper: #fffdf7;
  --pine: #294638;
  --pine-dark: #1f332a;
  --terracotta: #e87537;
  --mustard: #f2c45d;
  --ink: #1f2823;
  --muted: #69736d;
  --line: #d9d5c9;
  --soft-green: #dbe4d8;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 6%, rgba(242, 196, 93, 0.14), transparent 28rem),
    var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

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

button {
  font: inherit;
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.topbar {
  width: min(1240px, calc(100% - 48px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(41, 70, 56, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--pine);
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.06em;
  border: 2px solid var(--pine);
  box-shadow: inset 0 0 0 3px var(--cream);
}

.brand-mark.small {
  width: 40px;
  height: 40px;
  font-size: 14px;
}

.brand-copy {
  display: grid;
}

.brand-copy strong,
.footer-brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1;
  color: var(--pine);
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.feed-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pine);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4d8a57;
  box-shadow: 0 0 0 4px rgba(77, 138, 87, 0.13);
}

.refresh-button {
  border: 1px solid rgba(41, 70, 56, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--pine);
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease;
}

.refresh-button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: var(--paper);
}

.refresh-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.spin {
  display: inline-block;
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 690px;
  display: grid;
  grid-template-columns: 1.05fr 0.78fr;
  gap: 72px;
  align-items: center;
  padding: 72px 0 86px;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(41, 70, 56, 0.14);
  border-radius: 50%;
  left: -190px;
  bottom: 32px;
  box-shadow: 0 0 0 38px rgba(41, 70, 56, 0.025), 0 0 0 76px rgba(41, 70, 56, 0.02);
  pointer-events: none;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--pine);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 26px;
  height: 3px;
  border-radius: 999px;
  background: var(--terracotta);
}

.hero h1 {
  max-width: 760px;
  margin: 22px 0 22px;
  color: var(--pine-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(56px, 6vw, 91px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.hero-lede {
  max-width: 650px;
  margin: 0;
  color: #56615b;
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 34px;
}

.primary-button {
  border: 0;
  border-radius: 999px;
  background: var(--terracotta);
  color: var(--white);
  padding: 15px 22px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(180, 78, 31, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(180, 78, 31, 0.24);
}

.text-link {
  padding: 6px 0;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  font-size: 13px;
  font-weight: 800;
  color: var(--pine);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(41, 70, 56, 0.15);
  color: #59645e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-row b {
  color: var(--terracotta);
  font-size: 10px;
}

.hank-card {
  position: relative;
  width: min(100%, 460px);
  justify-self: end;
}

.photo-frame {
  position: relative;
  height: 530px;
  overflow: hidden;
  border: 10px solid var(--paper);
  border-radius: 220px 220px 30px 30px;
  background: var(--soft-green);
  box-shadow: 0 30px 80px rgba(31, 51, 42, 0.18);
}

.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(20, 35, 27, 0.25));
  pointer-events: none;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 46% 62%;
  filter: saturate(0.82) contrast(1.04) sepia(0.04);
  transform: scale(1.02);
}

.inspector-stamp {
  position: absolute;
  right: 15px;
  bottom: 24px;
  z-index: 1;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--mustard);
  color: var(--pine-dark);
  text-align: center;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
  border: 2px solid var(--paper);
  outline: 1px dashed var(--pine);
  outline-offset: -8px;
  transform: rotate(-8deg);
}

.hank-caption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 10px 0;
}

.caption-dash {
  width: 38px;
  height: 1px;
  flex: 0 0 auto;
  background: var(--terracotta);
}

.hank-caption p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.hank-caption b {
  color: var(--pine-dark);
}

.menu-section {
  background: var(--pine-dark);
  color: var(--paper);
  padding: 84px max(24px, calc((100vw - 1240px) / 2)) 96px;
  scroll-margin-top: 24px;
  position: relative;
}

.menu-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 3vw;
  width: 280px;
  height: 2px;
  background: var(--terracotta);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.menu-section .eyebrow {
  color: #b7c6bb;
}

.section-heading h2 {
  margin: 12px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4vw, 60px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.updated-time {
  color: #9db0a3;
  font-size: 12px;
  font-weight: 700;
}

.day-strip {
  margin-top: 35px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.day-card {
  min-height: 144px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--paper);
  padding: 18px;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.day-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}

.day-card.selected {
  background: var(--terracotta);
  border-color: var(--terracotta);
}

.day-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.day-card-top b {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.day-card-top span,
.day-card-top em {
  color: #9cb1a2;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.day-card.selected .day-card-top span,
.day-card.selected .day-card-top em {
  color: rgba(255, 255, 255, 0.78);
}

.day-card > strong {
  display: block;
  max-width: 150px;
  margin-top: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.15;
  font-weight: 500;
}

.day-arrow {
  position: absolute;
  right: 16px;
  bottom: 14px;
  font-size: 18px;
}

.day-card-loading {
  cursor: default;
  border: 0;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.04) 8%, rgba(255, 255, 255, 0.09) 18%, rgba(255, 255, 255, 0.04) 33%);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
}

@keyframes shimmer {
  to { background-position-x: -200%; }
}

.menu-stage {
  margin-top: 24px;
}

.daily-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.72fr);
  gap: 18px;
}

.lunch-card,
.breakfast-card,
.note-card,
.error-card {
  border-radius: 24px;
}

.lunch-card {
  background: var(--paper);
  color: var(--ink);
  padding: 34px;
}

.meal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}

.meal-heading.compact {
  padding-bottom: 18px;
  border-color: rgba(41, 70, 56, 0.16);
}

.card-kicker {
  margin: 0 0 8px;
  color: var(--terracotta);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.meal-heading h3,
.error-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--pine-dark);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.meal-heading.compact h3 {
  font-size: 30px;
}

.meal-badge {
  border: 1px solid var(--pine);
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--pine);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tray-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 4px;
}

.tray-item {
  min-height: 104px;
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 20px 16px 20px 0;
  border-bottom: 1px solid var(--line);
}

.tray-item:nth-child(odd) {
  padding-right: 26px;
  border-right: 1px solid var(--line);
}

.tray-item:nth-child(even) {
  padding-left: 26px;
}

.item-number {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--soft-green);
  color: var(--pine);
  font-size: 10px;
  font-weight: 950;
}

.tray-item.entree .item-number {
  background: var(--terracotta);
  color: white;
}

.tray-item div {
  display: grid;
  gap: 4px;
}

.tray-item small {
  color: #8d958f;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tray-item strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.22;
  font-weight: 500;
}

.meal-empty {
  grid-column: 1 / -1;
  margin: 28px 0 0;
  color: var(--muted);
}

.side-stack {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
}

.breakfast-card {
  background: var(--mustard);
  color: var(--pine-dark);
  padding: 28px;
}

.sun-icon {
  font-size: 25px;
  color: var(--terracotta);
}

.breakfast-card ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.breakfast-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.3;
}

.breakfast-card li span {
  width: 6px;
  height: 6px;
  margin-top: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--terracotta);
}

.note-card {
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.04);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.note-label {
  color: var(--mustard);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.note-card p {
  color: #c1ccc4;
  font-size: 14px;
  line-height: 1.65;
}

.note-card a {
  color: white;
  font-size: 12px;
  font-weight: 800;
  text-underline-offset: 5px;
}

.notification-control {
  margin: 8px 0 18px;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.notification-control div {
  display: grid;
  gap: 4px;
}

.notification-control strong {
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 500;
}

.notification-control small {
  color: #9fb1a4;
  font-size: 10px;
  line-height: 1.4;
}

.notification-control button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: var(--mustard);
  color: var(--pine-dark);
  padding: 9px 12px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  transition: transform 160ms ease;
}

.notification-control button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.notification-control button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.note-card .alert-message {
  margin: -8px 0 16px;
  color: var(--mustard);
  font-size: 10px;
  line-height: 1.4;
}

.error-card {
  min-height: 330px;
  padding: 42px;
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--paper);
  color: var(--ink);
}

.error-card.quiet {
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.error-card.quiet h3 {
  color: var(--paper);
}

.error-badge {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--terracotta);
  color: white;
  font-family: Georgia, serif;
  font-size: 28px;
}

.error-card > div > p:not(.card-kicker) {
  color: var(--muted);
}

.error-card.quiet > div > p:not(.card-kicker) {
  color: #b8c6bc;
}

.error-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 20px;
}

.error-actions button {
  border: 0;
  border-radius: 999px;
  background: var(--terracotta);
  color: white;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
}

.error-actions a {
  color: var(--pine);
  font-size: 13px;
  font-weight: 800;
}

.menu-loading {
  min-height: 360px;
  display: grid;
  grid-template-columns: 1.5fr 0.72fr;
  gap: 18px;
}

.menu-loading span {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  animation: pulse 1.5s ease-in-out infinite;
}

.menu-loading span:first-child {
  grid-row: 1 / 3;
}

@keyframes pulse {
  50% { opacity: 0.45; }
}

footer {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 164px;
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  align-items: center;
  gap: 50px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand p,
.source-note {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.source-note {
  max-width: 520px;
  justify-self: center;
  text-align: center;
}

footer > a {
  color: var(--pine);
  font-size: 12px;
  font-weight: 850;
  text-underline-offset: 5px;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr 0.72fr;
    gap: 38px;
  }

  .hero h1 {
    font-size: clamp(48px, 7.8vw, 72px);
  }

  .photo-frame {
    height: 450px;
  }

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

  .side-stack {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
  }

  footer {
    grid-template-columns: 1fr auto;
    gap: 24px;
    padding: 36px 0;
  }

  .source-note {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .topbar,
  .hero,
  footer {
    width: min(100% - 32px, 1240px);
  }

  .topbar {
    min-height: 76px;
  }

  .brand-copy small,
  .feed-status {
    display: none;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    font-size: 14px;
  }

  .refresh-button {
    padding: 9px 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: unset;
    padding: 58px 0 70px;
  }

  .hero h1 {
    margin-top: 18px;
    font-size: clamp(49px, 16vw, 70px);
  }

  .hero-lede {
    font-size: 16px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .trust-row {
    gap: 14px 20px;
    margin-top: 38px;
  }

  .hank-card {
    width: min(100%, 420px);
    justify-self: center;
  }

  .photo-frame {
    height: 430px;
  }

  .menu-section {
    padding-top: 68px;
    padding-bottom: 72px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .updated-time {
    margin: 0;
  }

  .day-strip {
    grid-auto-columns: minmax(170px, 78%);
  }

  .lunch-card {
    padding: 25px 20px;
  }

  .meal-heading h3 {
    font-size: 30px;
  }

  .tray-list {
    grid-template-columns: 1fr;
  }

  .tray-item,
  .tray-item:nth-child(odd),
  .tray-item:nth-child(even) {
    padding: 18px 0;
    border-right: 0;
  }

  .side-stack {
    grid-template-columns: 1fr;
  }

  .notification-control {
    align-items: flex-start;
    flex-direction: column;
  }

  .error-card {
    padding: 30px 24px;
    align-items: flex-start;
    flex-direction: column;
  }

  .error-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .source-note {
    grid-column: auto;
    grid-row: auto;
  }
}

@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;
  }
}
