/* Omnitable website (spec/09-website.md, "Startseite"). Values from the approved design in
   drafts/website-design/; colours from the app's asset catalog (Theme) and spec/00-vision.md.
   One file for light and dark: the roles below change with prefers-color-scheme. */

:root {
  color-scheme: light dark;

  /* Roles that change with the mode */
  --page: #FBF7F0;
  --surface: #FFFFFF;
  --inset: #FBF7F0;
  --chip: #FFFFFF;
  --line: #EEE6D8;
  --line-strong: #E4DAC8;
  --text: #1C1C1E;
  --text-secondary: #3A3A3C;
  --text-muted: #5C4B33;
  --accent: #3F6656;
  --on-accent: #FFFFFF;
  --primary: #1C1C1E;
  --on-primary: #FFFFFF;
  --accent-text: #2F4F42;
  --badge: #E1EBE6;
  --on-badge: #2F4F42;
  --positive: #E3EED9;
  --on-positive: #3D6B22;
  --notice: #FBE7B5;
  --on-notice: #5E3D00;

  /* The same in both modes */
  --linen: #F3E7D3;
  --on-linen: #1C1C1E;
  --on-linen-secondary: #4A3D29;
  --linen-button: #1C1C1E;
  --night: #121A17;
  --on-night: #F6EFE3;
  --on-night-secondary: #C9D3CD;
  --night-eyebrow: #8FC0AA;
  --night-line: #33423C;
  --plus: #3F6656;
  --on-plus: #FFFFFF;
  --plus-line: #6E8F81;
  --plum: #6E3B5B;
  --on-plum: #F7E8F1;

  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --width: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #000000;
    --surface: #1C1C1E;
    --inset: #2C2C2E;
    --chip: #3A3A3C;
    --line: #2C2C2E;
    --line-strong: #2C2C2E;
    --text: #FFFFFF;
    --text-secondary: #D1D1D6;
    --text-muted: #B9AE9C;
    --accent: #8FC0AA;
    --on-accent: #0B100E;
    --primary: #8FC0AA;
    --on-primary: #0B100E;
    --accent-text: #A9D3C0;
    --badge: #1E2D27;
    --on-badge: #A9D3C0;
    --positive: #24331C;
    --on-positive: #A8D08A;
    --notice: #4A3A12;
    --on-notice: #F2C84B;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---- Base ---------------------------------------------------------------------------------- */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-text); }
a:hover { color: var(--text); }
a:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, p, ul { margin: 0; }

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 1;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface);
}
.skip:focus { top: 16px; }

.wrap {
  max-width: var(--width);
  margin: 0 auto;
  padding-inline: 24px;
}

.serif { font-family: var(--serif); font-weight: 700; }

.eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.intro { font-size: 1.1875rem; color: var(--text-secondary); text-wrap: pretty; }
.muted { color: var(--text-muted); text-wrap: pretty; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
}

.band {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section {
  padding-block: 96px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* ---- Buttons ------------------------------------------------------------------------------- */

.button {
  display: inline-block;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { color: inherit; filter: brightness(1.1); }

.button-head {
  padding: 11px 20px;
  font-size: 0.9375rem;
  background: var(--accent);
  color: var(--on-accent);
}
.button-head:hover { color: var(--on-accent); }

.button-main {
  padding: 16px 28px;
  font-size: 1.0625rem;
  background: var(--primary);
  color: var(--on-primary);
}
.button-main:hover { color: var(--on-primary); }

.button-linen {
  padding: 16px 28px;
  font-size: 1.0625rem;
  background: var(--linen-button);
  color: #FFFFFF;
}
.button-linen:hover { color: #FFFFFF; }

/* ---- Header and footer --------------------------------------------------------------------- */

.site-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand span {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3125rem;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
}
.site-nav a:not(.button) {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9375rem;
  padding-block: 12px;
}
.site-nav a:not(.button):hover { text-decoration: underline; }
.site-nav a.lang { color: var(--text-muted); }

.site-foot { border-top: 1px solid var(--line-strong); }
.site-foot .wrap {
  padding-block: 32px 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.site-foot nav { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.site-foot nav a { padding-block: 12px; }

/* ---- Hero ---------------------------------------------------------------------------------- */

.hero {
  padding-block: 56px 88px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
  gap: 56px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.5rem, 5.2vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 31em;
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.actions span { font-size: 0.9375rem; color: var(--text-muted); }

.promise {
  align-self: stretch;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-block: 44px;
  border-radius: 36px;
  background: var(--linen);
}

.dot {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.dot svg { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dot-1 { left: 28px; top: 44px; width: 76px; height: 76px; background: #C2410C; stroke: #FFF1E8; }
.dot-2 { left: 44px; bottom: 96px; width: 56px; height: 56px; background: #9DB39A; stroke: #1E2D20; }
.dot-3 { right: 30px; top: 150px; width: 64px; height: 64px; background: #D9922B; stroke: #3B2405; }
.dot-4 { right: 40px; bottom: 60px; width: 84px; height: 84px; background: #6E3B5B; stroke: #F7E8F1; }
.dot-1 svg { width: 38px; height: 38px; }
.dot-2 svg { width: 28px; height: 28px; }
.dot-3 svg { width: 32px; height: 32px; }
.dot-4 svg { width: 42px; height: 42px; }

.phone {
  position: relative;
  width: min(300px, 74%);
  padding: 10px;
  border-radius: 52px;
  background: #1C1C1E;
  box-shadow: 0 32px 60px -24px rgba(60, 40, 10, 0.5);
}
.phone img { width: 100%; border-radius: 42px; }
.island {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 25px;
  border-radius: 999px;
  background: #000000;
}

/* ---- The idea ------------------------------------------------------------------------------ */

.idea {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 24px;
  align-items: stretch;
}

.dish-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: 300px;
  padding: 40px;
  border-radius: 28px;
  background: var(--plum);
  color: var(--on-plum);
}
.dish-tile svg {
  width: 72px;
  height: 72px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dish-tile div { display: flex; flex-direction: column; gap: 6px; }
.dish-tile h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 3rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.dish-tile .caption { font-style: italic; }
.dish-tile .count { margin-top: 12px; font-size: 0.9375rem; }

.recipes {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.recipes li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding: 20px 24px;
  border-radius: 20px;
  background: var(--inset);
}
.recipes .badge { flex: 0 0 116px; text-align: center; }
.recipes .recipe {
  flex: 1 1 220px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
}
.recipes .more {
  display: block;
  padding: 8px 24px 0;
  background: none;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--badge);
  color: var(--on-badge);
}
.badge-positive { background: var(--positive); color: var(--on-positive); }

/* ---- Features ------------------------------------------------------------------------------ */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 24px;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 28px;
  overflow: hidden;
  padding: 40px 40px 0;
  border-radius: 28px;
  background: var(--linen);
  color: var(--on-linen);
}
.feature div:first-child { display: flex; flex-direction: column; gap: 10px; }
.feature h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.feature p { color: var(--on-linen-secondary); text-wrap: pretty; }
.feature .shot {
  height: 420px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.feature .shot img { width: min(340px, 100%); }

/* ---- Mixed tables -------------------------------------------------------------------------- */

.mixed {
  padding-block: 96px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 56px;
  align-items: center;
}
.mixed > div:first-child { display: flex; flex-direction: column; gap: 16px; }

.who {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  border-radius: 28px;
  background: var(--inset);
}
.who > div { display: flex; flex-direction: column; gap: 12px; }
.who .label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.who .hint { font-size: 0.875rem; color: var(--text-muted); }

.people { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.people li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  border-radius: 999px;
  background: var(--chip);
  font-size: 0.9375rem;
}
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #FFFFFF;
  font-weight: 600;
}
.avatar-rosemary { background: #3F6656; }
.avatar-saffron { background: #8F6400; }
.avatar-plum { background: #6E3B5B; }

.result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--chip);
}
.result .dish { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; }

/* ---- Private ------------------------------------------------------------------------------- */

.private { background: var(--night); color: var(--on-night); }
.private .eyebrow { color: var(--night-eyebrow); }
.private-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 32px 40px;
}
.private-grid div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--night-line);
}
.private-grid h3 { font-size: 1.1875rem; font-weight: 600; }
.private-grid p { color: var(--on-night-secondary); }

/* ---- Pricing ------------------------------------------------------------------------------- */

.section-head strong { color: var(--text); }

.prices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
}
.price-card > div { display: flex; flex-direction: column; gap: 4px; }
.price-card h3 { font-size: 1.0625rem; font-weight: 600; }
.price { font-family: var(--serif); font-weight: 700; font-size: 2.25rem; line-height: 1.15; }
.price-card ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; color: var(--text-secondary); }
.price-card .foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.bullets li { position: relative; padding-left: 22px; }
.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.price-card .packs { gap: 14px; }
.packs li { display: flex; flex-direction: column; }
.packs strong { color: var(--text); }
.packs span { font-size: 0.9375rem; }

.price-card.plus { border: 0; background: var(--plus); color: var(--on-plus); }
.price-card.plus ul { color: var(--on-plus); }
.price-card.plus .bullets li::before { background: var(--on-night); }
.price-card.plus .foot { color: var(--on-plus); border-top-color: var(--plus-line); }

.notice {
  padding: 20px 24px;
  border-radius: 20px;
  background: var(--notice);
  color: var(--on-notice);
  font-size: 0.9375rem;
  text-wrap: pretty;
}

/* ---- Closing ------------------------------------------------------------------------------- */

.closing { padding-bottom: 96px; }
.closing-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 72px 32px;
  border-radius: 36px;
  background: var(--linen);
  color: var(--on-linen);
  text-align: center;
}
.closing-card img { width: 96px; height: 96px; border-radius: 22px; }
.closing-card h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.closing-card p { max-width: 34em; color: var(--on-linen-secondary); }

/* ---- Sub-pages: plain running text --------------------------------------------------------- */

.prose {
  max-width: 760px;
  padding-block: 40px 96px;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.prose h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.prose h2 { font-size: 1.3125rem; font-weight: 650; margin: 40px 0 12px; }
.prose p, .prose ul { margin-bottom: 14px; color: var(--text-secondary); }
.prose strong { color: var(--text); }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-block: 6px; }
.prose .small { font-size: 0.9375rem; color: var(--text-muted); }
.prose details { border-top: 1px solid var(--line-strong); padding-block: 14px; }
.prose details:last-of-type { border-bottom: 1px solid var(--line-strong); }
.prose summary { cursor: pointer; font-weight: 600; color: var(--text); }
.prose details p { margin: 10px 0 0; }

/* ---- Narrow screens ------------------------------------------------------------------------ */

@media (max-width: 760px) {
  /* No menu without JavaScript: the jump links go, language and the button stay. */
  .site-nav .jump { display: none; }
  .site-nav { gap: 8px 24px; }
  .button { white-space: nowrap; }
}

@media (max-width: 560px) {
  /* The dish circles would hide behind the phone. */
  .dot { display: none; }
  .section, .mixed { padding-block: 72px; }
  .dish-tile, .feature { padding-inline: 28px; }
  .feature { padding-top: 32px; }
}
