/* Lunch Peek website. Same palette and type as the app (src/constants/theme.ts). */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url("fonts/BricolageGrotesque_700Bold.ttf") format("truetype"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url("fonts/BricolageGrotesque_800ExtraBold.ttf") format("truetype"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url("fonts/DMSans_400Regular.ttf") format("truetype"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-display: swap; src: url("fonts/DMSans_500Medium.ttf") format("truetype"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-display: swap; src: url("fonts/DMSans_700Bold.ttf") format("truetype"); }

:root {
  --ground: #F2F5F3;
  --card: #FFFFFF;
  --line: #DDE5E0;
  --ink: #14201A;
  --ink-soft: #3D4842;
  --muted: #55625B;
  --green: #1F6B47;
  --green-deep: #144A31;
  --green-night: #1B3328;
  --mint: #E3F0E8;
  --mint-on-dark: #CFE3D7;
  --tomato: #C2410C;
  --tomato-soft: #FCE9DF;

  --display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Type scale (1.25 steps from 17 px body). */
  --t-small: 0.875rem;
  --t-body: 1.0625rem;
  --t-lead: 1.3125rem;
  --t-h3: 1.375rem;
  --t-h2: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
  --t-hero: clamp(2.4rem, 1.2rem + 5.2vw, 5.25rem);

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--ground);
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 3px solid #8CC5A6; outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--card); padding: 10px 14px; border-radius: 10px; }

/* Header ---------------------------------------------------------------- */
.site-head { padding: 20px 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand img { width: 40px; height: 40px; }
.brand span { font-family: var(--display); font-weight: 800; font-size: 1.375rem; letter-spacing: -0.02em; }
.site-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  color: inherit; text-decoration: none; font-weight: 500;
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.12); color: inherit; }
.site-nav a[aria-current="page"] { font-weight: 700; text-decoration: underline; text-underline-offset: 6px; }

/* Home: hero ------------------------------------------------------------ */
.hero { background: var(--green); color: #FFFFFF; padding-bottom: clamp(56px, 9vw, 112px); }
.hero .site-nav a:hover { background: rgba(255, 255, 255, 0.14); }
.hero-body { padding-top: clamp(28px, 6vw, 72px); }

.when { margin: 0 0 18px; color: var(--mint-on-dark); font-weight: 500; font-size: var(--t-lead); }

/* The notification is the headline. */
.notice {
  position: relative; max-width: 980px; margin: 0;
  background: rgba(255, 255, 255, 0.96); color: var(--ink);
  border-radius: clamp(24px, 3vw, 40px);
  padding: clamp(20px, 3vw, 36px) clamp(22px, 3.4vw, 44px) clamp(24px, 3.4vw, 44px);
  box-shadow: 0 30px 60px -30px rgba(10, 30, 20, 0.55);
}
.notice-top { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(10px, 1.6vw, 18px); color: var(--muted); font-size: var(--t-body); }
.notice-top img { width: clamp(30px, 3vw, 40px); height: auto; }
.notice-top strong { color: var(--ink); font-weight: 700; }
.notice-top time { margin-left: auto; }
.notice h1 {
  margin: 0; font-family: var(--display); font-weight: 800;
  font-size: var(--t-hero); line-height: 1.02; letter-spacing: -0.035em;
}
.notice p { margin: clamp(12px, 1.6vw, 18px) 0 0; font-size: var(--t-lead); color: var(--ink-soft); max-width: 46ch; }

.hero-after { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px 56px; margin-top: clamp(36px, 5vw, 64px); align-items: start; }
.hero-after .lead { margin: 0; font-size: var(--t-lead); line-height: 1.45; max-width: 34ch; }
.stores { display: flex; flex-direction: column; gap: 10px; }
.stores p { margin: 0; color: var(--mint-on-dark); }
.store-row { display: flex; flex-wrap: wrap; gap: 10px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.5); border-radius: 14px; color: #FFFFFF; font-weight: 700;
}
.store svg { width: 20px; height: 20px; }

@media (prefers-reduced-motion: no-preference) {
  .notice { animation: drop-in 700ms cubic-bezier(0.2, 0.9, 0.25, 1.15) 250ms both; }
  @keyframes drop-in {
    from { transform: translateY(-48px) scale(0.97); opacity: 0; }
    to { transform: none; opacity: 1; }
  }
}

/* Home: sections -------------------------------------------------------- */
.band { padding: clamp(64px, 9vw, 120px) 0; }
.band + .band { padding-top: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px 72px; align-items: center; }
.split.flip > .copy { order: 2; }
.copy h2 {
  margin: 0 0 16px; font-family: var(--display); font-weight: 800; font-size: var(--t-h2);
  line-height: 1.08; letter-spacing: -0.025em; max-width: 18ch;
}
.copy p { margin: 0 0 14px; max-width: 46ch; color: var(--ink-soft); }
.copy p:last-child { margin-bottom: 0; }

/* The week, as in the app's Week screen */
.week { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 8px 0; margin: 0; list-style: none; }
.week li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 14px 24px; }
.week li + li { border-top: 1px solid var(--line); }
.week .day { font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1; }
.week .day small { display: block; font-family: var(--body); font-size: var(--t-small); font-weight: 500; color: var(--muted); margin-top: 4px; }
.week .main { font-weight: 700; display: block; }
.week .veg { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 0.9375rem; color: var(--green); font-weight: 500; }
.week .veg svg { width: 14px; height: 14px; flex: none; }
.week .also { display: block; margin-top: 2px; font-size: 0.9375rem; color: var(--muted); }
.week li.is-today { background: var(--mint); }
.week .today-tag { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: var(--green); color: #FFF; font-size: 0.75rem; font-weight: 700; vertical-align: 2px; }

/* Widgets on a night-green "home screen" */
.homescreen {
  background: var(--green-night); border-radius: 36px; padding: clamp(20px, 3vw, 32px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.widget { border-radius: 24px; padding: 16px; min-height: 160px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.widget.light { background: var(--card); }
.widget.green { background: var(--green); color: #FFF; }
.widget.wide { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; min-height: 0; }
.widget.wide > div + div { border-left: 1px solid var(--line); padding-left: 16px; }
.w-label { font-size: 0.8125rem; font-weight: 700; color: var(--tomato); }
.widget.green .w-label { color: var(--mint-on-dark); }
.w-main { font-family: var(--display); font-weight: 700; font-size: 1.25rem; line-height: 1.12; margin-top: 4px; display: block; }
.w-sub { display: block; margin-top: 4px; font-size: 0.875rem; line-height: 1.35; color: var(--muted); }
.widget.green .w-sub { color: var(--mint); }
.w-veg { display: inline-flex; align-items: center; gap: 5px; font-size: 0.875rem; font-weight: 500; color: var(--green); }
.w-veg svg { width: 13px; height: 13px; }

/* Reminder times, as in the app's Reminders screen */
.remind { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 24px; }
.remind-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.remind-row strong { display: block; font-size: 1.0625rem; }
.remind-row span { color: var(--muted); font-size: 0.9375rem; }
.switch { width: 52px; height: 32px; border-radius: 16px; background: var(--green); padding: 3px; display: flex; justify-content: flex-end; flex: none; }
.switch::after { content: ""; width: 26px; height: 26px; border-radius: 13px; background: #FFF; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 20px; padding: 0; list-style: none; }
.chips li { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; background: var(--ground); border: 1px solid var(--line); font-weight: 500; font-size: 0.9375rem; }
.chips li.on { background: var(--green); border-color: var(--green); color: #FFF; }
.upcoming { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.upcoming li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.upcoming li:last-child { border-bottom: none; }
.upcoming b { font-weight: 700; }
.upcoming .skip-day { color: var(--muted); }

/* Private by design */
.promises { margin: 28px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 40px; }
.promises li { padding-left: 22px; position: relative; }
.promises li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; border-radius: 5px; background: var(--tomato); }
.promises strong { display: block; font-size: var(--t-h3); font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 4px; }
.promises span { color: var(--ink-soft); }

/* Schools */
.schools { background: var(--mint); }
.schools .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; }
.schools h2 { margin: 0 0 12px; font-family: var(--display); font-weight: 800; font-size: var(--t-h2); line-height: 1.08; letter-spacing: -0.025em; }
.schools p { margin: 0; max-width: 52ch; color: var(--ink-soft); }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border-radius: 999px; background: var(--green); color: #FFF; font-weight: 700; text-decoration: none;
}
.button:hover { background: var(--green-deep); color: #FFF; }
/* The mint band needs its own top space (bands that follow a band drop theirs). */
.band + .band.schools { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }

/* Inner pages ------------------------------------------------------------ */
.page-head { background: var(--green); color: #FFF; padding-bottom: clamp(40px, 6vw, 72px); }
.page-head h1 {
  margin: clamp(24px, 5vw, 56px) 0 10px; font-family: var(--display); font-weight: 800;
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); line-height: 1.04; letter-spacing: -0.03em;
}
.page-head p { margin: 0; color: var(--mint-on-dark); font-size: var(--t-lead); max-width: 48ch; }

.doc { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 104px); }
.doc .wrap > * { max-width: 68ch; }
.doc h2 { font-family: var(--display); font-weight: 800; font-size: 1.625rem; letter-spacing: -0.015em; line-height: 1.15; margin: 44px 0 12px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 1.125rem; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc .summary { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px 26px; margin-bottom: 8px; }
.doc .summary p { margin: 0 0 10px; color: var(--ink); }
.doc .summary ul { margin: 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0 8px; font-size: 0.9375rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.doc th { color: var(--ink); }
.doc td { color: var(--ink-soft); }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font-weight: 700; font-size: 1.0625rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(45deg);
  transition: transform 160ms ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details > div { padding: 0 0 18px; }
.faq details > div p { margin: 0 0 10px; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

.contact { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px 26px; margin-top: 8px; }
.contact p { margin: 0 0 12px; color: var(--ink); }
.contact .mail { font-family: var(--display); font-weight: 700; font-size: 1.375rem; overflow-wrap: anywhere; }

/* Footer ---------------------------------------------------------------- */
.site-foot { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: var(--t-small); }
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 40px; align-items: start; }
.site-foot p { margin: 0 0 6px; max-width: 70ch; }
.site-foot nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.site-foot nav a { color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; }

/* Small screens ---------------------------------------------------------- */
@media (max-width: 860px) {
  .hero-after, .split, .schools .wrap, .site-foot .wrap { grid-template-columns: minmax(0, 1fr); }
  .split.flip > .copy { order: 0; }
  .promises { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .site-nav a { padding: 0 10px; }
  .homescreen { grid-template-columns: minmax(0, 1fr); }
  .widget.wide { grid-template-columns: minmax(0, 1fr); }
  .widget.wide > div + div { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 12px; }
  .week li { padding: 14px 18px; grid-template-columns: 52px minmax(0, 1fr); }
  .upcoming li { grid-template-columns: 90px minmax(0, 1fr); }
}
