:root {
  --ink: #173a34;
  --ink-soft: #48655f;
  --paper: #fffdf8;
  --paper-soft: rgba(255, 253, 248, 0.92);
  --blue: #087ba6;
  --blue-deep: #075c7d;
  --green: #4f7b47;
  --line: rgba(23, 58, 52, 0.16);
  --card-border: #b8e4ed;
  --shadow: 0 18px 60px rgba(18, 58, 66, 0.14);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Trebuchet MS", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background-color: #fff;
  background-image: linear-gradient(rgba(255,255,255,.58), rgba(255,255,255,.58)), url("assets/bluebonnet-wallpaper.png");
  background-size: 760px auto;
  background-position: center top;
  background-attachment: fixed;
  font-family: var(--sans);
  line-height: 1.6;
}

a { color: inherit; }

a:focus-visible, button:focus-visible {
  outline: 3px solid #e7ac42;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .65rem 1rem;
  background: var(--ink);
  color: white;
  border-radius: 999px;
}

.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, .95);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  width: min(1160px, calc(100% - 2rem));
  min-height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo { width: auto; height: 68px; display: block; }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  padding: .65rem .9rem;
  font: inherit;
}

.site-nav { display: flex; gap: .15rem; align-items: center; }

.site-nav a {
  padding: .6rem .9rem;
  color: var(--ink-soft);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: .93rem;
}

.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--blue-deep); background: #eaf6f8; }

main { width: min(1160px, calc(100% - 2rem)); margin: 0 auto; }

.hero, .page-hero {
  min-height: 630px;
  display: grid;
  align-items: center;
  padding: 5.5rem 0;
}

.hero-card, .content-card, .page-heading {
  background-color: var(--paper);
  background-image: linear-gradient(rgba(255,253,248,.41), rgba(255,253,248,.41)), url("assets/bluebonnet-card-texture.png");
  background-size: cover;
  background-position: center;
  border: 2px solid var(--card-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-card {
  width: min(680px, 100%);
  padding: clamp(2rem, 5vw, 4.5rem);
  border-radius: 2px 42px 2px 42px;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--blue-deep);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; }
h1 { max-width: 12ch; margin: 0; font-size: clamp(3.2rem, 8vw, 6.4rem); letter-spacing: -.045em; }
.page-heading h1 { font-size: clamp(3rem, 7vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); margin: 0 0 1rem; }
h3 { font-size: 1.45rem; margin: 0 0 .6rem; }

.lede { max-width: 55ch; margin: 1.5rem 0 0; color: var(--ink-soft); font-size: clamp(1.05rem, 2vw, 1.25rem); }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .65rem 1.2rem;
  border: 1px solid var(--blue-deep);
  border-radius: 999px;
  color: white;
  background: var(--blue-deep);
  text-decoration: none;
  font-weight: 800;
}
.button:hover { background: var(--ink); }
.button.secondary { color: var(--blue-deep); background: transparent; }
.button.secondary:hover { color: white; background: var(--blue-deep); }

.intro-strip { margin: 1.25rem 0; }
.content-card { padding: clamp(1.5rem, 4vw, 3rem); border-radius: 24px; }
.facebook-section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(300px, 1.2fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.facebook-copy > p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.06rem; }
.facebook-window { position: relative; isolation: isolate; width: 100%; max-width: 500px; height: 650px; margin-left: auto; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #ead9b8; box-shadow: 0 12px 30px rgba(18,58,66,.1); }
.facebook-window iframe { position: absolute; inset: 0; z-index: 1; width: 100%; max-width: 500px; height: 650px; display: block; opacity: 0; pointer-events: none; -webkit-mask-image: radial-gradient(circle, #000 48%, transparent 72%); mask-image: radial-gradient(circle, #000 48%, transparent 72%); -webkit-mask-position: center; mask-position: center; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: 0% 0%; mask-size: 0% 0%; }
.facebook-cover { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; padding: 0; overflow: hidden; border: 0; color: white; background: #ead9b8; cursor: pointer; }
.facebook-cover:focus-visible { outline: 4px solid #e7ac42; outline-offset: -6px; }
.facebook-reveal-video { width: 100%; height: 100%; display: block; object-fit: contain; background: #ead9b8; }
.facebook-open-label { position: absolute; left: 50%; bottom: 1.4rem; width: max-content; max-width: calc(100% - 2rem); padding: .75rem 1.1rem; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; background: rgba(7,65,91,.86); box-shadow: 0 8px 25px rgba(0,0,0,.24); transform: translateX(-50%); transition: opacity .25s ease, transform .25s ease; }
.facebook-open-label strong, .facebook-open-label small { display: block; }
.facebook-open-label small { margin-top: .15rem; font-size: .72rem; font-weight: 400; }
.facebook-gate.is-playing .facebook-open-label { opacity: 0; transform: translate(-50%, .4rem); }
.facebook-gate.is-revealing iframe { animation: facebook-bleed-in 3s ease-in-out forwards; }
.facebook-gate.is-revealing .facebook-cover { pointer-events: none; animation: parchment-dissolve 3s ease-in-out forwards; }
.facebook-gate.is-open iframe { z-index: 3; opacity: 1; pointer-events: auto; -webkit-mask-image: none; mask-image: none; }
.facebook-gate.is-open .facebook-cover { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@keyframes facebook-bleed-in {
  0% { opacity: 0; filter: sepia(1) saturate(.35) blur(5px); -webkit-mask-size: 0% 0%; mask-size: 0% 0%; }
  35% { opacity: .38; }
  72% { opacity: .82; filter: sepia(.35) saturate(.7) blur(1px); }
  100% { opacity: 1; filter: none; -webkit-mask-size: 260% 260%; mask-size: 260% 260%; }
}

@keyframes parchment-dissolve {
  0%, 18% { opacity: 1; }
  65% { opacity: .52; }
  100% { opacity: 0; }
}
.newsletter-section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(320px, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; margin-bottom: 7rem; }
.newsletter-copy > p:not(.eyebrow) { max-width: 42ch; color: var(--ink-soft); font-size: 1.06rem; }
.newsletter-form { display: grid; grid-template-columns: .75fr 1.25fr; gap: 1rem; align-items: end; }
.form-field { display: grid; gap: .4rem; }
.form-field label { color: var(--ink); font-weight: 800; font-size: .88rem; }
.form-field label span { color: var(--ink-soft); font-weight: 400; }
.form-field input { width: 100%; min-height: 50px; padding: .7rem .85rem; border: 1px solid #89cbd9; border-radius: 12px; color: var(--ink); background: rgba(255,255,255,.9); font: inherit; }
.form-field input:focus { outline: 3px solid rgba(8,123,166,.18); border-color: var(--blue-deep); }
.newsletter-form .button { grid-column: 1 / -1; justify-self: start; cursor: pointer; }
.form-note, .form-status { grid-column: 1 / -1; margin: 0; color: var(--ink-soft); font-size: .82rem; }
.form-status { min-height: 1.3em; color: var(--blue-deep); font-weight: 700; }
.three-up { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature { min-height: 170px; padding: 1.5rem; border: 1px solid var(--card-border); border-radius: 18px; background: rgba(255,255,255,.68); }
.feature p { margin: 0; color: var(--ink-soft); }
.feature .number { display: block; margin-bottom: 2rem; color: var(--green); font: italic 1rem var(--serif); }

.page-hero { min-height: 450px; }
.page-heading { width: min(780px, 100%); padding: clamp(2rem, 5vw, 4rem); border-radius: 2px 42px 2px 42px; }
.section-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.25rem; margin-bottom: 7rem; }
.section-grid > * { min-width: 0; }
.prose p { color: var(--ink-soft); font-size: 1.06rem; }
.prose p:first-of-type { font-size: 1.22rem; color: var(--ink); }

.detail-list { margin: 0; padding: 0; list-style: none; }
.detail-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.detail-list li:first-child { padding-top: 0; }
.detail-list span { display: block; color: var(--blue-deep); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hours-list { margin: .55rem 0 0; }
.hours-list div { display: flex; justify-content: space-between; gap: 1rem; padding: .28rem 0; }
.hours-list dt, .hours-list dd { margin: 0; }
.hours-list dt { color: var(--ink-soft); }
.hours-list dd { color: var(--ink); font-weight: 700; text-align: right; }
.contact-link { color: var(--blue-deep); font-size: 1.08rem; font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.store-address { margin-top: .35rem; font-style: normal; }

.map-placeholder {
  min-height: 370px;
  display: grid;
  place-items: center;
  padding: 2rem;
  border: 1px dashed rgba(7,92,125,.45);
  border-radius: 18px;
  background: radial-gradient(circle at 30% 20%, #e7f6f8, #f8f1df);
  text-align: center;
}
.map-pin { display: block; font-size: 3rem; line-height: 1; }
.content-card:has(.map-frame) {
  background-color: #f4e2c2;
  background-image: linear-gradient(rgba(255,250,240,.26), rgba(255,250,240,.26)), url("assets/antique-map-card-texture.png");
  background-size: cover;
  background-position: center;
}
.map-frame { height: 440px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #e7f6f8; }
.map-frame iframe { position: relative; top: -62px; width: 100%; height: 502px; display: block; border: 0; }
.map-actions { display: flex; justify-content: flex-end; margin-top: 1rem; }

.event-list { display: grid; gap: 1rem; }
.event { display: grid; grid-template-columns: 110px 1fr; gap: 1.25rem; align-items: start; padding: 1.25rem; border: 1px solid var(--card-border); border-radius: 18px; background: rgba(255,255,255,.7); }
.event-date { padding: 1rem .5rem; border-radius: 12px; background: #eaf6f8; color: var(--blue-deep); text-align: center; }
.event-date strong { display: block; font: 2rem/1 var(--serif); }
.event-date span { font-size: .73rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.event p { margin: 0; color: var(--ink-soft); }

.gallery-hero { min-height: 500px; }
.gallery-card { margin-bottom: 7rem; }
.gallery-intro { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.gallery-intro h2, .gallery-intro p { margin-bottom: 0; }
.gallery-intro > p { max-width: 43ch; color: var(--ink-soft); }
.gallery-feature { width: 100%; margin: 0; }
.gallery-feature img { width: 100%; height: auto; display: block; border-radius: 18px; box-shadow: 0 18px 45px rgba(18,58,66,.18); }
.gallery-feature figcaption { margin-top: .8rem; color: var(--ink-soft); font: italic 1.05rem var(--serif); text-align: center; }
.library-stage { position: relative; overflow: hidden; border-radius: 18px; background: #2f3534; box-shadow: 0 18px 45px rgba(18,58,66,.18); }
.library-stage > img { border-radius: 0; box-shadow: none; }
.library-animation { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; display: block; object-fit: cover; opacity: 0; pointer-events: none; }
.library-animation.is-active { opacity: 1; }
.egg-hotspot { position: absolute; z-index: 3; display: block; padding: 0; border: 0; border-radius: 45%; outline: 0; background: transparent; box-shadow: none; cursor: pointer; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; user-select: none; }
.egg-hotspot:hover, .egg-hotspot:focus, .egg-hotspot:focus-visible, .egg-hotspot:active { border: 0; outline: 0; background: transparent; box-shadow: none; }
.egg-hotspot:disabled { cursor: default; }
.key-hotspot { left: 52%; top: 69%; width: 9%; height: 9%; }
.lock-hotspot { left: 2.4%; top: 72%; width: 5.8%; height: 9%; }
.library-stage.is-animating .egg-hotspot, .library-stage.is-key-ready .key-hotspot, .library-stage.is-unlocked .egg-hotspot { opacity: 0; pointer-events: none; }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 260px;
  gap: .9rem;
}
.photo {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #dcebed;
  box-shadow: inset 0 0 0 1px rgba(23,58,52,.08);
}
.photo img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .45s ease; }
.photo:hover img { transform: scale(1.025); }
.photo figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 2.25rem 1rem .9rem;
  color: white;
  background: linear-gradient(transparent, rgba(10,37,38,.78));
  font-size: .89rem;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.photo-feature { grid-column: span 2; grid-row: span 2; }
.photo-wide, .photo-landscape { grid-column: span 2; }
.photo-sign img { object-position: center 46%; }
.gallery-collage { width: min(820px, 100%); margin: 2.5rem auto 0; }
.gallery-collage img { width: 100%; height: auto; display: block; border-radius: 18px; box-shadow: 0 18px 45px rgba(18,58,66,.18); }
.gallery-collage figcaption { margin-top: .8rem; color: var(--ink-soft); font: italic 1.05rem var(--serif); text-align: center; }

.site-footer { border-top: 1px solid var(--line); background: rgba(255,253,248,.96); }
.footer-wrap { width: min(1160px, calc(100% - 2rem)); margin: 0 auto; padding: 2.5rem 0; display: flex; justify-content: space-between; gap: 1rem; color: var(--ink-soft); }
.footer-wrap p { margin: 0; }
.footer-wrap a { color: var(--blue-deep); font-weight: 700; }
.footer-banner-link { display: block; width: 100%; }
.footer-banner-link:focus-visible { outline: 4px solid #e7ac42; outline-offset: -4px; }
.footer-banner { width: 100%; height: auto; display: block; margin: 0; }

@media (max-width: 760px) {
  body { background-attachment: scroll; background-size: 620px auto; }
  .nav-wrap { min-height: 74px; flex-wrap: wrap; padding: .65rem 0; }
  .brand-logo { height: 52px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; padding: .35rem 0 .65rem; flex-direction: column; align-items: stretch; }
  .site-nav.is-open { display: flex; }
  .site-nav a { text-align: center; }
  .hero { min-height: 560px; padding: 3rem 0; }
  .three-up, .section-grid { grid-template-columns: 1fr; }
  .facebook-section { grid-template-columns: 1fr; }
  .facebook-window { margin: 0 auto; }
  .newsletter-section, .newsletter-form { grid-template-columns: 1fr; }
  .newsletter-form .button, .form-note, .form-status { grid-column: auto; }
  .gallery-intro { align-items: start; flex-direction: column; gap: .5rem; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 235px; }
  .photo-feature { grid-row: span 2; }
  .page-hero { min-height: 380px; padding: 3.5rem 0; }
  .event { grid-template-columns: 82px 1fr; }
  .footer-wrap { flex-direction: column; }
}

@media (max-width: 480px) {
  .photo-grid { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .photo-feature, .photo-wide, .photo-landscape { grid-column: auto; grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .facebook-gate.is-revealing iframe, .facebook-gate.is-revealing .facebook-cover { animation-duration: .01ms; }
}
