/* Lozhka public pages, in the app's own look (owner, 2026-11-17: the site follows the new design): warm paper and
   warm ink, the Walnut accent (STORY-104, the spoon's rim), the Onest font, light and dark like the phone. Calm: no glow, no neon, no gradient
   text. No external files, fonts or scripts: the pages load fast, work offline once opened, and send nothing to
   third parties. The colour values are the app's (src/lib/palette.ts, buildTheme('light' | 'dark', 'walnut')). */

@font-face { font-family: "Onest"; src: url(fonts/Onest_400Regular.ttf) format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Onest"; src: url(fonts/Onest_600SemiBold.ttf) format("truetype"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Onest"; src: url(fonts/Onest_800ExtraBold.ttf) format("truetype"); font-weight: 700 800; font-style: normal; font-display: swap; }

:root {
  --bg: #f8f2e7;
  --surface: #fffcf6;
  --surface2: #fbf5eb;
  --ink: #2b1e15;
  --muted: #6f5e4c;
  --line: #ebdfcc;
  --accent: #6b3a1f;
  --accent-soft: #ede5dc;
  --on-accent: #ffffff;
  --shadow: 0 1px 2px rgba(43, 30, 21, 0.05), 0 12px 32px -18px rgba(43, 30, 21, 0.28);
  --phone-shadow: 0 2px 4px rgba(43, 30, 21, 0.08), 0 36px 70px -30px rgba(43, 30, 21, 0.45);
  /* the ornament's own colours, the app's (src/components/Ornament.tsx): never the accent, never amber */
  --orn-line: #5e2f14;
  --orn-brick: #9e3a1e;
  --orn-green: #5f7f37;
  /* the five colours of the app, as the person sees them in this theme */
  --c-walnut: #6b3a1f;
  --c-grape: #5e3a87;
  --c-beetroot: #a61e4d;
  --c-teal: #0f6e7a;
  --c-graphite: #27313f;
  --ua-blue: #0057b7;
  --ua-yellow: #ffd500;
  --todo-bg: #ffe14d;
  --todo-ink: #2a2200;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1611;
    --surface: #271f18;
    --surface2: #30271f;
    --ink: #f4ebde;
    --muted: #ae9d89;
    --line: #3d3128;
    --accent: #c38a72;
    --accent-soft: #49372c;
    --on-accent: #1c1611;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 34px -18px rgba(0, 0, 0, 0.7);
    --phone-shadow: 0 2px 4px rgba(0, 0, 0, 0.35), 0 36px 70px -30px rgba(0, 0, 0, 0.9);
    --orn-line: #b98a64;
    --orn-brick: #e07a55;
    --orn-green: #9dbe6a;
    --c-walnut: #c38a72;
    --c-grape: #ab8cce;
    --c-beetroot: #e6729a;
    --c-teal: #17a7ba;
    --c-graphite: #879ab5;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  overflow-x: hidden;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.hl { color: var(--accent); }

/* ---------- the ornament: the painting on the wooden spoon's handle, used like a signature (as in the app) ---------- */
.orn { display: block; width: 132px; height: 20px; }
.orn .line { stroke: var(--orn-line); }
.orn .tri { fill: var(--orn-green); stroke: var(--orn-brick); }
.orn .dot { fill: var(--orn-green); }
.orn .sun { fill: var(--orn-brick); }

/* ---------- shared header and footer ---------- */
header.site { display: flex; align-items: center; gap: 12px; max-width: 1080px; margin: 0 auto; padding: 22px 20px 0; }
header.site a { color: var(--ink); text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
header.site .lang { margin-left: auto; display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
header.site .lang a { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); padding: 6px 12px; border-radius: 999px; }
header.site .lang a:hover { color: var(--ink); }
header.site .lang a[aria-current] { color: var(--on-accent); background: var(--accent); }
/* the logo is the app icon itself (the painted wooden spoon on its tile), the one people see on the phone and in the store */
header.site .dot { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; background: url(apple-touch-icon.png) center / cover no-repeat; box-shadow: 0 0 0 1px rgba(43, 30, 21, 0.08), 0 4px 10px -4px rgba(43, 30, 21, 0.35); }
.translation-note { color: var(--muted); font-size: 14px; border-left: 2px solid var(--accent); padding-left: 12px; }
footer.site {
  max-width: 1080px; margin: 64px auto 0; padding: 22px 20px 40px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 22px;
}
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--ink); }
footer.site .ua { color: var(--ink); white-space: nowrap; }

/* ---------- legal pages (privacy, terms, delete-account) ---------- */
main { max-width: 760px; margin: 0 auto; padding: 24px 20px 24px; }
h1 { font-size: clamp(34px, 7vw, 52px); line-height: 1.08; letter-spacing: -0.03em; margin: 22px 0 8px; font-weight: 800; }
h2 { font-size: 22px; margin: 40px 0 8px; letter-spacing: -0.01em; scroll-margin-top: 16px; font-weight: 800; }
h3 { font-size: 17px; margin: 22px 0 4px; font-weight: 600; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
li::marker { color: var(--accent); }
.meta { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; margin: 22px 0 8px; box-shadow: var(--shadow); }
.summary ul { margin: 6px 0 0; }
.table-wrap { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font-weight: 600; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; background: var(--surface2); }
.todo { background: var(--todo-bg); color: var(--todo-ink); border-radius: 4px; padding: 0 4px; font-weight: 700; }
nav.toc { font-size: 15px; columns: 2 220px; margin: 22px 0 8px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
nav.toc a { display: block; padding: 3px 0; color: var(--muted); text-decoration: none; }
nav.toc a:hover { color: var(--ink); }

/* ---------- landing page ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.hero { display: grid; gap: 36px; align-items: center; padding: 36px 0 16px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px;
}
.hero h1 { font-size: clamp(46px, 11vw, 88px); line-height: 1; letter-spacing: -0.045em; margin: 18px 0 14px; }
.hero .orn { margin: 0 0 18px; }
.lead { font-size: clamp(18px, 3.6vw, 21px); color: var(--muted); max-width: 30em; margin: 0 0 26px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 16px; color: var(--ink); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); line-height: 1.2; min-width: 168px;
}
.store small { display: block; color: var(--muted); font-size: 12px; }
.store b { font-size: 16px; font-weight: 600; }
.store.soon { cursor: default; }
.note-small { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* the phone */
.stage { position: relative; display: grid; place-items: center; min-height: 620px; overflow-x: clip; padding: 24px 0; }
/* the ring stays inside the stage: on a phone the stage clips sideways and would cut it flat */
.ring { position: absolute; width: 440px; max-width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--accent-soft); }
.phone {
  position: relative; width: min(320px, 78vw); aspect-ratio: 375 / 812; border-radius: 46px; padding: 9px; background: #1c1916;
  box-shadow: var(--phone-shadow);
}
.stage .phone { animation: float 7s ease-in-out infinite; }
.screen { position: relative; height: 100%; border-radius: 37px; overflow: hidden; background: #f4f0ea; }
.screen img { position: absolute; inset: 36px 0 0 0; width: 100%; height: calc(100% - 36px); object-fit: cover; object-position: top; display: block; }
.island { position: absolute; z-index: 2; top: 10px; left: 50%; translate: -50% 0; width: 84px; height: 24px; background: #000; border-radius: 99px; }
/* the hero phone cycles through the real screens: Today, Add meal, Progress */
.screen.cycle img { opacity: 0; animation: cycle 15s infinite; }
.screen.cycle img:nth-child(2) { animation-delay: 0s; }
.screen.cycle img:nth-child(3) { animation-delay: 5s; }
.screen.cycle img:nth-child(4) { animation-delay: 10s; }
.chip {
  position: absolute; z-index: 3; padding: 9px 14px; border-radius: 14px; font-weight: 600; font-size: 14px; white-space: nowrap;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.chip::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; translate: 0 -1px; }
.chip.a { top: 2%; left: 2%; }
.chip.b { bottom: 4%; right: 2%; }

/* three real screens side by side; swipe on a phone */
.shots { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 24px 20px 36px; margin: 0 -20px; }
.shots figure { margin: 0; flex: 0 0 auto; scroll-snap-align: center; text-align: center; }
.shots .phone { width: 270px; border-radius: 40px; padding: 8px; }
.shots .screen { border-radius: 32px; }
.shots .island { width: 68px; height: 20px; }
.shots figcaption { margin-top: 18px; font-weight: 600; }
.shots figcaption small { display: block; color: var(--muted); font-weight: 400; font-size: 14px; }
.section { padding: 64px 0 0; }
.section h2 { font-size: clamp(30px, 6vw, 44px); line-height: 1.1; letter-spacing: -0.035em; margin: 0 0 8px; }
.section > p.sub { color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.cards { display: grid; gap: 14px; }
.card { position: relative; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.card .n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 14px; font-weight: 800; color: var(--accent); background: var(--accent-soft); }
.card h3 { margin: 10px 0 6px; font-size: 20px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.legal-cards .card { text-decoration: none; color: var(--ink); transition: transform 0.2s, border-color 0.2s; display: block; }
.legal-cards .card:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--ink); }
.legal-cards .go { color: var(--accent); font-weight: 600; font-size: 15px; display: inline-block; margin-top: 10px; }
.band { margin-top: 56px; padding: 30px 22px; border-radius: 26px; text-align: center; background: var(--accent-soft); }
.band .orn { margin: 0 auto 12px; }
.band h2 { margin: 0 0 6px; font-size: clamp(26px, 5vw, 36px); letter-spacing: -0.03em; }
.band p { margin: 0 auto; color: var(--muted); max-width: 32em; }

/* ---------- the two spoons (STORY-096) ---------- */
.spoons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 620px; margin: 28px 0 0; }
.spoons figure { display: flex; flex-direction: column; margin: 0; text-align: center; padding: 26px 14px 22px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.spoons img { display: block; margin: 0 auto; height: 210px; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(4px 8px 10px rgba(43, 30, 21, 0.25)); }
/* the wooden spoon is a square picture with the spoon on the diagonal: at the tall one's height it would look twice as
   big, so it is smaller and centred in the same 210 px row (the captions stay level); object-fit keeps its shape, not
   squeezed, when a narrow phone card is thinner than the picture */
.spoons img.wood { height: 158px; margin: 26px auto; }
.spoons figcaption { margin-top: 16px; font-weight: 600; }
.spoons figcaption small { display: block; margin-top: 4px; color: var(--muted); font-weight: 400; font-size: 14px; }

/* ---------- make it yours: the five colours, no spoon, the Ukraine switch ---------- */
.look { display: grid; gap: 14px; margin-top: 14px; max-width: 620px; }
.look .card h3 { margin-top: 0; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 12px 0 0; padding: 0; list-style: none; }
.swatches li { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; font-weight: 600; }
.swatches li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.swatches .walnut::before { background: var(--c-walnut); }
.swatches .grape::before { background: var(--c-grape); }
.swatches .beetroot::before { background: var(--c-beetroot); }
.swatches .teal::before { background: var(--c-teal); }
.swatches .graphite::before { background: var(--c-graphite); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.switch-row p { margin-top: 4px; }
.flag { display: inline-block; width: 21px; height: 14px; border-radius: 2px; background: linear-gradient(var(--ua-blue) 50%, var(--ua-yellow) 50%); vertical-align: -1px; margin-left: 4px; }
.toggle { flex: 0 0 auto; width: 46px; height: 28px; border-radius: 999px; background: var(--accent); position: relative; }
.toggle::after { content: ""; position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--on-accent); }

/* the wooden spoon beside the phone in the hero. On a phone there is no room beside the phone picture, so the spoon
   lies under its lower-left corner, in extra room below it: never cut at the screen edge (the stage clips sideways),
   never over the numbers on the screen; only the curled handle touches the phone's frame */
.stage { padding-bottom: 104px; }
.hero-spoon { position: absolute; z-index: 3; left: 0; bottom: 0; height: 122px; width: auto; filter: drop-shadow(6px 12px 12px rgba(43, 30, 21, 0.3)); }

@media (min-width: 880px) {
  .shots { justify-content: center; overflow: visible; margin: 0; }
  .hero { grid-template-columns: 1.05fr 0.95fr; padding-top: 64px; }
  .cards.three { grid-template-columns: repeat(3, 1fr); }
  .cards.four { grid-template-columns: repeat(2, 1fr); }
  .stage { overflow-x: visible; padding-bottom: 24px; }
  .chip.a { top: 10%; left: -2%; }
  .chip.b { bottom: 16%; right: -2%; }
  .hero-spoon { left: -22%; bottom: -9%; height: 210px; }
  .spoon-look { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
  .spoon-look .spoons, .spoon-look .look { margin-top: 0; }
}
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes cycle { 0% { opacity: 0; } 6% { opacity: 1; } 31% { opacity: 1; } 38% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .screen.cycle img:nth-child(2) { opacity: 1; }
}
