/* Monacano, "Limestone and Ink". Paper grain and limestone strata are small WebP
   tiles pre-rendered by scripts/textures.mjs; the arcade frieze is an inline SVG. */
@font-face{font-family:"Cormorant Garamond";font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:"Cormorant Garamond";font-style:italic;font-weight:500;font-display:swap;src:url(/fonts/cormorant-garamond-latin-500-italic.woff2) format("woff2")}
@font-face{font-family:"Cormorant Garamond";font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/inter-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/inter-latin-600-normal.woff2) format("woff2")}

:root{
  --bg:#F5F0E6;--ink:#1B2433;--muted:#545B66;--accent:#8C2F23;--accent-deep:#72251B;--olive:#4F5D4C;--on-accent:#FFFFFF;
  --rule:#D8CFBE;--rule-soft:#E4DCCB;--paper:#FBF8F2;--stone:#EFE8DA;--stone-deep:#E9E1D1;--error:#8C2F23;
  --night:#1B2433;--on-night:#F5F0E6;--night-muted:#A9AEB6;--sand:#E3C9A8;
  --serif:"Cormorant Garamond",Georgia,"Times New Roman",serif;
  --sans:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --measure:40rem;--gutter:1rem;--wide:76rem;
  --ease:cubic-bezier(.2,.7,.2,1);
  --paper-tex:url(/tex/paper.webp);
  --stone-tex:url(/tex/stone.webp) 0 0/1200px 600px;
  --card-tex:url(/tex/card.webp) 0 0/1200px 600px;
  --specks:url(/tex/specks.webp);
  --frieze:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='26' viewBox='0 0 28 26'%3E%3Cpath d='M2 26V13.5a12 12 0 0 1 24 0V26' fill='none' stroke='%231B2433' stroke-width='1'/%3E%3Cpath d='M5 26V14a9 9 0 0 1 18 0V26' fill='none' stroke='%231B2433' stroke-width='.5' stroke-opacity='.55'/%3E%3C/svg%3E");
  --frieze-light:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='26' viewBox='0 0 28 26'%3E%3Cpath d='M2 26V13.5a12 12 0 0 1 24 0V26' fill='none' stroke='%23E3C9A8' stroke-width='1'/%3E%3Cpath d='M5 26V14a9 9 0 0 1 18 0V26' fill='none' stroke='%23E3C9A8' stroke-width='.5' stroke-opacity='.55'/%3E%3C/svg%3E");
  color-scheme:light;
}
@media (min-width:760px){:root{--gutter:2rem}}
@media (min-width:1100px){:root{--gutter:3rem}}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-top:1.5rem}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
body{margin:0;background:var(--bg);color:var(--ink);font:400 1.0625rem/1.7 var(--sans);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;font-feature-settings:"kern","liga"}
img,svg{max-width:100%;height:auto}
a{color:var(--accent);text-underline-offset:.2em;text-decoration-thickness:1px;transition:text-decoration-color .2s,color .2s}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px;border-radius:2px}
h1,h2,h3{font-family:var(--serif);font-weight:500;line-height:1.08;margin:0 0 .55em;letter-spacing:-.005em;text-wrap:balance}
h1{font-size:clamp(2.75rem,8.6vw,6rem);line-height:1;letter-spacing:-.018em}
h2{font-size:clamp(2.05rem,4.8vw,3.4rem);letter-spacing:-.012em}
h3{font-size:1.6rem;font-weight:600;line-height:1.2}
h1 em,h2 em,.display em{font-style:italic;color:var(--accent);font-weight:500}
p,ul,ol,dl,table{margin:0 0 1.1em}
ul,ol{padding-left:1.25em}
li{margin-bottom:.4em}
strong{font-weight:600}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.skip{position:absolute;left:var(--gutter);top:-4rem;background:var(--ink);color:var(--bg);padding:.6rem 1rem;z-index:20;text-decoration:none;border-radius:999px}
.skip:focus{top:.75rem}
.wrap{max-width:var(--wide);margin:0 auto;padding:0 var(--gutter)}
.measure{max-width:var(--measure)}
.muted{color:var(--muted)}
.small{font-size:.9rem}

/* Preview ribbon */
.notice{background:var(--night);color:var(--on-night);font-size:.8125rem;letter-spacing:.02em;text-align:center;padding:.45rem var(--gutter)}

/* Header */
.site-header{position:relative;z-index:10;border-bottom:1px solid var(--rule)}
.bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:4.75rem}
.wordmark{display:inline-flex;align-items:center;gap:.7rem;color:var(--ink);text-decoration:none;font:500 1.2rem/1 var(--serif);letter-spacing:.3em;text-transform:uppercase;padding:.4rem 0}
.wordmark .mono{width:2rem;height:2rem;flex:none}
.wordmark span{padding-top:.1em}
.nav ul{list-style:none;margin:0;padding:0;display:flex;gap:2rem;align-items:center}
.nav li{margin:0}
.nav a{color:var(--ink);text-decoration:none;font-size:.9375rem;padding:.5rem 0;display:inline-block;background:linear-gradient(currentColor,currentColor) 0 calc(100% - .3rem)/0 1px no-repeat;transition:background-size .3s var(--ease)}
.nav a:hover,.nav a[aria-current=page]{background-size:100% 1px}
.nav a.btn{display:inline-flex;color:var(--on-accent);padding:.6rem 1.15rem;background:var(--accent)}
.nav a.btn:hover{background:var(--accent-deep)}
details.mobile-nav{display:none}

/* Buttons: pill, with a drawn arrow */
.btn{display:inline-flex;align-items:center;gap:.7rem;background:var(--accent);color:var(--on-accent);border:1px solid var(--accent);padding:.95rem 1.6rem;font:600 .9375rem/1.2 var(--sans);letter-spacing:.01em;text-decoration:none;border-radius:999px;cursor:pointer;min-height:3rem;transition:background-color .2s,border-color .2s,color .2s,transform .2s var(--ease)}
.btn:hover{background:var(--accent-deep);border-color:var(--accent-deep);text-decoration:none}
.btn:active{transform:translateY(1px)}
.btn-small{padding:.6rem 1.15rem;min-height:2.6rem;gap:.55rem}
.btn.secondary,.btn.ghost{background:transparent;color:var(--ink);border-color:var(--ink)}
.btn.secondary:hover,.btn.ghost:hover{background:var(--ink);color:var(--bg)}
.btn.light{background:var(--on-night);color:var(--ink);border-color:var(--on-night)}
.btn.light:hover{background:var(--sand);border-color:var(--sand)}
.btn[disabled]{opacity:.7;cursor:progress}
.arrow{position:relative;display:inline-block;width:1.1rem;height:1px;background:currentColor;transition:transform .25s var(--ease)}
.arrow::after{content:"";position:absolute;right:0;top:-3px;width:7px;height:7px;border-top:1px solid currentColor;border-right:1px solid currentColor;transform:rotate(45deg)}
.btn:hover .arrow,.link-arrow:hover .arrow{transform:translateX(3px)}
.arrow.back{transform:scaleX(-1)}
.btn:hover .arrow.back{transform:scaleX(-1) translateX(3px)}
.link-arrow{display:inline-flex;align-items:center;gap:.6rem;font:600 .8125rem/1.2 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--ink);text-decoration:none;padding:.5rem 0;border-bottom:1px solid currentColor}
.link-arrow:hover{color:var(--accent)}

main{display:block}

/* Type devices */
.eyebrow{font:600 .75rem/1.4 var(--sans);letter-spacing:.22em;text-transform:uppercase;color:var(--olive);margin:0 0 1.4rem;display:flex;align-items:center;gap:.85rem}
.eyebrow::before{content:"";width:2rem;height:1px;background:currentColor;flex:none}
.label{display:flex;align-items:baseline;gap:.75rem;font:600 .75rem/1.4 var(--sans);letter-spacing:.22em;text-transform:uppercase;color:var(--olive);margin:0 0 1.2rem}
.label .num{font:italic 500 1.35rem/1 var(--serif);letter-spacing:0;text-transform:none;color:var(--accent)}
.lead{font-size:clamp(1.125rem,1.6vw,1.3rem);line-height:1.6;color:var(--ink);max-width:36rem}
.aside{font:italic 500 clamp(1.45rem,2.4vw,1.85rem)/1.3 var(--serif);color:var(--ink);max-width:34rem;margin:0 0 1.2rem}
.actions{display:flex;flex-wrap:wrap;align-items:center;gap:1rem 1.6rem;margin-top:2.2rem}

/* The arcade frieze, Monacano's signature device */
.frieze{height:27px;background:var(--frieze) left bottom/28px 26px repeat-x;border-bottom:1px solid var(--ink);opacity:.8}
.frieze.light{background-image:var(--frieze-light);border-bottom-color:var(--sand);opacity:.7}
.frieze.short{max-width:14rem}
.hero .frieze{margin-top:clamp(3rem,6vw,5rem)}

/* Hero */
.hero{padding:clamp(3.5rem,9vw,7.5rem) 0 clamp(3rem,7vw,5.5rem);position:relative}
.hero,.page-hero,.lost{background:var(--paper-tex),var(--bg)}
.hero-grid{display:grid;gap:3.5rem;align-items:center}
@media (min-width:1000px){.hero-grid{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:4.5rem}}
.hero h1{margin-bottom:.45em}
.page-hero{padding:clamp(3rem,8vw,6.5rem) 0 clamp(2.5rem,5vw,4rem);border-bottom:1px solid var(--rule)}
.page-hero h1{font-size:clamp(2.6rem,7.4vw,5.25rem);max-width:15ch}
.page-hero .lead{margin-bottom:0}

/* The invitation card */
.invite{position:relative;background:var(--specks),var(--card-tex),var(--paper);border:1px solid var(--rule);padding:clamp(1.75rem,4vw,2.75rem);box-shadow:0 1px 0 rgba(27,36,51,.04),0 24px 48px -28px rgba(27,36,51,.28),0 2px 6px -2px rgba(27,36,51,.08);text-align:center;max-width:27rem;margin:0 auto;width:100%}
.invite::before{content:"";position:absolute;inset:.6rem;border:1px solid var(--rule);pointer-events:none}
.invite .mono{width:3.5rem;height:3.5rem;color:var(--ink);margin:.25rem auto 1rem;display:block}
.invite-name{font:500 1.3rem/1 var(--serif);letter-spacing:.32em;text-transform:uppercase;margin:0 0 .5rem;padding-left:.32em}
.invite-sub{font:italic 500 1.3rem/1.3 var(--serif);color:var(--muted);margin:0 0 1.4rem}
.invite-body{font:500 1.3rem/1.4 var(--serif);margin:0 auto 1.6rem;max-width:20rem}
.invite dl{margin:0;border-top:1px solid var(--rule);text-align:left;font-size:.875rem}
.invite dl div{display:flex;justify-content:space-between;gap:1rem;padding:.7rem 0;border-bottom:1px solid var(--rule)}
.invite dt{color:var(--muted);letter-spacing:.14em;text-transform:uppercase;font-size:.6875rem;font-weight:600;padding-top:.2em}
.invite dd{margin:0;font:italic 500 1.1rem/1.2 var(--serif);text-align:right}

/* Sections */
.section{padding:clamp(4rem,9vw,7.5rem) 0}
.section + .section{border-top:1px solid var(--rule)}
.section-head{display:grid;gap:1rem;margin-bottom:clamp(2.5rem,5vw,4rem)}
@media (min-width:900px){.section-head{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:end;gap:3rem}.section-head p{margin:0}}
.section-head h2{margin:0}
.split{display:grid;gap:1.5rem}
@media (min-width:900px){.split{grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:4rem}}

/* Offerings */
.offers{list-style:none;margin:0;padding:0;display:grid;gap:0;border-top:1px solid var(--ink)}
.offers li{margin:0;padding:1.6rem 0 1.8rem;border-bottom:1px solid var(--rule);display:grid;grid-template-columns:3.25rem 1fr;gap:0 1.1rem}
.offers .glyph{width:2.75rem;height:2.75rem;color:var(--accent);grid-row:span 2}
.offers h3{margin:0 0 .35rem;font-size:1.65rem}
.offers p{margin:0;color:var(--muted)}
@media (min-width:760px){.offers{grid-template-columns:repeat(2,1fr);column-gap:3rem}}
@media (min-width:1100px){.offers{grid-template-columns:repeat(4,1fr);column-gap:2.5rem;border-top:0}.offers li{grid-template-columns:1fr;border-top:1px solid var(--ink);border-bottom:0;padding-top:1.75rem}.offers .glyph{margin-bottom:1.6rem;grid-row:auto}}

/* Limestone band with the pull quote */
.stone{background:var(--specks),var(--stone-tex),var(--stone);border-top:1px solid var(--rule);border-bottom:1px solid var(--rule)}
.section.stone + .section{border-top:0}
.quote{margin:0 0 clamp(2.5rem,5vw,4rem);max-width:58rem}
.quote p{font:500 clamp(1.95rem,4.6vw,3.6rem)/1.12 var(--serif);letter-spacing:-.012em;margin:0;text-wrap:balance}
.quote p em{font-style:italic;color:var(--accent)}
.quote-mark{display:block;font:italic 500 4.5rem/.6 var(--serif);color:var(--accent);margin-bottom:1rem}
.columns{display:grid;gap:0 3rem}
@media (min-width:900px){.columns{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Is / is not */
.pair{display:grid;gap:1.5rem}
@media (min-width:900px){.pair{grid-template-columns:repeat(2,minmax(0,1fr));gap:3rem}}
.pair > div{border-top:1px solid var(--ink);padding-top:1.4rem}
.pair h3{font-size:1.9rem;margin-bottom:.8rem}
.pair ul{list-style:none;padding:0;margin:0}
.pair li{position:relative;padding:.7rem 0 .7rem 1.9rem;border-bottom:1px solid var(--rule-soft);margin:0}
.pair li::before{content:"";position:absolute;left:.1rem;top:1.35rem;width:.95rem;height:1px;background:var(--olive)}
.pair .not li::before{width:.75rem;height:.75rem;top:1.05rem;background:linear-gradient(45deg,transparent 46%,var(--accent) 46% 54%,transparent 54%),linear-gradient(-45deg,transparent 46%,var(--accent) 46% 54%,transparent 54%)}

/* Path teaser on the home page */
.path{list-style:none;margin:0;padding:0;display:grid;counter-reset:p;border-top:1px solid var(--ink)}
.path li{counter-increment:p;margin:0;padding:1.1rem 0;border-bottom:1px solid var(--rule);display:grid;grid-template-columns:2.6rem 1fr;align-items:baseline}
.path li::before{content:counter(p,upper-roman);font:italic 500 1.3rem/1 var(--serif);color:var(--accent)}
.path b{font:500 1.45rem/1.2 var(--serif)}
.path span{display:block;color:var(--muted);font-size:.9375rem}
@media (min-width:640px){.path{grid-template-columns:repeat(2,1fr);column-gap:2.5rem}}

/* Ledger: fees and the "what we ask" list */
.ledger{margin:0;border-top:1px solid var(--ink)}
.ledger div{display:grid;grid-template-columns:1fr;gap:.25rem;padding:1.1rem 0;border-bottom:1px solid var(--rule)}
@media (min-width:640px){.ledger div{grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:1.5rem}.ledger.wide div{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr)}}
.ledger dt{font:500 1.35rem/1.3 var(--serif)}
.ledger dd{margin:0;color:var(--muted)}
.ledger.fees dd{font:italic 500 1.35rem/1.3 var(--serif);color:var(--accent)}

/* Night band */
.night{background:var(--night);color:var(--on-night);position:relative;overflow:hidden}
.night a:not(.btn){color:var(--sand)}
.night .eyebrow,.night .label{color:var(--sand)}
.night h2 em{color:var(--sand)}
.night .muted{color:var(--night-muted)}
.night :focus-visible{outline-color:var(--on-night)}
.closing{text-align:center;padding:clamp(4.5rem,10vw,8rem) 0}
.closing .mono{width:4rem;height:4rem;color:var(--sand);margin:0 auto 1.8rem;display:block}
.closing h2{font-size:clamp(2.4rem,6vw,4.6rem);margin:0 auto .4em;max-width:16ch}
.closing p{max-width:32rem;margin:0 auto}
.closing .actions{justify-content:center}
.closing .frieze{max-width:22rem;margin:0 auto 3rem}

/* How it works: the sequence */
.howgrid{display:grid;gap:2.5rem}
@media (min-width:1000px){.howgrid{grid-template-columns:minmax(0,4fr) minmax(0,7fr);gap:5rem}.howgrid .sticky{position:sticky;top:2rem;align-self:start}}
.seq{list-style:none;margin:0;padding:0;counter-reset:s;position:relative}
.seq > li{counter-increment:s;position:relative;margin:0;padding:0 0 3rem 4.5rem}
.seq > li::before{content:counter(s,upper-roman);position:absolute;left:0;top:0;width:3rem;height:3rem;border:1px solid var(--ink);border-radius:50%;display:grid;place-items:center;font:italic 500 1.2rem/1 var(--serif);color:var(--accent);background:var(--bg)}
.seq > li::after{content:"";position:absolute;left:1.5rem;top:3.4rem;bottom:.4rem;width:1px;background:linear-gradient(var(--ink),var(--ink)) top/1px 100% no-repeat;opacity:.35}
.seq > li:last-child{padding-bottom:0}
.seq > li:last-child::after{display:none}
.seq .kicker{display:block;font:600 .6875rem/1.4 var(--sans);letter-spacing:.22em;text-transform:uppercase;color:var(--olive);margin:.15rem 0 .5rem}
.seq h3{font-size:clamp(1.7rem,2.6vw,2.1rem);margin:0 0 .6rem}
.seq p{margin:0 0 .8rem}
.seq .note{font-size:.875rem;color:var(--muted);border-left:1px solid var(--accent);padding-left:.9rem;margin-top:1rem}
.seq .final::before{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}

/* FAQ */
.faq-group{margin:0 0 3.5rem}
.faq-group:last-child{margin-bottom:0}
.faq-group h2{font-size:clamp(1.8rem,3.4vw,2.4rem);margin-bottom:1rem}
.faq-group details{border-top:1px solid var(--rule)}
.faq-group details:last-child{border-bottom:1px solid var(--rule)}
.faq-group summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:1.5rem;padding:1.15rem 0;font:500 clamp(1.3rem,2.2vw,1.55rem)/1.3 var(--serif);min-height:3rem}
.faq-group summary::-webkit-details-marker{display:none}
.faq-group summary::after{content:"";flex:none;width:.7rem;height:.7rem;border-right:1px solid var(--ink);border-bottom:1px solid var(--ink);transform:rotate(45deg) translate(-2px,-2px);transition:transform .25s var(--ease)}
.faq-group details[open] summary::after{transform:rotate(-135deg) translate(-2px,-2px)}
.faq-group summary:hover{color:var(--accent)}
.faq-group details p{margin:0 0 1.4rem;max-width:var(--measure);color:var(--ink)}
.faq-index{list-style:none;padding:0;margin:0;font-size:.9375rem}
.faq-index li{margin:0;border-bottom:1px solid var(--rule-soft)}
.faq-index a{display:block;padding:.6rem 0;color:var(--ink);text-decoration:none}
.faq-index a:hover{color:var(--accent)}

/* Prose and legal */
.legal-grid{display:grid;gap:2.5rem}
@media (min-width:1000px){.legal-grid{grid-template-columns:15rem minmax(0,1fr);gap:5rem}.legal-grid .toc{position:sticky;top:2rem;align-self:start}}
.toc{font-size:.875rem;border-top:1px solid var(--ink);padding-top:1rem}
.toc-title{font:600 .6875rem/1.4 var(--sans);letter-spacing:.22em;text-transform:uppercase;color:var(--olive);margin:0 0 .6rem}
.toc ol{list-style:none;padding:0;margin:0;counter-reset:t}
.toc li{counter-increment:t;margin:0;border-bottom:1px solid var(--rule-soft)}
.toc a{display:flex;gap:.7rem;padding:.5rem 0;color:var(--ink);text-decoration:none;line-height:1.4}
.toc a::before{content:counter(t);font:italic 500 1rem/1.3 var(--serif);color:var(--accent);min-width:1.1rem}
.toc a:hover{color:var(--accent)}
.prose{max-width:var(--measure)}
.prose h2{font-size:clamp(1.75rem,3.2vw,2.3rem);margin-top:2.8rem;padding-top:1.4rem;border-top:1px solid var(--rule)}
.prose h2:first-of-type{margin-top:1rem}
.prose h3{font-size:1.4rem;margin-top:1.9rem}
.prose li{margin-bottom:.6em}
.prose ol > li::marker{font-family:var(--serif);font-style:italic;color:var(--accent)}
.draft{display:flex;gap:.9rem;align-items:flex-start;border:1px solid var(--accent);color:var(--accent);background:var(--paper);padding:.9rem 1.1rem;margin:0 0 2.2rem;font-weight:600;font-size:.9375rem;max-width:var(--measure);border-radius:2px}
.draft::before{content:"Draft";flex:none;font:600 .625rem/1 var(--sans);letter-spacing:.2em;text-transform:uppercase;background:var(--accent);color:var(--on-accent);padding:.4rem .5rem;border-radius:999px;margin-top:.15rem}
.ph{background:var(--stone-deep);padding:.05em .3em;font-style:normal;border-radius:2px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.version{font:italic 500 1.15rem/1.4 var(--serif);color:var(--muted)}

table{border-collapse:collapse;width:100%;font-size:.9375rem}
th,td{text-align:left;vertical-align:top;padding:.8rem 1rem .8rem 0;border-bottom:1px solid var(--rule)}
thead th{font:600 .6875rem/1.4 var(--sans);letter-spacing:.18em;text-transform:uppercase;color:var(--olive);border-bottom:1px solid var(--ink)}
.table-scroll{overflow-x:auto}
.caption{caption-side:bottom;text-align:left;padding-top:.6rem;color:var(--muted);font-size:.875rem}

/* Apply */
.apply-grid{display:grid;gap:2.5rem}
@media (max-width:999px){.apply-grid .sticky{order:2}}
@media (min-width:1000px){.apply-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.55fr);gap:5rem}.apply-grid .sticky{position:sticky;top:2rem;align-self:start}}
.promise{list-style:none;padding:0;margin:1.6rem 0 0;border-top:1px solid var(--rule)}
.promise li{margin:0;padding:.75rem 0 .75rem 1.9rem;border-bottom:1px solid var(--rule-soft);position:relative;font-size:.9375rem}
.promise li::before{content:"";position:absolute;left:.15rem;top:1.15rem;width:.8rem;height:.45rem;border-left:1px solid var(--olive);border-bottom:1px solid var(--olive);transform:rotate(-45deg)}
.form-card{background:var(--paper);border:1px solid var(--rule);padding:clamp(1.25rem,4vw,3rem);box-shadow:0 24px 48px -32px rgba(27,36,51,.3);position:relative}
.status{padding:1rem 1.2rem;border-left:3px solid var(--olive);background:var(--stone);margin:0 0 1.75rem;font-size:.9375rem}
.status.bad{border-left-color:var(--accent);background:var(--paper)}
.status ul{margin:.4rem 0 0;padding-left:1.1rem}
.status p:last-child{margin-bottom:0}
form{max-width:38rem}
.progress{list-style:none;margin:0 0 2.2rem;padding:0;display:grid;grid-template-columns:repeat(5,1fr);gap:.4rem;counter-reset:pr}
.progress li{counter-increment:pr;margin:0;font:600 .6875rem/1.3 var(--sans);letter-spacing:.12em;text-transform:uppercase;color:var(--muted);padding-top:.8rem;border-top:2px solid var(--rule);transition:border-color .3s,color .3s}
.progress li.done{border-top-color:var(--olive);color:var(--olive)}
.progress li[aria-current=step]{border-top-color:var(--accent);color:var(--ink)}
.progress .pname{display:none}
@media (min-width:640px){.progress .pname{display:inline}}
.progress .pnum{font:italic 500 .95rem/1 var(--serif);letter-spacing:0;text-transform:none;margin-right:.35rem;color:var(--accent)}
.step-head{margin:0 0 1.75rem}
.step-count{font:600 .6875rem/1.4 var(--sans);letter-spacing:.22em;text-transform:uppercase;color:var(--olive);margin:0 0 .5rem}
.step-title{font-size:clamp(2rem,4vw,2.6rem);margin:0}
.step-title:focus{outline:none}
.step-title:focus-visible{outline:2px solid var(--ink)}
.step-intro{color:var(--muted);margin:.6rem 0 0}
.field{margin-bottom:1.6rem}
label,legend{display:block;font-weight:600;margin-bottom:.4rem;font-size:.9375rem}
.hint{display:block;color:var(--muted);font-size:.875rem;margin:-.1rem 0 .55rem;line-height:1.5}
input[type=text],input[type=email],select,textarea{width:100%;font:inherit;font-size:1.0625rem;color:var(--ink);background:#FFFDF9;border:1px solid #8A8577;border-radius:2px;padding:.8rem .9rem;min-height:3.1rem;transition:border-color .2s,box-shadow .2s}
input[type=text]:hover,input[type=email]:hover,select:hover,textarea:hover{border-color:var(--ink)}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--ink);outline-offset:2px;border-color:var(--ink)}
select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--ink) 50%),linear-gradient(135deg,var(--ink) 50%,transparent 50%);background-position:calc(100% - 1.3rem) 50%,calc(100% - .95rem) 50%;background-size:.35rem .35rem;background-repeat:no-repeat;padding-right:2.6rem}
textarea{min-height:9rem;resize:vertical;line-height:1.6}
fieldset{border:0;margin:0 0 1.6rem;padding:0;min-width:0}
.choices{display:grid;gap:.6rem}
.choice{position:relative;display:flex;gap:.85rem;align-items:center;border:1px solid var(--rule);background:#FFFDF9;padding:.85rem 1rem;border-radius:2px;cursor:pointer;transition:border-color .2s,background-color .2s;min-height:3.1rem}
.choice:hover{border-color:var(--ink)}
.choice:has(input:checked){border-color:var(--accent);background:var(--paper);box-shadow:inset 3px 0 0 var(--accent)}
.choice input{position:relative;z-index:1;width:1.2rem;height:1.2rem;margin:0;flex:none;accent-color:var(--accent)}
.choice label{font-weight:400;margin:0;cursor:pointer;flex:1}
.choice label::after{content:"";position:absolute;inset:0}
.check{display:flex;gap:.8rem;align-items:flex-start;padding:1rem;border:1px solid var(--rule);background:#FFFDF9}
.check input{width:1.35rem;height:1.35rem;margin:.15rem 0 0;flex:none;accent-color:var(--accent)}
.check label{font-weight:400;margin:0;font-size:.9375rem}
.error{color:var(--error);font-weight:600;font-size:.875rem;margin:.45rem 0 0;display:flex;gap:.45rem;align-items:baseline}
.error::before{content:"";flex:none;width:.45rem;height:.45rem;border-radius:50%;background:var(--error);transform:translateY(-.1rem)}
[aria-invalid=true]{border-color:var(--error)!important;box-shadow:inset 3px 0 0 var(--error)}
.counter{font-size:.8125rem;color:var(--muted);margin:.4rem 0 0;text-align:right;font-variant-numeric:tabular-nums}
.counter.low{color:var(--accent);font-weight:600}
.ts{min-height:65px;margin:0 0 1.5rem}
.step-nav{display:flex;flex-wrap:wrap;gap:.9rem;align-items:center;justify-content:space-between;margin-top:2.2rem;padding-top:1.6rem;border-top:1px solid var(--rule)}
.step-nav .btn:only-child{margin-left:auto}

.review{margin:0 0 1.8rem;border-top:1px solid var(--ink)}
.review div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.2rem 1rem;padding:.9rem 0;border-bottom:1px solid var(--rule)}
.review dt{font:600 .6875rem/1.4 var(--sans);letter-spacing:.18em;text-transform:uppercase;color:var(--olive);grid-column:1}
.review dd{margin:0;grid-column:1;overflow-wrap:anywhere;white-space:pre-wrap}
.review dd.empty{color:var(--muted);font-style:italic}
.review .change{grid-column:2;grid-row:1 / span 2;align-self:center}
.linkbtn{background:none;border:0;padding:.5rem 0;font:600 .875rem/1.2 var(--sans);color:var(--accent);text-decoration:underline;text-underline-offset:.2em;cursor:pointer;min-height:2.75rem}
.linkbtn:hover{text-decoration-thickness:2px}
.thanks{text-align:center;padding:clamp(1rem,4vw,2rem) 0}
.thanks .mono{width:4rem;height:4rem;margin:0 auto 1.4rem;display:block;color:var(--ink)}
.thanks h2{font-size:clamp(2.4rem,5vw,3.4rem)}
.thanks p{max-width:28rem;margin-left:auto;margin-right:auto}
.thanks .frieze{max-width:12rem;margin:2rem auto 0}

/* 404 */
.lost{padding:clamp(4rem,10vw,8rem) 0;text-align:center}
.lost .arch{width:9rem;height:auto;color:var(--ink);margin:0 auto 2rem;display:block}
.lost h1{font-size:clamp(2.6rem,7vw,4.8rem);max-width:14ch;margin:0 auto .4em}
.lost .lead{margin:0 auto 2.4rem}
.lost ul{list-style:none;padding:0;margin:0 auto;display:flex;flex-wrap:wrap;justify-content:center;gap:.8rem}
.lost li{margin:0}
.code{font:600 .6875rem/1.4 var(--sans);letter-spacing:.3em;text-transform:uppercase;color:var(--olive);margin:0 0 1.2rem}

/* Footer */
.site-footer{border-top:1px solid rgba(245,240,230,.14);background:var(--night);color:var(--night-muted);padding:clamp(3.5rem,7vw,5rem) 0 2.5rem;font-size:.9375rem}
.site-footer a{color:var(--on-night);text-decoration:none;display:inline-block;padding:.3rem 0}
.site-footer a:hover{color:var(--sand);text-decoration:underline}
.site-footer :focus-visible{outline-color:var(--on-night)}
.foot-top{display:grid;gap:2.5rem;padding-bottom:2.5rem;border-bottom:1px solid rgba(245,240,230,.16)}
@media (min-width:760px){.foot-top{grid-template-columns:1fr auto;align-items:start}}
.mono-foot{width:3rem;height:3rem;color:var(--sand);display:block;margin-bottom:1rem}
.foot-name{font:500 1.25rem/1 var(--serif);letter-spacing:.32em;text-transform:uppercase;color:var(--on-night);margin:0 0 .5rem}
.foot-line{font:italic 500 1.3rem/1.3 var(--serif);color:var(--sand);margin:0}
.foot-nav{display:grid;grid-template-columns:repeat(2,minmax(0,auto));gap:0 3.5rem}
.foot-nav ul{list-style:none;padding:0;margin:0}
.foot-nav li{margin:0 0 .2rem}
.foot-legal{margin:1.6rem 0 0;font-size:.8125rem;max-width:44rem;line-height:1.6}

/* Photography. Exports are graded once in scripts/images.mjs; here they are framed
   like prints: a hairline mat, a quiet caption, never a rounded corner. */
.photo{margin:0;position:relative}
.photo picture{display:block;background:var(--stone-deep);overflow:hidden}
.photo img{display:block;width:100%;height:auto}
.photo figcaption{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.15rem 1rem;margin-top:.7rem;font-size:.75rem;line-height:1.45;color:var(--muted);letter-spacing:.01em}
.ph-place{font:italic 500 1rem/1.3 var(--serif);color:var(--ink)}
.ph-credit{color:var(--muted);text-decoration:none;border-bottom:1px solid var(--rule)}
.ph-credit:hover{color:var(--accent);border-bottom-color:currentColor}
.photo.framed picture,.table-grid .photo picture,.why-grid .photo picture,.duo .photo picture,.join-photo picture,.with-photo .photo picture{box-shadow:0 1px 0 rgba(27,36,51,.05),0 28px 50px -34px rgba(27,36,51,.45);outline:1px solid rgba(27,36,51,.08);outline-offset:-1px}

/* Home hero: a full-bleed photograph with the invitation set over the dusk */
.hero.hero-photo{background:var(--night);color:var(--on-night);padding:0;display:flex;align-items:flex-end;min-height:min(calc(100svh - 7.5rem),58rem);isolation:isolate;overflow:hidden}
@media (min-width:760px){.hero.hero-photo{min-height:clamp(36rem,calc(100svh - 7rem),56rem)}}
.hero-photo .hero-img{position:absolute;inset:0;z-index:-2}
.hero-photo .hero-img picture{height:100%;background:var(--night)}
.hero-photo .hero-img img{width:100%;height:100%;object-fit:cover;object-position:60% 50%}
.hero-photo::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(0deg,rgba(13,19,29,.94) 0%,rgba(13,19,29,.78) 30%,rgba(13,19,29,.25) 62%,rgba(13,19,29,.05) 80%,rgba(13,19,29,.22) 100%)}
@media (min-width:1000px){.hero-photo::before{background:linear-gradient(90deg,rgba(13,19,29,.82) 0%,rgba(13,19,29,.55) 34%,rgba(13,19,29,0) 62%),linear-gradient(0deg,rgba(13,19,29,.7) 0%,rgba(13,19,29,0) 45%)}}
.hero-photo .hero-img figcaption{position:absolute;right:var(--gutter);bottom:1rem;margin:0;justify-content:flex-end;color:rgba(245,240,230,.72);z-index:1;max-width:60%;text-align:right}
.hero-photo .hero-img .ph-place{color:rgba(245,240,230,.86);font-size:.95rem}
.hero-photo .hero-img .ph-credit{color:rgba(245,240,230,.72);border-bottom-color:rgba(245,240,230,.3)}
.hero-copy{padding-top:clamp(6rem,20vh,12rem);padding-bottom:clamp(4.5rem,9vw,6.5rem);width:100%}
.hero-photo h1{color:var(--on-night);max-width:12ch;text-shadow:0 2px 24px rgba(13,19,29,.35)}
.hero-photo h1 em{color:var(--sand)}
.hero-photo .eyebrow{color:var(--sand)}
.hero-photo .lead{color:var(--on-night);max-width:34rem}
.hero-photo .link-arrow{color:var(--on-night)}
.hero-photo .link-arrow:hover{color:var(--sand)}
.hero-photo :focus-visible{outline-color:var(--on-night)}
@media (min-width:1000px){.hero-photo .hero-img figcaption{bottom:auto;top:1.1rem}}
@media (max-width:759px){.hero-photo .hero-img figcaption{bottom:.75rem;max-width:none;left:var(--gutter)}.hero-photo .hero-img .ph-place{display:none}.hero-copy{padding-bottom:3.5rem}}

/* The invitation card, lifted onto the edge of the photograph */
.invite-band{background:var(--paper-tex),var(--bg);padding:0 0 clamp(3rem,6vw,4.5rem)}
.invite-grid{display:grid;gap:2.5rem;padding-top:2.5rem}
.statement{font:500 clamp(1.7rem,3.4vw,2.6rem)/1.15 var(--serif);letter-spacing:-.01em;margin:0;max-width:22ch;text-wrap:balance}
.statement em{font-style:italic;color:var(--accent)}
@media (min-width:1000px){
  .invite-grid{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:4.5rem;align-items:end;padding-top:0}
  .invite-grid .invite{margin:-12rem 0 0 auto;position:relative;z-index:2}
  .statement{padding-bottom:1rem}
}
.invite-band .frieze{margin-top:clamp(3rem,6vw,4.5rem)}

/* Section I: the table, with a photograph of a square set for lunch */
.table-grid{display:grid;gap:2.5rem}
@media (min-width:1000px){.table-grid{grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:4rem;align-items:start}.table-grid .offers{grid-template-columns:repeat(2,1fr);column-gap:2.5rem;border-top:1px solid var(--ink)}.table-grid .offers li{grid-template-columns:1fr;border-top:0;border-bottom:1px solid var(--rule);padding-top:1.6rem}.table-grid .offers .glyph{margin-bottom:1.1rem}}

/* Full-bleed bands between sections */
.band{background:var(--night);position:relative}
.band .photo img{width:100%;height:auto;max-height:min(82vh,52rem);object-fit:cover}
.band .photo figcaption{position:absolute;left:var(--gutter);right:var(--gutter);bottom:0;margin:0;padding:2.5rem 0 .9rem;background:linear-gradient(0deg,rgba(13,19,29,.7),rgba(13,19,29,0));color:rgba(245,240,230,.75)}
@media (min-width:1216px){.band .photo figcaption{left:calc((100vw - var(--wide))/2 + var(--gutter));right:calc((100vw - var(--wide))/2 + var(--gutter))}}
.band .ph-place{color:var(--on-night)}
.band .ph-credit{color:rgba(245,240,230,.75);border-bottom-color:rgba(245,240,230,.3)}
.band :focus-visible{outline-color:var(--on-night)}

/* Section II: quote, text and a lane */
.why-grid{display:grid;gap:2.5rem}
.why-grid .columns{align-content:start}
@media (min-width:900px){.why-grid{grid-template-columns:minmax(0,7fr) minmax(0,4fr);gap:4rem;align-items:start}.why-grid .columns{grid-template-columns:1fr;gap:0}}
@media (min-width:1100px){.why-grid .columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 3rem}}

/* Section III: a pair of photographs, offset */
.duo{display:grid;gap:2rem;margin-bottom:clamp(2.5rem,5vw,4rem)}
@media (min-width:900px){.duo{grid-template-columns:minmax(0,7fr) minmax(0,4fr);gap:3rem;align-items:end}.duo .photo:first-child{margin-bottom:4rem}}

/* Section IV */
.join-photo{margin-top:2.5rem}

/* Closing: dusk behind the invitation */
.closing.photo-bg{isolation:isolate;padding:clamp(6rem,14vw,10rem) 0 clamp(5rem,12vw,8.5rem)}
.closing .bg{position:absolute;inset:0;z-index:-2}
.closing .bg picture{height:100%;background:var(--night)}
.closing .bg img{width:100%;height:100%;object-fit:cover;object-position:50% 40%}
.closing.photo-bg::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse at 50% 50%,rgba(13,19,29,.6),rgba(13,19,29,.82) 80%)}
.closing .bg figcaption{position:absolute;left:0;right:0;bottom:.9rem;justify-content:center;margin:0;color:rgba(245,240,230,.62);z-index:1}
.closing .bg .ph-place{color:rgba(245,240,230,.72);font-size:.9rem}
.closing .bg .ph-credit{color:rgba(245,240,230,.62);border-bottom-color:rgba(245,240,230,.25)}

/* Inner page heroes with a photograph */
.with-photo > .wrap{display:grid;gap:2.25rem}
@media (min-width:900px){.with-photo > .wrap{grid-template-columns:minmax(0,7fr) minmax(0,4fr);gap:4rem;align-items:end}}
.with-photo .photo{max-width:30rem}
@media (max-width:899px){.with-photo .photo img{aspect-ratio:3/2;object-fit:cover;object-position:50% 45%}}

@media (max-width:899px){.with-photo .wide-only{display:none}}

/* Credits */
.credits{list-style:none;margin:0;padding:0;border-top:1px solid var(--ink)}
.credits > li{display:grid;gap:1.25rem;padding:2rem 0;border-bottom:1px solid var(--rule);margin:0;scroll-margin-top:2rem}
@media (min-width:760px){.credits > li{grid-template-columns:16rem minmax(0,1fr);gap:2.5rem;align-items:start}}
.credits h3{font-size:1.75rem;margin:0 0 .8rem}
.credits dl{margin:0;display:grid;gap:.35rem}
.credits dl div{display:grid;grid-template-columns:7rem minmax(0,1fr);gap:1rem}
.credits dt{font:600 .6875rem/1.9 var(--sans);letter-spacing:.16em;text-transform:uppercase;color:var(--olive)}
.credits dd{margin:0;overflow-wrap:anywhere}
.credits li:target h3{color:var(--accent)}
.credit-thumb picture{outline:1px solid rgba(27,36,51,.08);outline-offset:-1px}
.credits-note{margin-top:2.5rem;max-width:var(--measure)}

/* Mobile */
@media (max-width:759px){
  .nav{display:none}
  .wordmark{font-size:1.05rem;letter-spacing:.26em;gap:.55rem}
  .wordmark .mono{width:1.75rem;height:1.75rem}
  details.mobile-nav{display:block;position:static}
  details.mobile-nav summary{list-style:none;cursor:pointer;border:1px solid var(--ink);border-radius:999px;padding:.5rem 1rem;font-weight:600;font-size:.875rem;min-height:2.75rem;display:flex;align-items:center;gap:.6rem}
  details.mobile-nav summary::-webkit-details-marker{display:none}
  .burger{position:relative;width:1rem;height:1px;background:currentColor;display:inline-block}
  .burger::before{content:"";position:absolute;left:0;right:0;top:-4px;height:1px;background:currentColor}
  .burger::after{content:"";position:absolute;left:0;right:0;top:4px;height:1px;background:currentColor}
  details[open] .burger{background:transparent}
  details[open] .burger::before{top:0;transform:rotate(45deg)}
  details[open] .burger::after{top:0;transform:rotate(-45deg)}
  details.mobile-nav nav{position:absolute;left:0;right:0;top:100%;background:var(--paper);border-bottom:1px solid var(--ink);box-shadow:0 24px 40px -24px rgba(27,36,51,.35);padding:.5rem var(--gutter) 1.25rem}
  details.mobile-nav ul{list-style:none;margin:0;padding:0}
  details.mobile-nav li{margin:0;border-bottom:1px solid var(--rule)}
  details.mobile-nav a{display:block;padding:1rem 0;color:var(--ink);text-decoration:none;font:500 1.6rem/1.2 var(--serif)}
  details.mobile-nav a[aria-current=page]{color:var(--accent)}
  .actions .btn{flex:1 1 auto;justify-content:center}
  .invite{max-width:none}
}

/* Motion: quiet, and only for those who have not asked for less */
@media (prefers-reduced-motion:no-preference){
  .rise{animation:rise .9s var(--ease) both}
  .rise.d1{animation-delay:.08s}.rise.d2{animation-delay:.16s}.rise.d3{animation-delay:.24s}.rise.d4{animation-delay:.36s}
  .invite.rise{animation:card 1.1s var(--ease) .2s both}
  h1.rise,.lead.rise{animation-name:lift}
  .lift-in{animation:lift 1.1s var(--ease) .1s both}
  .frieze.draw{animation:fadein 1.4s var(--ease) .45s both}
  .step-anim{animation:stepin .45s var(--ease) both}
  @keyframes lift{from{transform:translateY(10px)}to{transform:none}}
  @keyframes rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
  @keyframes card{from{opacity:0;transform:translateY(20px) rotate(1.2deg)}to{opacity:1;transform:none}}
  @keyframes fadein{from{opacity:0}to{opacity:.8}}
  @keyframes stepin{from{opacity:0;transform:translateX(12px)}to{opacity:1;transform:none}}
  @supports (animation-timeline:view()){
    .reveal{animation:rise linear both;animation-timeline:view();animation-range:entry 0% entry 55%}
  }
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Admin (served by functions/admin with this stylesheet) */
.admin-app{margin:2rem 0;max-width:48rem}
.admin-dl{display:grid;grid-template-columns:9rem 1fr;gap:.3rem 1rem;margin-bottom:1.2rem}
.admin-dl dt{font-weight:600}
.admin-dl dd{margin:0;overflow-wrap:anywhere;min-width:0}
.pre{white-space:pre-wrap}
.admin-filters{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:.4rem 1.2rem}
.admin-filters a[aria-current=page]{font-weight:600}
@media (max-width:759px){.admin-dl{grid-template-columns:1fr}.admin-dl dd{margin-bottom:.5rem}}

@media print{.site-header,.site-footer,.frieze,.toc{display:none}body{background:#fff}}
.status.thanks{border-left:0;background:none;margin:0}
[hidden]{display:none!important}
