/* The umbrella page wears the Smalta house style (brand README, #124):
   straight edges ONLY — curvature is broken straight pieces, never a compass;
   the tessera is the unit; grout separates. Colours come exclusively from
   tokens.css variables; fonts are the same OFL woff2 files every Smalta
   surface bundles (self-hosted — the zero-external-origins rule would refuse
   a font CDN by construction). */

@font-face {
  font-family: 'Alegreya'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/alegreya-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: 'Alegreya'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/alegreya-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: 'Alegreya'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/alegreya-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: 'Alegreya'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/alegreya-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: 'Alegreya'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/assets/fonts/alegreya-cyrillic-700-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: 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: 'Golos Text'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/golos-text-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: 'Golos Text'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/golos-text-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: 'Golos Text'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/golos-text-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: 'Golos Text'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/golos-text-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;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: 'Golos Text', system-ui, sans-serif;
  line-height: 1.65;
}
header, main, footer {
  max-width: 66rem;
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--color-ring); outline-offset: 2px; }

/* Header: the wordmark rides currentColor and follows the theme. */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wordmark svg { display: block; height: 1.9rem; width: auto; }
nav a {
  font-size: 0.9rem;
  color: var(--color-muted-fg);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.1rem;
}
nav a:hover { color: var(--color-fg); border-bottom-color: var(--color-primary); }

/* Hero: the big Alegreya statement over the mosaic band — the band IS the
   picture language (assets/brand/patterns/hero.svg, generator-owned; it
   carries its own night-field colours in both themes). */
.hero { padding: 2.6rem 0 0.6rem; }
.hero h1 {
  font-family: 'Alegreya', Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0 0 0.9rem;
  max-width: 46rem;
}
.tagline {
  font-size: 1.1rem;
  color: var(--color-muted-fg);
  max-width: 42rem;
  margin: 0 0 1.8rem;
}
.hero-band { margin: 0 0 0.4rem; }
.hero-band img { display: block; width: 100%; height: 7.5rem; object-fit: cover; }

h2 {
  font-family: 'Alegreya', Georgia, serif;
  font-weight: 500;
  font-size: 1.65rem;
  margin: 3rem 0 1.1rem;
}

/* Card grids as mosaic: the GRID is the grout (gap + field in border colour),
   the cards are the tesserae. Straight edges everywhere — no radius on this
   surface, per the house rule. */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}
.card {
  background: var(--color-card);
  color: var(--color-card-fg);
  padding: 1.15rem 1.25rem 1.25rem;
  --tessera: var(--color-primary);
  border-top: 4px solid var(--tessera);
}
.card h3 {
  margin: 0.65rem 0 0.35rem;
  font-family: 'Alegreya', Georgia, serif;
  font-weight: 500;
  font-size: 1.2rem;
}
.card h3 a { text-decoration-color: var(--tessera); text-underline-offset: 3px; }
.card p { margin: 0; color: var(--color-muted-fg); font-size: 0.95rem; }

/* The tessera: an irregular straight-edged quadrilateral, as the house
   vocabulary demands — cut with a polygon, never a radius. */
.tessera {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  background: var(--tessera);
  clip-path: polygon(6% 0, 100% 4%, 95% 100%, 0 93%);
}

.badge {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border: 1px solid var(--color-border);
  padding: 0.1rem 0.45rem;
  color: var(--color-muted-fg);
  vertical-align: 0.15em;
  white-space: nowrap;
}

/* Steps: an Alegreya-numbered ledger with gold-tessera counters (the accent
   role is the family's old gold; its foreground is always ink). */
.steps ol {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.4rem;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.1rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  font-family: 'Alegreya', Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  background: var(--color-accent);
  color: var(--color-accent-fg);
  clip-path: polygon(4% 2%, 100% 0, 96% 98%, 0 100%);
}
.steps h3 {
  margin: 0;
  font-family: 'Alegreya', Georgia, serif;
  font-weight: 500;
  font-size: 1.15rem;
}
.steps p { margin: 0.25rem 0 0; color: var(--color-muted-fg); max-width: 44rem; }
.steps a { text-decoration-color: var(--color-primary); }

.text p { color: var(--color-muted-fg); max-width: 46rem; }

footer {
  border-top: 1px solid var(--color-border);
  margin-top: 3.2rem;
  padding-top: 1.4rem;
  padding-bottom: 2.2rem;
  color: var(--color-muted-fg);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-mark img { display: block; height: 2.2rem; width: auto; }
footer p { margin: 0; }
footer a { text-decoration-color: var(--color-primary); }
.quiet { font-size: 0.85rem; }
