/* Atelier: cotton paper, burgundy ink, an invitation as the central object. */
:root {
  --paper: #f8f5ee; --surface: #fffdf7; --ink: #302c2a; --muted: #70635e;
  --accent: #642d3e; --line: #dcd2c5; --wash: #e9e1d5;
  --display: 'Cormorant Garamond', 'Garamond', 'Georgia', serif;
  --body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  font-family: var(--body); font-synthesis: none; color: var(--ink); background: var(--paper); font-size: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; line-height: 1.65; }
button, input, select, textarea { font: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: #642d3e20; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: .3em; }
a:hover { text-decoration-thickness: 2px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2 { font: 400 clamp(38px, 4.2vw, 64px)/1.06 var(--display); letter-spacing: -.035em; text-wrap: balance; margin: 0 0 24px; }
h1 { font-size: clamp(46px, 5.8vw, 86px); }
h3 { font-size: 18px; line-height: 1.35; font-weight: 600; margin: 0 0 12px; }
p { margin: 0 0 20px; }
:focus-visible { outline: 3px solid #9b5939; outline-offset: 5px; }
input:focus-within, select:focus-within, textarea:focus-within { outline: 2px solid #9b5939; outline-offset: 3px; }
[hidden] { display: none !important; }
section[id], div[id] { scroll-margin-top: 28px; }
.skip-link { position: absolute; left: 16px; top: -120px; background: var(--surface); padding: 12px 20px; z-index: 20; }
.skip-link:focus { top: 12px; }
.brand { text-decoration: none; font: 400 30px/1.1 var(--display); letter-spacing: -1.3px; white-space: nowrap; color: var(--accent); }
.brand span { font-style: normal; }
.site-header, .app-header { max-width: 1440px; margin: auto; min-height: 100px; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 5%; }
.site-header nav, .app-header > div { display: flex; gap: 30px; align-items: center; flex-wrap: wrap; }
.site-header nav a { text-decoration: none; font-size: 13px; padding: 12px 0; }
.site-header nav a:hover { text-decoration: underline; }
.site-header .nav-couples { border: 1px solid var(--line); padding: 10px 18px; border-radius: 2px; }
.site-footer { max-width: 1280px; padding: 44px 32px; margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: 12px; }
.site-footer p { margin: 0; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 49px; padding: 13px 25px; border: 1px solid var(--accent); border-radius: 2px; background: var(--accent); color: #fffdf7; font-size: 13px; font-weight: 600; text-decoration: none; text-align: center; transition: transform 120ms ease-out; }
.button:hover { background: #77384b; border-color: #77384b; color: #fffdf7; }
.button:active { transform: translateY(1px); }
.button-outline { background: transparent; color: var(--accent); }
.button-outline:hover { background: #f0e7e5; color: var(--accent); border-color: var(--accent); }
.button:disabled { cursor: default; background: var(--wash); color: #70635e; border-color: var(--line); transform: none; }
.text-button { background: none; border: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; padding: 10px; min-height: 44px; }
.text-link { display: inline-block; padding-block: 12px; font-size: 13px; color: var(--accent); }
.eyebrow { font-size: 12px; color: var(--muted); letter-spacing: .02em; margin-bottom: 22px; }
.atelier-hero { position: relative; isolation: isolate; max-width: 1280px; margin: auto; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 65px; padding: 40px 60px 80px; min-height: 700px; }
.hero-atmosphere { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 78%, transparent); }
.hero-atmosphere img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: blur(2px); transform: scale(1.015); }
.hero-atmosphere::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #f8f5ee, transparent 6%, transparent 94%, #f8f5ee), linear-gradient(90deg, #f8f5eee8 0%, #f8f5eec7 45%, #f8f5ee73 100%); }
.hero-copy .hero-description, .hero-copy .eyebrow, .hero-copy .hero-note { color: #534b46; }
.hero-object .example-caption { color: var(--ink); }
.hero-copy h1 { font-size: clamp(64px, 6.7vw, 100px); line-height: .98; letter-spacing: -.04em; margin-bottom: 30px; }
.hero-description { color: var(--muted); font-size: 15px; max-width: 41ch; margin-bottom: 30px; line-height: 1.85; }
.hero-note { margin: 25px 0 0; color: var(--muted); font-size: 11px; max-width: 42ch; }
.hero-object { min-width: 0; padding: 0 20px; }
.hero-invite-link { display: block; text-decoration: none; padding: 12px 0 34px; border-radius: 2px; }
.hero-invite-link .invitation-stage { transform: rotate(3deg); }
.hero-invite-link:hover .invitation-card { box-shadow: 0 24px 48px #49352920, 1px 1px 0 #ddd1c0; }
.example-caption { text-align: center; font-size: 11px; margin: 0; color: var(--muted); }
.atelier-story, .themes-section, .feature-section { max-width: 1200px; margin: auto; padding: 100px 32px; }
.atelier-story { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 100px; border-top: 1px solid var(--line); }
.material-study { margin: 0; }
.material-study img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; }
.material-study figcaption { font-size: 11px; color: var(--muted); margin-top: 14px; }
.story-copy p { color: var(--muted); font-size: 14px; max-width: 45ch; }
.story-copy h2 { margin-bottom: 28px; }
.themes-section { border-top: 1px solid var(--line); }
.collection-heading { display: flex; justify-content: space-between; gap: 50px; align-items: flex-end; margin-bottom: 46px; }
.collection-heading h2 { margin: 0; }
.collection-heading > p { max-width: 36ch; font-size: 14px; color: var(--muted); margin: 0 0 4px; }
.theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.theme-card { text-decoration: none; }
.theme-preview { background: #e7d9cf; min-height: 370px; display: grid; place-items: center; padding: 34px; }
.botanical .theme-preview { background: #dde1d4; }
.modern .theme-preview { background: #dce0e4; }
.mini-paper { text-align: center; width: 100%; padding: 25px 16px 30px; background: var(--surface); color: var(--accent); box-shadow: 0 6px 16px #302c2a0c; }
.mini-paper img { width: 70%; height: auto; margin: 0 auto 20px; }
.mini-paper strong { display: block; font: 400 46px/.95 var(--display); letter-spacing: -.02em; margin-bottom: 24px; }
.mini-paper i { display: block; font: 400 23px/1.5 var(--display); }
.mini-paper small { font-size: 11px; }
.botanical .mini-paper { color: #344a3e; }
.botanical .mini-paper img { filter: grayscale(1) sepia(.4) hue-rotate(80deg); }
.modern .mini-paper { color: #283a50; }
.modern .mini-paper img { filter: grayscale(1) sepia(.4) hue-rotate(170deg); }
.theme-meta { padding: 23px 0 0; }
.theme-meta h3 { font: 400 30px/1.2 var(--display); margin-bottom: 8px; }
.theme-meta p { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.theme-meta > span { font-size: 12px; text-decoration: underline; text-underline-offset: 4px; color: var(--accent); display: inline-block; padding-block: 8px; }
.collection-note { color: var(--muted); font-size: 11px; margin: 32px 0 0; }
.atelier-moments { max-width: 1200px; margin: auto; padding: 80px 32px 100px; border-top: 1px solid var(--line); }
.moments-heading { max-width: 680px; margin-bottom: 44px; }
.moments-heading > p:last-child { max-width: 48ch; color: var(--muted); font-size: 14px; margin-bottom: 0; }
.moments-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: start; }
.moments-grid figure { margin: 0; }
.moments-grid .table-moment { margin-top: 80px; }
.moments-grid img { width: 100%; height: auto; }
.moments-grid figcaption, .moments-note, .atelier-toast figcaption, .demo-garden figcaption { color: var(--muted); font-size: 11px; margin-top: 14px; }
.moments-note { margin-bottom: 0; margin-top: 28px; }
.atelier-toast { max-width: 1200px; margin: 0 auto; padding: 0 32px 80px; }
.atelier-toast img { width: 100%; height: auto; }
.atelier-toast figcaption { text-align: center; }
.demo-garden figure { margin: 0; }
.demo-garden img { width: 100%; height: auto; }
.feature-section { border-top: 1px solid var(--line); }
.section-heading { max-width: 780px; margin-bottom: 40px; }
.feature-grid { list-style: none; counter-reset: steps; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 48px; padding: 0; margin: 0 0 40px; }
.feature-grid li { counter-increment: steps; border-top: 1px solid var(--line); padding-top: 24px; }
.feature-grid li::before { content: "0" counter(steps); color: var(--accent); font: 400 27px/1.2 var(--display); display: block; margin-bottom: 22px; }
.feature-grid h3 { font-size: 15px; }
.feature-grid p { font-size: 13px; color: var(--muted); }
.beta-note { margin: 20px 0 0; font-size: 11px; color: var(--muted); }
.guest-entry { background: var(--wash); padding: 56px max(32px, calc((100vw - 1136px) / 2)); display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.guest-entry h2 { font-size: 44px; margin-bottom: 16px; }
.guest-entry p { margin: 0; font-size: 13px; color: var(--muted); }
.guest-entry .button { flex-shrink: 0; }
/* Invitation: the paper carries the text; the envelope never gates information. */
.theme-editorial { --theme-paper: #f8f5ee; --theme-ink: #642d3e; --theme-line: #d5c5b8; --theme-back: #ece3d7; --theme-envelope: #d9c8b9; }
.theme-botanical { --theme-paper: #f4f5ed; --theme-ink: #344a3e; --theme-line: #c4cbbb; --theme-back: #e2e6da; --theme-envelope: #c5cebd; }
.theme-modern { --theme-paper: #f2f3f1; --theme-ink: #283a50; --theme-line: #c5cbd0; --theme-back: #e0e3e6; --theme-envelope: #bec9d2; }
.wedding-site { background: var(--theme-paper, var(--paper)); color: var(--theme-ink, var(--accent)); }
.wedding-header { max-width: 1440px; padding: 27px 5%; margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.wedding-header > a, .wedding-header > span { font: 400 26px/1.2 var(--display); text-decoration: none; max-width: 40%; overflow-wrap: anywhere; }
.wedding-header nav { display: flex; justify-content: flex-end; gap: 22px; flex-wrap: wrap; font-size: 12px; }
.wedding-header nav a { padding: 10px 0; text-decoration: none; }
.wedding-header nav a:hover { text-decoration: underline; }
.invitation-section { padding: 50px 32px 85px; display: grid; place-items: center; }
.invitation-stage { position: relative; width: min(100%, 500px); padding: 0 22px 28px; isolation: isolate; perspective: 1200px; }
.invitation-card { position: relative; z-index: 2; padding: 44px 38px; text-align: center; background-color: var(--surface); color: var(--theme-ink, var(--accent)); box-shadow: 0 20px 45px #49352913, 1px 1px 0 #ddd1c0; }
.invitation-card::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .05; 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%3Cpath fill='%23837a68' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E"); }
.invitation-illustration { width: 230px; height: auto; margin: 0 auto 28px; }
.theme-botanical .invitation-illustration { filter: grayscale(1) sepia(.4) hue-rotate(80deg); }
.theme-modern .invitation-illustration { filter: grayscale(1) sepia(.4) hue-rotate(170deg); }
.invitation-opening { font-size: 12px; margin-bottom: 25px; color: var(--muted); }
.invitation-names { font: 400 clamp(55px, 6.4vw, 78px)/.92 var(--display); letter-spacing: -.025em; margin: 0 0 32px; }
.invitation-names > span { display: block; }
.invitation-names .invitation-and { font-size: .43em; line-height: 1.65; margin: 4px 0; }
.invitation-date { font: 500 22px/1.4 var(--display); margin-bottom: 16px; }
.invitation-date::before { content: ''; display: block; width: 24px; height: 1px; margin: 0 auto 18px; background: var(--accent); }
.font-sans .invitation-names { font-family: var(--body); font-size: clamp(32px,4vw,52px); line-height: 1.12; font-weight: 400; letter-spacing: -.035em; }
.font-sans .invitation-text { font: 400 13px/1.7 var(--body); }
.publish-summary { border-block: 1px solid var(--line); padding: 20px 0; margin-block: 24px; font-size: 12px; color: var(--muted); }
.publish-summary p { margin-bottom: 10px; }
.attendance-extra { display: flex; flex-direction: column; gap: 22px; }
.invitation-venue { font-size: 12px; max-width: 32ch; margin: 0 auto; }
.invitation-text { font: 400 21px/1.4 var(--display); max-width: 30ch; margin: 26px auto 0; white-space: pre-line; }
.envelope { position: absolute; z-index: 0; left: 0; right: 0; bottom: 18px; height: 58%; background: var(--theme-envelope, #d9c8b9); transform: rotate(-5deg); box-shadow: 0 12px 25px #49352913; }
.envelope-flap { position: absolute; left: 0; right: 0; top: 0; height: 50%; background: #bca796; clip-path: polygon(0 0,100% 0,50% 100%); transform-origin: center top; transform: rotateX(180deg); backface-visibility: visible; }
.envelope-fold { position: absolute; inset: 0; background: linear-gradient(30deg, #e5d8c8 49.8%, transparent 50.1%), linear-gradient(-30deg, #e0d2c1 49.8%, transparent 50.1%); }
.theme-botanical .envelope-fold, .theme-modern .envelope-fold { opacity: .5; }
.invitation-compact { max-width: 400px; margin: auto; padding: 0 22px 24px; }
.invitation-compact .invitation-card { padding: 33px 26px 37px; }
.invitation-compact .invitation-illustration { width: 220px; margin-bottom: 22px; }
.invitation-compact .invitation-names { font-size: 65px; margin-bottom: 27px; }
.invitation-compact .invitation-opening { font-size: 10px; margin-bottom: 24px; }
.invitation-compact .invitation-date { font-size: 21px; }
.invitation-compact .invitation-text { font-size: 19px; }
.scroll-hint { position: relative; display: block; text-align: center; padding: 38px 0 0; margin-bottom: -25px; font-size: 11px; color: var(--theme-ink, var(--accent)); opacity: .8; text-decoration: none; }
.scroll-hint span { display: block; margin-top: 8px; font-size: 18px; }
.scroll-hint.is-hidden { visibility: hidden; }
.invitation-animated .invitation-card { animation: invitation-enter .7s cubic-bezier(.22,1,.36,1) .12s both; }
.invitation-animated .envelope-flap { animation: envelope-open .45s cubic-bezier(.22,1,.36,1) both; }
.invitation-animated .envelope { bottom: 105px; height: 50%; }
.invitation-animated .scroll-hint { animation: hint-enter .25s ease-out 2s both; }
.is-settled .invitation-card, .is-settled .envelope-flap { animation: none; }
@keyframes invitation-enter { from { transform: translateY(48px); opacity: .65; } to { transform: translateY(0); opacity: 1; } }
@keyframes envelope-open { from { transform: rotateX(0); } to { transform: rotateX(180deg); } }
@keyframes hint-enter { from { opacity: 0; } to { opacity: .8; } }
.couple-photo { max-width: 1120px; margin: 0 auto 65px; padding: 0 32px; }
.couple-photo img { width: 100%; height: auto; max-height: 650px; object-fit: cover; }
.couple-photo figcaption { color: var(--muted); font-size: 11px; margin-top: 12px; }
.wedding-intro { max-width: 780px; margin: auto; padding: 0 32px 70px; text-align: center; }
.wedding-intro p { font: 400 32px/1.4 var(--display); white-space: pre-line; }
.wedding-sections { max-width: 1000px; padding: 0 32px 80px; margin: auto; }
.wedding-section { display: grid; grid-template-columns: 1fr 1.5fr; gap: 70px; border-top: 1px solid var(--theme-line, var(--line)); padding: 48px 0; }
.wedding-section h2 { font-size: 42px; }
.wedding-section p { white-space: pre-line; font-size: 14px; color: var(--ink); margin-bottom: 22px; }
.wedding-section strong { font-weight: 600; }
.wedding-footer { padding: 40px 24px; text-align: center; border-top: 1px solid var(--theme-line, var(--line)); }
.wedding-footer p { font: 400 32px/1.2 var(--display); }
.wedding-footer a { font-size: 11px; display: inline-block; padding: 12px; }
.wedding-gallery { max-width: 1120px; padding: 0 32px 80px; margin: auto; }
.gallery-heading { margin-bottom: 32px; text-align: center; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 20px; }
.gallery-grid img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.preview-banner, .demo-nav { background: var(--wash); color: var(--muted); padding: 14px 32px; font-size: 11px; }
.preview-banner { text-align: center; }
.demo-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.demo-nav .brand { font-size: 24px; }
.demo-nav p { margin: 0; }
.demo-nav a:not(.brand) { padding-block: 10px; }
/* Forms are quiet sheets; operating areas keep the same type and materials. */
.auth-page, .rsvp-page { min-height: 100vh; padding: 35px 24px 70px; background: var(--theme-back, var(--wash)); }
.auth-page > .brand, .rsvp-page > .brand { display: block; text-align: center; white-space: normal; }
.auth-card, .rsvp-card { position: relative; max-width: 500px; margin: 55px auto 0; padding: 44px 42px; background: var(--surface); box-shadow: 0 16px 44px #4935290c; }
.auth-card::before, .rsvp-card::before { content: ''; display: block; width: 32px; height: 1px; background: var(--accent); margin-bottom: 28px; }
.auth-card h1, .rsvp-card h1 { font-size: 52px; margin-bottom: 20px; color: var(--accent); }
.auth-card > p, .rsvp-card > p { color: var(--muted); font-size: 13px; }
.auth-card > p:last-child { margin-top: 25px; margin-bottom: 0; font-size: 12px; }
.auth-card > .eyebrow { margin-bottom: 12px; }
.auth-foot { max-width: 500px; margin: 26px auto 0; text-align: center; color: var(--muted); font-size: 11px; }
.auth-foot a { display: inline-block; padding: 10px; }
.stack-form, .guest-form { display: flex; flex-direction: column; gap: 22px; }
.stack-form label, .guest-form label { display: block; font-size: 12px; font-weight: 600; color: var(--ink); }
label small { font-weight: 400; color: var(--muted); }
input:not([type='radio']):not([type='checkbox']), select, textarea { width: 100%; min-width: 0; margin-top: 8px; padding: 11px 12px; background: #fffefb; border: 1px solid #8e7e70; color: var(--ink); border-radius: 2px; min-height: 47px; font-size: 14px; }
input[type='color'] { height: 50px; padding: 4px; }
textarea { line-height: 1.6; resize: vertical; }
input[type='file'] { white-space: normal; font-size: 12px !important; }
input[type='radio'], input[type='checkbox'] { accent-color: var(--accent); width: 18px; height: 18px; flex-shrink: 0; margin: 0; }
.form-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; }
.field-help { color: var(--muted); font-size: 12px; margin: 0; }
.form-error { background: #f7e8e4; border-left: 3px solid #9b3b33; color: #7c2521; padding: 16px 18px; margin: 0 0 20px; font-size: 13px; }
.notice { background: #edf0e5; border-left: 3px solid #526548; color: #35452e; padding: 20px; margin: 24px 0; font-size: 13px; animation: feedback-enter 180ms ease-out; }
@keyframes feedback-enter { from { opacity: .4; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
.invite-link { margin-top: 18px; }
.invite-link label { font-size: 12px; }
.copy-line { display: flex; align-items: flex-end; gap: 12px; margin-top: 8px; }
.copy-line input { margin: 0 !important; }
.copy-line .button { min-height: 47px; white-space: nowrap; }
.copy-feedback { display: block; font-size: 12px; margin-top: 10px; }
.rsvp-card { max-width: 590px; }
.rsvp-card fieldset, .demo-rsvp fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.rsvp-card legend, .demo-rsvp legend { font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.radio-card { display: flex !important; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid #8e7e70; margin-bottom: 10px; min-height: 54px; font-size: 13px; font-weight: 400 !important; cursor: pointer; line-height: 1.55; }
.radio-card input { margin-top: 2px; }
.radio-card:has(input:checked) { border-color: var(--accent); background: #f3eae7; box-shadow: inset 0 0 0 1px var(--accent); }
.attendance-extra[hidden] { display: none; }
.response-summary { padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 24px; font-size: 12px; color: var(--muted); }
.rsvp-bottom { max-width: 590px; font-size: 12px; margin: 26px auto 0; text-align: center; }
.rsvp-bottom a { display: inline-block; padding: 10px; }
.demo-rsvp { padding: 24px; background: var(--surface); margin-top: 20px; color: var(--ink); box-shadow: 0 8px 22px #49352908; }
.demo-rsvp legend { font-size: 15px; }
.demo-rsvp [role='status']:empty { display: none; }
summary { min-height: 44px; cursor: pointer; padding: 10px 0; font-size: 13px; }
details[open] > summary { margin-bottom: 12px; }
.app-shell { min-height: 100vh; background: #f0ebe2; }
.app-header { max-width: none; background: var(--surface); border-bottom: 1px solid var(--line); min-height: 88px; }
.app-header > div { font-size: 12px; }
.app-header form { display: inline; }
.app-main { max-width: 1280px; padding: 52px 40px 96px; margin: auto; container-type: inline-size; }
.app-intro { max-width: 680px; }
.app-intro h1 { font-size: 64px; }
.app-intro p { color: var(--muted); font-size: 13px; }
.app-intro .eyebrow { margin-bottom: 14px; }
.wedding-list { margin: 36px 0; }
.wedding-list-item { display: flex; align-items: center; justify-content: space-between; gap: 25px; text-decoration: none; border-bottom: 1px solid var(--line); background: var(--surface); padding: 27px 32px; margin: 12px 0; }
.wedding-list-item strong, .wedding-list-item span { display: block; }
.wedding-list-item strong { font: 400 36px/1.2 var(--display); margin-bottom: 8px; color: var(--accent); }
.wedding-list-item span, .wedding-list-item em { font-size: 12px; color: var(--muted); font-style: normal; }
.wedding-list-item:hover { box-shadow: inset 3px 0 0 var(--accent); }
.create-panel { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); gap: 80px; padding: 42px; margin-top: 48px; background: var(--surface); box-shadow: 0 12px 32px #49352906; }
.create-panel p { color: var(--muted); font-size: 13px; }
.create-panel h2 { font-size: 48px; }
.prefix-input { display: flex; align-items: center; gap: 8px; }
.dashboard-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.dashboard-top > div { min-width: 0; }
.dashboard-top h1 { font-size: clamp(40px,4.7vw,64px); margin-bottom: 22px; }
.dashboard-top p { font-size: 12px; color: var(--muted); }
.dashboard-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.status-pill { display: inline-block; padding: 3px 10px; background: #e2e8dc; color: #35452e; margin-right: 12px; font-size: 11px; border-radius: 2px; }
.dashboard-tabs { display: flex; border-bottom: 1px solid #c6b9aa; margin: 24px 0 32px; }
.dashboard-tabs a { padding: 16px 26px; text-decoration: none; font-size: 13px; border-bottom: 2px solid transparent; color: var(--muted); }
.dashboard-tabs a[aria-current='page'] { color: var(--accent); border-color: var(--accent); font-weight: 600; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); gap: 28px; align-items: start; }
.panel { min-width: 0; background: var(--surface); padding: 34px; margin-bottom: 24px; box-shadow: 0 10px 28px #49352904; }
.panel h2 { font-size: 36px; }
.panel > p { font-size: 13px; color: var(--muted); }
.panel h3 { font-size: 15px; margin-top: 12px; }
.section-edit { display: grid; grid-template-columns: minmax(0,1fr) 105px; gap: 16px; border-top: 1px solid var(--line); padding-top: 20px; }
.section-edit > label:last-child { font-size: 10px; }
.editor-preview { margin-bottom: 28px; padding: 28px 20px; background: #e6dace; }
.editor-preview .invitation-card { padding: 30px 24px; }
.editor-preview .invitation-names { font-size: 54px; }
.editor-preview .invitation-text { font-size: 19px; }
.editor-preview .eyebrow { text-align: center; margin-bottom: 22px; color: var(--muted); }
.editor-preview .field-help { text-align: center; margin-top: 22px; font-size: 11px; }
.save-state { color: var(--muted); font-size: 12px; margin: -10px 0 0; }
.save-state.is-dirty { color: var(--accent); }
.photo-choices { display: grid; gap: 24px; margin: 24px 0; }
.photo-choices img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.photo-choices button { width: 100%; margin-top: 10px; padding-inline: 12px; }
.empty-note { padding: 24px 0; color: var(--muted); font-size: 13px; border-block: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; padding: 24px 0; margin: 24px 0; border-block: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.stats strong, .stats span { display: block; }
.stats strong { font: 400 46px/1.3 var(--display); color: var(--accent); }
.stats span { font-size: 11px; color: var(--muted); }
.guest-form { max-width: 780px; margin: 32px 0; }
.guest-form .button { align-self: flex-start; }
.guest-search { display: block; max-width: 440px; font-size: 12px; margin-block: 28px; }
.guest-row { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding: 25px 0; content-visibility: auto; contain-intrinsic-size: auto 160px; }
.guest-row > div { min-width: 0; }
.guest-row h3 { font-size: 16px; margin: 0 0 10px; }
.guest-row p { font-size: 12px; margin-bottom: 5px; }
.guest-row form { flex-shrink: 0; }
.guest-row .button { font-size: 12px; }
.delete-details { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 12px; }
.delete-details p { margin-top: 20px; font-size: 13px; }
@media (prefers-reduced-motion: no-preference) {
  .app-main > .dashboard-grid, .app-main > .panel { animation: feedback-enter 120ms ease-out; }
  details[open] > form { animation: feedback-enter 160ms ease-out; }
}
.phone-preview-page { min-height: 100vh; padding: 32px 24px; background: var(--wash); }
.phone-preview-top { max-width: 1100px; margin: 0 auto 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.phone-preview-top h1 { font-size: 38px; }
.phone-frame { width: 390px; height: 780px; max-width: 100%; margin: auto; border: 7px solid #51423d; border-radius: 26px; overflow: hidden; background: var(--paper); box-shadow: 0 15px 35px #49352913; }
.phone-frame iframe { width: 100%; height: 100%; border: 0; }
.privacy-content { max-width: 780px; padding: 65px 24px 100px; margin: auto; }
.privacy-content h1 { font-size: 60px; margin-bottom: 35px; }
.privacy-content h2 { font-size: 34px; margin-top: 44px; }
.privacy-content p { color: var(--muted); font-size: 14px; }
.error-page { min-height: 100vh; background: var(--wash); padding: 40px 24px; text-align: center; }
.error-sheet { max-width: 560px; background: var(--surface); padding: 54px 42px; margin: 70px auto; box-shadow: 0 18px 40px #4935290c; }
.error-sheet h1 { font-size: 54px; color: var(--accent); }
.error-sheet p { font-size: 14px; color: var(--muted); }
.error-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 1100px) {
  .atelier-hero { padding-inline: 40px; gap: 24px; }
  .hero-copy h1 { font-size: 78px; }
  .atelier-story { gap: 60px; }
  .dashboard-top { flex-direction: column; align-items: flex-start; gap: 4px; }
  .dashboard-grid { grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 20px; }
  .panel { padding: 25px; }
  .editor-preview .invitation-names { font-size: 43px; }
  .theme-preview { padding: 22px; min-height: 340px; }
  .mini-paper strong { font-size: 40px; }
}
@media (max-width: 850px) {
  .site-header { padding: 25px 32px; align-items: flex-start; }
  .site-header nav { justify-content: flex-end; gap: 8px 22px; max-width: 390px; }
  .atelier-hero { padding: 40px 32px 65px; gap: 25px; min-height: 590px; }
  .hero-copy h1 { font-size: 66px; }
  .hero-object { padding: 0; }
  .invitation-compact { padding-inline: 15px; }
  .invitation-compact .invitation-card { padding: 26px 20px; }
  .invitation-compact .invitation-names { font-size: 54px; }
  .hero-description { font-size: 13px; }
  .desktop-break { display: none; }
  .atelier-story { gap: 40px; }
  .collection-heading > p { max-width: 29ch; font-size: 12px; }
  .theme-grid { gap: 18px; }
  .theme-preview { padding: 16px; min-height: 300px; }
  .mini-paper strong { font-size: 35px; }
  .mini-paper { padding-inline: 10px; }
  .mini-paper small { font-size: 9px; }
  .dashboard-grid { grid-template-columns: minmax(0,1fr); }
  .editor-preview { max-width: 500px; margin: 0 auto 28px; }
  .editor-preview .invitation-names { font-size: 60px; }
  .create-panel { gap: 36px; padding: 32px; }
}
@media (max-width: 700px) {
  .site-header { flex-direction: column; align-items: center; padding: 24px 22px 16px; gap: 14px; min-height: auto; }
  .site-header nav { justify-content: center; gap: 5px 20px; max-width: 100%; }
  .site-header nav a { font-size: 11px; }
  .site-header .nav-couples { padding: 10px 14px; }
  .atelier-hero { grid-template-columns: minmax(0,1fr); padding: 36px 26px 55px; gap: 35px; min-height: 0; }
  .hero-atmosphere { bottom: auto; height: 560px; }
  .hero-atmosphere img { object-position: 62% center; }
  .hero-atmosphere::after { background: #f8f5eec7; }
  .hero-copy h1 { font-size: 66px; margin-bottom: 24px; }
  .hero-copy .eyebrow { margin-bottom: 18px; }
  .hero-description { font-size: 13px; max-width: 36ch; line-height: 1.8; margin-bottom: 26px; }
  .hero-note { margin-top: 19px; }
  .hero-object { padding: 0 6px; }
  .hero-invite-link { padding-bottom: 26px; }
  .invitation-compact { max-width: 345px; }
  .invitation-compact .invitation-card { padding: 27px 21px 32px; }
  .invitation-compact .invitation-names { font-size: 56px; }
  .invitation-compact .invitation-illustration { width: 190px; }
  .invitation-compact .invitation-date { font-size: 19px; }
  .atelier-story, .themes-section, .feature-section { padding: 60px 26px; }
  .atelier-moments { padding: 60px 26px; }
  .moments-heading { margin-bottom: 32px; }
  .moments-heading h2 { font-size: 44px; }
  .moments-heading > p:last-child { font-size: 13px; }
  .moments-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .moments-grid .table-moment { margin-top: 0; }
  .atelier-toast { padding: 0 26px 55px; }
  .atelier-story { grid-template-columns: minmax(0,1fr); gap: 36px; }
  .story-copy h2, .collection-heading h2 { font-size: 47px; }
  .material-study img { max-height: 500px; }
  .collection-heading { flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 32px; }
  .collection-heading > p { max-width: 38ch; font-size: 13px; }
  .theme-grid { grid-template-columns: minmax(0,1fr); gap: 35px; }
  .theme-preview { min-height: 350px; padding: 34px 45px; }
  .mini-paper strong { font-size: 47px; }
  .mini-paper small { font-size: 11px; }
  .theme-meta { padding-top: 18px; }
  .feature-grid { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .feature-grid li::before { margin-bottom: 18px; }
  .feature-grid p { margin-bottom: 12px; }
  .guest-entry { padding: 42px 26px; flex-direction: column; align-items: flex-start; gap: 25px; }
  .guest-entry h2 { font-size: 42px; }
  .site-footer { padding: 35px 24px; flex-direction: column; text-align: center; gap: 22px; }
  .auth-page, .rsvp-page { padding: 28px 18px 50px; }
  .auth-card, .rsvp-card { padding: 32px 24px; margin-top: 35px; }
  .auth-card h1, .rsvp-card h1 { font-size: 44px; }
  .auth-card::before, .rsvp-card::before { margin-bottom: 22px; }
  .auth-card > p, .rsvp-card > p { font-size: 12px; }
  .radio-card { font-size: 12px; padding: 14px; }
  .form-row { grid-template-columns: minmax(0,1fr); }
  .app-header { padding: 22px 24px; flex-direction: column; gap: 12px; }
  .app-header > div { gap: 18px; justify-content: center; }
  .app-header > div > span { overflow-wrap: anywhere; max-width: 220px; }
  .app-main { padding: 35px 18px 65px; }
  .app-intro h1 { font-size: 52px; }
  .create-panel { grid-template-columns: minmax(0,1fr); padding: 28px 24px; gap: 22px; }
  .panel { padding: 26px 22px; }
  .panel h2 { font-size: 34px; }
  .wedding-list-item { padding: 24px; align-items: flex-start; flex-direction: column; gap: 14px; }
  .wedding-list-item strong { font-size: 34px; }
  .dashboard-tabs a { flex: 1; text-align: center; padding: 14px 6px; font-size: 12px; }
  .dashboard-actions { width: 100%; gap: 10px; }
  .dashboard-actions .button { flex: 1 1 130px; padding-inline: 12px; font-size: 11px; }
  .section-edit { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .section-edit > label:last-child { font-size: 12px; }
  .stats { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px; }
  .guest-row { flex-direction: column; gap: 18px; }
  .guest-row form { align-self: flex-start; }
  .copy-line { flex-direction: column; align-items: stretch; }
  .editor-preview { padding: 24px 14px; }
  .editor-preview .invitation-card { padding: 28px 20px; }
  .editor-preview .invitation-names { font-size: 48px; }
  .wedding-header { padding: 22px 24px; flex-direction: column; gap: 12px; }
  .wedding-header > a, .wedding-header > span { max-width: 100%; text-align: center; }
  .wedding-header nav { justify-content: center; gap: 6px 18px; font-size: 11px; }
  .invitation-section { padding: 32px 20px 60px; }
  .invitation-stage { padding: 0 12px 22px; }
  .invitation-card { padding: 33px 24px; }
  .invitation-names { font-size: clamp(48px,15vw,64px); margin-bottom: 28px; }
  .invitation-illustration { width: 200px; margin-bottom: 26px; }
  .invitation-opening { font-size: 11px; }
  .invitation-text { font-size: 20px; }
  .invitation-date { font-size: 21px; }
  .scroll-hint { padding-top: 32px; }
  .couple-photo, .wedding-gallery { padding-inline: 24px; margin-bottom: 40px; }
  .couple-photo img { aspect-ratio: 4/5; object-fit: cover; object-position: 50% 50%; }
  .wedding-intro { padding: 0 26px 45px; }
  .wedding-intro p { font-size: 28px; }
  .wedding-sections { padding: 0 26px 55px; }
  .wedding-section { grid-template-columns: minmax(0,1fr); gap: 14px; padding: 32px 0; }
  .wedding-section h2 { font-size: 38px; margin-bottom: 10px; }
  .wedding-section p { font-size: 13px; }
  .demo-nav { padding: 14px 24px; gap: 8px 18px; }
  .demo-nav p { order: 3; width: 100%; font-size: 10px; }
  .demo-rsvp { padding: 20px 18px; }
  .gallery-grid { grid-template-columns: minmax(0,1fr); }
  .phone-preview-top { flex-direction: column; align-items: flex-start; }
  .phone-frame { height: 75vh; }
  .privacy-content { padding: 40px 26px 65px; }
  .privacy-content h1 { font-size: 48px; }
  .privacy-content h2 { font-size: 31px; }
  .privacy-content p { font-size: 13px; }
  .error-sheet { padding: 40px 26px; margin-top: 40px; }
  .error-sheet h1 { font-size: 46px; }
  input:not([type='radio']):not([type='checkbox']), select, textarea { font-size: 16px; }
}
@container (max-width: 850px) {
  .dashboard-grid { grid-template-columns: minmax(0,1fr); }
  .dashboard-top { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .scroll-hint { opacity: .8; }
}

/* YourDreamWedding: the supplied wordmark and complete signature share one component. */
.brand { display: inline-flex; align-items: center; justify-content: center; width: 292px; max-width: 100%; padding: 16px; flex-shrink: 0; line-height: 0; letter-spacing: normal; white-space: normal; }
.brand img { width: 100%; height: auto; }
.brand-app { width: 252px; }
.brand-auth, .brand-footer { width: 312px; }
.brand-error { width: 272px; }
.auth-page > .brand, .error-page > .brand { margin-inline: auto; }
.site-header nav a[aria-current=page] { text-decoration: underline; text-underline-offset: .4em; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.site-footer nav a { padding-block: 10px; }
.demo-nav { flex-wrap: wrap; }
.demo-nav > p { flex: 1; min-width: 180px; }
.collection-link { display: inline-block; margin-top: 16px; }
.detail-intro { max-width: 1200px; margin: auto; padding: 64px 32px 24px; }
.detail-intro h1 { max-width: 18ch; }
.detail-intro > p:last-child { max-width: 60ch; color: var(--muted); }
.detail-themes { padding-top: 36px; }
.collection-details { max-width: 1200px; margin: auto; padding: 60px 32px 100px; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 100px; }
.collection-details figure { margin: 0; }
.collection-details img { width: 100%; height: auto; }
.collection-details figcaption { color: var(--muted); font-size: 12px; margin-top: 14px; }
.process-section { max-width: 1000px; margin: auto; padding: 56px 32px; }
.process-section h2 { font-size: clamp(36px, 4vw, 52px); }
.process-list { list-style: none; padding: 0; margin: 32px 0 0; counter-reset: process; }
.process-list li { counter-increment: process; position: relative; padding: 24px 0 24px 60px; border-top: 1px solid var(--line); }
.process-list li::before { content: counter(process, decimal-leading-zero); position: absolute; left: 0; top: 22px; color: var(--accent); font: 32px/1.3 var(--display); }
.process-list p { max-width: 65ch; margin-bottom: 0; }
.guest-process { background: var(--surface); }
.help-questions details { border-top: 1px solid var(--line); padding: 20px 0; }
.help-questions summary { cursor: pointer; font-weight: 600; }
.help-questions p { margin: 16px 0 0; max-width: 65ch; }
.auth-card [role=status] { padding: 16px; background: var(--wash); }
@media (prefers-reduced-motion: no-preference) {
  .theme-card.is-entering { animation: collection-enter 220ms ease-out both; }
}
@keyframes collection-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 900px) {
  .site-header { flex-direction: column; align-items: center; gap: 8px; padding: 16px 22px; }
  .site-header nav { justify-content: center; flex-wrap: wrap; gap: 6px 22px; }
  .collection-details { gap: 40px; }
}
@media (max-width: 700px) {
  .brand-public { width: 272px; }
  .brand-app { width: 232px; }
  .brand-footer { width: 292px; }
  .site-header nav a { font-size: 12px; min-height: 44px; display: inline-flex; align-items: center; }
  .site-footer { flex-direction: column; text-align: center; gap: 12px; }
  .site-footer nav { justify-content: center; }
  .app-header { flex-wrap: wrap; justify-content: center; gap: 0 12px; padding: 12px 16px; }
  .demo-nav { justify-content: center; text-align: center; }
  .demo-nav > p { flex-basis: 100%; }
  .detail-intro { padding: 40px 26px 12px; }
  .detail-intro h1 { font-size: clamp(44px, 12vw, 66px); }
  .collection-details { padding: 40px 26px 60px; grid-template-columns: minmax(0,1fr); gap: 32px; }
  .collection-details figure { max-width: 420px; }
  .process-section { padding: 40px 26px; }
  .process-list li { padding-left: 44px; }
}
