/*
Theme Name: Sarah & Nick Wedding
Theme URI: https://sarahandnickwedding.com
Author: Mark Kaufmann
Description: Traditional one-page wedding website shell for Sarah & Nick — ivory and gold, script names, hairline ornament. Sections: welcome with countdown, our story, details, travel, registry, gallery, FAQ and RSVP. All text is editable under Appearance → Customize → Wedding Details; RSVP replies are stored under the RSVPs menu in the dashboard.
Version: 1.0.0
Requires at least: 6.0
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: sarah-nick-wedding
*/

:root {
	--ivory: #fbf8f2;
	--stone: #f3ede3;
	--ink: #2b2723;
	--muted: #6e655b;
	--gold: #a3862f;
	--gold-soft: rgba(163, 134, 47, .45);
	--sage: #7e8f6e;
	--script: "Pinyon Script", "Great Vibes", cursive;
	--serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
	--caps: "Cinzel", "Cormorant Garamond", serif;
	--wrap: 1040px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
	margin: 0;
	background: var(--ivory);
	color: var(--ink);
	font-family: var(--serif);
	font-size: 20px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-weight: 400; margin: 0; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Header / nav ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(251, 248, 242, .94);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--gold-soft);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: var(--script); font-size: 34px; color: var(--ink); line-height: 1; }
.brand:hover { text-decoration: none; }
.brand .amp { color: var(--gold); font-size: .8em; padding: 0 .1em; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.main-nav a {
	font-family: var(--caps); font-size: 12px; letter-spacing: .22em;
	text-transform: uppercase; color: var(--ink);
}
.main-nav a:hover { color: var(--gold); text-decoration: none; }
.nav-toggle {
	display: none; background: none; border: 1px solid var(--gold-soft);
	font-family: var(--caps); font-size: 11px; letter-spacing: .2em;
	padding: 8px 12px; color: var(--ink); cursor: pointer;
}

/* ---------- Ornament ---------- */
.flourish { display: block; width: 180px; height: 24px; margin: 18px auto; color: var(--gold); }
.hair { width: 56px; height: 1px; background: var(--gold); margin: 14px auto; }
.eyebrow {
	font-family: var(--caps); font-size: 13px; letter-spacing: .32em;
	text-transform: uppercase; color: var(--muted);
}

/* ---------- Hero ---------- */
.hero {
	position: relative; text-align: center;
	padding: 110px 24px 100px;
	background: var(--ivory);
}
.hero.has-image { background-size: cover; background-position: center; }
.hero.has-image::before { content: ""; position: absolute; inset: 0; background: rgba(251, 248, 242, .82); }
.hero-frame {
	position: relative; max-width: 720px; margin: 0 auto;
	padding: 64px 40px 56px;
	border: 1px solid var(--gold);
	outline: 1px solid var(--gold-soft); outline-offset: 8px;
}
.hero .names { font-family: var(--script); font-size: clamp(64px, 11vw, 120px); line-height: 1.05; margin: 18px 0 6px; }
.hero .names .amp { display: block; font-family: var(--serif); font-style: italic; font-size: .28em; color: var(--gold); margin: .1em 0; }
.hero .date { font-family: var(--caps); font-size: 17px; letter-spacing: .26em; text-transform: uppercase; margin-top: 10px; }
.hero .place { font-style: italic; color: var(--muted); }

.countdown { display: flex; justify-content: center; gap: 28px; margin-top: 34px; }
.countdown div { min-width: 70px; }
.countdown b { display: block; font-family: var(--serif); font-weight: 400; font-size: 42px; line-height: 1; }
.countdown span { font-family: var(--caps); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

.btn {
	display: inline-block; margin-top: 30px;
	font-family: var(--caps); font-size: 13px; letter-spacing: .26em; text-transform: uppercase;
	padding: 14px 34px; border: 1px solid var(--gold); color: var(--ink); background: transparent;
	cursor: pointer; transition: background .2s, color .2s;
}
.btn:hover { background: var(--gold); color: #fff; text-decoration: none; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; text-align: center; }
.section.alt { background: var(--stone); }
.section-title { font-family: var(--script); font-size: clamp(48px, 7vw, 68px); line-height: 1.1; }
.section-intro { max-width: 640px; margin: 0 auto 40px; color: var(--muted); font-style: italic; }
.prose { max-width: 680px; margin: 0 auto; text-align: left; }
.prose p:first-child::first-letter {
	font-family: var(--script); float: left; font-size: 3.6em; line-height: .8; padding: .08em .1em 0 0; color: var(--gold);
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; margin-top: 44px; }
.card {
	background: var(--ivory); border: 1px solid var(--gold-soft);
	padding: 40px 30px; position: relative;
}
.section:not(.alt) .card { background: #fff; }
.card::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(163, 134, 47, .2); pointer-events: none; }
.card h3 { font-family: var(--caps); font-size: 16px; letter-spacing: .24em; text-transform: uppercase; }
.card .time { font-style: italic; color: var(--gold); margin: 8px 0 12px; }
.card p:last-child { margin-bottom: 0; }

.registry-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 30px; }
.registry-links .btn { margin-top: 0; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 40px; }
.gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--gold-soft); padding: 6px; background: #fff; }
.gallery-empty { color: var(--muted); font-style: italic; }

.faq { max-width: 720px; margin: 40px auto 0; text-align: left; }
.faq details { border-bottom: 1px solid var(--gold-soft); padding: 18px 0; }
.faq summary { cursor: pointer; font-family: var(--caps); font-size: 15px; letter-spacing: .14em; text-transform: uppercase; list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -4px; font-family: var(--serif); font-size: 26px; color: var(--gold); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* ---------- RSVP ---------- */
.rsvp-form { max-width: 560px; margin: 40px auto 0; text-align: left; }
.rsvp-form label { display: block; font-family: var(--caps); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; margin: 22px 0 6px; }
.rsvp-form input[type=text], .rsvp-form input[type=email], .rsvp-form input[type=number],
.rsvp-form select, .rsvp-form textarea {
	width: 100%; padding: 12px 14px; font: inherit; font-size: 18px; color: var(--ink);
	background: #fff; border: 1px solid var(--gold-soft); border-radius: 0;
}
.rsvp-form input:focus, .rsvp-form select:focus, .rsvp-form textarea:focus { outline: 1px solid var(--gold); border-color: var(--gold); }
.rsvp-form .choice { display: flex; gap: 26px; }
.rsvp-form .choice label { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--serif); font-size: 19px; letter-spacing: 0; text-transform: none; }
.rsvp-form .hp { position: absolute; left: -9999px; }
.rsvp-form .btn { width: 100%; }
.notice { max-width: 560px; margin: 30px auto 0; padding: 18px 22px; border: 1px solid var(--gold); background: #fff; font-style: italic; }
.notice.error { border-color: #a14a3b; color: #a14a3b; }
.rsvp-closed { font-style: italic; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { text-align: center; padding: 60px 24px 50px; border-top: 1px solid var(--gold-soft); }
.site-footer .brand { font-size: 46px; }
.site-footer p { font-family: var(--caps); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }

/* ---------- Inner pages ---------- */
.page-content { padding: 80px 0 100px; }
.page-content .entry-title { font-family: var(--script); font-size: 64px; text-align: center; }
.page-content .entry { max-width: 720px; margin: 30px auto 0; }

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
	body { font-size: 18px; }
	.nav-toggle { display: block; }
	.main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--ivory); border-bottom: 1px solid var(--gold-soft); }
	.main-nav.open { display: block; }
	.main-nav ul { flex-direction: column; gap: 0; padding: 10px 24px 18px; }
	.main-nav li a { display: block; padding: 12px 0; }
	.hero { padding: 60px 16px; }
	.hero-frame { padding: 44px 18px 40px; }
	.countdown { gap: 14px; }
	.countdown div { min-width: 56px; }
	.countdown b { font-size: 32px; }
	.section { padding: 70px 0; }
	.wrap { padding: 0 16px; }
}
