:root {
  --red: #94161d;
  --red-dark: #4b070b;
  --green: #0f5132;
  --green-dark: #073821;
  --cream: #fff7e9;
  --paper: #f8ecd2;
  --gold: #eabf55;
  --ink: #2b1712;
  --muted: #6d5a50;
  --shadow: 0 24px 70px rgba(55, 9, 8, .18);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--sans); line-height: 1.6; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .04; z-index: 20; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 110px 0; scroll-margin-top: 86px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; top: 8px; left: 8px; transform: translateY(-150%); z-index: 100; background: #fff; color: var(--red-dark); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { transform: none; }

.site-header { position: absolute; inset: 0 0 auto; z-index: 10; color: #fff; border-bottom: 1px solid rgba(255,255,255,.18); }
.nav { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1; }
.brand-snowflake { font-size: 28px; color: var(--gold); }
.brand strong { display: block; font-family: var(--serif); font-size: 27px; font-style: italic; }
.brand small { display: block; margin-top: 7px; color: #f4ddb0; font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); font-weight: 600; }
.nav-links a { text-decoration: none; padding: 12px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a:focus-visible { border-color: var(--gold); }
.nav-links .nav-mail { border: 1px solid rgba(234,191,85,.8); padding: 10px 18px; border-radius: 999px; background: rgba(62, 5, 9, .28); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.45); background: rgba(0,0,0,.16); border-radius: 50%; padding: 11px; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; margin: 4px 0; background: #fff; }

.hero { position: relative; min-height: 760px; overflow: hidden; color: #fff; background: radial-gradient(circle at 75% 45%, rgba(209,64,45,.42), transparent 25%), linear-gradient(115deg, rgba(45,4,8,.98) 0%, rgba(122,10,17,.96) 48%, rgba(50,5,9,.96) 100%); }
.hero::before { content: ''; position: absolute; inset: 0; opacity: .2; background-image: radial-gradient(circle, #fff 1px, transparent 1.5px); background-size: 55px 55px; mask-image: linear-gradient(to bottom, #000, transparent 70%); }
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 190px; background: linear-gradient(to top, rgba(22,45,29,.62), transparent), radial-gradient(ellipse at 50% 110%, #124b2e 0 42%, transparent 43%); opacity: .55; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 64px; min-height: 760px; padding-top: 118px; padding-bottom: 82px; }
.hero-copy { max-width: 650px; }
.eyebrow { margin: 0 0 14px; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .23em; text-transform: uppercase; }
.hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(46px, 6vw, 79px); line-height: .99; letter-spacing: -.035em; }
.hero h1 em { color: #f5d987; font-weight: 700; text-shadow: 0 4px 26px rgba(0,0,0,.32); }
.hero-lede { max-width: 560px; margin: 25px 0 28px; color: #f7e8db; font-family: var(--serif); font-size: clamp(18px, 2vw, 22px); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 13px 23px; border: 0; border-radius: 999px; text-decoration: none; font-weight: 800; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:disabled { opacity: .62; cursor: wait; }
.button-gold { color: #40110b; background: linear-gradient(135deg, #fff0a9, #dcae3e); box-shadow: 0 10px 28px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.7); }
.text-link { color: #fff5df; font-weight: 700; text-underline-offset: 5px; }
.family-note { margin: 25px 0 0; color: #efdbc7; font-size: 13px; }
.family-note span { color: var(--gold); margin-right: 5px; }
.hero-portrait { position: relative; max-width: 440px; margin: 0 auto; }
.portrait-ring { aspect-ratio: .8; overflow: hidden; border: 7px solid #f1cf72; border-radius: 48% 48% 45% 45% / 42% 42% 54% 54%; box-shadow: 0 0 0 12px rgba(255,255,255,.12), 0 28px 80px rgba(0,0,0,.42); }
.portrait-ring img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; transform: scale(1.02); }
.hero-portrait figcaption { position: absolute; right: -16px; bottom: 35px; padding: 13px 20px; color: #56100e; background: var(--paper); border: 2px solid var(--gold); border-radius: 12px; box-shadow: var(--shadow); font-family: var(--serif); font-style: italic; transform: rotate(-3deg); }
.hero-portrait figcaption span { color: var(--red); }
.hero-glow { position: absolute; z-index: 1; width: 430px; height: 430px; right: 8%; top: 20%; border-radius: 50%; background: rgba(255,199,78,.18); filter: blur(50px); }
.garland { position: absolute; z-index: 3; inset: auto 0 0; display: flex; justify-content: space-around; align-items: center; height: 30px; color: #b82b30; background: linear-gradient(90deg, #093b22, #17613c, #093b22); border-top: 2px solid var(--gold); border-bottom: 2px solid var(--gold); }
.garland span:nth-child(odd) { color: #f2ce65; }

.memories { background: var(--cream); }
.section-heading { max-width: 660px; margin: 0 auto 52px; text-align: center; }
.section-heading h2, .story-copy h2, .mailbox-heading h2 { margin: 0; color: var(--red-dark); font-family: var(--serif); font-size: clamp(38px, 5vw, 57px); line-height: 1.08; }
.section-heading > p:last-child { color: var(--muted); font-size: 18px; }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 170px; gap: 18px; }
.photo-card { position: relative; overflow: hidden; border: 0; border-radius: 17px; padding: 0; background: #c9bca6; box-shadow: 0 12px 30px rgba(69,37,22,.14); cursor: zoom-in; }
.photo-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(32,8,6,.75), transparent 48%); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.photo-card:hover img { transform: scale(1.045); }
.photo-card:focus-visible { outline: 4px solid var(--gold); outline-offset: 3px; }
.photo-card span { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 15px; color: #fff; text-align: left; font-family: var(--serif); font-size: 18px; }
.gallery-tall { grid-column: span 4; grid-row: span 3; }
.gallery-wide { grid-column: span 8; grid-row: span 2; }
.gallery-standard { grid-column: span 4; grid-row: span 2; }
.gallery .photo-card:nth-child(4) img { object-position: center 18%; }
.gallery .photo-card:nth-child(5) img { object-position: center 25%; }
.gallery-note { margin: 30px 0 0; color: var(--muted); text-align: center; font-size: 14px; }
.gallery-actions { display: flex; justify-content: center; margin-top: 32px; }
.gallery-toggle { color: #fff; background: var(--green); box-shadow: 0 10px 24px rgba(7,56,33,.2); }

.story-mail { position: relative; overflow: hidden; background: #e9dbc2; }
.story-mail::before { content: ''; position: absolute; inset: 0; opacity: .4; background-image: radial-gradient(#bda883 1px, transparent 1px); background-size: 22px 22px; }
.story-mail-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: stretch; }
.story-card, .mailbox-card { background: rgba(255,250,239,.96); border: 1px solid rgba(133,81,43,.18); border-radius: 24px; box-shadow: var(--shadow); }
.story-card { overflow: hidden; }
.story-photo { height: 340px; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
.story-copy { padding: 34px; }
.story-copy h2, .mailbox-heading h2 { font-size: clamp(36px, 4vw, 50px); }
.story-copy > p:not(.eyebrow), .mailbox-heading > p:not(.eyebrow) { color: var(--muted); }
.coming-soon { display: flex; align-items: center; gap: 13px; margin-top: 24px; padding: 15px; border: 1px dashed #c19c55; border-radius: 13px; color: #614c3c; background: #fff8e5; }
.coming-soon > span:first-child { font-size: 28px; }
.mailbox-card { padding: 40px; }
.mailbox-heading { margin-bottom: 28px; }
form { display: grid; gap: 17px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
label { display: grid; gap: 7px; color: #4d3027; font-size: 14px; font-weight: 700; }
label > span { color: #816c61; font-weight: 500; }
input, select, textarea { width: 100%; border: 1px solid #cbbca9; border-radius: 10px; padding: 12px 14px; color: var(--ink); background: #fffdf8; outline: none; }
textarea { resize: vertical; min-height: 130px; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(15,81,50,.13); }
.field-help { display: flex; justify-content: space-between; gap: 16px; margin-top: -10px; color: #806f63; font-size: 12px; }
.consent { grid-template-columns: auto 1fr; align-items: start; gap: 10px; font-weight: 500; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); }
.honeypot { position: absolute; left: -9999px; }
.submit-button { justify-self: start; min-width: 240px; }
.form-status { min-height: 24px; margin: 0; font-weight: 700; }
.form-status.is-success { color: #14613a; }
.form-status.is-error { color: #9c1b21; }
.mailbox-footnote { display: flex; gap: 8px; margin-top: 22px; color: #78685e; font-size: 12px; }

.appearance-page { background: #efe0c5; }
.appearance-hero { position: relative; min-height: 100vh; padding: 150px 0 100px; overflow: hidden; background: radial-gradient(circle at 18% 32%, rgba(234,191,85,.21), transparent 27%), linear-gradient(125deg, #4b070b 0 39%, #7f1218 39% 48%, #efe0c5 48% 100%); }
.appearance-hero::before { content: ''; position: absolute; inset: 0; opacity: .12; pointer-events: none; background-image: radial-gradient(circle, #fff 1px, transparent 1.5px); background-size: 54px 54px; mask-image: linear-gradient(90deg, #000, transparent 54%); }
.appearance-grid { position: relative; display: grid; grid-template-columns: .82fr 1.18fr; gap: 46px; align-items: start; }
.appearance-intro { position: sticky; top: 40px; color: #fff; }
.appearance-intro h1 { margin: 0; max-width: 590px; font-family: var(--serif); font-size: clamp(48px, 6vw, 75px); line-height: 1.02; letter-spacing: -.035em; }
.appearance-intro h1 em { color: #f5d987; }
.appearance-lede { max-width: 560px; color: #f7e8db; font-family: var(--serif); font-size: 20px; }
.appearance-points { display: grid; gap: 8px; margin: 24px 0 30px; padding: 0; list-style: none; color: #f6e4d7; }
.appearance-points span { margin-right: 8px; color: var(--gold); }
.appearance-photo { position: relative; width: min(430px, 94%); margin: 28px 0 0; overflow: hidden; border: 5px solid var(--gold); border-radius: 22px; box-shadow: 0 25px 70px rgba(0,0,0,.32); }
.appearance-photo img { width: 100%; height: 340px; object-fit: cover; object-position: center 32%; }
.appearance-photo figcaption { position: absolute; inset: auto 0 0; padding: 12px 16px; color: #fff; background: linear-gradient(transparent, rgba(35,6,5,.88)); font-family: var(--serif); text-align: center; }
.appearance-form-card { padding: clamp(26px, 4vw, 46px); background: rgba(255,250,239,.98); border: 1px solid rgba(133,81,43,.2); border-radius: 24px; box-shadow: 0 28px 80px rgba(55,9,8,.25); }
.appearance-form-card .mailbox-heading h2 { font-size: clamp(35px, 4vw, 50px); }

footer { color: #f8e7d4; background: var(--green-dark); border-top: 4px solid var(--gold); }
.footer-inner { min-height: 128px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner strong { display: block; font-family: var(--serif); font-size: 20px; }
.footer-inner span { color: #d8c8b4; font-size: 13px; }
.footer-inner a { color: #fff; text-underline-offset: 5px; }

.lightbox { width: min(920px, calc(100% - 28px)); max-height: 92vh; border: 0; border-radius: 18px; padding: 0; background: #160d0b; box-shadow: 0 24px 80px rgba(0,0,0,.6); }
.lightbox::backdrop { background: rgba(15,4,4,.82); backdrop-filter: blur(6px); }
.lightbox figure { margin: 0; display: grid; grid-template-rows: minmax(0, 78vh) auto; }
.lightbox img { width: 100%; height: 100%; object-fit: contain; }
.lightbox figcaption { padding: 13px 70px; color: #f8ead7; text-align: center; }
.lightbox-close, .lightbox-arrow { position: absolute; z-index: 2; width: 43px; height: 43px; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; color: #fff; background: rgba(0,0,0,.56); cursor: pointer; }
.lightbox-close { top: 12px; right: 12px; font-size: 29px; line-height: 1; }
.lightbox-arrow { top: 50%; transform: translateY(-50%); font-size: 36px; line-height: 1; }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

@media (max-width: 900px) {
  .site-header { position: absolute; }
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 75px; right: 20px; left: 20px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; color: var(--ink); background: #fff9ed; border: 1px solid #e7c87a; border-radius: 14px; box-shadow: var(--shadow); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px; }
  .nav-links .nav-mail { color: #fff; background: var(--red); text-align: center; }
  .hero-grid { grid-template-columns: 1fr; gap: 38px; text-align: center; padding-top: 140px; }
  .hero-copy { margin-inline: auto; }
  .hero-lede { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-portrait { width: min(430px, 88%); }
  .story-mail-grid { grid-template-columns: 1fr; }
  .gallery { grid-auto-rows: 145px; }
  .appearance-hero { padding-top: 130px; background: linear-gradient(180deg, #5b090e 0 43%, #efe0c5 43% 100%); }
  .appearance-grid { grid-template-columns: 1fr; }
  .appearance-intro { position: static; padding-bottom: 18px; }
  .appearance-photo { margin-inline: auto; }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 26px, 1180px); }
  .section { padding: 78px 0; }
  .brand strong { font-size: 22px; }
  .brand small { font-size: 8px; }
  .brand-snowflake { font-size: 22px; }
  .hero-grid { min-height: auto; padding-bottom: 78px; }
  .hero h1 { font-size: clamp(43px, 13vw, 62px); }
  .hero-portrait figcaption { right: -7px; bottom: 18px; font-size: 14px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 210px; }
  .gallery-tall, .gallery-wide, .gallery-standard { grid-column: span 1; grid-row: span 1; }
  .gallery-wide { grid-column: span 2; }
  .field-row { grid-template-columns: 1fr; }
  .mailbox-card, .story-copy { padding: 27px 22px; }
  .story-photo { height: 280px; }
  .submit-button { width: 100%; }
  .footer-inner { padding: 30px 0; flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
