:root {
  --paper: #f6f1e8;
  --ink: #16302c;
  --muted: #4d5e59;
  --teal: #14656e;
  --teal-deep: #0e464c;
  --foam: #e4f1ee;
  --clay: #8a4e3e;
  --line: #ddd3c4;
  --white: #fffcf7;
  --serif: "Fraunces", "Iowan Old Style", Palatino, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --space: clamp(1.1rem, 2.4vw, 2rem);
  --measure: 38rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
}

body.docked { padding-bottom: 4.6rem; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal-deep); }

a:hover { color: var(--clay); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.4rem 0.7rem;
  z-index: 5;
}

.skip:focus { top: 0.75rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 0.7rem var(--space);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 3;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.15rem;
}

.brand img {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: white;
}

.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.98rem;
}

.top nav a { text-decoration-thickness: 1px; text-underline-offset: 0.22em; }

.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--teal-deep);
  background: var(--teal);
  color: var(--white);
  font: 600 1rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
}

.btn:hover { background: var(--teal-deep); color: var(--white); }

.btn-line {
  background: transparent;
  color: var(--teal-deep);
}

.btn-line:hover { background: var(--foam); color: var(--teal-deep); }

.text-link { font-weight: 600; }

.hero {
  display: grid;
  min-height: auto;
}

.plate {
  padding: 1.6rem var(--space) 1.8rem;
  position: relative;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--clay);
  font-weight: 600;
}

.door {
  margin: 0.2rem 0 0;
  font-family: var(--serif);
  font-weight: 460;
  font-size: clamp(4.5rem, 18vw, 7.5rem);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px #c9bfb0;
  letter-spacing: -0.04em;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.02em; }

section, .resumo { scroll-margin-top: 5.2rem; }

h1 {
  margin: 0.15rem 0 0.2rem;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 0.95;
}

.kicker {
  margin: 0;
  font-size: 1.2rem;
  color: var(--teal-deep);
}

.lead, .phrase, .band p { max-width: var(--measure); }

.lead { margin: 0.9rem 0 0; }

.phrase {
  margin: 1rem 0 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.3;
}

.phrase span {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.reputation {
  margin: 1.15rem 0 0;
  max-width: var(--measure);
  font-size: 0.98rem;
}

.reputation a { font-weight: 600; }

.reputation span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-photo {
  margin: 0;
  background: #d7cfc2;
}

.hero-photo img {
  width: 100%;
  height: min(78vw, 34rem);
  object-fit: cover;
  object-position: 55% 45%;
}

.hero-photo figcaption,
.gallery figcaption {
  padding: 0.45rem var(--space) 0.7rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.band { padding: 2.4rem var(--space); }

.band-head h2,
.band h2 { margin: 0 0 0.6rem; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.1; }

.gallery {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.4rem;
}

.gallery figure { margin: 0; }

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #d7cfc2;
}

.gallery figure:nth-child(1) img { object-position: 22% 30%; }
.gallery figure:nth-child(2) img { object-position: center 42%; }
.gallery figure:nth-child(3) img { object-position: center 40%; aspect-ratio: 16 / 10; }
.gallery figure:nth-child(4) img { object-position: center 30%; }

.quote-band {
  margin: 0 var(--space) 0.5rem;
  padding: 1.5rem 0 0.4rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

blockquote { margin: 0; max-width: 40rem; }

blockquote p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.25;
  font-weight: 460;
}

.quote-note { color: var(--muted); font-size: 0.95rem; }

.split { display: grid; gap: 1.5rem; }

.index { list-style: none; margin: 0; padding: 0; }

.index li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.index h3 { margin: 0 0 0.25rem; font-size: 1.35rem; }

.index p, .aside, .note, .plain { margin: 0.35rem 0 0; }

.aside {
  margin-top: 1.3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  max-width: 46rem;
}

.visit {
  display: grid;
  gap: 1.8rem;
  background: var(--foam);
}

table { width: 100%; max-width: 24rem; border-collapse: collapse; margin-top: 0.8rem; }

th, td { text-align: left; padding: 0.45rem 0; border-bottom: 1px solid #c9ddd8; font-weight: 400; }

th { width: 7rem; font-weight: 600; }

.plain { padding-left: 1.1rem; max-width: var(--measure); }

.note { color: var(--muted); font-size: 0.98rem; max-width: var(--measure); }

.map-frame {
  margin-top: 0.8rem;
  background: #d5e4e0;
  min-height: 16rem;
}

.map-frame iframe { width: 100%; height: 18rem; border: 0; }

.map-links { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; }

.ondina { border-top: 1px solid var(--line); }

.form-band { background: var(--white); border-top: 1px solid var(--line); }

form, .resumo { max-width: 36rem; }

.field { margin: 0 0 0.85rem; }

label { display: block; font-weight: 600; margin-bottom: 0.25rem; }

input, select, textarea {
  width: 100%;
  border: 1px solid #c9bfb0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.4 var(--sans);
  padding: 0.65rem 0.7rem;
  border-radius: 0;
}

textarea { resize: vertical; }

input[aria-invalid="true"], select[aria-invalid="true"] { border-color: #8d2b2b; }

.erro { min-height: 0; margin: 0.2rem 0 0; color: #8d2b2b; font-size: 0.92rem; }

.erro:empty { display: none; }

.form-note { color: var(--muted); font-size: 0.95rem; max-width: 36rem; }

.resumo {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.resumo ul { list-style: none; padding: 0; margin: 0 0 0.8rem; }

.resumo li {
  display: grid;
  gap: 0.1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
}

.resumo li span { color: var(--muted); font-size: 0.88rem; }

.resumo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.9rem;
  align-items: center;
  margin-top: 0.7rem;
}

.faq dl { margin: 0; max-width: 42rem; }

.faq dt { font-weight: 600; margin-top: 0.9rem; }

.faq dd { margin: 0.2rem 0 0; }

.socials { display: flex; flex-wrap: wrap; gap: 0.7rem 1.1rem; margin-top: 1.2rem; }

.site-footer {
  padding: 1.6rem var(--space) 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer p { max-width: 44rem; margin: 0 0 0.55rem; }

.made {
  margin: 1rem 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.05rem;
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  background: var(--ink);
  z-index: 4;
}

.dock a {
  color: var(--paper);
  text-decoration: none;
  text-align: center;
  padding: 0.9rem 0.4rem;
  font-weight: 600;
  min-height: 3rem;
}

.dock a + a { background: var(--teal); color: var(--white); }

@media (min-width: 880px) {
  .hero {
    grid-template-columns: minmax(20rem, 0.92fr) 1.15fr;
    min-height: calc(100svh - 4.2rem);
  }

  .plate {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 2.4rem 2rem var(--space);
  }

  .hero-photo img { height: 100%; min-height: 36rem; }

  .hero-photo figcaption { position: absolute; }

  .hero-photo { position: relative; }

  .hero-photo figcaption {
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 0.7rem 1rem;
    background: linear-gradient(transparent, rgba(22, 48, 44, 0.72));
    color: #f6f1e8;
  }

  .gallery { grid-template-columns: 1fr 1fr; align-items: start; }

  .split, .visit { grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }

  .form-band {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2rem;
    align-items: start;
  }

  .form-intro { position: sticky; top: 5rem; }

  .dock { display: none; }

  body.docked { padding-bottom: 0; }
}

@media (max-width: 879px) {
  .top-actions .text-link { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
