/*
Theme Name: Hortênsia
Theme URI: https://wordpress.org/themes/
Author: Matilde & Duarte
Description: Tema de uma página para sites de casamento. Tons creme e azul-hortênsia, títulos escritos letra a letra, fade-ins ao scroll, imagens em cascata e formulário de confirmação de presença que guarda as respostas no painel. Todos os textos e fotografias editam-se na página inicial, com o plugin Secure Custom Fields.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hortensia
Tags: one-column, custom-colors, wedding, translation-ready, theme-options
*/

/* Layout: convite em papel — secções alternadas creme / azul-hortênsia, cortinas de linho no início e no fim */
:root {
  --paper: #F4F0E6;
  --paper-deep: #EAE4D6;
  --hydrangea: #A9B8D3;
  --hydrangea-deep: #7F91B4;
  --ink: #56627E;
  --ink-soft: #7C869C;
  --linen: #C9C7AC;
  --linen-shadow: #A9A788;
  --white: #FBFAF6;
  --font-script: "Pinyon Script", "Snell Roundhand", "Apple Chancery", cursive;
  --font-caps: "Italiana", "Didot", "Bodoni 72", Georgia, serif;
  --font-body: "EB Garamond", "Garamond", Georgia, serif;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.3 0 0 0 0 0.25 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50;
  background-image: var(--grain); opacity: .22; mix-blend-mode: multiply;
}
img { max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; overflow-wrap: break-word; }

.wrap {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
section { position: relative; }

/* ---------- títulos ---------- */
.caps {
  font-family: var(--font-caps);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  line-height: 1.1;
  color: var(--ink);
}
.script {
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1;
  color: var(--hydrangea-deep);
  margin-top: -.18em;
}
.heading { display: grid; justify-items: center; text-align: center; gap: 0; }
.eyebrow {
  font-family: var(--font-caps);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .82rem;
}

/* ---------- cortinas ---------- */
.drapes {
  position: absolute; inset: 0; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(70,72,50,.28) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 70%, rgba(70,72,50,.32) 100%),
    repeating-linear-gradient(90deg,
      #BEBC9F 0px, #D6D4BB 18px, #E2E0C9 30px, #C7C5AA 52px,
      #AFAD90 70px, #C9C7AD 88px, #DAD8C1 104px, #BEBC9F 128px);
}
.drapes::before {
  content: ""; position: absolute; inset: -4% -2%;
  background: repeating-linear-gradient(90deg,
      rgba(255,255,255,0) 0px, rgba(255,255,255,.18) 40px, rgba(0,0,0,0) 80px,
      rgba(60,60,40,.10) 150px, rgba(255,255,255,0) 210px);
  transform-origin: top center;
  animation: sway 11s ease-in-out infinite alternate;
}
.drapes::after { /* sanefa ondulada no topo */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 90px;
  background:
    radial-gradient(ellipse 120px 70px at 120px -10px, #D9D7BF 60%, rgba(0,0,0,0) 62%) 0 0 / 240px 90px repeat-x,
    linear-gradient(180deg, rgba(90,90,60,.18), rgba(0,0,0,0));
  filter: drop-shadow(0 6px 6px rgba(70,70,45,.22));
}
.drapes.has-img { background: #8F8D74; }
.drapes.has-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.drapes.has-img::before { display: none; }
.drapes.has-img::after { /* véu para o texto se ler sobre qualquer fotografia */
  top: 0; bottom: 0; height: auto; filter: none;
  background: linear-gradient(180deg, rgba(60,62,44,.30), rgba(60,62,44,.12) 40%, rgba(60,62,44,.38));
}
@keyframes sway { from { transform: skewX(-.8deg) translateX(-10px); } to { transform: skewX(.8deg) translateX(10px); } }

/* ---------- herói ---------- */
.hero {
  min-height: min(92vh, 860px);
  min-height: min(92svh, 860px);
  display: grid; place-items: center;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}
.hero:has(.drapes.has-img)::after { display: none; }
.hero::after { /* chão de linho onde assentam as flores */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14%; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(201,199,172,0), #D4D2BA 35%, #C3C1A5);
  box-shadow: 0 -1px 0 rgba(255,255,255,.25);
}
.hero canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.hero-inner {
  position: relative; z-index: 2;
  display: grid; justify-items: center; gap: 18px;
  padding-block: 120px 110px;
  text-shadow: 0 1px 14px rgba(80,82,55,.35);
}
.hero .eyebrow { max-width: 28ch; line-height: 1.7; }
.hero-names {
  font-family: var(--font-script);
  font-size: clamp(3rem, 13vw, 7.6rem);
  line-height: 1.05;
  padding-inline: .1em;
}
.hero-names .amp { font-size: .7em; padding-inline: .08em; }
.hero-date { font-family: var(--font-caps); letter-spacing: .26em; text-transform: uppercase; font-size: .95rem; }
.hero-rule { width: 64px; height: 1px; background: currentColor; opacity: .7; }
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; translate: -50% 0; z-index: 2;
  display: grid; justify-items: center; gap: 10px;
  color: var(--white); text-decoration: none;
  font-family: var(--font-caps); letter-spacing: .3em; font-size: .7rem; text-transform: uppercase;
}
.scroll-hint i { width: 1px; height: 42px; background: linear-gradient(var(--white), rgba(255,255,255,0)); animation: drip 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); opacity: 1 } 60% { transform: scaleY(1); opacity: 1 } 100% { transform: scaleY(1); opacity: 0 } }

/* ---------- convite (cluster) ---------- */
.invite { padding-block: 96px; overflow: hidden; }
.invite .drapes { opacity: .9; }
.cluster {
  position: relative; z-index: 1;
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
  gap: 28px 8px;
}
.cluster > * { flex: 0 0 auto; }
.tilt { transform: rotate(var(--r, 0deg)); }

.envelope {
  width: min(300px, 78vw); aspect-ratio: 1.42;
  background: var(--white);
  position: relative;
  box-shadow: 0 18px 40px rgba(70,70,45,.28), 0 2px 4px rgba(70,70,45,.15);
}
.envelope::before { /* dobras do fundo do envelope */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top right, rgba(0,0,0,0) calc(50% - 1px), rgba(120,120,95,.12) 50%, rgba(0,0,0,0) calc(50% + 1px)) left bottom / 50% 62% no-repeat,
    linear-gradient(to top left, rgba(0,0,0,0) calc(50% - 1px), rgba(120,120,95,.12) 50%, rgba(0,0,0,0) calc(50% + 1px)) right bottom / 50% 62% no-repeat;
}
.envelope .flap { /* aba com orla de renda (inc/lace.php) */
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  filter: drop-shadow(0 2px 2px rgba(70,70,45,.16));
}
.seal {
  position: absolute; left: 50%; top: 58%; translate: -50% -50%; z-index: 2;
  width: 58px; height: 58px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #BCC8DE, var(--hydrangea-deep));
  box-shadow: 0 3px 8px rgba(60,70,100,.35), inset 0 0 0 4px rgba(255,255,255,.18);
  display: grid; place-items: center;
  font-family: var(--font-script); color: var(--white); font-size: 1.6rem; line-height: 1;
}
.card {
  width: min(270px, 74vw); aspect-ratio: .72;
  background: var(--white);
  padding: 30px 24px;
  display: grid; align-content: center; justify-items: center; gap: 14px; text-align: center;
  box-shadow: 0 18px 40px rgba(70,70,45,.28), 0 2px 4px rgba(70,70,45,.12);
  outline: 1px solid rgba(127,145,180,.45); outline-offset: -12px;
}
.card .script { font-size: 2.6rem; margin: 0; }
.card p { font-size: .98rem; line-height: 1.5; color: var(--ink); }
.card .eyebrow { font-size: .68rem; color: var(--ink-soft); }
.strip {
  background: #1F1F1C; padding: 9px 9px 26px;
  display: grid; gap: 9px; width: min(132px, 36vw);
  box-shadow: 0 18px 40px rgba(40,40,30,.35);
}
.strip .ph { aspect-ratio: 1.05; }

/* ---------- fotografias (marcadores) ---------- */
.ph {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 13% 32% at 44% 66%, rgba(30,30,30,.62), rgba(0,0,0,0) 72%),
    radial-gradient(ellipse 12% 30% at 57% 64%, rgba(30,30,30,.55), rgba(0,0,0,0) 72%),
    linear-gradient(180deg, #E4E4E0 0%, #CFCFCA 44%, #9E9E97 46%, #7B7B74 100%);
}
.ph.portrait {
  background:
    radial-gradient(ellipse 22% 26% at 42% 42%, rgba(240,240,236,.55), rgba(0,0,0,0) 70%),
    radial-gradient(ellipse 20% 24% at 62% 46%, rgba(240,240,236,.45), rgba(0,0,0,0) 70%),
    linear-gradient(180deg, #5F5F5A, #34342F);
}
.ph.interior {
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(30,30,28,.35)),
    repeating-linear-gradient(90deg, rgba(0,0,0,0) 0 18px, rgba(40,40,36,.25) 18px 22px),
    radial-gradient(ellipse 18% 40% at 50% 30%, #F2F2EE, rgba(0,0,0,0) 70%),
    linear-gradient(180deg, #A9A9A3, #6D6D66);
}
.ph::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .55; mix-blend-mode: overlay; }
.ph-label {
  position: absolute; left: 0; right: 0; bottom: 8px; z-index: 1; text-align: center;
  font-family: var(--font-caps); text-transform: uppercase; letter-spacing: .24em; font-size: .62rem; color: rgba(255,255,255,.8);
}

/* ---------- molduras de renda (inc/lace.php) ---------- */
.lace {
  --lace: var(--hydrangea);
  position: relative; color: var(--lace);
  width: min(440px, 100%);
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.55)) drop-shadow(0 12px 20px rgba(80,90,120,.20));
}
.lace-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.lace-fill { fill: currentColor; }
.lace-thread { fill: none; stroke: rgba(255,255,255,.28); stroke-width: .8; stroke-dasharray: 1.6 2.4; }
.lace-line { fill: none; stroke: rgba(255,255,255,.75); stroke-width: 1.2; }
.lace-photo { position: absolute; }
.lace-photo .ph { position: absolute; inset: 0; }
.lace-stamp { width: min(340px, 100%); filter: drop-shadow(0 10px 18px rgba(80,90,120,.24)); }
.lace-cartouche { --lace: var(--white); width: min(400px, 100%); filter: drop-shadow(0 1px 0 rgba(255,255,255,.4)) drop-shadow(0 12px 22px rgba(50,62,95,.28)); }
.lace-cartouche .lace-thread { stroke: rgba(127,145,180,.45); }
.lace-cartouche .ph { box-shadow: 0 0 0 1px rgba(127,145,180,.5); }

/* ---------- história ---------- */
.story { padding-block: 110px; }
.story .wrap { display: grid; justify-items: center; gap: 44px; }
.story .lace { width: min(460px, 100%); }
.prose { max-width: 60ch; text-align: center; display: grid; gap: 1em; color: var(--ink); }
.prose p:first-child::first-letter { font-family: var(--font-script); font-size: 3.1em; float: left; line-height: .8; padding: .08em .12em 0 0; color: var(--hydrangea-deep); }
.prose p:first-child { text-align: left; }

/* ---------- programa ---------- */
.schedule { padding-block: 110px; }
.schedule .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 64px; align-items: center; }
.schedule .lace { width: min(320px, 78vw); }
.schedule-text { display: grid; gap: 30px; min-width: 0; }
.schedule .heading { justify-items: start; text-align: left; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li {
  display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); gap: 18px;
  padding-block: 18px; border-top: 1px solid rgba(127,145,180,.35);
}
.timeline li:last-child { border-bottom: 1px solid rgba(127,145,180,.35); }
.time { font-family: var(--font-caps); letter-spacing: .12em; font-size: 1.15rem; color: var(--hydrangea-deep); font-variant-numeric: tabular-nums; padding-top: 2px; }
.timeline h3 { font-family: var(--font-caps); text-transform: uppercase; letter-spacing: .16em; font-size: 1rem; }
.timeline p { color: var(--ink-soft); font-size: 1.02rem; }

/* ---------- bandas azuis ---------- */
.band {
  --trim: 14px;
  background: var(--hydrangea); color: var(--white); padding-block: 72px;
  z-index: 1; margin-block: var(--trim);
}
.band::before, .band::after { /* orla de renda em cima e em baixo: festões, ilhós e picôs */
  content: ""; position: absolute; left: 0; right: 0; height: var(--trim); pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, var(--hydrangea) 1.5px, rgba(0,0,0,0) 2px) 0 2px / 22px 4px repeat-x,
    radial-gradient(circle at 50% 70%, var(--paper) 2.2px, rgba(0,0,0,0) 2.7px) 0 100% / 22px 10px repeat-x,
    radial-gradient(circle at 50% 100%, var(--hydrangea) 9px, rgba(0,0,0,0) 9.5px) 0 100% / 22px 10px repeat-x;
  background-repeat: repeat-x;
}
.band::before { bottom: 100%; }
.band::after { top: 100%; transform: scaleY(-1); }
.band .caps, .band .script, .band .time { color: var(--white); }
.frame { /* moldura em relevo: filete exterior, cordão de pérolas e filete interior */
  position: relative;
  border: 1px solid rgba(255,255,255,.7);
  outline: 1px solid rgba(255,255,255,.45); outline-offset: 6px;
  box-shadow: inset 0 1px 0 rgba(60,75,110,.12), 0 1px 0 rgba(60,75,110,.12);
  padding: clamp(44px, 7vw, 80px) clamp(22px, 6vw, 72px);
  margin: 8px;
}
.frame::before, .frame::after { content: ""; position: absolute; pointer-events: none; }
.frame::before {
  inset: 12px;
  background:
    radial-gradient(circle, rgba(255,255,255,.65) 1.1px, rgba(0,0,0,0) 1.6px) top left / 7px 3px repeat-x,
    radial-gradient(circle, rgba(255,255,255,.65) 1.1px, rgba(0,0,0,0) 1.6px) bottom left / 7px 3px repeat-x,
    radial-gradient(circle, rgba(255,255,255,.65) 1.1px, rgba(0,0,0,0) 1.6px) top left / 3px 7px repeat-y,
    radial-gradient(circle, rgba(255,255,255,.65) 1.1px, rgba(0,0,0,0) 1.6px) top right / 3px 7px repeat-y;
}
.frame::after {
  inset: 20px;
  border: 1px solid rgba(255,255,255,.3);
  box-shadow: 0 1px 0 rgba(60,75,110,.14), inset 0 1px 0 rgba(60,75,110,.10);
}
.frame > * { position: relative; z-index: 1; }
.corner { position: absolute; z-index: 1; width: 60px; height: 60px; color: rgba(255,255,255,.85); }
.corner.tl { top: 24px; left: 24px; }
.corner.tr { top: 24px; right: 24px; transform: scaleX(-1); }
.corner.bl { bottom: 24px; left: 24px; transform: scaleY(-1); }
.corner.br { bottom: 24px; right: 24px; transform: scale(-1); }

.venue-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: center; }
.venue-text { display: grid; gap: 28px; min-width: 0; }
.venue-text .heading { justify-items: start; text-align: left; }
.place { display: grid; gap: 6px; }
.place h3 { font-family: var(--font-caps); text-transform: uppercase; letter-spacing: .16em; font-size: 1.05rem; }
.place .eyebrow { font-size: .72rem; opacity: .85; }
.place p { font-size: 1.02rem; opacity: .95; }
.venue-grid .lace { width: min(340px, 72vw); }

/* ---------- detalhes ---------- */
.details { padding-block: 110px; }
.details .wrap { display: grid; gap: 56px; }
.icons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 40px; }
.icon-item { display: grid; justify-items: center; text-align: center; gap: 12px; }
.icon-item svg, .icon-item .icon-img { width: 64px; height: 64px; color: var(--hydrangea-deep); object-fit: contain; }
.icon-item h3 { font-family: var(--font-caps); text-transform: uppercase; letter-spacing: .16em; font-size: .95rem; }
.icon-item p { font-size: 1rem; color: var(--ink-soft); max-width: 30ch; }

/* ---------- presentes ---------- */
.gifts .frame { text-align: center; display: grid; justify-items: center; gap: 22px; }
.gifts p { max-width: 56ch; }
.gifts .sign { font-family: var(--font-script); font-size: 2.4rem; line-height: 1; margin-top: 8px; }

/* ---------- RSVP ---------- */
.rsvp { padding-block: 110px; }
.rsvp .wrap { display: grid; justify-items: center; gap: 22px; }
.rsvp .lead { text-align: center; color: var(--ink-soft); max-width: 44ch; }
form {
  width: 100%; max-width: 560px; margin-top: 18px;
  background: var(--white);
  padding: clamp(24px, 5vw, 44px);
  box-shadow: 0 1px 0 rgba(127,145,180,.25), 0 22px 50px rgba(86,98,126,.12);
  display: grid; gap: 22px;
}
.field { display: grid; gap: 6px; }
label, legend { font-family: var(--font-caps); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; color: var(--ink); }
input[type=text], input[type=email], select, textarea {
  font: inherit; font-size: 1.05rem; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid rgba(127,145,180,.55);
  padding: 8px 2px; border-radius: 0; width: 100%;
}
textarea { resize: vertical; min-height: 84px; }
input:focus, select:focus, textarea:focus { outline: none; border-bottom-color: var(--hydrangea-deep); box-shadow: 0 1px 0 var(--hydrangea-deep); }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-block; padding: 9px 18px; border: 1px solid rgba(127,145,180,.6);
  font-size: 1rem; cursor: pointer; transition: background .3s, color .3s;
}
.choice input:checked + span { background: var(--hydrangea-deep); color: var(--white); border-color: var(--hydrangea-deep); }
.choice input:focus-visible + span { outline: 2px solid var(--hydrangea-deep); outline-offset: 3px; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
button {
  font-family: var(--font-caps); text-transform: uppercase; letter-spacing: .24em; font-size: .9rem;
  background: var(--hydrangea-deep); color: var(--white); border: 0; padding: 16px 28px; cursor: pointer;
  transition: background .3s;
}
button:hover { background: var(--ink); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--hydrangea-deep); outline-offset: 3px; }
.thanks { text-align: center; display: grid; gap: 10px; justify-items: center; padding-block: 20px; }
.thanks .script { margin: 0; }
.err { color: #9A5A5A; font-size: .95rem; }

/* ---------- rodapé ---------- */
.finale { position: relative; min-height: 460px; display: grid; place-items: center; color: var(--white); text-align: center; overflow: hidden; }
.finale-inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 14px; padding-block: 90px; text-shadow: 0 1px 14px rgba(80,82,55,.35); }
.monogram {
  width: 120px; height: 120px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.75); outline: 1px solid rgba(255,255,255,.4); outline-offset: 6px;
  display: grid; place-items: center;
  font-family: var(--font-script); font-size: 3rem; line-height: 1;
}
.finale .names { font-family: var(--font-script); font-size: clamp(2.6rem, 8vw, 4rem); line-height: 1.1; }

/* ---------- animações ---------- */
.anim .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0ms);
}
.anim .reveal.in { opacity: 1; transform: none; }

.anim [data-stagger] > * {
  opacity: 0; transform: translateY(34px) scale(.97);
  transition: opacity 1.1s ease, transform 1.2s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--i, 0) * var(--step, 180ms) + var(--d, 0ms));
}
.anim [data-stagger].in > * { opacity: 1; transform: none; }

.anim [data-type]:not(.split) { opacity: 0; }
.anim [data-type] .ch {
  opacity: 0; filter: blur(4px);
  transition: opacity .55s ease, filter .55s ease;
  transition-delay: calc(var(--c) * var(--speed, 70ms) + var(--d, 0ms));
}
.anim [data-type].in .ch { opacity: 1; filter: blur(0); }

.anim .hero-rule.reveal { transform: scaleX(0); }
.anim .hero-rule.reveal.in { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .drapes::before, .scroll-hint i { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsivo ---------- */
@media (max-width: 1024px) {
  .schedule .wrap { gap: 44px; }
  .venue-grid { gap: 40px; }
}
@media (max-width: 820px) {
  .story, .schedule, .details, .rsvp { padding-block: 84px; }
  .invite { padding-block: 76px; }
  .band { padding-block: 56px; }
  .schedule .lace { order: -1; }
  .schedule .wrap, .venue-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; justify-items: center; }
  .schedule .heading, .venue-text .heading { justify-items: center; text-align: center; }
  .venue-text { text-align: center; }
  .icons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-text { width: 100%; }
}
@media (max-width: 520px) {
  body { font-size: 1.0625rem; }
  .story, .schedule, .details, .rsvp { padding-block: 68px; }
  .story .wrap { gap: 34px; }
  .details .wrap { gap: 40px; }
  .hero-inner { padding-block: 96px 120px; gap: 14px; }
  .hero .eyebrow { font-size: .74rem; letter-spacing: .18em; }
  .hero-date { font-size: .82rem; letter-spacing: .2em; }
  .caps { letter-spacing: .1em; }
  .prose p:first-child { text-align: center; }
  .prose p:first-child::first-letter { float: none; font-size: 1.9em; line-height: 1; padding: 0 .04em 0 0; }
  .icons { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .band { padding-block: 40px; }
  .frame { margin: 6px 0; padding: 56px 18px 52px; }
  .frame::before { inset: 9px; }
  .frame::after { inset: 15px; }
  .corner.tl { top: 18px; left: 18px; } .corner.tr { top: 18px; right: 18px; }
  .corner.bl { bottom: 18px; left: 18px; } .corner.br { bottom: 18px; right: 18px; }
  .venue-grid .lace { width: min(300px, 82vw); }
  .schedule .lace { width: min(280px, 80vw); }
  .gifts .sign { font-size: 2rem; }
  .finale { min-height: 380px; }
  .monogram { width: 96px; height: 96px; font-size: 2.4rem; }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .timeline li { grid-template-columns: 4.4rem minmax(0, 1fr); gap: 12px; }
  .cluster { gap: 22px; }
  .cluster .tilt { --r: 0deg !important; }
  .corner { width: 40px; height: 40px; }
  .timeline li { padding-block: 14px; }
  .time { font-size: 1rem; }
}
@media (max-width: 360px) {
  .hero-names { font-size: 2.6rem; }
  .choice span { padding: 8px 14px; }
}
@media (min-width: 521px) and (max-width: 820px) {
  .cluster { gap: 28px 16px; }
  .envelope { width: min(260px, 60vw); }
}

/* ---------- fotografias reais ---------- */
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ph.has-img { background: #3A3A36; }
.ph.has-img::after { opacity: .35; }
.bw .ph > img { filter: grayscale(1) contrast(1.04); }

/* ---------- barra de administração ---------- */
.admin-bar .hero { min-height: min(calc(92vh - 32px), 860px); }

/* ---------- páginas e artigos normais ---------- */
.entry { padding-block: 120px 100px; }
.entry .wrap { max-width: 760px; display: grid; gap: 28px; }
.entry .heading { margin-bottom: 12px; }
.entry-content { display: grid; gap: 1em; }
.entry-content > * { margin: 0; }
.entry-content a { color: var(--hydrangea-deep); }
.entry-content img { height: auto; }
.entry-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
.entry-list a { color: inherit; text-decoration: none; }
.entry-list a:hover .caps { color: var(--hydrangea-deep); }
.back-home { justify-self: center; font-family: var(--font-caps); text-transform: uppercase; letter-spacing: .22em; font-size: .82rem; color: var(--hydrangea-deep); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
button[disabled] { opacity: .6; cursor: progress; }

/* ---------- extras do tema ---------- */
.row2.single { grid-template-columns: minmax(0, 1fr); }
form.is-no .if-yes { display: none; }
.map-link {
  justify-self: start; margin-top: 4px;
  color: var(--white); font-family: var(--font-caps); text-transform: uppercase; letter-spacing: .2em; font-size: .74rem;
  text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.6); padding-bottom: 2px;
}
.map-link:hover { border-bottom-color: var(--white); }
@media (max-width: 820px) { .map-link { justify-self: center; } }
.iban { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; max-width: 100%; }
.iban code { font-family: var(--font-body); font-size: 1.05rem; letter-spacing: .06em; background: rgba(255,255,255,.18); padding: 6px 12px; overflow-wrap: anywhere; min-width: 0; }
.iban .copy { background: transparent; border: 1px solid rgba(255,255,255,.7); padding: 8px 16px; font-size: .74rem; }
.iban .copy:hover { background: rgba(255,255,255,.15); }
[hidden] { display: none !important; }
