@import url("/assets/fonts.css");

:root {
  color-scheme: light;
  --paper: #f9f4ec;
  --white: #fffdf8;
  --ink: #281b20;
  --muted: #605059;
  --wine: #642639;
  --wine-deep: #301c28;
  --berry: #85384b;
  --peach: #f2c4a2;
  --gold: #f8d5b9;
  --line: #e2d5c8;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --route-gap: 5.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.58 var(--sans); }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }
a { color: inherit; }
img { display: block; width: 100%; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
h1, h2, h3, h4 { line-height: 1.12; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
a, button, summary { touch-action: manipulation; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #ae5168; outline-offset: 4px; }
.hero :focus-visible, .travel-section :focus-visible { outline-color: #ffd8b4; }
section[id], main[id] { scroll-margin-top: 5.25rem; }
.shell { width: min(100% - 5rem, 76rem); margin-inline: auto; }
.sr-only, .copy-status:empty {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; inset: .5rem auto auto .5rem; padding: .7rem 1rem; z-index: 5;
  background: var(--white); border-radius: .25rem; transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 4; top: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 4.6rem; display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; white-space: nowrap; }
.brand-name { font: 600 1.47rem/1 var(--serif); letter-spacing: -.045em; }
.brand-icon { display: flex; align-items: center; justify-content: center; gap: 2px; width: 2.35rem; height: 2.35rem; border: 1px solid #bc8492; border-radius: 50%; color: var(--wine); }
.brand-icon i { background: currentColor; width: 2px; height: .45rem; border-radius: 5px; }
.brand-icon i:nth-child(2), .brand-icon i:nth-child(4) { height: .75rem; }
.brand-icon i:nth-child(3) { height: 1.05rem; }
.header-actions, #main-nav, .languages { display: flex; align-items: center; }
#main-nav { gap: clamp(.65rem, 2vw, 2rem); font-size: .94rem; font-weight: 600; }
#main-nav a { padding: .65rem 0; text-decoration: none; white-space: nowrap; }
#main-nav a:hover, .text-link:hover, .back-top:hover { text-decoration: underline; text-underline-offset: .24em; }
#main-nav .nav-register { padding: .56rem 1rem; color: var(--wine); border: 1px solid #caa6aa; border-radius: .34rem; }
#main-nav .nav-register:hover { background: #f4e5df; }
.header-actions { gap: .65rem; }
.languages { padding: 2px; gap: 1px; border: 1px solid var(--line); border-radius: .4rem; }
.languages button { border: 0; border-radius: .28rem; min-width: 2.25rem; min-height: 2.25rem; padding: 0 .35rem; background: transparent; font-size: .875rem; font-weight: 700; }
.languages button:hover { background: #f2e5dc; }
.languages button[aria-pressed="true"] { color: var(--white); background: var(--wine); }
.menu-toggle { display: none; }
.menu-icon { display: block; width: 1.15rem; height: .82rem; border-block: 2px solid currentColor; position: relative; }
.menu-icon::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 2px; background: currentColor; transform: translateY(-50%); }

.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(31rem, 47vw, 40rem); overflow: hidden; color: var(--white); background: #2c2036; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 57% 49%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(39,23,42,.96) 1%, rgba(39,24,45,.89) 24%, rgba(37,26,46,.62) 47%, rgba(31,24,37,.17) 80%), linear-gradient(0deg, rgba(44,24,37,.46), transparent 52%); }
.hero-inner { padding-block: 5rem 5.5rem; }
.eyebrow { font-size: .875rem; line-height: 1.43; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.hero-kicker { display: flex; align-items: center; gap: .8rem; color: var(--gold); }
.hero-kicker::before { content: ""; width: 2rem; height: 1px; background: var(--peach); }
.hero h1 { font-size: clamp(4rem, 8.25vw, 8.25rem); line-height: .98; letter-spacing: -.07em; margin: 1.1rem 0 1.45rem; }
.hero h1 em { font-weight: 500; color: var(--peach); }
.hero-date { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem .8rem; font-size: clamp(1.02rem, 1.5vw, 1.28rem); font-weight: 700; }
.hero-dot { height: .3rem; width: .3rem; border-radius: 50%; background: var(--peach); }
.hero-lede { max-width: 32rem; color: #f6ece8; font-size: 1.09rem; margin-top: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.9rem; }
.button { display: inline-flex; justify-content: center; align-items: center; border-radius: .34rem; border: 1px solid transparent; padding: .69rem 1.13rem; min-height: 2.95rem; text-decoration: none; font-weight: 700; font-size: .97rem; line-height: 1.35; }
.button-primary { color: #391e2b; background: var(--peach); }
.button-primary:hover { background: #ffddc2; }
.button-outline { color: #fffaf6; background: #38273843; border-color: #fff2e994; }
.button-outline:hover { background: #633e51; }
.button-wine { color: #fffaf6; background: var(--wine); }
.button-wine:hover { background: #482032; }

.facts-band { background: #f5eadf; border-bottom: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 1.3rem; }
.facts div { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding-inline: clamp(.6rem, 2.4vw, 2rem); border-left: 1px solid #dfcebf; }
.facts div:first-child { padding-left: 0; border-left: 0; }
.facts dt { color: var(--muted); font-size: .875rem; font-weight: 600; }
.facts dd { order: -1; font: 500 clamp(1.12rem, 1.8vw, 1.47rem)/1.23 var(--serif); margin-bottom: .22rem; }

.section { padding-block: var(--route-gap); }
.section-heading { margin-bottom: 2rem; }
.eyebrow-accent { color: var(--berry); }
.section-heading h2 { font-size: clamp(2.3rem, 4.8vw, 4.2rem); letter-spacing: -.055em; margin: .5rem 0 .65rem; }
.section-heading > p:last-child { max-width: 38rem; color: var(--muted); font-size: 1.075rem; }
.tablist { display: grid; gap: .6rem; }
.days-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 1.15rem; }
.tab {
  appearance: none; position: relative; display: flex; flex-direction: column; align-items: flex-start;
  justify-content: center; border: 1px solid var(--line); background: var(--white); min-height: 4.7rem; border-radius: .4rem;
  padding: .72rem 1rem; text-align: left; font-weight: 700; line-height: 1.28;
}
.tab-date { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.tab-caption { display: block; margin-top: .18rem; font-size: .89rem; font-weight: 500; color: var(--muted); }
.tab:hover { background: #faeee5; }
.tab[aria-selected="true"] { background: var(--wine); border-color: var(--wine); color: var(--white); }
.tab[aria-selected="true"] .tab-caption { color: #ffeddf; }
.program-panel { display: grid; grid-template-columns: 1fr 1.03fr; min-height: 22rem; border: 1px solid var(--line); border-radius: .5rem; overflow: hidden; background: var(--white); }
.program-copy { align-self: center; padding: clamp(1.5rem, 4vw, 3.35rem); }
.program-copy h3 { font-size: clamp(1.83rem, 3.4vw, 3.08rem); letter-spacing: -.035em; margin: .52rem 0 .65rem; }
.program-time { font-weight: 700; color: var(--wine); }
.program-description { color: var(--muted); margin-top: .55rem; max-width: 32rem; }
.program-image { width: 100%; height: 100%; min-height: 15rem; max-height: 29rem; object-fit: cover; object-position: center 44%; }
.text-link { display: inline-block; color: var(--wine); font-weight: 700; margin-top: 1.15rem; text-underline-offset: .2em; }

.rules-section { background: #f1e7dc; border-block: 1px solid #e6d8c9; }
.rules-layout { display: grid; grid-template-columns: .85fr 1fr; gap: clamp(2rem, 8vw, 7rem); align-items: start; }
.rules-layout .section-heading { margin: 0; }
.rule { border-bottom: 1px solid #d8c6bb; }
.rule:first-child { border-top: 1px solid #d8c6bb; }
.rule summary { list-style: none; display: flex; gap: 1rem; justify-content: space-between; align-items: center; min-height: 3.4rem; padding: .82rem .25rem; font-weight: 700; }
.rule summary::-webkit-details-marker { display: none; }
.rule-icon { border: 1px solid #c7a0a7; color: var(--wine); width: 1.65rem; height: 1.65rem; display: grid; place-items: center; border-radius: 50%; flex: none; font-size: 1.05rem; line-height: 1; }
.rule-icon::before { content: "+"; }
.rule[open] .rule-icon::before { content: "−"; }
.rule[open] .rule-icon { background: var(--wine); color: var(--white); border-color: var(--wine); }
.rule p { padding: 0 1.8rem 1.1rem .25rem; color: var(--muted); }

.travel-section { color: var(--white); background: var(--wine-deep); }
.travel-section .section-heading .eyebrow { color: var(--peach); }
.travel-section .section-heading > p:last-child { color: #e9d9df; }
.travel-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(100%, 41rem); margin-bottom: 1.15rem; }
.travel-tabs .tab { min-height: 3.15rem; background: #432934; border-color: #835b6b; color: #fff9f3; align-items: center; text-align: center; }
.travel-tabs .tab:hover { background: #5e3448; }
.travel-tabs .tab[aria-selected="true"] { background: var(--peach); color: var(--wine-deep); border-color: var(--peach); }
.travel-panel { background: var(--white); border-radius: .55rem; overflow: hidden; color: var(--ink); }
.travel-panel :focus-visible { outline-color: #ae5168; }
.package-layout { display: grid; grid-template-columns: .7fr 1.46fr; }
.price-card { background: #f4e6db; padding: clamp(1.5rem, 4vw, 3rem); border-right: 1px solid var(--line); }
.price-card h3 { font-size: 1.45rem; }
.price { display: block; color: var(--wine); font: 500 clamp(3.2rem, 6.9vw, 6rem)/1.1 var(--serif); letter-spacing: -.065em; margin-top: .38rem; }
.price-unit { margin-top: .2rem; font-weight: 700; }
.price-note { color: var(--muted); margin: .65rem 0 1.22rem; }
.package-details { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(.75rem, 3vw, 2rem); padding: clamp(1.5rem, 4vw, 3rem); }
.package-details ul { display: grid; gap: .5rem; margin: .85rem 0 0; padding: 0; list-style: none; }
.package-details li { padding-left: 1.3rem; position: relative; }
.package-details li::before { position: absolute; left: 0; top: .2rem; color: var(--wine); font-size: .75rem; font-weight: 700; content: "•"; }
.package-details .included li::before { content: "✓"; }
.package-details h3 { font-size: 1.43rem; }
.travel-info { padding: clamp(1.5rem, 4vw, 3rem); }
.travel-info > h3 { font-size: clamp(1.75rem, 3.5vw, 2.65rem); }
.option-intro { color: var(--muted); margin-top: .6rem; max-width: 42rem; }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.35rem 0; }
.option { padding: 1.1rem 1.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: .35rem; }
.option h4 { font-size: 1.23rem; font-weight: 700; margin-bottom: .35rem; }
.option-price { color: var(--wine); display: block; margin-bottom: .25rem; }
.option p { color: var(--muted); }
.transfer-list { margin: 1.2rem 0; max-width: 42rem; border-top: 1px solid var(--line); }
.transfer-list div { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.transfer-list dd { color: var(--wine); font-weight: 700; white-space: nowrap; }
.transfer-list ~ .button { margin-top: 1rem; }

.registration-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.registration-card { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.15rem, 3vw, 2rem); background: var(--white); border: 1px solid var(--line); border-radius: .42rem; }
.registration-card h3 { font-size: clamp(1.32rem, 2.8vw, 2rem); }
.deadline { font-weight: 700; color: var(--wine); margin: .53rem 0 1.05rem; }
.registration-card .button { margin-top: auto; }
.contact { margin-top: 1.45rem; display: flex; align-items: center; flex-wrap: wrap; gap: .45rem 1rem; }
.contact .email { color: var(--wine); font-weight: 700; text-underline-offset: .23em; overflow-wrap: anywhere; }
.copy-button { background: transparent; padding: .42rem .75rem; min-height: 2.55rem; border: 1px solid #caa6aa; border-radius: .34rem; color: var(--wine); font-size: .91rem; font-weight: 700; }
.copy-button:hover { background: #f4e5df; }
.copy-status { color: var(--muted); font-size: .875rem; }
.site-footer { padding-block: 1.7rem; background: #f1e7dc; border-top: 1px solid #e6d8c9; }
.footer-inner { display: grid; grid-template-columns: 1fr auto auto; align-items: start; gap: .7rem 2rem; }
.footer-inner strong { font: 600 1.13rem var(--serif); }
.footer-inner p, .credits, .back-top { font-size: .875rem; color: var(--muted); }
.credits summary, .back-top { font-weight: 650; }
.credits ul { padding-left: 1.1rem; }
.credits a { text-underline-offset: .2em; }
.no-script { padding-block: 1rem; }

@media (max-width: 61.25rem) {
  :root { --route-gap: 4.25rem; }
  .shell { width: calc(100% - 3rem); }
  #main-nav {
    display: none; position: absolute; inset: 100% 0 auto; padding: .7rem 1.5rem 1.15rem;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 .8rem 1.3rem #30212820;
  }
  #main-nav.is-open { display: grid; gap: .12rem; }
  #main-nav a, #main-nav .nav-register { width: fit-content; }
  .menu-toggle { display: grid; place-items: center; min-width: 2.55rem; min-height: 2.55rem; border: 1px solid var(--line); border-radius: .4rem; background: transparent; }
}
@media (max-width: 45rem) {
  .shell { width: calc(100% - 2.25rem); }
  .header-inner { min-height: 4.1rem; gap: .6rem; }
  .hero { min-height: 32rem; }
  .hero-image { object-position: 66% center; }
  .hero::after { background: linear-gradient(90deg, rgba(39,23,42,.93), rgba(39,23,42,.65) 65%, rgba(39,23,42,.35)), linear-gradient(0deg, #321a2e91, transparent 60%); }
  .hero-inner { padding-block: 4.35rem; }
  .hero h1 { font-size: clamp(3.5rem, 11.5vw, 5.75rem); margin-block: 1rem 1.2rem; }
  .facts { grid-template-columns: 1fr 1fr; padding-block: .45rem; }
  .facts div { padding: .7rem .75rem; }
  .facts div:nth-child(2n+1) { border-left: 0; padding-left: 0; }
  .facts div:nth-child(-n+2) { border-bottom: 1px solid #dfcebf; }
  .section-heading { margin-bottom: 1.45rem; }
  .program-panel, .rules-layout, .package-layout { grid-template-columns: 1fr; }
  .program-image { min-height: 0; max-height: 17.5rem; height: auto; aspect-ratio: 1.72; }
  .rules-layout { gap: 1.35rem; }
  .section-heading > p:last-child, .hero-lede { font-size: 1rem; }
  .price-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-inner { gap: .6rem 1rem; }
}
@media (max-width: 32rem) {
  :root { --route-gap: 3.3rem; }
  .header-inner { width: calc(100% - 1.5rem); }
  .brand { gap: .38rem; }
  .brand-icon { width: 1.75rem; height: 1.75rem; gap: 1.5px; }
  .brand-icon i:nth-child(3) { height: .9rem; }
  .brand-name { font-size: 1.14rem; }
  .languages button { min-width: 1.9rem; padding-inline: .25rem; }
  .header-actions { gap: .4rem; }
  .hero h1 { max-width: 8ch; font-size: clamp(3.5rem, 15vw, 5.1rem); }
  .hero-kicker::before { width: 1rem; }
  .hero-actions { gap: .6rem; }
  .hero-actions .button { padding-inline: .75rem; }
  .days-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .days-tabs .tab { min-height: 3.6rem; }
  .travel-tabs { gap: .35rem; }
  .travel-tabs .tab { padding: .43rem .2rem; font-size: .88rem; }
  .package-details, .option-grid, .registration-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr auto; }
  .footer-inner .credits { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 21rem) {
  .header-inner { width: calc(100% - 1.15rem); gap: .4rem; }
  .brand-name { font-size: 1.02rem; }
  .brand-icon { width: 1.5rem; height: 1.5rem; }
  .languages button { min-width: 1.72rem; }
  .menu-toggle { min-width: 2.2rem; }
  .hero-date { flex-direction: column; align-items: flex-start; gap: .2rem; }
  .hero-dot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.festival-switch { background: #f1e8de; border-top: 1px solid var(--line); }
.festival-switch-inner {
  display: flex; justify-content: center; align-items: center; gap: .54rem; min-height: 3rem;
}
.festival-switch-label {
  color: var(--muted); margin-right: .25rem; font-size: .875rem; font-weight: 700;
}
.festival-switch a {
  display: inline-flex; align-items: center; min-height: 2.15rem; padding: .24rem .88rem;
  border: 1px solid transparent; border-radius: .35rem; color: var(--muted);
  text-decoration: none; font-size: .9rem; font-weight: 700; line-height: 1.25; white-space: nowrap;
}
.festival-switch a:hover { border-color: #d8c8bb; color: var(--ink); }
.festival-switch a[aria-current="page"] { background: var(--white); color: var(--wine); border-color: #d6c4b7; }
section[id], main[id] { scroll-margin-top: 8.2rem; }

html[data-festival="lithuania"] {
  --wine: #34533e;
  --wine-deep: #22392f;
  --berry: #426247;
  --peach: #f2cd91;
  --gold: #f9deb2;
}
html[data-festival="lithuania"] :focus-visible { outline-color: #6a8d59; }
html[data-festival="lithuania"] .hero :focus-visible,
html[data-festival="lithuania"] .travel-tabs :focus-visible { outline-color: #ffdba5; }
html[data-festival="lithuania"] .hero { background: #25332a; }
html[data-festival="lithuania"] .hero h1 { font-size: clamp(3.65rem, 7.55vw, 7.6rem); }
html[data-festival="lithuania"] .hero-image { object-position: 55% 48%; }
html[data-festival="lithuania"] .hero::after {
  background: linear-gradient(90deg, rgba(24,39,30,.98), rgba(24,40,31,.86) 30%, rgba(24,39,31,.38) 63%, rgba(22,32,25,.12)),
    linear-gradient(0deg, rgba(17,29,21,.56), transparent 56%);
}
html[data-festival="lithuania"] .button-primary { color: #2c3022; }
html[data-festival="lithuania"] .button-wine:hover { background: #263d2d; }
html[data-festival="lithuania"] .button-outline { background: #26352b66; }
html[data-festival="lithuania"] .button-outline:hover { background: #304936; }
html[data-festival="lithuania"] .travel-tabs .tab { background: #314b3d; border-color: #718675; }
html[data-festival="lithuania"] .travel-tabs .tab:hover { background: #3f5a48; }
html[data-festival="lithuania"] .travel-tabs .tab[aria-selected="true"] { background: var(--peach); color: #263a2b; border-color: var(--peach); }
html[data-festival="lithuania"] .days-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html[data-festival="lithuania"] .registration-grid { grid-template-columns: minmax(0, 38rem); }
.travel-question .button { margin-top: 1.22rem; }

@media (max-width: 45rem) {
  html[data-festival="lithuania"] .hero-image { object-position: 59% center; }
  html[data-festival="lithuania"] .hero h1 { font-size: clamp(3.5rem, 11vw, 5.75rem); }
}
@media (max-width: 32rem) {
  .festival-switch-inner { gap: .25rem; }
  .festival-switch-label { display: none; }
  .festival-switch a { justify-content: center; min-width: 0; padding-inline: .58rem; }
  html[data-festival="lithuania"] .days-tabs { gap: .36rem; }
  html[data-festival="lithuania"] .days-tabs .tab { padding-inline: .42rem; }
  html[data-festival="lithuania"] .tab-date { font-size: 1.02rem; }
}
@media (max-width: 21rem) {
  html[data-festival="lithuania"] .brand-name { font-size: .98rem; }
}

.audience-switch { display: flex; flex-wrap: wrap; gap: .48rem; margin-top: 1.35rem; }
.audience-switch a {
  display: inline-flex; align-items: center; min-height: 2.37rem; padding: .26rem .7rem;
  border: 1px solid #f7e3c280; border-radius: .34rem; color: #fff8e9;
  font-size: .9rem; font-weight: 700; line-height: 1.25; text-decoration: none; background: #263d30b3;
}
.audience-switch a[aria-current="page"] { background: #e8ebd9; border-color: #e8ebd9; color: #263e2e; }
.audience-switch a:hover { border-color: #fff4e5; }
.audience-switch:not([hidden]) + .hero-actions { margin-top: 1rem; }
html[data-audience="international"] .days-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.agenda { margin-top: .95rem; border-top: 1px solid var(--line); }
.agenda > div {
  display: grid; grid-template-columns: minmax(5.1rem, .35fr) 1fr; gap: .75rem;
  padding: .36rem 0; border-bottom: 1px solid var(--line);
}
.agenda dt { color: var(--wine); font-weight: 700; }
.agenda dd { color: var(--muted); }
.registration-details { color: var(--muted); margin-bottom: 1.05rem; }
.festival-contact { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .9rem; margin-top: .85rem; color: var(--muted); }
.festival-contact a { font-weight: 700; color: var(--wine); text-underline-offset: .23em; }

@media (max-width: 32rem) {
  html[data-audience="international"] .days-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 45.01rem) {
  html[data-festival="lithuania"] .program-image { max-height: none; }
}
