/* Albany International Folk 'n' Shanty Festival – site styles */
:root {
  --sea: #0b6ec4;        /* bright blue – main brand colour */
  --deep: #063f6d;       /* deep blue – footer and video well */
  --rust: #a84e05;       /* dark orange – links and text on pale backgrounds */
  --rust-dark: #7d3a03;
  --orange: #f79420;     /* festival orange – buttons and highlights */
  --cream: #fff6e8;
  --paper: #ffffff;
  --sand: #ffe6c7;
  --brass: #ffd9a0;      /* pale orange – accents on blue */
  --ink: #12212e;
  --muted: #3d4b59;
  --line: #e8d3b4;
  --display: 'IM Fell English SC', Georgia, 'Times New Roman', serif;
  --serif: 'IM Fell English', Georgia, serif;
  --body: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--cream); }
img { max-width: 100%; display: block; }
a { color: var(--rust); }
a:hover { color: var(--rust-dark); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; color: var(--sea); margin: 0 0 .5em; }
h1 { font-size: clamp(3.5rem, 10vw, 8rem); }
h2 { font-size: clamp(2.3rem, 5vw, 4rem); }
h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
p { margin: 0 0 1em; max-width: 68ch; }

/* Header */
.site-header { background: var(--sea); position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 88px; }
.brand { position: relative; width: 132px; align-self: stretch; }
.brand img { position: absolute; top: 10px; left: 0; width: 132px; height: 132px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
.nav-toggle { display: none; background: none; border: 2px solid var(--brass); color: var(--paper); font: 600 1rem var(--body); padding: .5rem .9rem; border-radius: 4px; cursor: pointer; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2rem; }
.site-nav a { color: var(--cream); text-decoration: none; font-weight: 500; padding: .4rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--paper); border-bottom-color: var(--brass); }
.site-nav a[aria-current="page"] { font-weight: 600; border-bottom-color: var(--rust); }

.ribbon { background: var(--orange); color: var(--ink); text-align: center; font-weight: 600; letter-spacing: .08em; padding: .9rem 1rem .9rem 10rem; }
.ribbon span { white-space: nowrap; }

/* Buttons */
.btn { display: inline-block; background: var(--orange); color: var(--ink); text-decoration: none; font: 700 1rem var(--body); letter-spacing: .03em; padding: 1rem 1.6rem; border-radius: 4px; border: 0; cursor: pointer; }
.btn:hover { background: #ffab47; color: var(--ink); }
.btn-outline { background: transparent; border: 2px solid var(--brass); color: var(--paper); }
.btn-outline:hover { background: rgba(255,217,160,.18); }

/* Sections */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-sand { background: var(--sand); }
.section-paper { background: var(--paper); border-block: 1px solid #e0d3b6; }
.section-sea { background: var(--sea); color: var(--cream); }
.section-sea h1, .section-sea h2, .section-sea h3 { color: var(--paper); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.section-head h2 { margin: 0; }
.center { text-align: center; }
.center p { margin-inline: auto; }

/* Feature video */
.feature { background: var(--sea); padding: 4.5rem 0 0; }
.feature-title { color: var(--brass); text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.35rem; margin: 0 0 1.2rem; }
.video { position: relative; aspect-ratio: 16 / 9; background: var(--deep); border: 3px solid var(--brass); border-radius: 8px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 104px; height: 104px; border-radius: 50%; border: 2px solid var(--cream); background: var(--orange); display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.video-play:hover { background: #ffab47; }
.video-play svg { width: 38px; height: 38px; margin-left: 6px; }
.video-soon { position: absolute; left: 50%; bottom: 1.2rem; transform: translateX(-50%); background: rgba(12,27,41,.85); color: var(--paper); padding: .4rem 1rem; border-radius: 4px; font-weight: 600; }

/* Welcome */
.welcome { background: var(--sea); color: #eadfc8; padding: 6rem 0 7rem; }
.welcome .wrap { display: grid; grid-template-columns: 1fr 440px; gap: 4.5rem; align-items: center; }
.welcome h1 { color: var(--paper); margin-bottom: .3em; }
.welcome p { font-size: 1.25rem; line-height: 1.65; }
.welcome .arch { width: 100%; aspect-ratio: 440 / 520; object-fit: cover; object-position: center 40%; border-radius: 220px 220px 8px 8px; border: 3px solid var(--brass); }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.5rem; }
.tickets-note { border: 2px solid var(--brass); color: var(--paper); font-weight: 600; letter-spacing: .06em; padding: .9rem 1.4rem; border-radius: 4px; }
.wave { display: block; width: 100%; height: 60px; margin-top: -1px; }

/* Page hero (inner pages) */
.page-hero { background: var(--sea); color: #eadfc8; padding: 7rem 0 4rem; }
.page-hero h1 { color: var(--paper); font-size: clamp(3rem, 8vw, 6rem); }
.page-hero p { font-size: 1.2rem; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 1rem; }
.gallery-grid figure { margin: 0; position: relative; border-radius: 6px; overflow: hidden; background: var(--line); }
.gallery-grid .big { grid-column: span 2; grid-row: span 2; }
.gallery-grid .wide { grid-column: span 2; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
.gallery-grid button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.gallery-grid button:focus-visible { outline: 3px solid var(--brass); outline-offset: -3px; }
.gallery-grid figcaption { position: absolute; left: 0; bottom: 0; background: rgba(12,27,41,.85); color: var(--paper); font-size: .9rem; font-weight: 600; padding: .45rem .9rem; border-top-right-radius: 6px; pointer-events: none; }
.gallery-grid figcaption span { font-weight: 400; opacity: .85; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(12,27,41,.92); }
.lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 4px; }
.lightbox p { color: var(--paper); text-align: center; margin: .8rem auto 0; }
.lightbox-close { position: fixed; top: 1rem; right: 1rem; background: var(--rust); color: var(--paper); border: 0; border-radius: 4px; padding: .6rem 1rem; font: 600 1rem var(--body); cursor: pointer; }

/* Forms */
.contact-grid { display: grid; grid-template-columns: 380px 1fr; gap: 4.5rem; align-items: start; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: clamp(1.5rem, 4vw, 3rem); }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.3rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
label, legend { font-weight: 600; font-size: .95rem; }
.hint { font-size: .88rem; color: var(--muted); margin: 0; }
input, select, textarea { font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid #b9a882; border-radius: 4px; padding: .8rem .9rem; width: 100%; }
textarea { resize: vertical; min-height: 9rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1.3rem; }
.checks { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: .4rem; }
.checks label { font-weight: 400; display: flex; gap: .45rem; align-items: center; }
.checks input { width: auto; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 1rem 1.2rem; border-radius: 4px; margin-bottom: 1.5rem; font-weight: 600; }
.form-status.ok { background: #e3eed9; color: #2f4a1c; }
.form-status.err { background: #f6dcd2; color: #6e2710; }
.socials { display: flex; gap: .8rem; margin-top: 1rem; }
.socials a { width: 46px; height: 46px; border-radius: 50%; background: var(--sea); display: grid; place-items: center; }
.socials a:hover { background: var(--rust); }
.socials svg { width: 20px; height: 20px; }

/* Sponsors */
.sponsors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin: 2.5rem 0; }
.sponsors li { list-style: none; min-height: 100px; border: 1px solid var(--line); border-radius: 6px; display: grid; place-items: center; text-align: center; padding: 1rem; font-weight: 600; color: var(--muted); background: #fff; }
.sponsors { padding: 0; }

/* Testimonials */
.quotes { position: relative; max-width: 900px; margin: 0 auto; text-align: center; }
.quote { display: none; margin: 0; }
.quote.is-active { display: block; }
.quote blockquote { margin: 0 0 1.5rem; font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 3.2vw, 2.4rem); line-height: 1.35; color: var(--paper); }
.quote figcaption { color: var(--brass); font-weight: 500; }
.quote-controls { display: flex; justify-content: center; align-items: center; gap: 1.5rem; margin-top: 2.5rem; }
.quote-controls button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid #8ea4b8; background: transparent; color: var(--cream); cursor: pointer; display: grid; place-items: center; }
.quote-controls button:hover { border-color: var(--brass); }
.dots { display: flex; gap: .6rem; }
.dots span { width: 8px; height: 8px; border-radius: 4px; background: #5a7690; }
.dots span.is-active { width: 26px; background: var(--brass); }

/* Content blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 2rem; }
.panel h3 { margin-bottom: .4em; }
.steps { padding-left: 1.3rem; }
.steps li { margin-bottom: .8rem; max-width: 60ch; }
.member-no { display: inline-block; font-weight: 700; font-size: 1.3rem; letter-spacing: .05em; background: var(--sea); color: var(--paper); padding: .5rem 1rem; border-radius: 4px; margin: .5rem 0 1rem; }
.jump { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.jump a { color: var(--paper); border: 1px solid var(--brass); border-radius: 999px; padding: .45rem 1.1rem; text-decoration: none; font-weight: 500; }
.jump a:hover { background: rgba(224,185,143,.15); }
.anchor { scroll-margin-top: 1rem; }

/* FAQs */
.faq-group { margin-bottom: 3rem; }
.faq-group h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 1.12rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--rust); }
details[open] summary::after { content: "–"; }
details p { margin: .8rem 0 0; }
.venues { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; padding: 0; margin: 1rem 0 0; }
.venues li { list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: .9rem 1rem; }
.venues strong { display: block; }

/* Footer */
.site-footer { background: var(--deep); color: #b8c7d6; padding: 3.5rem 0 2.5rem; font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 2.5rem; align-items: center; }
.site-footer img { width: 96px; height: 96px; }
.footer-name { font-family: var(--display); font-size: 1.5rem; color: var(--cream); margin: 0 0 .2rem; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: flex-end; }
.site-footer a { color: #e8dcc0; text-decoration: none; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; }
.footer-small { grid-column: 1 / -1; border-top: 1px solid #22384d; padding-top: 1.5rem; margin: 0; max-width: none; font-size: .85rem; }

.placeholder-flag { font-size: .8rem; color: var(--brass); opacity: .9; }

/* Responsive */
@media (max-width: 1000px) {
  .welcome .wrap, .contact-grid, .split { grid-template-columns: 1fr; gap: 3rem; }
  .welcome .arch { max-width: 420px; }
  .sponsors { grid-template-columns: repeat(2, 1fr); }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .site-footer nav ul { justify-content: flex-start; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--sea); border-top: 1px solid #22405a; padding: 1rem 1.25rem 1.5rem; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: .2rem; align-items: flex-end; }
  .site-nav a { display: inline-block; font-size: 1.15rem; padding: .6rem 0; }
  .brand, .brand img { width: 104px; }
  .brand img { height: 104px; }
  .ribbon { padding-left: 7.5rem; text-align: right; font-size: .9rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery-grid .big, .gallery-grid .wide { grid-column: auto; grid-row: auto; }
  .sponsors { grid-template-columns: 1fr; }
  .video-play { width: 76px; height: 76px; }
}

/* Fixes */
[hidden] { display: none !important; }
.ribbon { margin: 0; max-width: none; }
.feature-title, .tickets-note, .footer-small, .center p { max-width: none; }
.video-soon { white-space: nowrap; margin: 0; }
@media (max-width: 860px) { .ribbon { padding-right: 1rem; } }
.sponsors { grid-template-columns: repeat(3, 1fr); max-width: 960px; margin-inline: auto; }
.sponsors li { min-height: 150px; padding: 1.2rem 1.5rem; }
.sponsors img { max-height: 100px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
@media (max-width: 1000px) { .sponsors { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .sponsors { grid-template-columns: repeat(2, 1fr); } .sponsors li { min-height: 110px; padding: .8rem; } .sponsors img { max-height: 70px; } }
.video video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }

/* Bigger header logo */
.brand { width: 180px; }
.brand img { width: 180px; height: 180px; top: 8px; }
.ribbon { padding-left: 13rem; }

/* Feature: video with dates panel beside it */
.feature { padding: 5.5rem 0 0; }
.feature-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.feature-video .feature-title { text-align: left; margin: 1rem 0 0; font-size: 1.15rem; }
.feature-side { color: #eadfc8; }
.feature-side p { margin: 0; }
.fs-when { font-family: var(--display); color: var(--paper); line-height: .9; }
.fs-days { display: block; font-size: clamp(5rem, 10vw, 9rem); letter-spacing: -.01em; }
.fs-month { display: block; font-size: clamp(2rem, 3.6vw, 3.1rem); color: var(--brass); margin-top: .35rem; }
.fs-where { margin-top: 1rem !important; font-size: 1.05rem; }
.fs-rule { display: block; width: 200px; height: 14px; margin: 1.6rem 0; }
.fs-count { font-size: 1.15rem; margin-bottom: 1rem !important; }
.fs-count strong { font-family: var(--display); font-weight: 400; font-size: 2.6rem; color: var(--brass); margin-right: .15em; }
.fs-blurb { font-size: 1.1rem; line-height: 1.6; margin-bottom: 1.8rem !important; max-width: 34ch; }

@media (max-width: 1000px) {
  .feature-grid { grid-template-columns: 1fr; }
  .fs-days { font-size: 5.5rem; }
}
@media (max-width: 860px) {
  .brand, .brand img { width: 120px; }
  .brand img { height: 120px; }
  .ribbon { padding-left: 8.5rem; }
  .feature { padding-top: 3.5rem; }
}
@media (max-width: 860px) { .ribbon { font-size: .82rem; letter-spacing: .02em; padding-right: .75rem; } .ribbon span { white-space: normal; } }
@media (max-width: 860px) { .ribbon span:last-child { white-space: nowrap; } }

/* Albany Shantymen feature */
.crew-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.crew-pic { margin: 0; transform: rotate(-1.5deg); }
.crew-pic img { width: 100%; height: auto; border: 10px solid var(--paper); border-radius: 4px; box-shadow: 0 18px 40px rgba(18,38,58,.25); }
.crew-pic figcaption { font-family: var(--serif); font-style: italic; color: var(--muted); margin-top: .7rem; text-align: center; }
.gallery-grid .full { grid-column: 1 / -1; grid-row: span 3; }
@media (max-width: 1000px) { .crew-grid { grid-template-columns: 1fr; } .crew-pic { max-width: 640px; } }
@media (max-width: 860px) { .gallery-grid .full { grid-row: span 2; } }
@media (max-width: 520px) { .gallery-grid .full { grid-column: auto; grid-row: auto; } }
@media (prefers-reduced-motion: reduce) { .crew-pic { transform: none; } }

/* ---- Wordmark logo replaces the round badge ---- */
.brand { position: static; width: auto; max-width: 340px; flex: 0 1 auto; align-self: center; }
.brand img { position: static; width: 100%; height: auto; filter: none; }
.ribbon { padding: .9rem 1rem; text-align: center; }
.site-footer img { width: 72px; height: 72px; opacity: .9; }

/* Longer date line needs a smaller display size */
.fs-days { font-size: clamp(2.6rem, 5.2vw, 4.6rem); line-height: 1.02; }
.fs-month { font-size: clamp(1.8rem, 3vw, 2.6rem); }

@media (max-width: 860px) {
  .brand { max-width: 220px; }
  .ribbon { padding: .8rem 1rem; text-align: center; font-size: .85rem; }
}
@media (max-width: 520px) { .brand { max-width: 190px; } }
.site-header .wrap { min-height: 0; padding-block: 1.1rem; gap: 1.5rem; }
.brand img { max-height: 92px; width: auto; max-width: 100%; }
@media (max-width: 860px) { .brand img { max-height: 62px; } .site-header .wrap { padding-block: .8rem; } }
