/*
Theme Name: Dan & Hannah: Til Death Do Us Part
Author: Miss Pepper AI
Author URI: https://misspepper.ai
Description: Gothic linocut wedding theme for Dan & Hannah, October 9, 2027.
Version: 1.0.5
Text Domain: dh-wedding
*/

:root {
	--bone: #f2e9d5;
	--bone-2: #ebe2cd;
	--ink: #090b0a;
	--ink-soft: #3c2c27;
	--oxblood: #6b1d20;
	--oxblood-dark: #4a1417;
	--blood-light: #c0564c;
	--grey: #83796d;
	--grey-soft: #cdc4b3;
	--display: "Pirata One", "Old English Text MT", serif;
	--serif: "Roboto Serif", Georgia, serif;
	--body: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--wrap: 1320px;
	--gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bone);
	color: var(--ink);
	font: 400 1.0625rem/1.65 var(--body);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--oxblood); }
a:hover { color: var(--oxblood-dark); }
:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 2px; }
/* Oxblood rings vanish on the black bands (1.7:1); use bone there. */
.countdown :focus-visible, .rsvp-band :focus-visible { outline-color: var(--bone); }

h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: .01em; line-height: 1; margin: 0 0 .4em; }
h1 { font-size: clamp(2.75rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2.2rem, 3.8vw, 3.2rem); color: var(--oxblood); }
h3 { font: 700 1.6rem/1.1 var(--serif); font-stretch: 75%; color: var(--oxblood); margin: 0 0 .3em; }
p { margin: 0 0 1em; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--bone); padding: .6em 1em; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Ornament rule under headings */
.flourish { display: flex; align-items: center; gap: .6rem; color: var(--grey); margin: .2rem 0 1.4rem; }
.flourish::before, .flourish::after { content: ""; height: 1px; background: currentColor; flex: 1; }
.flourish img { width: 26px; height: 26px; }
.center { text-align: center; }
.center .flourish { max-width: 360px; margin-left: auto; margin-right: auto; }

/* Buttons */
.btn, .wp-block-button.btn-primary .wp-block-button__link, .wp-block-button.btn-ghost .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: .7em;
	font: 700 1rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
	padding: 1.2rem 2.2rem; border: 1px solid var(--ink); border-radius: 2px; cursor: pointer;
	transition: background-color .25s, color .25s;
}
.btn::before, .btn::after { content: "\2726"; font-size: .7em; opacity: .8; }
.btn-primary, .wp-block-button.btn-primary .wp-block-button__link { background: var(--oxblood); color: var(--bone); border-color: var(--oxblood-dark); box-shadow: inset 0 0 0 3px var(--oxblood), inset 0 0 0 4px rgba(242,233,213,.6); }
.btn-primary:hover, .wp-block-button.btn-primary .wp-block-button__link:hover { background: var(--oxblood-dark); color: var(--bone); }
.btn-ghost, .wp-block-button.btn-ghost .wp-block-button__link { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 3px var(--bone), inset 0 0 0 4px var(--ink); }
.btn-ghost:hover, .wp-block-button.btn-ghost .wp-block-button__link:hover { background: var(--ink); color: var(--bone); }
.btn-sm { padding: .7rem 1.4rem; font-size: .9rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bone); border-bottom: 1px solid var(--grey-soft); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { font-family: var(--display); font-weight: 400; font-size: 2.6rem; color: var(--ink); text-decoration: none; line-height: 1; }
.brand span { font-family: var(--body); font-size: .55em; vertical-align: middle; margin: 0 .15em; }
.site-header .brand { display: inline-flex; flex-direction: column; align-items: center; }
.site-header .brand > .mono { font: inherit; margin: 0; vertical-align: baseline; white-space: nowrap; }
.site-header .brand img { width: 92px; margin-top: 2px; }
.home .site-header .brand { font-size: 3.2rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1rem, 3.4vw, 3.4rem); }
.nav a { font: 600 1.3rem/1 var(--body); font-stretch: 75%; letter-spacing: .02em; color: var(--ink); text-decoration: none; padding: .5rem 0; }
.nav a { white-space: nowrap; }
@media (min-width: 781px) and (max-width: 1280px) { .nav ul { gap: clamp(.8rem, 1.9vw, 1.8rem); } .nav a { font-size: 1.15rem; } }
.header-rsvp { font: 700 1.35rem/1 var(--serif); font-stretch: 75%; letter-spacing: .06em; padding: .75rem 1.4rem; }
.nav a:hover, .nav .current-menu-item a { color: var(--oxblood); }
.nav-toggle { display: none; background: none; border: 1px solid var(--ink); padding: .5rem .7rem; font: 700 .8rem var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }

/* 01 Hero: framed page, nav sits inside the frame on the home page */
body.home { position: relative; }
.home .site-header { position: absolute; left: 0; right: 0; top: 0; background: transparent; border: 0; }
.home .site-header .wrap { max-width: none; margin: 0 clamp(16px, 5vw, 76px); padding: 2.1rem 0 .4rem; border-bottom: 1px solid var(--ink); min-height: 122px; }
.hero { position: relative; }
.home .hero { padding-top: 126px; }
.hero::before { content: ""; position: absolute; inset: 14px 14px 0; border: 2px solid var(--ink); border-bottom: 0; pointer-events: none; z-index: 1; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; background: url("assets/images/hero-corner.webp") left top/74px no-repeat, url("assets/images/hero-corner-tr.webp") right top/74px no-repeat; }
.hero .wrap {
	max-width: none; display: grid; grid-template-columns: minmax(340px, 44%) 1fr; gap: 1rem;
	min-height: min(720px, 84vh); align-items: center; padding-right: 0;
	padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + 20px));
}
.hero-copy { padding: 1.5rem 0 2.5rem; text-align: center; }
.hero h1 { font-size: clamp(3.6rem, 8.6vw, 9rem); line-height: .92; margin: 0; letter-spacing: -.01em; }
.hero h1 .line-2 { display: block; color: var(--oxblood); white-space: nowrap; }
.hero .flourish { margin: .9rem 0 1.1rem; color: var(--ink); }
.hero .names { font-family: var(--display); font-weight: 400; color: var(--oxblood); font-size: clamp(2.8rem, 5.8vw, 5.4rem); line-height: 1; margin: 0 0 1rem; }
.hero .when { font: 700 1.35rem/1.4 var(--body); font-stretch: 80%; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 1.8rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; }
.hero .btn { font: 700 1.75rem/1 var(--serif); font-stretch: 75%; letter-spacing: .04em; text-transform: uppercase; padding: 1rem 1.7rem; }
.hero-art { align-self: stretch; height: 100%; overflow: hidden; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; transform: scale(1.06); transform-origin: 50% 100%; }

/* 02 Countdown */
.countdown { background: var(--ink); color: var(--bone); padding: 1.6rem 0; }
.countdown .wrap { max-width: none; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: nowrap; min-height: 190px; padding: 0 clamp(8px, 1.2vw, 20px); }
.count-head { text-align: center; }
.countdown h2 { color: var(--blood-light); margin: 0; font-size: clamp(2.2rem, 3.4vw, 3.3rem); }
.countdown .divider { width: 100%; max-width: 380px; margin: .5rem auto 0; }
.countdown .rose { width: auto; height: 150px; }
.clock { display: grid; grid-template-columns: repeat(4, minmax(78px, 150px)); gap: 1rem; margin: 0; }
.clock div { display: flex; flex-direction: column-reverse; gap: .25rem; border: 2px solid var(--bone); border-radius: 2px; box-shadow: inset 0 0 0 4px var(--ink), inset 0 0 0 5px rgba(242,233,213,.45); padding: 1rem .4rem .9rem; text-align: center; }
.clock div::before { content: ""; order: 3; display: block; height: 58px; background: center/contain no-repeat; }
.clock div:nth-child(1)::before { background-image: url("assets/images/cd-hourglass.webp"); }
.clock div:nth-child(2)::before { background-image: url("assets/images/cd-clock-h.webp"); }
.clock div:nth-child(3)::before { background-image: url("assets/images/cd-clock-m.webp"); }
.clock div:nth-child(4)::before { background-image: url("assets/images/cd-skull.webp"); }
.clock dd { margin: 0; font: 700 2.2rem/1.1 var(--body); font-variant-numeric: tabular-nums; }
.clock dt { font: 700 1.25rem/1.2 var(--body); font-stretch: 75%; letter-spacing: .06em; text-transform: uppercase; }

/* Paired rows in a framed panel */
.pair { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.pair + .pair { padding-top: 0; }
.pair .wrap > .panel-row { position: relative; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--grey); box-shadow: inset 0 0 0 4px var(--bone), inset 0 0 0 5px var(--grey-soft); }
.panel { padding: clamp(1.8rem, 3.5vw, 3rem); }
.panel + .panel { border-left: 1px solid var(--grey-soft); }
/* Full-bleed ornate frame (03, 04) */
.pair.framed { padding: 10px 0; }
.pair.framed + .pair.framed { padding-top: 0; }
.pair.framed .wrap { max-width: none; padding: 0 10px; }
.pair.framed .wrap > .panel-row { border: 2px solid var(--ink); box-shadow: inset 0 0 0 5px var(--bone), inset 0 0 0 6px var(--ink); }
.pair.framed .panel-row::before { content: ""; position: absolute; inset: -4px; pointer-events: none; background: url("assets/images/frame-corner.webp") left top/74px no-repeat, url("assets/images/frame-corner-tr.webp") right top/74px no-repeat, url("assets/images/frame-corner-bl.webp") left bottom/74px no-repeat, url("assets/images/frame-corner-br.webp") right bottom/74px no-repeat; }
.pair.framed .panel { padding: clamp(1.4rem, 2.4vw, 2.2rem) clamp(1.2rem, 2.4vw, 2.4rem); }
.pair.framed .panel + .panel { border-left: 1px solid var(--ink); margin: 1.6rem 0; padding-top: 0; padding-bottom: 0; }

/* 03 Story + Details */
.story { display: grid; grid-template-columns: minmax(0, 1.05fr) 1fr; gap: 1.6rem; align-items: center; }
.story img { width: 100%; max-width: 440px; margin: -1rem auto; }
.story h2 { font-size: clamp(2.6rem, 4.4vw, 4.4rem); white-space: nowrap; }
.story h2::after, .details h2::after { content: ""; display: block; height: 22px; margin-top: .5rem; background: url("assets/images/icon-rose.webp") center/18px no-repeat, linear-gradient(var(--ink), var(--ink)) center/100% 1px no-repeat; }
.details h2::after, [data-section="04-night-travel"] h2::after { content: ""; display: block; height: 22px; width: 70%; margin: .4rem auto 0; background: url("assets/images/icon-rose.webp") center/18px no-repeat, linear-gradient(var(--ink), var(--ink)) center/100% 1px no-repeat; }
.story p { color: var(--ink); font-size: 1.35rem; font-stretch: 80%; line-height: 1.6; }
.more { font: 700 1.35rem var(--body); font-stretch: 80%; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.details h2 { font-size: clamp(2.6rem, 4vw, 4rem); margin-bottom: .7rem; }
.more::after { content: " \2192"; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { position: relative; border: 1px solid var(--ink); padding: 2rem .8rem 2rem; text-align: center; }
.card::before { content: ""; position: absolute; inset: -3px; pointer-events: none; background: url("assets/images/card-corner.webp") left top/36px no-repeat, url("assets/images/card-corner-tr.webp") right top/36px no-repeat, url("assets/images/card-corner-bl.webp") left bottom/36px no-repeat, url("assets/images/card-corner-br.webp") right bottom/36px no-repeat; }
.card img { width: auto; height: 112px; max-width: 120px; margin: 0 auto .6rem; object-fit: contain; }
.card h3 { font-size: 1.6rem; }
.card p { font-size: 1.25rem; font-stretch: 80%; line-height: 1.4; margin: 0; color: var(--ink); }

/* 04 Night + Travel */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 90px; top: .4rem; bottom: .4rem; width: 1px; background: var(--ink); }
.timeline li { display: grid; grid-template-columns: 66px 48px 1fr; grid-template-rows: auto auto; align-items: center; margin-bottom: 1.5rem; }
.timeline img { grid-row: 1 / span 2; width: 62px; height: 62px; object-fit: contain; }
.timeline .t, .travel a { font-stretch: 80%; }
[data-section="04-night-travel"] h2 { font-size: clamp(2.6rem, 4vw, 4rem); }
.timeline li::after { content: ""; grid-column: 2; grid-row: 1 / span 2; justify-self: center; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.timeline h3 { grid-column: 3; grid-row: 1; margin: 0; font-size: 1.9rem; }
.timeline .t { grid-column: 3; font-size: 1.05rem; color: var(--ink-soft); margin: 0; }
.travel { display: grid; grid-template-columns: 170px 1fr; gap: 1rem; align-items: stretch; }
.travel ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--grey); }
.travel li + li { border-top: 1px solid var(--grey-soft); }
.travel a { display: flex; align-items: center; gap: .7rem; padding: 1.2rem .8rem; color: var(--ink); text-decoration: none; font: 700 1.3rem/1.15 var(--serif); font-stretch: 75%; }
.travel a:hover { color: var(--oxblood); }
.travel li img { width: 48px; height: 48px; object-fit: contain; flex: none; }
.map { margin: 0; position: relative; border: 1px solid var(--grey); min-height: 340px; }
.map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map .lbl { position: absolute; font: 700 .72rem/1.15 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); text-align: center; background: rgba(242,233,213,.8); padding: .1rem .3rem; }
.map .lbl-main { left: 50%; top: 40%; transform: translate(-50%, -100%); color: var(--oxblood); font-size: .8rem; }
.map .lbl-ww { right: 8%; top: 8%; }
.map .lbl-wsf { right: 4%; top: 52%; }

/* 05 FAQ */
.faq { padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem); }
.faq h2 { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.faq-list, .wp-block-group.faq-list { position: relative; max-width: 1240px; margin: 0 auto; border: 2px solid var(--ink); padding: .2rem 2rem; }
.faq-list::before { content: ""; position: absolute; inset: -4px; pointer-events: none; background: url("assets/images/card-corner.webp") left top/34px no-repeat, url("assets/images/card-corner-tr.webp") right top/34px no-repeat, url("assets/images/card-corner-bl.webp") left bottom/34px no-repeat, url("assets/images/card-corner-br.webp") right bottom/34px no-repeat; }
details.qa, .wp-block-details { border-bottom: 1px solid var(--ink); }
details.qa:last-child, .wp-block-details:last-child { border-bottom: 0; }
details.qa summary, .wp-block-details summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 1rem; padding: 1.05rem 0; font: 700 1.6rem/1.2 var(--serif); font-stretch: 75%; }
details.qa summary::-webkit-details-marker, .wp-block-details summary::-webkit-details-marker { display: none; }
details.qa summary::before, .wp-block-details summary::before { content: ""; width: 52px; height: 36px; flex: none; background: url("assets/images/faq-birdskull.webp") center/contain no-repeat; }
details.qa summary::after, .wp-block-details summary::after { content: "+"; margin-left: auto; font: 300 2.6rem/1 var(--body); transition: transform .25s; }
details[open].qa summary::after, .wp-block-details[open] summary::after { transform: rotate(45deg); }
details.qa p, .wp-block-details p { padding: 0 0 1rem 68px; margin: 0; color: var(--ink-soft); }

/* 06 RSVP band */
.rsvp-band { position: relative; overflow: hidden; background: var(--ink); color: var(--bone); text-align: center; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.rsvp-band::before, .rsvp-band::after { content: ""; position: absolute; top: 50%; width: min(20vw, 280px); aspect-ratio: 1; transform: translateY(-50%); background: center/contain no-repeat; }
.rsvp-band::before { left: 2vw; background-image: url("assets/images/art-raven.webp"); }
.rsvp-band::after { right: 2vw; background-image: url("assets/images/art-skull.webp"); }
.rsvp-band .wrap { position: relative; z-index: 1; max-width: 900px; }
.rsvp-band h2 { color: var(--blood-light); font-size: clamp(2.2rem, 3.8vw, 3.6rem); margin-bottom: .2rem; }
.rsvp-band p { color: var(--bone); font-size: 1.6rem; font-stretch: 80%; }
.rsvp-band p::after { content: ""; display: block; width: 320px; max-width: 80%; height: 1px; background: rgba(242,233,213,.5); margin: .9rem auto 0; }
.rsvp-band .btn-primary { font: 700 2.6rem/1 var(--serif); font-stretch: 75%; letter-spacing: .06em; padding: 1.4rem 4.5rem; box-shadow: inset 0 0 0 4px var(--oxblood), inset 0 0 0 5px rgba(242,233,213,.7); }
.rsvp-band .reg { display: inline-block; margin-top: 1.4rem; color: var(--blood-light); font: 700 1.4rem var(--body); letter-spacing: .14em; text-transform: uppercase; }
.rsvp-band .reg::before, .rsvp-band .reg::after { content: " \2726 "; color: var(--bone); opacity: .6; }

/* 07 Footer */
.site-footer { position: relative; overflow: hidden; text-align: center; padding: 1.6rem 0 1.8rem; }
.site-footer::before, .site-footer::after { content: ""; position: absolute; bottom: 12px; width: 200px; height: 186px; background: url("assets/images/art-foot-left.webp") center/contain no-repeat; pointer-events: none; }
.site-footer::before { left: .5vw; }
.site-footer::after { right: .5vw; background-image: url("assets/images/art-foot-right.webp"); }
.site-footer .bone { width: min(480px, 70%); height: 20px; margin: 0 auto; object-fit: contain; background: linear-gradient(var(--grey), var(--grey)) center/100% 1px no-repeat; }
.site-footer .monorow { display: flex; align-items: center; justify-content: center; gap: 1.6rem; margin-top: .4rem; }
.site-footer .monorow img { width: min(180px, 16vw); }
.site-footer .brand { font-size: 6rem; display: inline-block; }
.site-footer .date { font: 700 1.5rem var(--body); font-stretch: 85%; letter-spacing: .08em; text-transform: uppercase; margin: .6rem 0 .3rem; display: flex; align-items: center; justify-content: center; gap: .8rem; }
.site-footer .date::before, .site-footer .date::after { content: ""; width: 34px; height: 2px; background: var(--ink); }
.site-footer small { font-size: .95rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.site-footer .star { width: 160px; margin: 1rem auto 0; }

/* Inner pages (block content) */
.page-hero { text-align: center; padding: clamp(2.5rem, 5vw, 4rem) var(--gutter) 1rem; }
.page-hero h1 { color: var(--ink); }
.page-body { padding-bottom: 4rem; }
.page-body > * { max-width: 860px; margin-left: auto; margin-right: auto; }
.page-body .alignwide { max-width: var(--wrap); }
.page-body h2 { margin-top: 1.6em; }
.page-body .wp-block-group.box { border: 1px solid var(--grey); box-shadow: inset 0 0 0 3px var(--bone), inset 0 0 0 4px var(--grey-soft); padding: 1.5rem 1.8rem; margin-bottom: 1.5rem; }
.page-body .wp-block-columns { gap: 1.2rem; }
.page-body .wp-block-image img { margin: 0 auto; }
.page-body .wp-block-image.ornament img { width: 64px; }

/* RSVP form */
.rsvp-form { max-width: 620px; margin: 0 auto; border: 1px solid var(--ink); box-shadow: inset 0 0 0 3px var(--bone), inset 0 0 0 4px var(--grey); padding: clamp(1.4rem, 4vw, 2.4rem); }
.rsvp-form label, .rsvp-form legend { display: block; font: 700 .85rem var(--body); letter-spacing: .1em; text-transform: uppercase; margin-bottom: .35rem; }
.rsvp-form input[type=text], .rsvp-form input[type=email], .rsvp-form input[type=number], .rsvp-form textarea { width: 100%; font: 400 1rem var(--body); padding: .75rem .8rem; border: 1px solid var(--ink-soft); background: #fbf6ea; color: var(--ink); border-radius: 2px; }
.rsvp-form fieldset { border: 0; padding: 0; margin: 0 0 1em; }
.rsvp-form .choice { display: inline-flex; gap: .4rem; margin-right: 1.4rem; font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 1rem; }
.rsvp-form .hp { position: absolute; left: -9999px; }
.notice { border-left: 4px solid var(--oxblood); background: var(--bone-2); padding: .8rem 1rem; }

/* Motion (JS adds .js on <html>; content is visible without it) */
.js .site-fade-on-scroll { opacity: 0; transform: translateY(24px); }
.js .site-stagger-children > * { opacity: 0; transform: translateY(18px); }
.js .site-hero-text .w { display: inline-block; opacity: 0; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .site-fade-on-scroll, .js .site-stagger-children > *, .js .site-hero-text .w { opacity: 1 !important; transform: none !important; }
	* { transition: none !important; animation: none !important; }
}

/* Tablet */
@media (max-width: 1200px) {
	.countdown .rose { display: none; }
	.countdown .wrap { justify-content: center; flex-wrap: wrap; }
}
@media (max-width: 960px) {
	.hero .wrap { grid-template-columns: 1fr; text-align: center; min-height: 0; padding: 2rem var(--gutter) 0; }
	.home .hero { padding-top: 90px; }
	.home .site-header .wrap { min-height: 84px; }
	.hero-art { margin-top: 0; }
	.hero .btn { font-size: 1.5rem; }
	.pair.framed .panel + .panel { border-left: 0; border-top: 1px solid var(--ink); margin: 0 1.6rem; padding: 1.6rem 0; }
	.story img { margin: 0 auto; }
	.hero .actions { justify-content: center; }
	.hero-art { height: auto; }
	.hero-art img { height: auto; max-height: 480px; transform: none; object-fit: contain; margin: 0 auto; }
	.pair .wrap > .panel-row { grid-template-columns: 1fr; }
	.panel + .panel { border-left: 0; border-top: 1px solid var(--grey-soft); }
	.countdown .wrap { justify-content: center; text-align: center; }
	.countdown .rose { display: none; }
	.rsvp-band::before, .rsvp-band::after { width: 110px; top: auto; bottom: 0; transform: none; opacity: .35; }
	.site-footer::before, .site-footer::after { width: 110px; height: 110px; opacity: .5; }
	.nav a { font-size: 1.05rem; }
	.nav ul { gap: .7rem; }
}
@media (max-width: 780px) {
	.nav-toggle { display: inline-block; }
	.nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bone); border-bottom: 1px solid var(--grey-soft); display: none; }
	.nav.open { display: block; }
	.nav ul { flex-direction: column; gap: 0; padding: .5rem 16px 1rem; }
	.nav a { display: block; padding: .8rem 0; }
	.header-rsvp { display: none; }
}
@media (max-width: 600px) {
	.hero .when { letter-spacing: .06em; font-size: 1rem; }
	.hero::after { background-size: 60px, 60px; }
	.site-footer .monorow { gap: .6rem; }
	.site-footer .monorow img { width: 18vw; }
	.site-footer .date { font-size: 1.15rem; }
	.rsvp-band .btn-primary { font-size: 1.8rem; padding: 1.1rem 2rem; }
	.countdown .wrap { padding: 0 var(--gutter); }
	.story { grid-template-columns: 1fr; text-align: center; }
	.story img { margin: 0 auto; width: 200px; }
	.cards { grid-template-columns: 1fr; }
	.clock { grid-template-columns: repeat(4, 1fr); gap: .4rem; width: 100%; }
	.clock dd { font-size: 1.5rem; }
	.clock dt { font-size: .65rem; letter-spacing: .06em; }
	.timeline::before { left: 78px; }
	.timeline li { grid-template-columns: 54px 48px 1fr; }
	.timeline img { width: 50px; height: 50px; }
	.travel { grid-template-columns: 1fr; }
	.map { aspect-ratio: 1; min-height: 0; }
	.faq-list, .wp-block-group.faq-list { padding: .4rem 1rem; }
	details.qa summary, .wp-block-details summary { font-size: 1.2rem; }
	.rsvp-band::before, .rsvp-band::after { display: none; }
	.site-footer .brand { font-size: 3.4rem; }
	.site-footer::before, .site-footer::after { display: none; }
}

/* Sticky RSVP on phones: the one action this site exists for. */
.sticky-rsvp { display: none; }
@media (max-width: 600px) {
	.sticky-rsvp { display: block; position: fixed; left: 16px; right: 16px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 50; text-align: center; box-shadow: 0 6px 20px rgba(9,11,10,.35); }
	body { padding-bottom: 5rem; }
}

/* Inner pages: lede, boxed icon cards, button rows. */
.page-body .lede { font-size: 1.25rem; text-align: center; color: var(--ink-soft); }
.page-body .wp-block-group.box.ico { position: relative; padding-left: 5.4rem; }
.page-body .box.ico::before { content: ""; position: absolute; left: 1.4rem; top: 1.4rem; width: 52px; height: 52px; background-position: center; background-size: contain; background-repeat: no-repeat; }
.page-body .box h3 { margin-top: 0; }
.page-body .box p:last-child { margin-bottom: 0; }
.ico-heart::before { background-image: url("assets/images/icon-heart.webp"); }
.ico-raven::before { background-image: url("assets/images/icon-raven.webp"); }
.ico-candelabra::before { background-image: url("assets/images/icon-candelabra.webp"); }
.ico-rings::before { background-image: url("assets/images/icon-rings.webp"); }
.ico-cocktail::before { background-image: url("assets/images/icon-cocktail.webp"); }
.ico-dancer::before { background-image: url("assets/images/icon-dancer.webp"); }
.ico-rose::before { background-image: url("assets/images/icon-rose.webp"); }
.ico-plane::before { background-image: url("assets/images/icon-plane.webp"); }
.ico-key::before { background-image: url("assets/images/icon-key.webp"); }
.ico-gift::before { background-image: url("assets/images/icon-gift.webp"); }
.page-body .wp-block-buttons { justify-content: center; margin: 2rem auto 0; gap: 1rem; }
.page-body .wp-block-heading[id] { scroll-margin-top: 6rem; }
@media (max-width: 600px) {
	.page-body .wp-block-group.box.ico { padding-left: 1.4rem; padding-top: 5rem; }
}
.page-body .wp-block-column > .box { height: 100%; }
.page-body .wp-block-list { list-style: none; padding: 0; }
.page-body .wp-block-list li { position: relative; padding: .7rem 0 .7rem 2.4rem; border-bottom: 1px solid var(--grey-soft); }
.page-body .wp-block-list li::before { content: ""; position: absolute; left: 0; top: .85rem; width: 26px; height: 26px; background: url("assets/images/icon-rose.webp") center/contain no-repeat; }
.rsvp-form input[type=radio] { accent-color: var(--oxblood); }

/* Inner page header: ornate double frame, engraved corners, rose sprigs and flourished title. */
.page-hero { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.page-hero-frame { position: relative; max-width: 1100px; margin: 0 auto; padding: clamp(2.2rem, 4vw, 3.4rem) clamp(1rem, 6vw, 8rem) clamp(1.6rem, 3vw, 2.4rem); border: 2px solid var(--ink); box-shadow: inset 0 0 0 5px var(--bone), inset 0 0 0 6px var(--ink); }
.page-hero-frame::before { content: ""; position: absolute; inset: -6px; pointer-events: none; background: url("assets/images/frame-corner.webp") left top/80px no-repeat, url("assets/images/frame-corner-tr.webp") right top/80px no-repeat, url("assets/images/frame-corner-bl.webp") left bottom/80px no-repeat, url("assets/images/frame-corner-br.webp") right bottom/80px no-repeat; }
.page-hero-frame::after { content: ""; position: absolute; inset: auto 0 6px; height: 150px; pointer-events: none; background: url("assets/images/art-foot-left.webp") left 18px bottom/auto 150px no-repeat, url("assets/images/art-foot-right.webp") right 18px bottom/auto 150px no-repeat; opacity: .9; }
.page-hero h1 { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .5em; margin: 0; }
.page-hero .title-orn { flex: none; width: clamp(60px, 9vw, 150px); height: .5em; background: url("assets/images/foot-flourish-left.webp") center/contain no-repeat; }
.page-hero .title-orn:last-child { background-image: url("assets/images/foot-flourish-right.webp"); }
@media (max-width: 780px) {
	.page-hero-frame { padding: 2.4rem 1.4rem 3.4rem; }
	.page-hero-frame::after { height: 64px; background-size: auto 64px; background-position: left 10px bottom, right 10px bottom; opacity: .7; }
	.page-hero .title-orn { display: none; }
}

/* Wedding party cards. */
.page-body .wp-block-group.party-grid { max-width: 1000px; margin: 1rem auto 2rem; }
.page-body .party-grid > .wp-block-group__inner-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; max-width: none; margin: 0; }
.page-body .party-grid .party-card { flex: 0 1 200px; max-width: none; margin: 0; text-align: center; border: 1px solid var(--ink); box-shadow: inset 0 0 0 3px var(--bone), inset 0 0 0 4px var(--grey); padding: 1.4rem 1rem 1.2rem; background: url("assets/images/card-corner.webp") left 6px top 6px/30px no-repeat, url("assets/images/card-corner-tr.webp") right 6px top 6px/30px no-repeat, url("assets/images/card-corner-bl.webp") left 6px bottom 6px/30px no-repeat, url("assets/images/card-corner-br.webp") right 6px bottom 6px/30px no-repeat; }
.page-body .party-card::before { content: ""; display: block; width: 58px; height: 58px; margin: 0 auto .6rem; background-position: center; background-size: contain; background-repeat: no-repeat; }
.page-body .party-card h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 2rem; }
.page-body .party-card .role { margin: .2rem 0 0; font: 700 .8rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--oxblood); }
@media (max-width: 600px) { .page-body .party-grid .party-card { flex-basis: calc(50% - .6rem); padding: 1.2rem .5rem 1rem; } .page-body .party-card h3 { font-size: 1.6rem; } .page-body .party-card .role { font-size: .68rem; letter-spacing: .08em; } }
.page-body .party-intro + section h2, .page-body [class*="site-section-party"] h2 { text-align: center; }
.ico-skull::before { background-image: url("assets/images/icon-skull.webp"); }
.ico-bones::before { background-image: url("assets/images/icon-bones.webp"); }

/* 404. */
.not-found { text-align: center; }
.not-found .nf-art { display: block; width: 200px; height: auto; margin: 0 auto 1rem; filter: brightness(.12); }
.not-found .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin: 1.5rem 0 1rem; }
div.wp-block-button.btn-primary, div.wp-block-button.btn-ghost { background: none; border: 0; box-shadow: none; padding: 0; }
.site-footer .foot-links { margin: .6rem 0 0; font: 500 .8rem var(--body); letter-spacing: .12em; text-transform: uppercase; }
.site-footer .foot-links a { color: var(--ink-soft); }

/* Photo gallery and story portrait: framed like prints. */
.page-body .wp-block-gallery.dh-gallery { display: block; max-width: var(--wrap); columns: 3 260px; column-gap: 1rem; }
.page-body .dh-gallery.wp-block-gallery > .wp-block-image { display: block; width: 100% !important; margin: 0 0 1rem; break-inside: avoid; }
.page-body .dh-gallery .wp-block-image img { display: block; width: 100%; height: auto !important; object-fit: contain; border: 1px solid var(--ink); padding: 6px; background: var(--bone); box-shadow: 0 0 0 1px var(--grey-soft); cursor: zoom-in; }
.page-body .wp-block-image.story-photo { max-width: 420px; margin: 1.5rem auto 2rem; }
.page-body .wp-block-image.story-photo img { width: 100%; height: auto; border: 2px solid var(--ink); padding: 8px; background: var(--bone); box-shadow: inset 0 0 0 1px var(--grey); }

/* Photo viewer: whole photo, never cropped. */
.dh-viewer { border: 0; padding: 0; max-width: none; max-height: none; width: 100vw; height: 100vh; background: rgba(9,11,10,.94); color: var(--bone); }
.dh-viewer::backdrop { background: rgba(9,11,10,.94); }
.dh-viewer[open] { display: flex; align-items: center; justify-content: center; }
.dh-viewer img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; object-fit: contain; border: 6px solid var(--bone); }
.dh-viewer button { position: absolute; background: none; border: 0; color: var(--bone); font: 400 2.6rem/1 var(--body); padding: .6rem 1rem; cursor: pointer; }
.dh-viewer .v-close { top: .6rem; right: .6rem; }
.dh-viewer .v-prev { left: .4rem; top: 50%; transform: translateY(-50%); }
.dh-viewer .v-next { right: .4rem; top: 50%; transform: translateY(-50%); }
.dh-viewer button:focus-visible { outline: 2px solid var(--blood-light); }
