@layer reset, base, components, preset;
@layer base{:root{--primary:#951337;--secondary:#075e2b}}
/*
 * Festival preset — cheerful dance & music school design
 * Owner logo supplies burgundy, green and warm brown accents.
 * References adapted:
 * - Nrityagram: sunlit warm cream daylight paper (#fff7ea) and uncrowded framing around natural photos of movement.
 * - Alvin Ailey: full-stage performance video leading the first screen, extra-bold confident display type, dynamic crops.
 * - Pineapple Dance Studios London: sunny marigold colour energy, rounded frames, and playful studio shapes.
 */
@layer preset {
  :root {
    --paper: #fff7ea;
    --ink: #301c18;
    --muted: #60483b;
    --line: #eed8bd;
    --festival-red: #951337;
    --festival-red-ink: #951337;
    --festival-marigold: #f5a524;
    --festival-brown: #8a4b20;
    --festival-brown-ink: #764f30;
    --festival-green: #075e2b;
    --festival-green-ink: #075e2b;
    --festival-band: #ffefd2;
  }
  ::selection {
    background: #ffe09e;
    color: #301c18;
  }
  a:focus-visible,
  summary:focus-visible,
  button:focus-visible,
  input:focus-visible,
  textarea:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
  }
  h1,
  h2,
  h3,
  .brand,
  .footer-name,
  .door-title {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.035em;
    color: var(--ink);
  }
  html[lang=ne] h1,
  html[lang=ne] h2,
  html[lang=ne] h3,
  html[lang=ne] .brand,
  html[lang=ne] .footer-name,
  html[lang=ne] .door-title {
    font-weight: 800;
    letter-spacing: -0.01em;
  }
  html[lang=ne] h1 {
    line-height: 1.28;
  }
  html[lang=ne] h2,
  html[lang=ne] h3 {
    line-height: 1.42;
  }
  .eyebrow {
    color: var(--secondary, var(--festival-brown-ink));
    font-weight: 800;
    letter-spacing: 0.11em;
  }
  .eyebrow-line {
    background: var(--festival-marigold);
    height: 3px;
    border-radius: 999px;
  }
  .eyebrow-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--festival-green);
    box-shadow: 15px 0 0 var(--festival-marigold), 30px 0 0 var(--festival-brown);
    margin-inline-end: 34px;
    flex-shrink: 0;
  }

  /* Header: sunlit cream bar with festive burgundy diamond & pill phone CTA */
  .site-header {
    background: #fffaf2;
    border-bottom: 2px solid var(--line);
  }
  .header-inner {
    min-height: 70px;
  }
  .site-header .brand {
    color: var(--ink);
    font-size: 1.02rem;
  }
  .site-header .brand svg {
    width: 30px;
    height: 30px;
    color: var(--festival-red);
  }
  .site-header .desktop-nav a {
    color: var(--ink);
    font-weight: 600;
  }
  .site-header .desktop-nav a[aria-current=page],
  .site-header .mobile-menu nav a[aria-current=page] {
    color: var(--primary, var(--festival-red-ink));
    text-decoration-thickness: 2.5px;
    text-underline-offset: 7px;
  }
  .site-header .language-switch a {
    color: var(--ink);
    border-radius: 999px;
  }
  .site-header .language-switch a[aria-current=true] {
    background: var(--primary, var(--festival-red-ink));
    color: #ffffff;
  }
  .site-header .mobile-menu nav {
    background: #fffaf2;
    border: 2px solid var(--ink);
    border-radius: 16px;
  }
  .header-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 6px 16px;
    background: #ffffff;
    border: 2px solid var(--festival-red);
    border-radius: 999px;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
    transition: background-color 0.15s ease, transform 0.15s ease;
  }
  .header-phone:hover {
    background: var(--festival-band);
    transform: translateY(-1px);
  }

  /* Nepali festival bunting strip: dress red, marigold, warm brown, logo green */
  .festival-bunting {
    height: 18px;
    width: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='18' viewBox='0 0 160 18'%3E%3Cpath d='M0 1.5 H160' stroke='%23301c18' stroke-width='1.5' fill='none'/%3E%3Cpolygon points='4,2 36,2 20,16' fill='%23951337'/%3E%3Cpolygon points='44,2 76,2 60,16' fill='%23f5a524'/%3E%3Cpolygon points='84,2 116,2 100,16' fill='%238a4b20'/%3E%3Cpolygon points='124,2 156,2 140,16' fill='%23075e2b'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: center top;
  }

  /* Sunny marigold buttons with dark warm ink (AA contrast). */
  .button,
  .button.secondary,
  .button.light {
    background-color: var(--festival-marigold);
    color: var(--ink);
    border: 2px solid var(--ink);
    border-radius: 999px;
    font-weight: 800;
    padding: 12px 26px;
    box-shadow: 0 3px 0 var(--ink);
    transition: transform 0.15s ease, background-color 0.15s ease;
  }
  .button:hover,
  .button.secondary:hover,
  .button.light:hover {
    background-color: #ffbe42;
    color: var(--ink);
    transform: translateY(-2px);
  }

  /* Hero: Kathak stage video first, soft marigold/brown blobs behind, 1-line h1 + Call button */
  .hero-festival {
    position: relative;
    isolation: isolate;
    overflow: clip;
    padding: 0 0 36px;
  }
  .hero-festival::before,
  .hero-festival::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    z-index: -1;
  }
  .hero-festival::before {
    width: 360px;
    height: 360px;
    top: 24px;
    left: -120px;
    background: radial-gradient(circle, rgba(245, 165, 36, 0.24) 0%, rgba(245, 165, 36, 0) 70%);
  }
  .hero-festival::after {
    width: 380px;
    height: 380px;
    top: 40px;
    right: -130px;
    background: radial-gradient(circle, rgba(138, 75, 32, 0.2) 0%, rgba(138, 75, 32, 0) 70%);
  }
  .festival-stage-wrap {
    padding-top: 18px;
    max-width: 980px;
  }
  .festival-stage-frame {
    width: 100%;
    border-radius: 22px;
    background: transparent;
    overflow: visible;
  }
  .festival-stage-frame .clip-frame,
  .festival-stage-frame > .video-link,
  .festival-stage-frame > picture {
    border-radius: 22px;
    border: 2.5px solid var(--ink);
    box-shadow: 0 8px 0 var(--festival-marigold);
    overflow: hidden;
    background: #301c18;
  }
  .festival-stage-frame .clip-video,
  .festival-stage-frame picture,
  .festival-stage-frame img {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: clamp(230px, 50svh, 460px);
    object-fit: cover;
    object-position: 50% 42%;
  }
  .festival-stage-frame .clip-box {
    gap: 6px;
  }
  .festival-stage-frame .clip-ext-link {
    align-self: flex-end;
    font-size: 0.78rem;
    min-height: 28px;
  }
  .festival-hero-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 16px;
  }
  .festival-hero-copy {
    min-width: 0;
    flex: 1 1 320px;
  }
  .festival-hero-copy .eyebrow {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
  }
  .festival-hero-bar h1 {
    color: var(--ink);
    font-size: clamp(2.05rem, 3.8vw, 3.25rem);
    line-height: 1.08;
    margin: 0;
    max-width: 20ch;
  }
  .festival-hero-bar .hero-actions {
    margin: 0;
  }

  /* Playful rounded quick-doors strip in burgundy, marigold & logo green accents */
  .festival-doors {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 26px;
  }
  .festival-door {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    background-color: #ffffff;
    border: 2px solid var(--ink);
    border-top-width: 6px;
    border-top-color: var(--festival-red);
    border-radius: 18px;
    text-decoration: none;
    color: var(--ink);
    transition: transform 0.15s ease;
  }
  .festival-door[data-accent="2"] {
    border-top-color: var(--festival-marigold);
  }
  .festival-door[data-accent="3"] {
    border-top-color: var(--festival-green);
  }
  .festival-door:hover {
    transform: translateY(-2px);
  }
  .festival-door .door-index {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--primary, var(--festival-red-ink));
  }
  .festival-door[data-accent="3"] .door-index {
    color: var(--festival-green-ink);
  }
  .festival-door .door-title {
    font-size: 1.22rem;
    line-height: 1.2;
    color: var(--ink);
  }
  .festival-door .door-text {
    font-size: 0.9rem;
    color: var(--muted);
  }
  .festival-door .door-cta {
    margin-top: auto;
    padding-top: 4px;
    font-weight: 800;
    color: var(--primary, var(--festival-red-ink));
  }

  /* Inner page hero */
  .hero-inner {
    border-bottom: 2px solid var(--line);
    padding-block: 26px 52px;
  }
  .hero-inner h1 {
    color: var(--ink);
  }

  /* Classes cards with rounded frames & Kathak skirt-swirl fallback motif */
  .cards-section {
    border-top: 2px solid var(--line);
    padding-block: 56px 68px;
  }
  .section-heading h2 {
    color: var(--ink);
  }
  .card {
    background-color: #ffffff;
    border: 2px solid var(--ink);
    border-radius: 20px;
    overflow: hidden;
  }
  .card[data-accent="1"] {
    box-shadow: 0 5px 0 var(--festival-red);
  }
  .card[data-accent="2"] {
    box-shadow: 0 5px 0 var(--festival-marigold);
  }
  .card[data-accent="3"] {
    box-shadow: 0 5px 0 var(--festival-green);
  }
  .card-image picture,
  .card-image img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: 50% 36%;
  }
  .card h3 {
    color: var(--ink);
  }
  .festival-motif {
    position: relative;
    background-color: #fff0d4;
    overflow: hidden;
    border-bottom: 2px solid var(--ink);
  }
  .festival-motif svg {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 7;
    display: block;
  }
  .festival-motif .card-number {
    position: absolute;
    top: 12px;
    left: 16px;
    margin: 0;
    padding: 2px 10px;
    border-radius: 999px;
    background-color: #ffffff;
    border: 1.5px solid var(--ink);
    color: var(--ink);
    font-weight: 800;
  }

  /* Bright movement strip: studio class clip (portrait <=280px) + festival stage clip (landscape <=620px) */
  .festival-clips-band {
    position: relative;
    background-color: var(--festival-band);
    border-top: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    padding-block: 48px 54px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='28' viewBox='0 0 640 28'%3E%3Cpath d='M0 16 Q80 2 160 16 T320 16 T480 16 T640 16' fill='none' stroke='%23f5a524' stroke-width='2.5' stroke-opacity='0.45'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: center bottom 8px;
  }
  .festival-clips-grid {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 620px);
    gap: 28px;
    justify-content: center;
    align-items: start;
  }
  .festival-clip-card {
    margin: 0;
    min-width: 0;
  }
  .festival-clip-card .clip-frame {
    border-radius: 20px;
    border: 2px solid var(--ink);
    box-shadow: 0 5px 0 var(--festival-brown);
  }
  .festival-clip-card:last-child .clip-frame {
    box-shadow: 0 5px 0 var(--festival-green);
  }
  .festival-clip-card .clip-box.is-portrait .clip-video {
    aspect-ratio: 4 / 5;
    object-position: 50% 52%;
  }
  .festival-clip-card .clip-box.is-landscape .clip-video {
    aspect-ratio: 16 / 9;
    object-position: 50% 45%;
  }
  .festival-clip-card figcaption {
    padding-top: 12px;
    font-size: 0.88rem;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  /* Gallery strip & gallery page: wide shots only, capped <=360px so 360px/540px clips never stretch */
  .home-strip {
    padding-block: 48px 54px;
    border-bottom: 2px solid var(--line);
  }
  .home-strip .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px;
  }
  .gallery-grid .photo-link,
  .card-photo-grid .photo-link,
  .gallery-grid .video-link:not(.clip-ext-link),
  .gallery-grid .clip-frame {
    border-radius: 16px;
    border: 2px solid var(--ink);
    overflow: hidden;
  }
  .gallery-grid > figure > picture > img,
  .card-photo-grid > figure > picture > img {
    border-radius: 16px;
    border: 2px solid var(--ink);
  }
  .gallery-grid .photo-link img,
  .card-photo-grid .photo-link img {
    border-radius: 0;
  }
  .gallery-grid img,
  .card-photo-grid img,
  .gallery-grid .clip-video {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: 50% 42%;
  }
  .gallery-grid .clip-box.is-portrait .clip-video {
    object-position: 50% 52%;
  }

  .intro-band {
    border-top: 0;
    border-bottom: 2px solid var(--line);
  }
  .story-section {
    border-top: 0;
  }
  .little-star {
    color: var(--festival-marigold);
  }
  .prose h2 {
    color: var(--ink);
  }

  /* Sunny closing visit band */
  .visit-section {
    background-color: var(--festival-band);
    color: var(--ink);
    border-top: 2px solid var(--ink);
  }
  .visit-section .eyebrow {
    color: var(--secondary, var(--festival-brown-ink));
  }
  .visit-section h2 {
    color: var(--ink);
  }
  .visit-section .button.light {
    background-color: var(--primary, var(--festival-red-ink));
    color: #ffffff;
    border-color: var(--ink);
  }
  .visit-section .button.light:hover {
    background-color: #7b102d;
    color: #ffffff;
  }
  .visit-section .button:focus-visible {
    outline-color: var(--ink);
  }

  .site-footer {
    background-color: #fffaf2;
    border-top: 2px solid var(--line);
  }
  .mobile-contact {
    background-color: var(--ink);
    color: #fff7ea;
    border-top: 3px solid var(--festival-marigold);
  }

  @media (max-width: 959px) {
    .home-strip .gallery-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .festival-clips-grid {
      grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
      gap: 20px;
    }
  }

  @media (max-width: 699px) {
    .header-inner {
      min-height: 58px;
      padding-block: 8px;
      flex-wrap: nowrap;
    }
    .site-header .brand {
      font-size: 0.8rem;
    }
    .site-header .brand svg {
      width: 24px;
      height: 24px;
    }
    .site-header .brand img {
      width: auto;
      height: 40px;
    }
    .site-header .brand span {
      overflow-wrap: normal;
      word-break: normal;
    }
    /* Phones: the sticky bottom "Call us" bar already carries the call action. */
    .header-phone {
      display: none;
    }
    .festival-bunting {
      height: 14px;
      background-size: 124px 14px;
    }
    .hero-festival {
      padding-bottom: 26px;
    }
    .festival-stage-wrap {
      padding-top: 12px;
    }
    .festival-stage-frame .clip-frame,
    .festival-stage-frame > .video-link,
    .festival-stage-frame > picture {
      border-radius: 16px;
      box-shadow: 0 5px 0 var(--festival-marigold);
    }
    .festival-hero-bar {
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
      padding-top: 12px;
    }
    .festival-hero-copy {
      flex: none;
      width: 100%;
    }
    .festival-hero-bar h1 {
      font-size: 1.9rem;
      line-height: 1.12;
    }
    .festival-hero-bar .button {
      min-height: 46px;
      padding: 10px 22px;
    }
    .festival-doors {
      grid-template-columns: 1fr;
      gap: 12px;
      margin-top: 20px;
    }
    .festival-door {
      padding: 14px 16px;
    }
    .festival-clips-band {
      padding-block: 36px 42px;
    }
    .festival-clips-grid {
      grid-template-columns: 1fr;
      gap: 22px;
    }
    .festival-clip-card:has(.is-portrait) {
      max-width: 300px;
    }
    .home-strip .gallery-grid,
    .gallery-grid,
    .card-photo-grid {
      grid-template-columns: minmax(0, 300px);
      justify-content: center;
      gap: 24px;
    }
  }

  @media (max-width: 389px) {
    .header-inner {
      flex-wrap: wrap;
    }
  }
}

.brand img{height:48px;width:auto;max-height:48px;flex-shrink:0}
:root{--primary:#951337;--secondary:#075e2b}
@media (max-width:699px){.site-header .brand img{height:40px;max-height:40px}}