:root {
  --ink: #251b1d;
  --muted: #6f6263;
  --paper: #f8eee1;
  --paper-deep: #efdfcd;
  --white: #fff9f0;
  --wine: #8f2637;
  --wine-dark: #6f1727;
  --rose: #dca2ad;
  --gold: #edb84c;
  --blue: #6e9bb2;
  --green: #7b9d78;
  --line: rgba(71, 41, 45, .16);
  --shadow: 0 24px 70px rgba(69, 37, 39, .12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 32%, rgba(237, 184, 76, .1), transparent 28rem),
    radial-gradient(circle at 92% 70%, rgba(220, 162, 173, .11), transparent 32rem),
    linear-gradient(180deg, #fbf3e8 0%, var(--paper) 48%, #f3e4d4 100%);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 12px 18px; color: #fff; background: var(--wine-dark); border-radius: 10px; }
.skip-link:focus { top: 12px; }

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 238, 225, .92);
  backdrop-filter: blur(14px);
}
.nav-wrap { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 700; letter-spacing: -.02em; }
.brand-dot { width: 18px; height: 18px; border-radius: 6px 7px 5px 8px; background: var(--wine); box-shadow: 8px -6px 0 -4px var(--gold), -7px 6px 0 -4px var(--blue); transform: rotate(-8deg); }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { color: var(--muted); font-size: .94rem; font-weight: 600; text-decoration: none; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--wine); }

.hero {
  position: relative;
  display: flex;
  min-height: clamp(680px, 59vw, 840px);
  align-items: flex-start;
  overflow: hidden;
  padding: clamp(92px, 10vw, 150px) 0 clamp(260px, 24vw, 340px);
  background-color: #f7ead8;
  background-image:
    linear-gradient(180deg, rgba(255, 250, 241, .22) 0%, rgba(255, 248, 236, .08) 56%, rgba(247, 234, 216, .04) 100%),
    url("../img/hero-illustration.webp");
  background-position: center, center bottom;
  background-repeat: no-repeat;
  background-size: 100% 100%, cover;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 5% 18% 36%;
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(255, 249, 239, .72), rgba(255, 249, 239, 0) 72%);
}
.hero-grid { position: relative; }
.hero-copy { width: min(860px, 100%); margin-inline: auto; text-align: center; }
.eyebrow { margin: 0 0 16px; color: var(--wine); font-size: .76rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.hero h1, .section-heading h2, .about-section h2, .detail-header h1, .error-page h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.045em;
}
.hero h1 { max-width: 860px; font-size: clamp(3.45rem, 6.4vw, 6.8rem); }
.hero .hero-logo-heading { max-width: none; font-size: 0; line-height: 0; }
.hero-logo { width: min(100%, 820px); height: auto; margin-inline: auto; }
.hero-lead { max-width: 800px; margin: 28px auto 0; color: #59494a; font-size: clamp(1.04rem, 1.4vw, 1.22rem); line-height: 1.72; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--wine); box-shadow: 0 12px 28px rgba(143, 38, 55, .22); }
.button-primary:hover { background: var(--wine-dark); }
.button-quiet { border-color: var(--line); background: rgba(255, 253, 249, .7); }
.events-section {
  padding: 112px 0 126px;
  background:
    radial-gradient(circle at 4% 16%, rgba(237, 184, 76, .1), transparent 22rem),
    radial-gradient(circle at 96% 80%, rgba(110, 155, 178, .08), transparent 26rem),
    linear-gradient(180deg, rgba(255, 249, 240, .48), rgba(246, 233, 217, .72));
}
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 46px; }
.section-heading h2, .about-section h2 { font-size: clamp(2.8rem, 5vw, 5rem); }
.section-heading > p { max-width: 260px; margin: 0 0 8px; color: var(--muted); text-align: right; }
.event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.event-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 10px 30px rgba(65, 38, 41, .06); transition: transform .25s ease, box-shadow .25s ease; }
.event-card:hover { transform: translateY(-6px); box-shadow: 0 26px 54px rgba(65, 38, 41, .13); }
.event-cover { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--paper-deep); text-decoration: none; }
.event-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.event-card:hover .event-cover img { transform: scale(1.035); }
.event-cover time { position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; justify-content: center; min-width: 58px; min-height: 34px; padding: 0 13px; border-radius: 999px; color: #fff; background: rgba(45, 24, 28, .76); backdrop-filter: blur(8px); font-weight: 700; font-size: .84rem; }
.cover-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--wine); font-family: Georgia, "Times New Roman", serif; font-size: 3rem; background: radial-gradient(circle at 25% 28%, var(--gold) 0 7px, transparent 8px), radial-gradient(circle at 75% 65%, var(--blue) 0 12px, transparent 13px), var(--paper-deep); }
.event-card-body { padding: 24px 24px 26px; }
.event-place { min-height: 20px; margin: 0 0 10px; color: var(--wine); font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.event-card h3 { margin: 0 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; line-height: 1.15; letter-spacing: -.025em; }
.event-card h3 a { text-decoration: none; }
.event-card h3 a:hover { color: var(--wine); }
.event-card-body > p:not(.event-place) { min-height: 72px; margin: 0 0 18px; color: var(--muted); font-size: .92rem; line-height: 1.6; }
.text-link { display: inline-flex; gap: 8px; align-items: center; color: var(--wine); font-weight: 700; text-underline-offset: 4px; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(3px); }
.empty-state { padding: 70px 30px; border: 1px dashed var(--line); border-radius: var(--radius); background: rgba(255,255,255,.45); text-align: center; }
.empty-state strong { font-family: Georgia, "Times New Roman", serif; font-size: 2rem; }
.empty-state p { color: var(--muted); }

.about-section { padding: 110px 0; color: #fff; background: var(--wine-dark); position: relative; overflow: hidden; }
.about-section::after { content: ""; position: absolute; width: 540px; height: 540px; right: -280px; top: -180px; border: 54px solid rgba(255,255,255,.06); border-radius: 50%; }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; position: relative; z-index: 1; }
.about-section .eyebrow { color: var(--rose); }
.about-copy { padding-top: 20px; }
.about-copy p { margin: 0 0 22px; color: rgba(255,255,255,.78); font-size: 1.1rem; line-height: 1.75; }
.about-copy .text-link { color: #fff; }

.detail-header { padding: 84px 0 60px; }
.detail-heading-grid { display: grid; grid-template-columns: 1fr 330px; align-items: end; gap: 70px; }
.back-link { display: inline-flex; gap: 9px; margin-bottom: 46px; color: var(--muted); font-weight: 700; text-decoration: none; }
.back-link:hover { color: var(--wine); }
.detail-header h1 { max-width: 850px; font-size: clamp(3rem, 6vw, 6rem); }
.event-facts { margin: 0; border-top: 1px solid var(--line); }
.event-facts div { padding: 17px 0; border-bottom: 1px solid var(--line); }
.event-facts dt { margin-bottom: 5px; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.event-facts dd { margin: 0; font-weight: 600; line-height: 1.45; }
.detail-cover {
  height: clamp(190px, 22vw, 250px);
  margin-bottom: clamp(52px, 7vw, 82px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper-deep);
  box-shadow: 0 18px 48px rgba(69, 37, 39, .1);
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.detail-body-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(50px, 7vw, 92px); align-items: start; padding-bottom: 120px; }
.detail-body-grid-wide { grid-template-columns: minmax(0, 820px); }
.detail-prose { max-width: 720px; }
.prose { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 1.12rem; line-height: 1.85; white-space: normal; }
.detail-sidebar { display: grid; gap: 22px; align-self: start; }
.detail-media-card,
.video-card { padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255, 249, 240, .88); box-shadow: 0 18px 48px rgba(69, 37, 39, .1); }
.detail-media-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.detail-media-heading .eyebrow { margin-bottom: 6px; }
.detail-media-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; line-height: 1.1; }
.detail-media-heading > span { flex: 0 0 auto; padding-bottom: 2px; color: var(--muted); font-size: .78rem; font-weight: 700; }
.detail-thumbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.detail-thumb { position: relative; display: block; min-height: 0; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 13px; background: var(--paper-deep); text-decoration: none; }
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease, filter .28s ease; }
.detail-thumb-main { display: flex; grid-column: 1 / -1; max-height: 360px; aspect-ratio: auto; align-items: center; justify-content: center; background: #f2e2cf; }
.detail-thumb-main img { width: auto; max-width: 100%; height: auto; max-height: 360px; object-fit: contain; }
.detail-thumbs-count-2 .detail-thumb:not(.detail-thumb-main) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.detail-thumb-action { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 11px; border-radius: 999px; color: #fff; background: rgba(45, 24, 28, .82); backdrop-filter: blur(8px); font-size: .72rem; font-weight: 700; opacity: 0; transform: translateY(4px); transition: opacity .2s ease, transform .2s ease; }
.detail-thumb-action span { font-size: 1rem; line-height: 1; }
.detail-thumb:hover img { transform: scale(1.02); filter: saturate(1.06); }
.detail-thumb:hover .detail-thumb-action,
.detail-thumb:focus-visible .detail-thumb-action { opacity: 1; transform: translateY(0); }
.detail-thumb:focus-visible { outline: 3px solid var(--wine); outline-offset: 3px; }
.detail-media-hint { margin: 12px 2px 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.detail-video-card .eyebrow { margin-bottom: 12px; }
.detail-video-card .video-frame-consent { min-height: 0; }
.detail-video-card .youtube-consent { min-height: 210px; padding: 20px 16px; }
.detail-video-card .youtube-consent iframe { min-height: 0; }
.detail-video-card .youtube-consent p { margin-bottom: 14px; }
.video-card { align-self: start; }
.video-frame { position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: 14px; background: #201a1b; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.image-lightbox { position: fixed; z-index: 2000; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(28, 20, 22, .92); backdrop-filter: blur(12px); }
.image-lightbox[hidden] { display: none; }
.image-lightbox-dialog { width: min(1160px, 100%); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); outline: 0; }
.image-lightbox-bar { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 4px 10px 10px; color: #fff; }
.image-lightbox-bar strong { font-size: .88rem; letter-spacing: .04em; }
.image-lightbox-close,
.image-lightbox-arrow { display: inline-grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .08); cursor: pointer; }
.image-lightbox-arrow[hidden] { display: none; }
.image-lightbox-close { font-size: 1.7rem; }
.image-lightbox-arrow { font-size: 1.2rem; }
.image-lightbox-close:hover,
.image-lightbox-arrow:hover { background: rgba(255, 255, 255, .18); }
.image-lightbox-close:focus-visible,
.image-lightbox-arrow:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.image-lightbox-stage { display: grid; grid-template-columns: 50px minmax(0, 1fr) 50px; gap: 18px; align-items: center; }
.image-lightbox-prev { grid-column: 1; grid-row: 1; }
.image-lightbox-stage figure { display: grid; grid-column: 2; grid-row: 1; width: 100%; max-height: calc(100vh - 116px); max-height: calc(100dvh - 116px); justify-items: center; margin: 0; }
.image-lightbox-next { grid-column: 3; grid-row: 1; }
.image-lightbox-stage img { width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 154px); max-height: calc(100dvh - 154px); object-fit: contain; border-radius: 12px; box-shadow: 0 24px 70px rgba(0, 0, 0, .34); }
.image-lightbox-stage figcaption { min-height: 28px; padding-top: 10px; color: rgba(255, 255, 255, .76); font-size: .82rem; text-align: center; }
body.lightbox-open { overflow: hidden; }

.error-page { min-height: 62vh; padding-block: 100px; }
.error-page h1 { max-width: 760px; font-size: clamp(3rem, 7vw, 6rem); }
.error-page > p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; margin: 24px 0 30px; }

.site-footer { padding: 70px 0; border-top: 1px solid var(--line); background: #fff7ec; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 36px 70px; align-items: start; }
.footer-grid strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; }
.footer-grid p { margin: 8px 0 0; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 24px; }
.footer-links a { color: var(--muted); font-weight: 600; text-underline-offset: 4px; }
.copyright { grid-column: 1 / -1; padding-top: 26px; border-top: 1px solid var(--line); font-size: .85rem; }

@media (max-width: 960px) {
  .about-grid, .detail-heading-grid, .detail-body-grid { grid-template-columns: 1fr; }
  .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid, .detail-body-grid { gap: 42px; }
  .event-facts { max-width: 600px; }
  .detail-prose { max-width: 760px; }
  .detail-sidebar { width: min(100%, 620px); }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 28px, 1180px); }
  .nav-wrap { min-height: 66px; }
  .main-nav a:not(:first-child) { display: none; }
  .hero {
    min-height: 720px;
    padding: 72px 0 300px;
    background-size: 100% 100%, auto 47%;
  }
  .hero::before { inset: 3% 2% 42%; }
  .hero-logo { width: min(100%, 560px); }
  .events-section { padding-block: 78px 90px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 14px; text-align: left; }
  .event-grid { grid-template-columns: 1fr; }
  .event-card-body > p:not(.event-place) { min-height: 0; }
  .about-section { padding-block: 76px; }
  .detail-header { padding-top: 60px; }
  .back-link { margin-bottom: 34px; }
  .detail-cover { height: 190px; margin-bottom: 44px; border-radius: 18px; }
  .detail-body-grid { padding-bottom: 84px; }
  .detail-media-card,
  .video-card { padding: 16px; }
  .detail-thumb-main,
  .detail-thumb-main img { max-height: 430px; }
  .image-lightbox { padding: 12px; }
  .image-lightbox-dialog { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
  .image-lightbox-stage { position: relative; display: block; }
  .image-lightbox-stage figure { max-height: calc(100vh - 92px); max-height: calc(100dvh - 92px); }
  .image-lightbox-stage img { max-height: calc(100vh - 132px); max-height: calc(100dvh - 132px); }
  .image-lightbox-arrow { position: absolute; z-index: 1; top: 50%; transform: translateY(-50%); background: rgba(28, 20, 22, .72); }
  .image-lightbox-prev { left: 8px; }
  .image-lightbox-next { right: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .copyright { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; }
}
