:root {
  color-scheme: light;
  --paper: #f8f6ef;
  --cream: #eeeadf;
  --ink: #282a20;
  --muted: #5c5d50;
  --olive: #414b31;
  --olive-dark: #303824;
  --accent: #8e7247;
  --line: #d8d3c4;
  --display: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(7rem * var(--layout-scale, 1)); }
body { margin: 0; color: var(--ink); font: 1rem/1.6 var(--sans); container: layout / inline-size; }
body:has(dialog[open]) { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
svg:not(.symbols) { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #a16c2f; outline-offset: 4px; }
.contact :focus-visible, .lightbox :focus-visible { outline-color: #efd6a8; }
.skip { position: fixed; z-index: 5; top: .5rem; left: 1rem; padding: .65rem 1rem; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }

.wrap { width: min(92%, 1640px); margin-inline: auto; }
.section { padding-block: clamp(3rem, 6cqw, 6rem); }
.eyebrow {
  display: flex; align-items: center; gap: .55rem; margin-bottom: .75rem;
  color: var(--olive); font-size: .72rem; font-weight: 700; line-height: 1.4; letter-spacing: .15em; text-transform: uppercase;
}
.eyebrow span { width: .4rem; height: .4rem; border-radius: 50%; background: var(--accent); flex: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; }
h2 { font-size: clamp(2.8rem, 5.5cqw, 5.75rem); line-height: .97; letter-spacing: -.025em; }
h2 em { display: block; color: var(--olive); font-weight: inherit; }
h3 { font-size: clamp(1.9rem, 2.65cqw, 2.8rem); line-height: 1.02; }

.site-header { position: sticky; top: .65rem; z-index: 3; padding-top: .7rem; }
.header-inner {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .65rem clamp(.8rem, 2cqw, 1.5rem);
  border: 1px solid #e5e0d5; border-radius: 16px; background: #fffdf7;
  box-shadow: 0 4px 18px #282a200b;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; flex: none; }
.brand span { font: 1.7rem/.95 var(--display); white-space: nowrap; }
.brand small { display: block; margin-top: .26rem; font: 700 .57rem/1.2 var(--sans); letter-spacing: .15em; text-transform: uppercase; }
.header-inner nav, .footer nav { display: flex; align-items: center; gap: clamp(.4rem, 2.4cqw, 2.4rem); }
.header-inner nav a, .footer nav a { font-size: .91rem; font-weight: 600; padding-block: .65rem; }
.header-inner nav a:hover, .footer nav a:hover { text-decoration: underline; text-underline-offset: .28em; }
.button {
  min-height: 47px; display: inline-flex; justify-content: center; align-items: center; gap: .55rem;
  padding: .68rem 1.14rem; border: 1px solid transparent; border-radius: 999px;
  font-size: .88rem; font-weight: 700; line-height: 1.3; text-align: center; transition: background .2s, color .2s, border-color .2s;
}
.button-dark { background: var(--olive); color: white; }
.button-dark:hover { background: #2c3521; }
.button-outline { border-color: #b7b5a5; background: transparent; color: inherit; }
.button-outline:hover { background: #eae7dc; }
.button-light { background: #f3ebd8; color: var(--olive-dark); }
.button-light:hover { background: #fff9ed; }
.icon-button { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; color: inherit; background: transparent; font-size: 1.12rem; }
.icon-button:hover { background: #8e724719; }
.menu-button { display: none; }
.text-link { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; color: var(--olive); font-size: .91rem; font-weight: 700; }
.text-link:hover { text-decoration: underline; text-underline-offset: .28em; }

.hero { display: grid; align-items: stretch; grid-template-columns: .85fr 1.15fr; margin-block: 1rem 1.2rem; min-height: clamp(27rem, 46cqw, 44rem); }
.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(1.6rem, 4.3cqw, 4.2rem);
  background: var(--cream); border-radius: 18px 0 0 18px;
}
.hero h1 { font-size: clamp(4rem, 7.4cqw, 8.2rem); line-height: .86; letter-spacing: -.036em; }
.hero h1 em { display: block; margin-top: .18em; color: var(--olive); font-size: .62em; font-weight: 400; line-height: .98; letter-spacing: -.025em; }
.hero-lead { max-width: 28ch; margin-top: 1.3rem; color: var(--muted); font-size: clamp(1.05rem, 1.45cqw, 1.35rem); line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.55rem; }
.hero-photo, .about-photo, .event-photo, .gallery-tile { position: relative; display: block; overflow: hidden; background: #d7cab3; }
.hero-photo { border-radius: 0 18px 18px 0; }
.hero-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.media-note {
  position: absolute; z-index: 1; bottom: .75rem; left: .75rem; padding: .23rem .53rem; border-radius: 5px;
  background: #262a21eb; color: #fffaf0; font-size: .72rem; line-height: 1.5;
}
.hero-photo .media-note { left: auto; right: .8rem; }

.about { padding-top: clamp(2rem, 4.2cqw, 4.25rem); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(2rem, 8cqw, 9rem); }
.about-photo { border-radius: 10px; aspect-ratio: 1.52; }
.about-photo img, .event-photo img, .gallery-tile img { width: 100%; height: 100%; object-fit: cover; }
.about-photo img { object-position: center 54%; }
.about p:not(.eyebrow), .contact p:not(.eyebrow), .event-copy p:not(.eyebrow) { max-width: 49ch; margin: 1.15rem 0 .55rem; }
.about p:not(.eyebrow), .event-copy p:not(.eyebrow), .section-head > p, .space p { color: var(--muted); }

#espacos { border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1.25rem; margin-bottom: 1.65rem; }
.section-head > p { max-width: 33ch; }
.spaces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; }
.space { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1rem, 2.35cqw, 2rem); border: 1px solid var(--line); border-radius: 10px; background: #fcfaf4; }
.space .space-icon { width: 2.2rem; height: 2.2rem; padding: .4rem; background: #e9e9dc; border-radius: 50%; color: var(--olive); }
.space h3 { margin-top: .85rem; }
.space p { margin: .55rem 0 .5rem; }
.space a { margin-top: auto; }

.gallery { background: #efebe2; }
.gallery-grid { display: grid; grid-template-columns: 1.18fr .84fr 1fr; gap: .8rem; }
.gallery-tile { height: clamp(13rem, 25cqw, 25rem); border-radius: 8px; }
.gallery-tile img { transition: transform .4s; }
.gallery-tile:hover img { transform: scale(1.035); }
.zoom { position: absolute; bottom: .6rem; right: .6rem; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--paper); color: var(--olive); }
.gallery-links { display: flex; flex-wrap: wrap; gap: .25rem 1.7rem; margin-top: 1rem; }

.event-card { display: grid; grid-template-columns: 1fr 1.1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fcfaf4; }
.event-photo { min-height: 18rem; }
.event-photo img { position: absolute; }
.event-copy { padding: clamp(1.4rem, 4.5cqw, 4.5rem); align-self: center; }

.contact { background: var(--olive-dark); color: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 6cqw, 6rem); align-items: center; }
.contact .eyebrow, .contact h2 em { color: #e8d5ac; }
.contact .eyebrow span { background: #d3b378; }
.contact p:not(.eyebrow) { color: #efeee2; margin-bottom: 1.25rem; }
.contact-details { display: grid; gap: .6rem; }
.contact-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .7rem;
  padding: .65rem .9rem; border: 1px solid #f7f4df30; border-radius: 12px; background: #ffffff0f; transition: background .2s;
}
.contact-card:hover { background: #ffffff1c; }
.contact-card strong, .contact-card small { display: block; line-height: 1.4; overflow-wrap: anywhere; }
.contact-card small { color: #e2e0d2; }
.map { display: grid; place-items: center; min-height: 180px; overflow: hidden; border: 1px solid #f7f4df30; border-radius: 12px; background: #ffffff08; }
.map .button:hover { background: #ffffff1c; }
.map iframe { display: block; width: 100%; height: 180px; border: 0; }

.footer { background: #eae6d9; }
.footer-main { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .85rem 1.5rem; padding-block: 1.35rem; }
.social { display: flex; gap: .45rem; }
.footer .icon-button { border-color: #bcb8a8; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1.25rem; padding-block: .8rem; border-top: 1px solid #cdc8b8; color: var(--muted); }
.footer-bottom a { text-decoration: underline; text-underline-offset: .18em; }
.error-page { min-height: 100svh; display: flex; flex-direction: column; }
.error-page main { flex: 1; }
.error-page h1 { font-size: clamp(2.8rem, 7cqw, 5rem); line-height: 1; margin-bottom: 1.25rem; }

.lightbox { width: min(94%, 64rem); max-height: 96dvh; padding: .6rem; overflow: auto; border: 0; border-radius: 12px; background: #22261b; color: var(--paper); }
.lightbox::backdrop { background: #161910de; }
.lightbox-panel { position: relative; }
.lightbox figure img { margin: auto; max-height: 73dvh; object-fit: contain; }
.lightbox figcaption { padding: .65rem 5rem .45rem 0; font-size: .86rem; }
.lightbox .icon-button { background: #22261bee; border-color: #f7f4df78; }
.lightbox .icon-button:hover { background: #424d34; }
.lightbox-close { position: absolute; top: .35rem; right: .35rem; }
.lightbox-controls { position: absolute; bottom: 0; right: 0; display: flex; gap: .35rem; }
.lightbox-controls .icon-button { width: 40px; height: 40px; }
.previous svg { transform: rotate(180deg); }

@container layout (width < 1000px) {
  .hero-copy { padding-inline: clamp(1.35rem, 3.6cqw, 3rem); }
  .spaces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@container layout (width <= 760px) {
  .site-header { top: .45rem; padding-top: .45rem; }
  .header-inner { flex-wrap: wrap; gap: .35rem .6rem; }
  .header-inner nav { flex-wrap: wrap; width: 100%; gap: .05rem .8rem; }
  .header-inner nav a { padding: .7rem .35rem; }
  .menu-button:not([hidden]) { display: grid; }
  .menu-button:not([hidden])[aria-expanded="false"] + nav { display: none; }
  .menu-button[aria-expanded="true"] + nav { border-top: 1px solid var(--line); padding-top: .2rem; }
  .header-cta { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; margin-top: .7rem; }
  .hero-copy { padding: 2rem clamp(1.25rem, 5cqw, 2.6rem); border-radius: 13px 13px 0 0; }
  .hero h1 { font-size: clamp(3.7rem, 10.4cqw, 5.9rem); }
  .hero-photo { aspect-ratio: 1.59; border-radius: 0 0 13px 13px; }
  .hero-photo img { object-position: center 55%; }
  .hero-lead { margin-top: 1rem; }
  .actions { margin-top: 1.05rem; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 1.45rem; }
  .about-photo { order: 1; aspect-ratio: 1.8; }
  .section-head { align-items: start; flex-direction: column; gap: .65rem; margin-bottom: 1.1rem; }
  .section-head > p { max-width: 43ch; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .gallery-tile { height: auto; aspect-ratio: 1.22; }
  .gallery-tile:first-child { grid-column: 1 / -1; aspect-ratio: 1.85; }
  .event-card { grid-template-columns: 1fr; }
  .event-photo { min-height: 0; aspect-ratio: 1.65; }
  .event-copy { grid-row: 1; }
}

@container layout (width <= 425px) {
  .brand span { font-size: 1.55rem; }
  .brand img { width: 37px; height: 37px; }
  .header-inner nav { justify-content: space-between; gap: 0; }
  .header-inner nav a { font-size: .83rem; }
  .hero h1 { font-size: clamp(3.25rem, 12.8cqw, 4.35rem); }
  .actions { align-items: flex-start; flex-direction: column; }
  .space { padding: .85rem; }
  .space h3 { font-size: 1.8rem; }
  .space p { font-size: .92rem; }
  .gallery-tile { width: 100%; }
  .gallery-tile .media-note { bottom: .4rem; left: .4rem; font-size: .66rem; }
  .zoom { width: 30px; height: 30px; left: auto; top: .4rem; right: .4rem; }
  .footer nav { order: 1; width: 100%; justify-content: space-between; }
}

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