/* The tuka.events design system (eriversoft/afisha: DESIGN.md, design-system/tokens.css),
   copied by hand rather than linked — the city sites and this page deploy separately. */
/* Golos Text and Oswald (OFL), served from here rather than Google Fonts so a visitor's IP
   stays with us. Latin and Cyrillic only; Golos is variable, one file covers 400–700. */
@font-face { font-family: "Golos Text"; font-weight: 400 700; font-display: swap; src: url(/font/golos-text-cyrillic.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-weight: 400 700; font-display: swap; src: url(/font/golos-text-latin.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: Oswald; font-weight: 600; font-display: swap; src: url(/font/oswald-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Oswald; font-weight: 600; font-display: swap; src: url(/font/oswald-latin.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; }
:root {
  --background: #FFFFFF; --foreground: #1A1613; --muted: #F4F2EF; --muted-foreground: #645C54;
  --border: #E4E0DA; --input: #8B8279; --primary-ink: #96650A; --ring: #A8710F;
  --gold: #D99A1E; --gold-ink: #1D140C;
  --table: #F9F8F6; --card: #FFFFFF; --shadow-sheet: 0 1px 0 rgb(16 49 58 / .10), 0 6px 12px -6px rgb(16 49 58 / .20);
  --shadow-lip: inset 0 -3px 0 rgb(0 0 0 / .18), inset 0 1px 0 rgb(255 255 255 / .22);
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #0C0B0A; --foreground: #F7F3EC; --muted: #1A1713; --muted-foreground: #A79E92;
    --border: #2C2823; --input: #6F665B; --primary-ink: #EDA92A; --ring: #EDA92A;
    --gold: #EDA92A; --gold-ink: #1A1206;
    --table: #0C0B0A; --card: #1A1713; --shadow-sheet: 0 1px 0 rgb(0 0 0 / .55), 0 6px 12px -6px rgb(0 0 0 / .6), inset 0 1px 0 rgb(255 255 255 / .05);
  }
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--table); color: var(--foreground); font: 400 1rem/1.6 "Golos Text", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
/* Oswald 600, uppercase, and never tighter than 1.25: Й and Ё need it to clear the line above. */
h1, h2 { margin: 0; font-family: Oswald, Haettenschweiler, sans-serif; font-weight: 600; line-height: 1.25; text-transform: uppercase; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
.shell { max-width: 80rem; margin-inline: auto; padding-inline: 1rem; }
.label { font-size: .6rem; font-weight: 700; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; }

header { border-bottom: 1px solid var(--border); background: var(--card); }
header .shell { height: 4rem; display: flex; align-items: center; justify-content: space-between; }
/* As on sofia.tuka.events: Тука over the ticket, 48px tall on a phone and 60px from 48rem. */
.logo img { display: block; height: 3rem; width: auto; }
@media (min-width: 48rem) { .logo img { height: 3.75rem; } }

/* The language, as on sofia.tuka.events: a header cell, the code in a keycap over «Език»,
   opening the three languages each in its own words. A <details>, so it works without script. */
.langs { position: relative; margin-right: -.75rem; }
.langs summary { position: relative; height: 4rem; min-width: 2.25rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; padding-inline: .75rem; list-style: none; cursor: pointer; font-size: .8125rem; font-weight: 600; line-height: 1; color: var(--muted-foreground); transition: color .15s; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover, .langs[open] summary { color: var(--foreground); }
.langs summary::after { content: ""; position: absolute; inset-inline: .5rem; bottom: 0; height: 3px; border-radius: 2px 2px 0 0; background: var(--gold); opacity: 0; }
.langs[open] summary::after { opacity: 1; }
.key { min-width: 1.75rem; height: 1.5rem; display: grid; place-items: center; padding-inline: 3px; border: 1.5px solid currentColor; border-radius: 5px; font-size: .6875rem; }
.langs nav { position: absolute; z-index: 50; right: 0; top: calc(100% + 1px); width: 14rem; display: grid; padding: .375rem; border-radius: .5rem; background: var(--background); box-shadow: 0 0 0 1px color-mix(in srgb, var(--foreground) 10%, transparent), 0 2px 0 rgb(0 0 0 / .08), 0 16px 32px -8px rgb(0 0 0 / .28); }
.langs nav .label { padding: .375rem .375rem .25rem; color: var(--muted-foreground); }
.langs nav a { display: flex; justify-content: space-between; align-items: center; padding: .5rem .375rem; border-radius: .375rem; font-size: .875rem; line-height: 1.25; text-decoration: none; }
.langs nav a:hover { background: var(--muted); }
.langs nav a[aria-current] { font-weight: 600; color: var(--primary-ink); }
.langs nav a[aria-current]::after { content: "✓"; }
@media (max-width: 47.99rem) { .langs summary { padding-inline: 3px; font-size: .65rem; } .key { min-width: 1.5rem; height: 1.25rem; font-size: .625rem; } .langs { margin-right: -3px; } }
@media (prefers-reduced-motion: reduce) { .langs summary { transition: none; } }

.hero { padding-block: 2rem 2.5rem; }
h1 span { display: block; }
h1 { font-size: clamp(3.5rem, 13vw, 6rem); letter-spacing: -.02em; }
.standfirst { max-width: 36rem; margin-top: .75rem; font-size: 1.125rem; color: var(--muted-foreground); }

/* The cities are a row of posters. A city not launched yet keeps its colours under a veil of
   the page ground — white by day, ink at night — is unlinked, and says «soon». */
.cities { padding-bottom: 3rem; }
.cities h2 { margin-bottom: 1rem; }
.wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.wall .live { grid-column: 1 / -1; margin-bottom: 1rem; }
/* Each city is one postcard: a sheet laid on the table, as on sofia.tuka.events, its poster and
   its address on the same card (owner, 2026-11-12). */
.wall li { position: relative; overflow: hidden; border-radius: .75rem; background: var(--card); box-shadow: 0 0 0 1px var(--border), var(--shadow-sheet); }
.live a { display: block; text-decoration: none; }
.poster { display: block; width: 100%; height: auto; }
/* The address is under every poster, never on it (ADR: a-city-skyline-is-drawn-from-the-master-spec), the same on
   every card; on a phone a third of the screen holds it only broken, so it breaks at its dots (<wbr>). */
.go { display: block; padding: .5rem .75rem .625rem; font-weight: 600; color: var(--primary-ink); overflow-wrap: break-word; }
.live a:hover .go span { text-decoration: underline; text-underline-offset: 3px; }
.soon { color: var(--muted-foreground); }
.soon::after { content: ""; position: absolute; inset: 0; background: var(--background); opacity: .55; pointer-events: none; }
.soon .label { position: absolute; z-index: 2; right: .5rem; bottom: .5rem; padding: .125rem .375rem; background: var(--muted); }
/* The city's name on its poster, in the page's language, as a travel poster's title: big white
   capitals centred at the top, a soft shadow and no wash over the picture (owner, 2026-11-12).
   White in either theme — it sits on the painting, not on the page. A long word shrinks the
   name (`--n`, its longest word, from build.mjs's {{len:…}}) so it never leaves the poster. */
.frame { position: relative; display: block; container-type: inline-size; }
.name { position: absolute; z-index: 2; left: 4cqw; right: 4cqw; top: 6cqw; text-align: center; color: white;
  font: 600 min(13cqw, calc(160cqw / var(--n))) / 1 Oswald, Haettenschweiler, sans-serif; text-transform: uppercase; text-wrap: balance;
  -webkit-user-select: none; user-select: none; pointer-events: none; /* part of the picture, not text laid on it */
  text-shadow: 0 1px 2px rgb(0 0 0 / .6), 0 2px 16px rgb(0 0 0 / .55), 0 0 32px rgb(0 0 0 / .3); }
@media (min-width: 40rem) {
  .wall { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
  .wall .live { grid-column: auto; margin: 0; }
}

/* The sixteen paints, as on sofia.tuka.events (CategoryBand): a sheet of small blocks, each its
   label's width with the line's spare room shared out, the lines balanced by band.html's script.
   Lines are spaced by the blocks' bottom margin, so a line break (<i>) adds no gap. */
.band-title { margin-bottom: .75rem; color: var(--muted-foreground); }
.shell:has(.band) { padding-bottom: 1.5rem; }
/* On a phone the sheet keeps the city sites' 8px margin — at 16px four blocks a line do not fit
   360px — and its title stays on the page's 16px line. */
@media (max-width: 39.99rem) { .shell:has(.band) { padding-inline: .5rem; } .band-title { padding-left: .5rem; } }
.band { display: flex; flex-wrap: wrap; column-gap: .25rem; padding: .75rem .5rem .5rem; border-radius: 1.125rem; background: var(--card); box-shadow: var(--shadow-sheet); }
.band::after { content: ""; flex-grow: 999; }
.band[data-balanced]::after { display: none; }
.band i { flex-basis: 100%; height: 0; }
.band span { flex-grow: 1; height: 1.75rem; margin-bottom: .25rem; display: flex; align-items: center; justify-content: center; padding-inline: .5rem; border-radius: .375rem; box-shadow: var(--shadow-lip); font-size: .6rem; font-weight: 700; line-height: 1; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; text-decoration: none; transition: filter .15s; }
.band span:hover { filter: brightness(1.1); }
@media (min-width: 40rem) { .band { padding-inline: .75rem; } .band span { height: 2.25rem; letter-spacing: .1em; } }
@media (min-width: 64rem) { .band span { padding-inline: .375rem; letter-spacing: .06em; } }
@media (min-width: 80rem) { .band::after { display: none; } }

.about { padding-block: 3rem; }
.about section { display: grid; gap: .75rem 2rem; padding-block: 1.5rem 2.5rem; border-top: 1px solid var(--border); }
.about .prose { display: grid; gap: 1rem; max-width: 68ch; }
@media (min-width: 48rem) { .about section { grid-template-columns: 1fr 2fr; } }

/* 404, as on sofia.tuka.events: the numeral is the loudest thing on the page, then a
   headline, one line, and two ways out. The numeral is written in --primary-ink, not
   filled gold — gold text on white is 2.45:1. */
.nf { padding-block: 3rem 3.5rem; }
.nf .code { font: 600 6rem/1 Oswald, Haettenschweiler, sans-serif; letter-spacing: -.02em; color: var(--primary-ink); }
.nf h1 { margin-top: 1.5rem; font-size: clamp(1.75rem, 4vw, 2.5rem); }
.nf .standfirst { max-width: 28rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.button { min-height: 2.75rem; display: inline-flex; align-items: center; padding: .75rem 1.5rem; border: 1px solid transparent; border-radius: .1875rem; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.button.primary { background: var(--gold); color: var(--gold-ink); }
.button.primary:hover { filter: brightness(1.08); }
.button.outline { border-color: var(--input); }
.button.outline:hover { background: var(--muted); }

footer { border-top: 1px solid var(--border); }
footer .shell { padding-block: 1.5rem; font-size: .75rem; color: var(--muted-foreground); }

/* Terms: the 404's headline size, the About sections below it. */
.terms { padding-block: 3rem 0; }
.terms h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.terms .updated { margin-top: .5rem; font-size: .75rem; color: var(--muted-foreground); }

@media (prefers-reduced-motion: reduce) { .band span { transition: none; } }
