/* Ferrylight site: brand colors and M3 tokens from ferrylight-app/brand (tokens/brand.json, tokens/m3-scheme.json). */
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-cyrillic.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --water: #2E6F95;
  --shore-warm: #EDDCB9;
  --shore-cool: #091D29;
  --lantern: #FFCB70;
  --foam: #F9F6F1;

  --primary: #20648A;
  --surface: #FFF8F1;
  --on-surface: #1E1B16;
  --on-surface-variant: #4C4639;
  --surface-container: #F4EDE4;
  --outline-variant: #CFC5B4;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #91CDF8;
    --surface: #15130E;
    --on-surface: #E8E1D9;
    --on-surface-variant: #CFC5B4;
    --surface-container: #221F1A;
    --outline-variant: #4C4639;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 17px/1.65 "Manrope", system-ui, sans-serif;
  color: var(--on-surface);
  background: var(--surface);
}
a { color: var(--primary); text-underline-offset: 0.15em; }
code { font-size: 0.9em; overflow-wrap: anywhere; }

/* Header: water with the two shores in the bottom corners, as on the store graphic. */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--water);
  color: var(--foam);
  padding: 2.5rem 0 4.5rem;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 2.25rem;
}
.hero::before { left: 0; width: 22%; background: var(--shore-warm); border-top-right-radius: 1.75rem; }
.hero::after { right: 0; width: 20%; height: 2.75rem; background: var(--shore-cool); }
.hero-inner, main, footer { width: min(44rem, 100% - 2rem); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 0.75rem; color: inherit; text-decoration: none; }
.brand img { width: 2.75rem; height: 2.75rem; border-radius: 0.75rem; box-shadow: 0 0 0 1px rgb(249 246 241 / 0.35); }
.brand span { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.01em; }
.hero h1 { margin: 1.75rem 0 0.25rem; font-weight: 800; font-size: clamp(2rem, 6vw, 2.75rem); line-height: 1.15; letter-spacing: -0.02em; }
.hero p { margin: 0; font-weight: 600; opacity: 0.9; }

.lang { display: flex; gap: 0.5rem; margin: 1.5rem 0 0; }
.lang a {
  color: var(--foam);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.3rem 0.85rem;
  border: 1px solid rgb(249 246 241 / 0.45);
  border-radius: 999px;
}
.lang a:hover, .lang a:focus-visible { background: rgb(249 246 241 / 0.15); }

main { padding: 1rem 0 3rem; }
main section + section { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--outline-variant); }
h2 { margin: 2.25rem 0 0.5rem; font-weight: 700; font-size: 1.3rem; line-height: 1.3; }
section > h2:first-child { margin-top: 1rem; font-size: 1.6rem; font-weight: 800; }
ul { padding-left: 1.25rem; }
li + li { margin-top: 0.4rem; }
.meta { color: var(--on-surface-variant); font-size: 0.95rem; }
.note {
  background: var(--surface-container);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  color: var(--on-surface-variant);
  font-size: 0.95rem;
}

footer {
  padding: 1.5rem 0 2.5rem;
  color: var(--on-surface-variant);
  font-size: 0.875rem;
  border-top: 1px solid var(--outline-variant);
}
