/* Baltic Summer Festival — component styles. Every value comes from tokens.json custom properties. */

.bsf { font-family: var(--font-text); color: var(--text); -webkit-font-smoothing: antialiased; }
.bsf *, .bsf *::before, .bsf *::after { box-sizing: border-box; }
.bsf h1, .bsf h2, .bsf h3, .bsf p { margin: 0; }

/* ---------- Text helpers ---------- */
.bsf-display { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.005em; line-height: 0.9; text-transform: uppercase; }
.bsf-eyebrow { font-family: var(--font-text); font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); }
.bsf-lt { display: block; font-family: var(--font-text); font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text-muted); }
.bsf-on-night { --surface: var(--night); --text: var(--shell); --text-muted: #aeb6dc; --accent-text: #ff8ac4; --border: var(--shell); --hairline: #3d52a0; --focus: var(--dusk); color: var(--shell); background: var(--night); }

/* ---------- Bilingual heading ---------- */
.bsf-heading { display: flex; flex-direction: column; gap: var(--space-3); }
.bsf-heading__title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 52px; line-height: 1; letter-spacing: 0.005em; color: var(--text); }
.bsf-heading__title + .bsf-lt { margin-top: calc(var(--space-2) * -1); font-size: 18px; line-height: 24px; }

/* ---------- Button ---------- */
.bsf-btn {
  display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px;
  min-height: 56px; padding: 10px var(--space-6) 10px;
  border: 2px solid transparent; border-radius: var(--radius-pill);
  background: var(--magenta-deep); color: var(--shell);
  font-family: var(--font-text); font-size: 16px; line-height: 20px; font-weight: 700; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.bsf-btn .bsf-btn__lt { font-size: 12px; line-height: 14px; font-weight: 500; opacity: .78; }
.bsf-btn--arrow::after { content: ""; }
.bsf-btn__row { display: inline-flex; align-items: center; gap: var(--space-2); }
.bsf-btn__row svg { width: 16px; height: 16px; flex: none; transition: transform .15s ease; }
.bsf-btn:hover { background: var(--night); color: var(--shell); transform: translateY(-1px); }
.bsf-btn:hover .bsf-btn__row svg { transform: translateX(3px); }
.bsf-btn:active { transform: translateY(0); }
.bsf-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.bsf-btn--secondary { background: transparent; color: var(--text); border-color: var(--border); }
.bsf-btn--secondary:hover { background: var(--text); color: var(--surface); }
.bsf-btn--light { background: var(--shell); color: var(--ink); }
.bsf-btn--light:hover { background: var(--gold); }
.bsf-btn--sm { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.bsf-btn[disabled], .bsf-btn--disabled { background: var(--surface-sunk); color: var(--text-muted); border-color: transparent; cursor: not-allowed; transform: none; }
.bsf-link { white-space: nowrap; display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 700; color: var(--accent-text); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.bsf-link:hover { color: var(--text); }
.bsf-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* ---------- Tag ---------- */
.bsf-tag {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-text); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--surface-raised); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--hairline);
}
.bsf-tag--sunset { background: var(--sunset); color: var(--on-accent); box-shadow: none; }
.bsf-tag--amber { background: var(--amber); color: var(--on-accent); box-shadow: none; }
.bsf-tag--dusk { background: var(--dusk); color: var(--on-accent); box-shadow: none; }
.bsf-tag--ink { background: var(--ink); color: var(--shell); box-shadow: none; }
.bsf-tag__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- Glow: the soft blurred circles of the poster sky ---------- */
.bsf-glow { position: absolute; border-radius: 50%; filter: blur(28px); opacity: .85; pointer-events: none; }
.bsf-glow--hard { filter: none; opacity: .55; }

/* ---------- Countdown ---------- */
.bsf-countdown { display: inline-grid; grid-template-columns: repeat(4, auto); gap: var(--space-2); }
.bsf-countdown__cell { min-width: 84px; padding: 12px 14px 10px; border-radius: var(--radius-sm); background: var(--surface-raised); box-shadow: inset 0 0 0 1.5px var(--hairline); }
.bsf-countdown__num { display: block; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 48px; line-height: 1; letter-spacing: 0.005em; font-variant-numeric: tabular-nums; color: var(--text); }
.bsf-countdown__label { display: block; margin-top: 6px; font-size: 12px; line-height: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); }
.bsf-countdown__label .bsf-lt { font-size: 11px; line-height: 14px; letter-spacing: 0; text-transform: none; font-weight: 500; }
.bsf-on-night .bsf-countdown__cell { background: rgba(255,250,243,0.06); box-shadow: inset 0 0 0 1.5px #3d52a0; }
.bsf-on-night .bsf-countdown__num { color: var(--amber); }

/* ---------- Header ---------- */
.bsf-header { display: flex; align-items: center; gap: var(--space-8); padding: var(--space-4) var(--space-8); background: var(--surface); color: var(--text); }
.bsf-header--overlay { background: transparent; }
.bsf-logo { display: block; height: 52px; width: auto; }
.bsf-logo--white { display: none; }
[data-theme="dark"] .bsf-logo--ink, .bsf-on-night .bsf-logo--ink { display: none; }
[data-theme="dark"] .bsf-logo--white, .bsf-on-night .bsf-logo--white { display: block; }
.bsf-nav { display: flex; gap: var(--space-8); margin-left: auto; }
.bsf-nav a { color: var(--text); text-decoration: none; font-size: 16px; line-height: 20px; font-weight: 700; padding: 6px 0; border-bottom: 2px solid transparent; }
.bsf-nav a .bsf-lt { font-size: 12px; line-height: 14px; }
.bsf-nav a:hover, .bsf-nav a[aria-current="page"] { border-bottom-color: var(--magenta); }
.bsf-nav a:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.bsf-lang { display: inline-flex; padding: 3px; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1.5px var(--hairline); }
.bsf-lang button { border: 0; background: transparent; color: var(--text-muted); font: 700 13px/1 var(--font-text); letter-spacing: 0.06em; padding: 8px 12px; border-radius: var(--radius-pill); cursor: pointer; }
.bsf-lang button[aria-pressed="true"] { background: var(--text); color: var(--surface); }
.bsf-lang button:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.bsf-menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--border); background: transparent; color: var(--text); align-items: center; justify-content: center; cursor: pointer; }
.bsf-header--compact .bsf-nav, .bsf-header--compact .bsf-lang { display: none; }
.bsf-header--compact .bsf-menu-btn { display: inline-flex; }
.bsf-header--compact { padding: var(--space-3) var(--space-4); gap: var(--space-3); }
.bsf-header--compact .bsf-logo { height: 40px; }

/* ---------- Hero: the poster as a page opening ---------- */
.bsf-hero { position: relative; overflow: hidden; padding: var(--space-12) var(--space-8) var(--space-16); min-height: 760px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.bsf-hero__logo { width: 300px; max-width: 70%; height: auto; display: block; }
.bsf-hero__names { margin-top: var(--space-6); font-family: var(--font-display); text-transform: uppercase; font-size: 112px; line-height: .9; letter-spacing: 0.005em; color: var(--ink); }
.bsf-hero__names small { font-family: var(--font-text); font-weight: 800; font-size: 18px; letter-spacing: .02em; margin-left: .3em; }
.bsf-hero__date { margin-top: var(--space-6); font-family: var(--font-text); font-weight: 600; font-size: 22px; line-height: 30px; text-transform: uppercase; color: var(--ink); }
.bsf-hero__date .bsf-lt { color: var(--ink); text-transform: none; font-size: 16px; }
.bsf-hero__actions { margin-top: var(--space-6); display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }
.bsf-hero .bsf-countdown { margin-top: auto; }
.bsf-hero .bsf-countdown__cell { background: rgba(21,38,110,.85); box-shadow: none; }
.bsf-hero .bsf-countdown__num { color: var(--gold); }
.bsf-hero .bsf-countdown__label, .bsf-hero .bsf-countdown__label .bsf-lt { color: var(--shell); }

/* ---------- Lineup ---------- */
.bsf-lineup { display: flex; flex-direction: column; }
.bsf-lineup__head { display: flex; align-items: baseline; gap: var(--space-4); flex-wrap: wrap; padding: var(--space-4) 0; border-top: 1.5px solid var(--hairline); font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 136px; line-height: 0.92; letter-spacing: 0.005em; color: var(--text); }
.bsf-lineup__head:last-of-type { border-bottom: 1.5px solid var(--hairline); }
.bsf-lineup__row { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0; row-gap: var(--space-2); padding-top: var(--space-6); font-family: var(--font-display); font-weight: 400; text-transform: uppercase; color: var(--text); }
.bsf-lineup__row--2 { font-size: 64px; line-height: 1.02; letter-spacing: 0.005em; }
.bsf-lineup__row--3 { font-size: 38px; line-height: 1.1; letter-spacing: 0.005em; padding-top: var(--space-4); }
.bsf-lineup__name { white-space: nowrap; }
.bsf-lineup__sep { display: inline-block; width: .28em; height: .8em; margin: 0 .14em; vertical-align: baseline; background: url("../assets/graphics/divider-bar.png") center / contain no-repeat; }
.bsf-dot { display: inline-block; width: .42em; height: .42em; margin: 0 .35em; background: var(--magenta); vertical-align: .08em; }
.bsf-cc { font-family: var(--font-text); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--text-muted); margin-left: .35em; vertical-align: super; line-height: 0; }
.bsf-lineup__head .bsf-tag { transform: translateY(-.5em); }

/* ---------- Artist card ---------- */
.bsf-artist {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  aspect-ratio: 4 / 5; padding: var(--space-6); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--sunset); color: var(--ink); text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.bsf-artist:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.bsf-artist:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.bsf-artist__top { position: relative; z-index: 1; gap: var(--space-2); display: flex; justify-content: space-between; align-items: flex-start; }
.bsf-artist__go { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: currentColor; }
.bsf-artist__go svg { width: 18px; height: 18px; }
.bsf-artist__name { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 60px; line-height: .92; letter-spacing: 0.005em; }
.bsf-artist__meta { position: relative; z-index: 1; margin-top: var(--space-2); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

.bsf-artist--amber { background: var(--amber); }
.bsf-artist--dusk { background: var(--dusk); }
.bsf-artist--gold { background: var(--gold); }
.bsf-artist--magenta { background: var(--magenta-deep); color: var(--shell); }
.bsf-artist--magenta .bsf-artist__go { background: var(--shell); }
.bsf-artist--magenta .bsf-artist__go svg { color: var(--ink); }
.bsf-artist .bsf-glow { width: 75%; aspect-ratio: 1; }
.bsf-artist--sea { background: var(--sea); color: var(--shell); }
.bsf-artist--pine { background: var(--pine); color: var(--shell); }
.bsf-artist--night { background: var(--night); color: var(--shell); }
.bsf-artist .bsf-artist__go svg { color: var(--shell); }
.bsf-artist--sea .bsf-artist__go svg, .bsf-artist--pine .bsf-artist__go svg, .bsf-artist--night .bsf-artist__go svg { color: var(--ink); }
.bsf-artist--sea .bsf-artist__go, .bsf-artist--pine .bsf-artist__go, .bsf-artist--night .bsf-artist__go { background: var(--shell); }

/* ---------- Ticket card ---------- */
.bsf-ticket { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: var(--space-6); padding: var(--space-8); border-radius: var(--radius-lg); background: var(--surface-raised); box-shadow: inset 0 0 0 1.5px var(--hairline); color: var(--text); }
.bsf-ticket__name { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 34px; line-height: 1; letter-spacing: 0.005em; }
.bsf-ticket__price { display: flex; align-items: baseline; gap: var(--space-2); }
.bsf-ticket__amount { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 64px; line-height: 1; letter-spacing: 0.005em; }
.bsf-ticket__unit { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.bsf-ticket__list { list-style: none; margin: 0; padding: var(--space-6) 0 0; display: grid; gap: var(--space-3); border-top: 1.5px solid var(--hairline); font-size: 16px; line-height: 22px; }
.bsf-ticket__list li { display: grid; grid-template-columns: 22px 1fr; gap: var(--space-3); align-items: start; }
.bsf-ticket__list li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--sunset) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.5l3 3 6-6.5' fill='none' stroke='%2311131a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/22px no-repeat; }
.bsf-ticket .bsf-btn { align-self: stretch; align-items: center; margin-top: auto; }
.bsf-ticket--featured { background: var(--night); color: var(--shell); box-shadow: none; --text: var(--shell); --text-muted: #aeb6dc; --hairline: #3d52a0; --focus: var(--dusk); }
.bsf-ticket--featured .bsf-ticket__amount { color: var(--gold); }
.bsf-ticket .bsf-glow { width: 240px; height: 240px; right: -90px; top: -110px; background: var(--sunset); }
.bsf-ticket > *:not(.bsf-glow) { position: relative; }

/* ---------- FAQ ---------- */
.bsf-faq { display: grid; gap: var(--space-3); }
.bsf-faq details { border-radius: var(--radius-md); background: var(--surface-raised); box-shadow: inset 0 0 0 1.5px var(--hairline); }
.bsf-faq details[open] { box-shadow: inset 0 0 0 2px var(--border); }
.bsf-faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) var(--space-6); cursor: pointer; font-family: var(--font-text); font-weight: 700; font-size: 20px; line-height: 1.25; letter-spacing: -0.005em; }
.bsf-faq summary::-webkit-details-marker { display: none; }
.bsf-faq summary .bsf-lt { font-family: var(--font-text); margin-top: 2px; }
.bsf-faq summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--sunset) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 10v12M10 16h12' stroke='%2311131a' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center/32px no-repeat; transition: transform .2s ease; }
.bsf-faq details[open] summary::after { transform: rotate(45deg); }
.bsf-faq summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: var(--radius-md); }
.bsf-faq__answer { padding: 0 var(--space-6) var(--space-6); font-size: 16px; line-height: 26px; max-width: 640px; }

/* ---------- Footer ---------- */
.bsf-footer { background: var(--night); color: var(--shell); padding: var(--space-16) var(--space-8) var(--space-8); --text: var(--shell); --text-muted: #aeb6dc; --accent-text: #ff8ac4; --hairline: #3d52a0; --focus: var(--dusk); }
.bsf-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-8); padding-bottom: var(--space-12); border-bottom: 1.5px solid var(--hairline); }
.bsf-footer__logo { width: 220px; height: auto; display: block; }
.bsf-footer h4 { margin: 0 0 var(--space-4); font: 700 13px/16px var(--font-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.bsf-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.bsf-footer a { color: var(--shell); text-decoration: none; font-weight: 600; }
.bsf-footer a:hover { color: var(--amber); }
.bsf-footer a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.bsf-footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: var(--space-6); font-size: 13px; color: var(--text-muted); }

/* ---------- Wayfinding ---------- */
.bsf-sign { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: var(--radius-sm); color: var(--shell); font-family: var(--font-text); }
.bsf-sign__icon { flex: none; width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center; background: rgba(255,255,255,0.18); }
.bsf-sign__icon svg { width: 20px; height: 20px; }
.bsf-sign__text { display: flex; flex-direction: column; font-size: 15px; line-height: 18px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.bsf-sign__text small { font-size: 12px; line-height: 15px; font-weight: 600; letter-spacing: 0.02em; text-transform: none; opacity: .9; }
.bsf-sign--entrance { background: var(--way-entrance); }
.bsf-sign--vip { background: var(--way-vip); color: var(--ink); }
.bsf-sign--stage { background: var(--way-stage); }
.bsf-sign--bar { background: var(--way-bar); color: var(--ink); }
.bsf-sign--food { background: var(--way-food); color: var(--ink); }
.bsf-sign--toilets { background: var(--way-toilets); }
.bsf-sign--water { background: var(--way-water); color: var(--ink); }
.bsf-sign--medical { background: var(--way-medical); }
.bsf-sign--security { background: var(--way-security); }
.bsf-sign--access { background: var(--way-access); }
.bsf-sign--foh { background: var(--way-foh); color: var(--ink); }
.bsf-sign--vip .bsf-sign__icon, .bsf-sign--bar .bsf-sign__icon, .bsf-sign--food .bsf-sign__icon, .bsf-sign--water .bsf-sign__icon, .bsf-sign--foh .bsf-sign__icon { background: rgba(17,19,26,0.12); }

/* ---------- Social frames (authored at 1080px, scaled in previews) ---------- */
.bsf-frame { position: relative; overflow: hidden; width: 1080px; font-family: var(--font-text); }
.bsf-frame--post { height: 1350px; }
.bsf-frame--story { height: 1920px; }
.bsf-frame--square { height: 1080px; }
.bsf-frame__pad { position: absolute; inset: 72px; display: flex; flex-direction: column; }
.bsf-frame .bsf-display { letter-spacing: 0.005em; }

/* Night-on-night: keep dark tiles visible when the page itself is Night */
.bsf-artist--night { box-shadow: inset 0 0 0 1.5px #3d52a0; }
[data-theme="dark"] .bsf-ticket--featured { box-shadow: inset 0 0 0 2px var(--sunset); }
[data-theme="dark"] .bsf-footer { border-top: 1.5px solid #3d52a0; }

/* ---------- Sky: the poster's sunset background (assets/Sky) ---------- */
.bsf-sky { background: #f7cf86 url("../assets/sky/sky-portrait.svg") center / cover no-repeat; color: var(--ink); --text: var(--ink); --text-muted: #11131a; --accent-text: #11131a; --hairline: rgba(17,19,26,.35); }
.bsf-sky--wide { background-image: url("../assets/sky/sky-landscape.svg"); }
.bsf-sky--night { background-color: #15266e; background-image: url("../assets/sky/sky-night.svg"); color: var(--shell); --text: var(--shell); --text-muted: #fffaf3; --accent-text: #fffaf3; --hairline: rgba(255,250,243,.35); }
.bsf-logo-outline { display: block; height: auto; }

.bsf-on-night .bsf-btn:hover, .bsf-ticket--featured .bsf-btn:hover, .bsf-sky--night .bsf-btn:hover { background: var(--shell); color: var(--ink); }
.bsf-on-night .bsf-btn--secondary:hover { background: var(--shell); color: var(--ink); }
.bsf-artist.bsf-artist--magenta .bsf-artist__go svg { color: var(--ink); }
