:root {
  --paper: #f7f0e8; --paper-deep: #eadbd0; --white: #fffaf5; --ink: #2b1714;
  --muted: #745f59; --wine: #731d2c; --wine-dark: #53131e; --coral: #d87962;
  --line: rgba(43, 23, 20, 0.17); --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif; --shadow: 0 34px 90px rgba(67, 28, 24, 0.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body.invite-mode { background: var(--wine-dark); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.site-header, main, footer { width: min(100% - 64px, 1240px); margin-inline: auto; }
.site-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.brand { color: inherit; font-size: 25px; font-weight: 600; letter-spacing: -0.06em; text-decoration: none; }
.brand span { color: var(--coral); }
.header-note { margin: 0; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.header-action { justify-self: end; color: var(--ink); font-size: 13px; font-weight: 600; text-underline-offset: 5px; }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(48px, 7vw, 108px); align-items: center; min-height: 720px; padding: 72px 0 96px; }
.hero-copy { padding-top: 18px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--wine); font-size: 11px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow > span { display: block; width: 28px; height: 1px; background: currentColor; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; }
h1 { margin: 22px 0 25px; font-size: clamp(68px, 7.4vw, 105px); line-height: .88; }
h1 em { color: var(--wine); font-weight: 400; }
.hero-copy > p:not(.microcopy) { max-width: 530px; margin: 0 0 32px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.microcopy { margin: 16px 0 0; color: var(--muted); font-size: 11px; letter-spacing: .025em; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 34px; min-height: 55px; padding: 0 25px; border: 0; border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .icon-button:focus-visible, .text-button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(216, 121, 98, .45); outline-offset: 3px; }
.button-primary { color: var(--white); background: var(--wine); box-shadow: 0 10px 28px rgba(115, 29, 44, .16); }
.button-primary:hover { background: var(--wine-dark); }
.hero-art { position: relative; height: 570px; overflow: hidden; background: #d6b5a5; box-shadow: var(--shadow); }
.hero-art::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, transparent 48%, rgba(50, 18, 16, .25)); pointer-events: none; }
.hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 76% center; }
.hero-stamp { position: absolute; z-index: 1; right: 22px; bottom: 22px; display: grid; place-items: center; width: 118px; height: 118px; border: 1px solid rgba(255,250,245,.7); border-radius: 50%; color: var(--white); background: rgba(83,19,30,.74); backdrop-filter: blur(8px); }
.hero-stamp strong { margin: -4px 0; font: 38px var(--serif); }
.hero-stamp span { font-size: 8px; letter-spacing: .17em; }
.create-section { padding: 110px 0; border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; align-items: end; margin-bottom: 62px; }
.section-heading h2, .share-panel h2, .how-it-works h2 { margin-top: 15px; font-size: clamp(56px, 6vw, 84px); line-height: .92; }
.section-heading > p { max-width: 430px; margin: 0; color: var(--muted); line-height: 1.65; }
.create-layout { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(50px, 8vw, 118px); align-items: start; }
.invitation-form { display: grid; gap: 23px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row-date { grid-template-columns: 1.2fr .8fr; }
.field { display: grid; gap: 9px; color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.field span { display: flex; justify-content: space-between; }
.field i { color: var(--muted); font-size: 10px; font-style: normal; font-weight: 400; text-transform: uppercase; }
.field > small { min-height: 13px; color: var(--muted); font-size: 10px; font-weight: 400; text-align: right; }
.field-error { color: var(--wine) !important; text-align: left !important; }
input, textarea { width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink); background: transparent; outline: none; }
input { height: 51px; }
textarea { min-height: 92px; padding: 15px 0; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #a38c84; }
input:focus, textarea:focus { border-color: var(--wine); }
input.invalid, textarea.invalid { border-color: var(--wine); }
.submit-button { justify-self: start; margin-top: 8px; }
.privacy-note { max-width: 430px; margin: -7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.preview-wrap { position: sticky; top: 24px; }
.preview-label { margin-bottom: 12px; color: var(--muted); font-size: 10px; letter-spacing: .14em; text-align: center; text-transform: uppercase; }
.preview-card { position: relative; min-height: 590px; padding: 65px 70px; overflow: hidden; color: var(--ink); background: var(--white); box-shadow: var(--shadow); text-align: center; }
.preview-card::before, .preview-card::after { position: absolute; width: 160px; height: 160px; border: 1px solid rgba(216,121,98,.28); border-radius: 50%; content: ""; }
.preview-card::before { top: -104px; left: -92px; }
.preview-card::after { right: -93px; bottom: -108px; }
.preview-monogram { display: grid; place-items: center; width: 35px; height: 35px; margin: 0 auto 28px; border: 1px solid var(--wine); border-radius: 50%; color: var(--wine); font: italic 18px var(--serif); }
.preview-kicker, .preview-question { margin: 0; color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.preview-card h3 { margin-top: 5px; font-size: clamp(52px, 5vw, 70px); line-height: 1; }
.preview-rule { display: flex; align-items: center; justify-content: center; height: 68px; }
.preview-rule::before, .preview-rule::after { width: 70px; height: 1px; background: var(--line); content: ""; }
.preview-rule span { width: 7px; height: 7px; margin: 0 10px; border: 1px solid var(--coral); border-radius: 50%; }
.preview-plan { max-width: 410px; margin: 10px auto 30px; font: 35px/1.04 var(--serif); }
.preview-details { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 21px 0; border-block: 1px solid var(--line); }
.preview-details > div:first-child { border-right: 1px solid var(--line); }
.preview-details dt { margin-bottom: 7px; color: var(--coral); font-size: 8px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.preview-details dd { margin: 0; font-size: 11px; line-height: 1.45; }
.preview-note { max-width: 360px; margin: 28px auto 8px; color: var(--muted); font: italic 17px/1.45 var(--serif); }
.preview-from { margin: 0; font-size: 11px; font-weight: 600; }
.share-panel { display: grid; grid-template-columns: .5fr 1fr; gap: 74px; align-items: center; margin: 30px 0 110px; padding: 72px; color: var(--white); background: var(--wine); }
.share-panel .eyebrow { color: #f2b3a5; }
.share-panel h2 { max-width: 640px; }
.share-panel h2 + p { color: #e4c9c3; }
.share-ornament { font: italic 190px/.8 var(--serif); text-align: center; opacity: .28; }
.share-link-label { display: block; margin: 29px 0 8px; color: #e4c9c3; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.share-link-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.share-link-row input { height: 51px; padding: 0 15px; border: 1px solid rgba(255,255,255,.3); color: var(--white); background: rgba(255,255,255,.08); }
.icon-button { padding: 0 17px; border: 1px solid rgba(255,255,255,.4); color: var(--white); background: transparent; cursor: pointer; }
.share-actions { display: flex; align-items: center; gap: 25px; margin-top: 20px; }
.share-panel .button-primary { color: var(--wine); background: var(--white); box-shadow: none; }
.text-button { padding: 8px 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.5); color: var(--white); background: transparent; cursor: pointer; }
.how-it-works { padding: 110px 0 125px; border-top: 1px solid var(--line); }
.how-it-works h2 { max-width: 780px; margin-bottom: 68px; }
.how-it-works ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.how-it-works li { display: grid; padding: 28px 36px 20px 0; border-right: 1px solid var(--line); }
.how-it-works li + li { padding-left: 36px; }
.how-it-works li:last-child { border-right: 0; }
.how-it-works li > span { margin-bottom: 45px; color: var(--coral); font-size: 10px; }
.how-it-works strong { margin-bottom: 9px; font: 31px var(--serif); }
.how-it-works li p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
footer { display: grid; grid-template-columns: 1fr auto auto; gap: 60px; align-items: center; padding: 32px 0 42px; border-top: 1px solid var(--line); }
footer p { margin: 0; color: var(--muted); font-size: 11px; }
.invite-view { width: min(100% - 40px, 1120px); min-height: calc(100vh - 178px); margin: 55px auto 90px; }
.invite-shell { display: grid; grid-template-columns: .78fr 1.22fr; min-height: 680px; overflow: hidden; background: var(--white); box-shadow: 0 40px 100px rgba(25,8,9,.3); }
.invite-image { position: relative; min-height: 410px; overflow: hidden; background: #d6b5a5; }
.invite-image img { width: 100%; height: 100%; object-fit: cover; object-position: 78% center; }
.invite-image::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, rgba(43,23,20,.05), rgba(43,23,20,.5)); }
.invite-image-copy { position: absolute; z-index: 1; right: 32px; bottom: 30px; left: 32px; color: var(--white); }
.invite-image-copy p { margin: 0 0 8px; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.invite-image-copy strong { font: 40px/1 var(--serif); }
.invite-content { display: flex; flex-direction: column; justify-content: center; padding: clamp(45px, 7vw, 88px); text-align: center; }
.invite-content .preview-monogram { margin-bottom: 24px; }
.invite-content h1 { margin: 8px 0 24px; font-size: clamp(62px, 7vw, 94px); }
.invite-content .invite-ask { margin: 0 auto 12px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.invite-content .invite-plan { max-width: 520px; margin: 0 auto 35px; font: 39px/1.05 var(--serif); }
.invite-facts { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 27px; padding-block: 21px; border-block: 1px solid var(--line); }
.invite-facts > div:first-child { border-right: 1px solid var(--line); }
.invite-facts span { display: block; margin-bottom: 7px; color: var(--coral); font-size: 8px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.invite-facts strong { font-size: 11px; line-height: 1.45; }
.invite-message { max-width: 440px; margin: 0 auto 7px; color: var(--muted); font: italic 19px/1.45 var(--serif); }
.invite-signature { margin: 0 0 30px; font-size: 11px; font-weight: 600; }
.response-title { margin: 0 0 12px; color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.response-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.response-option { min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); color: var(--ink); background: transparent; font-size: 11px; cursor: pointer; }
.response-option:hover, .response-option.active { border-color: var(--wine); color: var(--white); background: var(--wine); }
.share-response { width: 100%; margin-top: 12px; }
.expiry-line { margin: 15px 0 0; color: var(--muted); font-size: 9px; }
.state-card { display: grid; place-items: center; min-height: 660px; padding: 40px; color: var(--ink); background: var(--white); text-align: center; }
.state-card .state-symbol { margin-bottom: 22px; color: var(--coral); font: 92px/.8 var(--serif); }
.state-card h1 { max-width: 700px; margin-bottom: 18px; font-size: clamp(62px, 9vw, 100px); }
.state-card p { max-width: 520px; margin: 0 auto 30px; color: var(--muted); line-height: 1.65; }
.toast { position: fixed; z-index: 10; right: 24px; bottom: 24px; padding: 14px 20px; border-radius: 999px; color: var(--white); background: var(--ink); box-shadow: var(--shadow); font-size: 12px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 70px; } .hero-copy { max-width: 730px; } .hero-art { height: 520px; }
  .create-layout, .section-heading { grid-template-columns: 1fr; } .section-heading { gap: 24px; } .preview-wrap { position: static; }
  .share-panel { grid-template-columns: 1fr; } .share-ornament { display: none; } .invite-shell { grid-template-columns: 1fr; } .invite-image { height: 420px; }
}
@media (max-width: 650px) {
  .site-header, main, footer { width: min(100% - 36px, 1240px); } .site-header { grid-template-columns: 1fr auto; } .header-note { display: none; }
  .hero { min-height: auto; gap: 48px; padding: 55px 0 72px; } h1 { font-size: clamp(58px, 18vw, 78px); } .hero-art { height: 410px; }
  .hero-stamp { width: 98px; height: 98px; } .hero-stamp strong { font-size: 31px; } .create-section { padding: 80px 0; }
  .section-heading { margin-bottom: 45px; } .section-heading h2, .share-panel h2, .how-it-works h2 { font-size: 55px; }
  .form-row, .form-row-date { grid-template-columns: 1fr; } .preview-card { min-height: 560px; padding: 50px 25px; }
  .preview-details { grid-template-columns: 1fr; gap: 18px; } .preview-details > div:first-child { padding-bottom: 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .share-panel { margin-bottom: 80px; padding: 48px 22px; } .share-link-row { grid-template-columns: 1fr; } .icon-button { min-height: 46px; }
  .share-actions { align-items: stretch; flex-direction: column; } .how-it-works { padding: 80px 0; } .how-it-works ol { grid-template-columns: 1fr; }
  .how-it-works li, .how-it-works li + li { padding: 25px 0; border-right: 0; border-bottom: 1px solid var(--line); } .how-it-works li > span { margin-bottom: 20px; }
  footer { grid-template-columns: 1fr; gap: 12px; } .invite-view { width: min(100% - 20px, 1120px); margin-block: 20px 50px; }
  .invite-image { height: 320px; min-height: 0; } .invite-content { padding: 48px 20px; } .invite-content h1 { font-size: 62px; }
  .invite-content .invite-plan { font-size: 33px; } .response-options { grid-template-columns: 1fr; } .toast { right: 14px; bottom: 14px; left: 14px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
