:root {
  color-scheme: dark;
  --bg: #0e0e0c;
  --ink: #f2f1ec;
  --muted: #9b9a92;
  --line: #262624;
  /* The only colour on the page. It means "now" and nothing else. */
  --accent: #ff7a5c;

  --sans: "Inter", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}

/* Landing: one photo, one answer. Fills the screen. */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #17130f;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.hero-photo.is-loaded {
  opacity: 1;
}

/* Scrim: light at the top for the wordmark, heavy at the bottom for the text. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.1) 22%,
    rgba(0, 0, 0, 0.15) 40%,
    rgba(0, 0, 0, 0.78) 72%,
    rgba(0, 0, 0, 0.92) 100%
  );
}

.bar,
.hero-body {
  position: relative;
  z-index: 1;
}

.bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: calc(18px + env(safe-area-inset-top));
}

.mark {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
}

.today {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.hero-body {
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
  color: #fff;
}

.now-label {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.hero.is-live .now-label {
  color: var(--accent);
}

.now-items {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 10.8vw, 52px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.now-items span {
  display: block;
}

.now-time {
  margin: 16px 0 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.86);
}

/* Secondary: quiet links to the rest of the menu */

.jump {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.jump a {
  flex: 1;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.jump a:active {
  background: rgba(255, 255, 255, 0.16);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.notice {
  margin: 24px 0 0;
  padding: 12px 0;
  font-size: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Below the fold: today, then the week, as plain typeset lists */

.section-title {
  margin: 0;
  padding: 56px 0 14px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line);
}

.meal {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.meal-name {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.meal-time,
.meal-tag {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.meal-tag {
  font-weight: 500;
  color: var(--accent);
}

/* Every dish is set the same: one per line, same size, same weight. */

.meal-items {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.meal.is-done,
.meal.is-done .meal-name {
  color: var(--muted);
}

.meal-empty {
  margin: 0;
  color: var(--muted);
}

.week-day {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.week-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
}

.week-title span {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.week-day.is-today .week-title {
  color: var(--accent);
}

.week-list {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 6px 16px;
  margin: 0;
}

.week-list dt {
  font-size: 13px;
  line-height: 24px;
  color: var(--muted);
}

.week-list dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 24px;
}

.foot {
  padding-top: 28px;
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
  font-size: 13px;
  color: var(--muted);
}

.foot p {
  margin: 0 0 6px;
}

.foot a {
  color: inherit;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-photo {
    transition: none;
  }
}
