@font-face {
  font-family: "Alegreya";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/alegreya-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Alegreya";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/alegreya-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Alegreya";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/alegreya-greek-600-normal.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* Bold is only used for the big digit on the hunger scale, so latin covers it. */
@font-face {
  font-family: "Alegreya";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/alegreya-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/onest-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/onest-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/onest-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/onest-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/onest-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/onest-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  color-scheme: light;

  --background: #F7F5F0;
  --background-glass: rgba(247, 245, 240, 0.92);
  --surface: #FFFFFF;
  --surface-muted: #EDE9E1;
  --surface-selected: #E3EFE6;
  --text-primary: #23251F;
  --text-secondary: #55574F;
  --text-tertiary: #807F77;
  --primary: #4F8660;
  --primary-deep: #3C6B4B;
  --primary-soft: #A9CBB2;
  --on-primary-muted: #E6F0E8;
  --border: #E7E2DA;
  --border-strong: #DCD6CC;
  --outline: #E2DDD3;
  --divider: #EFEBE4;
  --ink-hover: #3A3C35;
  --paper-hover: #F1EEE7;
  --warm-ink: #8B5E3C;
  --warm-bg: #F1E8DC;
  --lilac-ink: #5B5690;
  --lilac-bg: #ECEAF6;
  --selection: #CFE3D4;

  /* Hunger scale 1–10, same as `hungerScale` in the app: warm hunger, green “enough”, lilac “too much”. */
  --scale-1: #E4B98F;
  --scale-2: #EAC7A3;
  --scale-3: #EFD5B9;
  --scale-4: #F2E2CF;
  --scale-5: #EAE6DC;
  --scale-6: #CFE3D4;
  --scale-7: #4F8660;
  --scale-8: #A9CBB2;
  --scale-9: #CFCBE8;
  --scale-10: #B4AEDD;

  --serif: "Alegreya", Georgia, "Times New Roman", serif;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --frame: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-offset: 96px;
  --card-shadow: 0 1px 0 var(--border);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-offset);
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3 {
  font-weight: 600;
  text-wrap: balance;
}

a {
  color: var(--primary-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--text-primary);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 8px;
}

::selection {
  background: var(--selection);
}

.icon {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 30;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--surface);
}

.skip-link:focus {
  top: 12px;
}

/* Shared building blocks */

.section {
  max-width: var(--frame);
  margin-inline: auto;
  padding: clamp(72px, 9vw, 120px) var(--gutter) 0;
}

.page-intro {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: var(--frame);
  margin-inline: auto;
  padding: clamp(56px, 7vw, 88px) var(--gutter) clamp(32px, 4vw, 48px);
}

.page-title {
  font: 600 clamp(2.75rem, 6vw, 4.375rem) / 1.02 var(--serif);
  letter-spacing: -0.015em;
}

.page-lead {
  max-width: 620px;
  color: var(--text-secondary);
  font-size: clamp(1.125rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.eyebrow {
  color: var(--primary-deep);
  font: 600 0.875rem var(--sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card {
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.item-title {
  font: 600 1.1875rem / 1.3 var(--sans);
}

.item-text {
  color: var(--text-secondary);
  font-size: 1.03125rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.tone-circle {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 20px;
}

.tone-circle-lg {
  width: 48px;
  height: 48px;
  font-size: 23px;
}

.tone-circle-xl {
  width: 52px;
  height: 52px;
  font-size: 24px;
}

.tone-warm {
  background: var(--warm-bg);
  color: var(--warm-ink);
}

.tone-lilac {
  background: var(--lilac-bg);
  color: var(--lilac-ink);
}

.tone-green {
  background: var(--surface-selected);
  color: var(--primary-deep);
}

.level-1 { background: var(--scale-1); }
.level-2 { background: var(--scale-2); }
.level-3 { background: var(--scale-3); }
.level-4 { background: var(--scale-4); }
.level-5 { background: var(--scale-5); }
.level-6 { background: var(--scale-6); }
.level-7 { background: var(--scale-7); color: var(--surface); }
.level-8 { background: var(--scale-8); }
.level-9 { background: var(--scale-9); }
.level-10 { background: var(--scale-10); }

.level-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  border-radius: 13px;
  font-weight: 600;
}

.level-dot-lg {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  font-size: 1.125rem;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 1.03125rem var(--sans);
  text-decoration: none;
}

.arrow-link:hover {
  text-decoration: underline;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  height: 56px;
  padding: 0 22px;
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  background: var(--surface);
  color: var(--text-primary);
  font: 500 1.03125rem var(--sans);
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease;
}

.pill-link:hover {
  border-color: var(--primary-soft);
  color: var(--primary-deep);
}

/* App Store button */

.store {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  min-height: 56px;
  padding: 8px 24px 8px 20px;
  border-radius: 28px;
  font: 600 1.0625rem / 1.2 var(--sans);
  text-decoration: none;
  transition: background-color 160ms ease;
}

.store .icon {
  font-size: 22px;
}

.store-header,
.store-hero {
  background: var(--text-primary);
  color: var(--surface);
}

a.store-header:hover,
a.store-hero:hover {
  background: var(--ink-hover);
  color: var(--surface);
}

.store-header {
  grid-area: store;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px 0 14px;
  border-radius: 22px;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.store-header .icon {
  font-size: 19px;
}

.store-cta {
  background: var(--surface);
  color: var(--text-primary);
}

a.store-cta:hover {
  background: var(--paper-hover);
  color: var(--text-primary);
}


/* Header */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: var(--background-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.masthead-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-areas:
    "brand store langs"
    "nav nav nav";
  align-items: center;
  gap: 10px 12px;
  max-width: var(--frame);
  margin-inline: auto;
  padding: 14px var(--gutter) 10px;
}

.brand {
  grid-area: brand;
  display: inline-flex;
  justify-self: start;
}

.wordmark {
  display: block;
  width: auto;
  height: 26px;
  aspect-ratio: 244 / 62;
}

.wordmark-ink {
  fill: var(--primary);
}

.wordmark-paper {
  fill: var(--background);
}

.site-nav {
  grid-area: nav;
  margin-inline: calc(-1 * var(--gutter));
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav ul {
  display: flex;
  gap: 14px;
  padding: 0 var(--gutter);
  list-style: none;
  white-space: nowrap;
}

.site-nav a {
  display: inline-block;
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text-primary);
}

/* Same weight as the other items, so the menu keeps its width from page to page. */
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--primary);
  color: var(--primary-deep);
}

/* Language switcher: segmented control, same look as in the app. */

.lang-switch {
  grid-area: langs;
}

.lang-switch ul {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 18px;
  background: var(--surface-muted);
  list-style: none;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 30px;
  padding: 0 8px;
  border-radius: 15px;
  color: var(--text-secondary);
  font: 600 0.8125rem var(--sans);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.lang-switch a:hover {
  color: var(--text-primary);
}

.lang-switch a[aria-current] {
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(35, 37, 31, 0.1);
  color: var(--primary-deep);
}

/* Closing call to action */

.cta-section {
  max-width: var(--frame);
  margin-inline: auto;
  padding: clamp(72px, 9vw, 120px) var(--gutter) clamp(72px, 9vw, 112px);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 40px;
  padding: clamp(32px, 5vw, 64px);
  border-radius: 32px;
  background: var(--primary-deep);
}

.cta-copy {
  display: flex;
  flex: 1 1 380px;
  flex-direction: column;
  gap: 12px;
}

.cta-title {
  color: var(--surface);
  font: 600 clamp(2rem, 4vw, 2.875rem) / 1.08 var(--serif);
}

.cta-text {
  color: var(--on-primary-muted);
  font-size: 1.0625rem;
}

.cta-text a {
  color: var(--surface);
}

/* Footer */

.colophon {
  border-top: 1px solid var(--border);
}

.colophon-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px 56px;
  max-width: var(--frame);
  margin-inline: auto;
  padding: 48px var(--gutter) 28px;
  font-size: 0.96875rem;
}

.colophon-brand {
  display: flex;
  flex: 1 1 260px;
  flex-direction: column;
  gap: 14px;
  max-width: 360px;
  color: var(--text-secondary);
}

.colophon-brand .wordmark {
  align-self: flex-start;
  height: 24px;
}

.colophon-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.colophon-label {
  color: var(--text-tertiary);
}

.colophon-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.colophon-list a {
  color: var(--text-secondary);
  text-decoration: none;
}

.colophon-list a:hover,
.colophon-list a[aria-current] {
  color: var(--text-primary);
}

.colophon-list a[aria-current] {
  font-weight: 500;
}

.colophon-mail {
  font-weight: 500;
  overflow-wrap: anywhere;
}

.colophon-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  width: min(100% - 2 * var(--gutter), var(--frame) - 2 * var(--gutter));
  margin: 0 auto;
  padding: 20px 0 40px;
  border-top: 1px solid var(--divider);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.colophon-legal p:first-child {
  max-width: 640px;
  text-wrap: pretty;
}

/* Language gate and 404 */

.page-gate {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
}

.gate {
  display: grid;
  justify-items: start;
  gap: 14px;
  width: 100%;
  max-width: 30rem;
  padding: 48px var(--gutter);
}

.gate-mark .wordmark {
  height: 30px;
  margin-bottom: 18px;
}

.gate-line {
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

.gate-languages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding: 0;
  list-style: none;
}

.gate-languages a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 18px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
  color: var(--text-primary);
  text-decoration: none;
}

/* Breakpoints */

@media (max-width: 479px) {
  /* Icon-only App Store button so it fits next to the language switcher; the label stays for screen readers. */
  .store-header {
    justify-content: center;
    width: 44px;
    padding: 0;
  }

  .store-header .store-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-width: 399px) {
  .masthead .wordmark {
    height: 22px;
  }
}

@media (max-width: 359px) {
  /* Lets the Russian menu fit on 320px screens without scrolling. */
  .site-nav ul {
    gap: 8px;
  }
}

/* One row once brand, nav, languages and the App Store button fit side by side. */
@media (min-width: 960px) {
  .masthead-inner {
    grid-template-columns: auto 1fr auto auto;
    grid-template-areas: "brand nav store langs";
    gap: 24px;
    padding-block: 14px;
  }

  .site-nav {
    justify-self: center;
    margin-inline: 0;
    overflow: visible;
  }

  .site-nav ul {
    gap: 28px;
    padding: 0;
  }

  .site-nav a {
    padding-block: 6px;
    font-size: 0.96875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
