:root {
  --navy: #162d66;
  --navy-deep: #081c45;
  --gold: #c6a15b;
  --gold-soft: #e8d5a3;
  --ink: #1c2430;
  --muted: #4e5864;
  --paper: #fafbfd;
  --white: #ffffff;
  --line: #e6eaf0;
  --shadow: 0 1px 2px rgba(22, 45, 102, 0.06), 0 6px 20px rgba(22, 45, 102, 0.06);
  --radius: 12px;
  --icon-bg: #f7f1e4;
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, sans-serif;
  --header: 4.5rem;
  --wrap: 68rem;
}

*,
*::before,
*::after {
  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;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

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

a {
  color: var(--navy);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--navy-deep);
  text-decoration-color: var(--gold);
}

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

[hidden] {
  display: none !important;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.55rem 0.9rem;
  background: var(--navy);
  color: white;
  text-decoration: none;
}

.skip:focus {
  top: 0.6rem;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
}

h1,
h2,
h3,
.card-day,
.place-name {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
}

h1,
h2,
h3 {
  text-wrap: balance;
  line-height: 1.2;
  margin: 0;
  color: var(--navy);
}

h2 {
  font-size: 1.45rem;
}

h3 {
  font-size: 1.05rem;
  color: var(--ink);
}

p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: var(--navy);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 46%),
    repeating-linear-gradient(
      118deg,
      rgba(255, 255, 255, 0.045) 0 1px,
      transparent 1px 8px
    ),
    linear-gradient(165deg, #1c3878 0%, var(--navy) 52%, #101c46 100%);
  color: #fff;
  border-bottom: 2px solid var(--gold);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.32rem 0.85rem;
  min-height: 0;
  padding-block: 0.42rem 0.46rem;
}

.brand {
  display: flex;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 14.75rem;
  height: auto;
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.1rem 0.85rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  padding: 0.28rem 0.05rem;
  white-space: nowrap;
}

.nav a:hover {
  color: #fff;
  text-decoration: none;
  box-shadow: inset 0 -2px 0 var(--gold);
}

.nav a.nav-cta {
  margin-left: auto;
  color: var(--navy);
  background: var(--gold-soft);
  border-radius: 999px;
  padding: 0.36rem 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: none;
}

.nav a.nav-cta:hover {
  color: var(--navy);
  background: #f4e6c0;
  box-shadow: none;
}

.site-header :focus-visible {
  outline-color: var(--gold-soft);
}

.hero {
  padding: 1.85rem 0 0.35rem;
  text-align: center;
}

#frase {
  margin: 0 auto;
  padding: 0;
  border: 0;
  max-width: 36rem;
}

#frase p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  line-height: 1.45;
  color: var(--navy);
}

#frase footer {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#frase footer::before {
  content: "";
  display: block;
  width: 2.25rem;
  height: 2px;
  margin: 0 auto 0.7rem;
  background: var(--gold);
}

#proxima {
  max-width: 40rem;
  margin: 1.35rem auto 0;
  padding: 1rem 1.1rem 1.15rem;
  text-align: left;
  color: #f4f7fb;
  background-color: var(--navy);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 48%),
    linear-gradient(165deg, #1c3878 0%, var(--navy) 58%, #101c46 100%);
  border: 0;
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(22, 45, 102, 0.16);
}

#proxima h2 {
  margin-bottom: 0.35rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.next-when {
  font-weight: 600;
  color: #fff;
}

.next-title {
  margin-top: 0.15rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.2;
  color: #fff;
}

.next-who {
  margin-top: 0.2rem;
  color: rgba(244, 247, 251, 0.78);
}

#proxima .button {
  background: var(--gold-soft);
  color: var(--navy);
}

#proxima .button:hover {
  background: #f4e6c0;
  color: var(--navy);
}

#proxima .button-ghost {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(232, 213, 163, 0.9);
}

#proxima .button-ghost:hover {
  background: var(--gold-soft);
  color: var(--navy);
}

#proxima .text-link {
  color: var(--gold-soft);
}

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

#proxima .actions {
  margin-top: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 0.95rem;
  background: var(--navy);
  color: white;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.button:hover {
  background: var(--navy-deep);
  color: white;
}

.button-ghost {
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--navy);
}

.button-ghost:hover {
  background: var(--navy);
  color: white;
}

.text-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 0.85rem;
  font-weight: 600;
}

section[id] {
  scroll-margin-top: 8.5rem;
}

.block {
  padding: 2.2rem 0 0.2rem;
}

.block > .wrap > h2::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 2px;
  margin-top: 0.5rem;
  background: var(--gold);
}

.soon {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.recaps {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.recap {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  padding: 0.7rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}

.recap:hover {
  color: inherit;
  border-color: #e4d3a8;
  border-top-color: var(--gold);
}

.recap picture {
  display: block;
  min-width: 0;
}

.recap img {
  display: block;
  width: 100%;
  height: 5.6rem;
  object-fit: cover;
  border-radius: 8px;
}

.recap--retrato picture {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 5.6rem;
  background: linear-gradient(135deg, #162d66, #0f2050);
  border-radius: 8px;
  overflow: hidden;
}

.recap--retrato img,
.recap--retrato picture img {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.recap h3 {
  margin-top: 0.15rem;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
}

.recap-kicker,
.recap-meta {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.recap-kicker {
  color: var(--navy);
  font-weight: 600;
}

.gallery {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.cards {
  display: grid;
  gap: 0.75rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.card {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 0.95rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card.is-special {
  box-shadow: inset 3px 0 0 var(--gold), var(--shadow);
}

.card-day {
  display: block;
  font-size: 1.85rem;
  line-height: 0.95;
  color: var(--navy);
}

.card-dow,
.card-time {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.card h3 {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0;
}

.card p {
  margin-top: 0.15rem;
  color: var(--muted);
}

.doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.door {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-height: 100%;
  padding: 0.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}

.door:hover {
  color: inherit;
  border-color: #e4d3a8;
}

.door-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--icon-bg);
  color: var(--navy);
}

.door h3 {
  margin-top: 0.35rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}

.door p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.after-table {
  margin-top: 0.9rem;
}

.panel {
  max-width: 40rem;
  margin-top: 0.85rem;
  padding: 1.05rem 1.1rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.place-name {
  font-size: 1.35rem;
  color: var(--navy);
  line-height: 1.25;
}

.panel .prose,
.panel address {
  font-style: normal;
}

.panel p + p,
.panel address + p {
  margin-top: 0.55rem;
}

.link-list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.link-list li + li {
  margin-top: 0.4rem;
}

.iban {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  font-weight: 600;
  color: var(--navy);
  overflow-wrap: anywhere;
}

#iban-status:empty {
  display: none;
}

#iban-status {
  margin-top: 0.45rem;
  font-weight: 600;
  color: var(--navy);
}

.qr img {
  display: block;
  width: min(100%, 16rem);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem;
}

.poster {
  margin: 1rem 0 0;
}

.poster img {
  display: block;
  width: 100%;
  border-radius: 8px;
}

.poster figcaption {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.dlg-event + .dlg-event {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.dlg-event h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
}

.dlg-when {
  color: var(--muted);
  font-size: 0.92rem;
}

dialog {
  border: 0;
  padding: 0;
  color: var(--ink);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: min(32rem, calc(100% - 1.5rem));
  max-width: 32rem;
}

dialog::backdrop {
  background: rgba(8, 28, 69, 0.46);
}

.dlg {
  position: relative;
  max-height: 85vh;
  overflow: auto;
  padding: 1.15rem 1.15rem 1.35rem;
}

.dlg h2::after {
  content: "";
  display: block;
  width: 2rem;
  height: 2px;
  margin-top: 0.45rem;
  background: var(--gold);
}

.dlg h2:focus {
  outline: none;
}

.dlg h2:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.dlg p + p {
  margin-top: 0.7rem;
}

.dlg-x {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--icon-bg);
  color: var(--navy);
  cursor: pointer;
}

.dlg .actions {
  margin-top: 1rem;
}

.site-footer {
  margin-top: 2.6rem;
  padding: 1.15rem 0 1.4rem;
  background-color: var(--navy);
  background-image: linear-gradient(165deg, #1c3878 0%, var(--navy) 55%, #101c46 100%);
  color: rgba(244, 247, 251, 0.86);
  border-top: 2px solid var(--gold);
  text-align: center;
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.icon-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.icon-row a {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(232, 213, 163, 0.65);
  color: var(--gold-soft);
  text-decoration: none;
}

.icon-row a:hover {
  background: var(--gold-soft);
  color: var(--navy);
}

.site-footer .de-note {
  max-width: 36rem;
}

.site-footer summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 247, 251, 0.62);
}

.site-footer summary:hover {
  color: var(--gold-soft);
}

.site-footer details p {
  margin-top: 0.45rem;
  font-size: 0.92rem;
  color: rgba(244, 247, 251, 0.88);
}

.site-footer a {
  color: var(--gold-soft);
}

.site-footer .address {
  margin: 0;
  font-style: normal;
  font-size: 0.92rem;
  color: rgba(244, 247, 251, 0.88);
}

.js .fallback {
  display: none;
}

.fallback {
  padding-bottom: 2rem;
}

.fallback details {
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}

.fallback summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
}

.fallback details p {
  margin-top: 0.4rem;
}

@media (max-width: 860px) {
  .nav {
    flex: 1 0 100%;
  }

  dialog {
    width: 100%;
    max-width: none;
    max-height: 85vh;
    margin: 0;
    border-radius: 16px 16px 0 0;
    position: fixed;
    inset: auto 0 0 0;
  }
}

@media (min-width: 720px) {
  .recap {
    grid-template-columns: 14rem minmax(0, 1fr);
  }

  .recap img {
    height: 9rem;
  }

  .recap--retrato picture {
    height: 9rem;
  }

  .recap--retrato img {
    height: 100%;
  }
}

@media (min-width: 800px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .card {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: 100%;
  }
}

@media (min-width: 861px) {
  .site-header .wrap {
    flex-wrap: nowrap;
    padding-block: 0.36rem;
  }

  .brand img {
    width: 18.25rem;
  }

  .nav {
    flex: 0 0 auto;
    margin-left: auto;
    gap: 0.15rem 1.25rem;
  }

  .nav a {
    font-size: 0.95rem;
    padding: 0.42rem 0.05rem;
  }

  .nav a.nav-cta {
    margin-left: 0.4rem;
    padding: 0.42rem 1.05rem;
  }

  section[id] {
    scroll-margin-top: 7.25rem;
  }
}

@media (min-width: 900px) {
  .doors {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.reading {
  width: min(42.5rem, calc(100% - 2rem));
  margin: 1.5rem auto 2.6rem;
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.7;
}

.post-back {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
}

.post-kicker {
  margin: 1.15rem 0 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

.reading h1 {
  margin-top: 0.4rem;
  font-size: clamp(1.85rem, 4.6vw, 2.45rem);
  line-height: 1.15;
}

.byline {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.reading p {
  margin-top: 0.95rem;
}

.reading h2 {
  margin-top: 2.2rem;
  font-size: 1.4rem;
}

.reading h2::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 2px;
  margin-top: 0.45rem;
  background: var(--gold);
}

.reading ul,
.reading ol {
  margin: 0.9rem 0 0;
  padding-left: 1.25rem;
}

.reading li {
  margin-top: 0.45rem;
  padding-left: 0.15rem;
}

.reading li::marker {
  color: var(--gold);
}

.reading blockquote {
  margin: 1.2rem 0 0;
  padding: 0.1rem 0 0.1rem 1rem;
  border-left: 2px solid var(--gold);
  color: var(--navy);
}

.reading blockquote p {
  margin-top: 0.8rem;
}

.reading blockquote p:first-child {
  margin-top: 0;
}

.reading blockquote footer {
  margin-top: 0.7rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.reading blockquote footer::before {
  content: none;
}

.reading figure {
  margin: 1.45rem 0 0;
}

.reading figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #fff;
}

.reading figcaption {
  margin-top: 0.5rem;
  font-family: var(--sans);
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
}

.reading .refs {
  font-family: var(--sans);
  font-size: 0.98rem;
  line-height: 1.55;
}

.reading .credits {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-style: italic;
  color: var(--muted);
}

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

.card-cartaz {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.dlg-event.has-thumb {
  display: flow-root;
}

.dlg-thumb {
  float: right;
  margin: 0 0 0.4rem 0.75rem;
}

.dlg-thumb img {
  display: block;
  width: 72px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.dlg-cartaz-link {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.poster-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.poster-tab {
  min-height: 2.25rem;
  padding: 0.3rem 0.95rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--navy);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.poster-tab[aria-pressed="true"],
.poster-tab:hover {
  background: var(--navy);
  color: white;
}

.poster img {
  height: auto;
}

#poster-tabs {
  margin: 0.4rem 0 0.9rem;
}

.dlg-event.is-first {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
