/* Muslin - bridal and made-to-order atelier. All colours, fonts and sizes are tokens here. */
:root {
  --bg: #f4f0e8;          /* ecru page */
  --muslin: #e8e1d4;      /* unbleached cotton, photo placeholders and footer */
  --ink: #1f1c18;
  --soft: #6d665c;        /* small print */
  --line: rgba(31, 28, 24, .16);
  --thread: #a8342a;      /* the red tacking thread: the only accent */
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 3vw, 40px);
  --gap: 16px;
  --hh: 64px;             /* header height */
  --radius: 0px;
  --ease: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--thread); color: var(--bg); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 1px solid var(--thread); outline-offset: 3px; }

.wrap { max-width: 1680px; margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.label a:hover { color: var(--ink); }
.h1 { font: 400 clamp(44px, 6.4vw, 104px)/1 var(--serif); letter-spacing: -.01em; }
.h2 { font: 400 clamp(28px, 3vw, 44px)/1.08 var(--serif); }
.h3 { font: 400 26px/1.15 var(--serif); }
.small { font-size: 13px; color: var(--soft); }
.page-intro { max-width: 34em; font-size: 17px; color: var(--soft); }

/* links and buttons: quiet, underlined by the thread on hover */
.link { display: inline-block; font-size: 13px; padding-bottom: 3px; background: linear-gradient(var(--ink), var(--ink)) 0 100% / 100% 1px no-repeat; transition: background-size .5s var(--ease), color .3s; }
.link:hover { color: var(--thread); background-image: linear-gradient(var(--thread), var(--thread)); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: var(--bg); font-size: 13px; letter-spacing: .06em; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.btn:hover { background: transparent; color: var(--ink); }

/* header: links left, spaced name in the middle, links right (as in a couture house) */
.header { position: sticky; top: 0; z-index: 50; height: var(--hh); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter); background: var(--bg); border-bottom: 1px solid var(--line); font-size: 13px; }
.header nav { display: flex; gap: 28px; }
.nav-right { justify-content: flex-end; }
.header nav a { padding: 6px 0; background: linear-gradient(var(--thread), var(--thread)) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.header nav a:hover, .header nav a[aria-current] { background-size: 100% 1px; }
.logo { font-size: 15px; letter-spacing: .42em; text-transform: uppercase; padding-left: .42em; }
.menu-btn { display: none; justify-self: end; background: none; border: 0; padding: 8px 0; cursor: pointer; font-size: 13px; }
.menu { position: fixed; inset: var(--hh) 0 0; z-index: 49; background: var(--bg); padding: 40px var(--gutter); display: flex; flex-direction: column; justify-content: space-between; }
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; gap: 6px; }
.menu nav a { font: 400 clamp(36px, 9vw, 56px)/1.1 var(--serif); }
.menu nav a[aria-current] { color: var(--thread); }
.menu-foot { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--soft); }

/* photo frames: muslin colour behind every photo, so an empty frame still looks intended */
.ph { position: relative; overflow: hidden; background: var(--muslin); border-radius: var(--radius); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-tall { aspect-ratio: 3 / 4; }
.ph-wide { aspect-ratio: 16 / 9; }
.ph figcaption { position: absolute; left: 12px; bottom: 10px; font-size: 12px; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); z-index: 2; }

/* THE VEIL: a sheet of tulle (fine mesh, blur, ecru tint) lies over each photo and lifts away when it comes into view */
html.motion [data-veil]::after { content: ""; position: absolute; inset: -2px -2px -12%; z-index: 1; pointer-events: none;
  background-color: rgba(244, 240, 232, .55);
  background-image: radial-gradient(circle, rgba(255, 255, 255, .7) .6px, transparent 1.1px), radial-gradient(circle, rgba(31, 28, 24, .08) .6px, transparent 1.1px);
  background-size: 5px 5px, 5px 5px; background-position: 0 0, 2.5px 2.5px;
  -webkit-backdrop-filter: blur(18px) saturate(.7); backdrop-filter: blur(18px) saturate(.7);
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent); mask-image: linear-gradient(to bottom, #000 82%, transparent);
  transition: transform 1.9s var(--ease), opacity 1.9s ease; }
html.motion [data-veil] img { transform: scale(1.07); transition: transform 2.6s cubic-bezier(.2, .7, .2, 1); }
html.motion [data-veil].lifted::after { transform: translateY(-112%) skewY(-3deg); opacity: .2; }
html.motion [data-veil].lifted img { transform: none; }

/* CUT-OUT HEADINGS (pinking shears): every heading on the site is cut out line by line, left to right, with a zigzag edge.
   main.js splits a heading into lines (.ln > .lt) and moves the cut --x from 0 to past the end of each line (--w),
   then puts the heading back as it was. Teeth keep the same size whatever the line length. */
@property --x { syntax: '<length>'; inherits: true; initial-value: 0px; }
html.motion :is(h1, h2, h3, .gown-name, .post-title, summary, .footer-line):not(.cut-ready):not(.cut-done) { visibility: hidden; }
.cut-ready .ln { display: flow-root; position: relative; width: fit-content; max-width: 100%; --tooth: 16px; --deep: 12px; --x: calc(var(--deep) * -1 - 2px); }
.cut-ready .lt { display: block; padding: .25em var(--deep) .25em 0; margin: -.25em calc(var(--deep) * -1) -.25em 0;
  -webkit-mask: linear-gradient(#000, #000) 0 0 / max(0px, var(--x)) 100% no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 16' preserveAspectRatio='none'%3E%3Cpath d='M0 0L12 8 0 16Z'/%3E%3C/svg%3E") var(--x) 0 / var(--deep) var(--tooth) repeat-y;
  mask: linear-gradient(#000, #000) 0 0 / max(0px, var(--x)) 100% no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 16' preserveAspectRatio='none'%3E%3Cpath d='M0 0L12 8 0 16Z'/%3E%3C/svg%3E") var(--x) 0 / var(--deep) var(--tooth) repeat-y; }
.cut-ready .lt { white-space: nowrap; }
/* no shears on screen, only their strokes: each line is cut in a few quick snips with a short pause between them
   (--snip is a stepped curve made in main.js; lines are cut one after another) */
.cut-ready.cut .ln { --x: calc(var(--w) + var(--deep) + 4px); transition: --x var(--dur) var(--snip) var(--li); }
:is(.hero-title, .invite-title, .statement-text).cut-ready .ln { margin-left: auto; margin-right: auto; }
.gown-name.cut-ready { display: inline-block; }

/* hero */
.hero { position: relative; height: calc(100svh - var(--hh)); min-height: 520px; color: #fff; display: grid; grid-template-columns: 1fr 1fr; }
.hero-photo img { object-position: 50% 25%; }
.hero-photo + .hero-photo::after { transition-delay: .35s; }
.hero::after { content: ""; position: absolute; inset: 30% 0 0; z-index: 1; pointer-events: none; background: linear-gradient(transparent, rgba(20, 16, 12, .22) 45%, rgba(20, 16, 12, .58)); }
/* hero opening (main.js adds .open, then .settled): the label is pulled tight like a woven label, the title is cut,
   the link is sewn (dashed stitches, then a solid line); the photos keep coming closer very slowly */
html.motion .hero-text .label { letter-spacing: .7em; opacity: 0; transition: letter-spacing 1.8s cubic-bezier(.2, .7, .2, 1) .4s, opacity 1.2s ease .4s; }
html.motion .hero.open .hero-text .label { letter-spacing: .14em; opacity: 1; }
html.motion .hero .link { position: relative; opacity: 0; background-size: 0 1px; transition: opacity .8s ease 2.4s, background-size .9s var(--ease) 3.1s; }
html.motion .hero .link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: repeating-linear-gradient(90deg, #fff 0 5px, transparent 5px 9px);
  clip-path: inset(0 100% 0 0); transition: clip-path .8s steps(9, end) 2.4s, opacity .5s ease 3.6s; }
html.motion .hero.open .link { opacity: 1; background-size: 100% 1px; }
html.motion .hero.open .link::after { clip-path: inset(0 0 0 0); opacity: 0; }
html.motion .hero.settled .link, html.motion .hero.settled .link::after { transition-duration: .5s; transition-delay: 0s; }
html.motion .hero.settled .link:hover { background-size: 0 1px; color: #fff; }
html.motion .hero.settled .link:hover::after { opacity: 1; }
html.motion .hero [data-veil] img { transition: transform 2.6s cubic-bezier(.2, .7, .2, 1), scale 24s cubic-bezier(.3, 0, .4, 1); }
html.motion .hero.open [data-veil] img { scale: 1.06; }
.hero-text { position: absolute; left: 0; right: 0; bottom: clamp(28px, 6vh, 64px); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; padding: 0 var(--gutter); }
.hero-text .label { color: rgba(255, 255, 255, .8); }
.hero-title { font: 400 clamp(40px, 5.4vw, 88px)/1 var(--serif); text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.hero .link { background-image: linear-gradient(#fff, #fff); }

/* the hero stays put and the statement slides over it; while it does, the veil comes back down over the hero
   (--p = 0 hero fully visible, 1 hero fully covered; set by main.js) */
.cover { position: relative; }
.cover .hero { position: sticky; top: var(--hh); z-index: 0; }
.cover .statement { position: relative; z-index: 2; background: var(--bg); min-height: calc(100svh - var(--hh)); justify-content: center; }
/* on the hero the veil does not lift, it fades: out on load, back in while the statement covers it */
html.motion .hero [data-veil]::after, html.motion .hero [data-veil].lifted::after { inset: -2px; transform: none; -webkit-mask-image: none; mask-image: none; transition: opacity 2.2s ease; }
html.motion .hero [data-veil].lifted::after { opacity: 0; }
html.motion .hero.scrub [data-veil]::after { transition: none; opacity: var(--p); }
html.motion .hero.scrub [data-veil] img { transition: scale 24s cubic-bezier(.3, 0, .4, 1); transform: scale(calc(1 + .07 * var(--p))); }
.hero.scrub .hero-text { opacity: calc(1 - 1.6 * var(--p)); }

/* statement */
.statement { padding-left: var(--gutter); padding-right: var(--gutter); padding-top: clamp(96px, 14vw, 200px); padding-bottom: clamp(96px, 14vw, 200px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.statement-text { max-width: 22em; font: 400 clamp(26px, 3.2vw, 46px)/1.2 var(--serif); }

/* rows and grids of gowns */
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.row-more { margin-top: 28px; margin-bottom: clamp(120px, 16vw, 240px); text-align: center; }
.gown { display: flex; flex-direction: column; gap: 10px; }
.gown-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.gown-name { font: 400 22px/1.2 var(--serif); position: relative; }
.gown-name::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: repeating-linear-gradient(90deg, var(--thread) 0 5px, transparent 5px 9px); clip-path: inset(0 100% 0 0); transition: clip-path .6s steps(6, end); }
.gown:hover .gown-name::after { clip-path: inset(0 0 0 0); }
.gown-line, .gown-price { font-size: 12px; color: var(--soft); }
.gown .ph img { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1), filter .6s; }
.gown:hover .ph.lifted img, html:not(.motion) .gown:hover .ph img { transform: scale(1.03); }
/* over a gown photo the cursor becomes a small round "View" tag (main.js, mouse only) */
.view-tag { position: fixed; left: 0; top: 0; z-index: 45; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--thread); color: #fff; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  pointer-events: none; opacity: 0; scale: .4; transition: opacity .3s ease, scale .45s cubic-bezier(.2, .7, .2, 1); }
.view-tag.on { opacity: 1; scale: 1; }
.has-tag .gown .ph { cursor: none; }
/* mail links copy the address too (main.js) */
.copied-tip { position: absolute; z-index: 60; padding: 6px 10px; background: var(--thread); color: #fff; font-size: 11px; line-height: 1; letter-spacing: .12em;
  text-transform: uppercase; pointer-events: none; transform: translate(-50%, -130%); }

/* feature: big photo on one side, a small block of text low on the other, lots of air */
.feature { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; margin-bottom: clamp(120px, 16vw, 240px); }
.feature-photo { grid-column: 1 / 8; }
.feature-text { grid-column: 9 / 12; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-bottom: 8px; }
.feature-text p:not(.label) { max-width: 30em; color: var(--soft); }
.feature--flip .feature-photo { grid-column: 6 / 13; grid-row: 1; }
.feature--flip .feature-text { grid-column: 1 / 5; grid-row: 1; }

/* fabrics */
.fabrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-bottom: clamp(120px, 16vw, 240px); }
.fabrics-head { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.fabrics .ph { aspect-ratio: 4 / 5; }

/* journal */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.journal-row { margin-bottom: clamp(120px, 16vw, 240px); }
.post { display: flex; flex-direction: column; gap: 10px; }
.post-meta { font-size: 12px; color: var(--soft); }
.post-title { font: 400 24px/1.2 var(--serif); }
.post:hover .post-title { color: var(--thread); }
.journal-list { display: flex; flex-direction: column; gap: clamp(48px, 7vw, 96px); margin-bottom: clamp(120px, 14vw, 200px); }
.post--wide { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; }
.post--wide .ph { grid-column: 1 / 8; }
.post-body { grid-column: 9 / 13; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.post--wide .post-title { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.1; }
.post-excerpt { color: var(--soft); max-width: 28em; }

/* closing invitation */
.invite { position: relative; min-height: 86svh; display: grid; place-items: center; color: #fff; text-align: center; overflow: hidden; }
.invite-photo { position: absolute; inset: 0; }
.invite-photo img { filter: brightness(.82); }
.invite-text { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 0 var(--gutter); }
.invite .label { color: rgba(255, 255, 255, .8); }
.invite-title { font: 400 clamp(40px, 6vw, 96px)/1 var(--serif); max-width: 12em; }
.invite .btn { background: #fff; color: var(--ink); border-color: #fff; }
.invite .btn:hover { background: transparent; color: #fff; }
.invite--plain { min-height: 0; color: var(--ink); padding-top: clamp(80px, 12vw, 160px); padding-bottom: clamp(120px, 16vw, 220px); gap: 28px; }
.invite--plain .btn { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.invite--plain .btn:hover { background: transparent; color: var(--ink); }

/* inner pages */
.page-head { padding-top: clamp(72px, 10vw, 150px); padding-bottom: clamp(48px, 6vw, 88px); display: flex; flex-direction: column; gap: 22px; }
.filters, .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 38px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; cursor: pointer; font-size: 13px; transition: border-color .3s, background .3s, color .3s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.grid-gowns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px var(--gap); margin-bottom: clamp(120px, 14vw, 200px); }
.grid-gowns .gown[hidden] { display: none; }

.gown-page { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding-top: 24px; align-items: start; }
.gown-main { grid-column: 1 / 8; }
.gown-info { grid-column: 9 / 13; position: sticky; top: calc(var(--hh) + 32px); display: flex; flex-direction: column; gap: 20px; padding-top: 24px; }
.gown-info > p:not(.label):not(.gown-intro) { color: var(--soft); }
.gown-intro { font: 400 22px/1.35 var(--serif); }
.specs { border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.specs dt { color: var(--soft); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 8px; }
.details { display: grid; grid-template-columns: 5fr 4fr; gap: var(--gap); align-items: end; margin-top: clamp(96px, 12vw, 180px); margin-bottom: clamp(96px, 12vw, 180px); }
.details .ph:nth-child(2) { width: 80%; }
.more { margin-bottom: clamp(120px, 14vw, 200px); }

.wide-photo { margin-bottom: clamp(96px, 12vw, 180px); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-bottom: clamp(120px, 16vw, 240px); }
.step { display: flex; flex-direction: column; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.step p:not(.step-n):not(.step-time) { color: var(--soft); }
.step-n { font: 400 15px/1 var(--sans); color: var(--thread); }
.step-time { margin-top: auto; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }

.faq { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-bottom: clamp(120px, 14vw, 200px); }
.faq .section-head { grid-column: 1 / -1; }
.faq-list { grid-column: 5 / 13; }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font: 400 24px/1.25 var(--serif); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 18px; font: 300 22px/1 var(--sans); transition: transform .4s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details.closing summary::after { transform: none; }
details p { padding: 0 0 22px; max-width: 40em; color: var(--soft); }

.edit { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-bottom: clamp(120px, 16vw, 240px); }
.edit-a { grid-column: 1 / 7; grid-row: 1 / 3; }
.edit-text { grid-column: 8 / 12; grid-row: 1; display: flex; flex-direction: column; gap: 16px; padding-top: 12%; }
.edit-text p:not(.label) { color: var(--soft); }
.edit-b { grid-column: 9 / 13; grid-row: 2; align-self: end; }
.edit--flip .edit-a { grid-column: 7 / 13; }
.edit--flip .edit-text { grid-column: 2 / 6; }
.edit--flip .edit-b { grid-column: 1 / 5; }
.row3 figure.ph { aspect-ratio: 3 / 4; }

.numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-bottom: clamp(120px, 16vw, 240px); }
.numbers > div { border-top: 1px solid var(--line); padding-top: 16px; color: var(--soft); }
.num { font: 400 clamp(56px, 7vw, 110px)/1 var(--serif); color: var(--ink); margin-bottom: 8px; }

.article { padding-top: clamp(64px, 9vw, 130px); margin-bottom: clamp(120px, 14vw, 200px); }
.article-head { max-width: 980px; margin: 0 auto 56px; display: flex; flex-direction: column; gap: 22px; }
.article-body { max-width: 680px; margin: 64px auto 0; display: flex; flex-direction: column; gap: 22px; font-size: 18px; line-height: 1.7; }
.article-body p:first-child::first-letter { font: 400 64px/.8 var(--serif); float: left; padding: 6px 10px 0 0; color: var(--thread); }
.article-next { max-width: 680px; margin: 80px auto 0; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.article-next a { font: 400 30px/1.15 var(--serif); }
.article-next a:hover { color: var(--thread); }

.booking { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding-top: clamp(64px, 9vw, 130px); margin-bottom: clamp(120px, 14vw, 200px); align-items: start; }
.booking-side { grid-column: 1 / 6; display: flex; flex-direction: column; gap: 22px; }
.booking-side .ph { max-width: 420px; margin-top: 20px; }
.form { grid-column: 7 / 13; display: flex; flex-direction: column; gap: 22px; padding-top: 12px; }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, legend { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); padding: 0; margin-bottom: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px var(--gap); }
input:not([type="checkbox"]), textarea { width: 100%; min-height: 46px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; outline: none; transition: border-color .3s; }
textarea { resize: vertical; }
input:focus, textarea:focus { border-bottom-color: var(--thread); }
input[type="date"] { -webkit-appearance: none; appearance: none; }
.field.bad input, .field.bad textarea, .check.bad span { border-bottom-color: var(--thread); color: var(--thread); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--soft); cursor: pointer; }
.check input { -webkit-appearance: none; appearance: none; flex: none; width: 18px; height: 18px; margin: 2px 0 0; border: 1px solid var(--ink); border-radius: var(--radius); display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--ink); box-shadow: inset 0 0 0 3px var(--bg); }
.form .btn { align-self: flex-start; }
.form-note { font-size: 13px; color: var(--thread); min-height: 1.6em; }

.lost { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: center; min-height: calc(100svh - var(--hh)); padding-top: 48px; padding-bottom: 96px; }
.lost-photo { grid-column: 1 / 6; }
.lost > div { grid-column: 7 / 12; display: flex; flex-direction: column; gap: 22px; }

/* footer */
.footer { background: var(--muslin); padding-top: clamp(64px, 8vw, 110px); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px var(--gap); }
.footer-invite { grid-column: 1 / 5; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer-line { font: 400 28px/1.2 var(--serif); max-width: 14em; }
.footer-cols { grid-column: 6 / 13; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px var(--gap); font-size: 13px; }
.footer-cols .label { margin-bottom: 10px; }
.footer-cols a:hover { color: var(--thread); }
.nav-foot { display: flex; flex-direction: column; gap: 2px; }
.footer-mark { text-align: center; font: 400 clamp(48px, 15.5vw, 300px)/.9 var(--sans); letter-spacing: .2em; padding-left: .2em; text-transform: uppercase; margin: clamp(56px, 8vw, 110px) 0 0; color: var(--bg); user-select: none; }
.footer-small { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; padding-bottom: 22px; font-size: 12px; color: var(--soft); }

/* back to top: shows after one screen of scrolling */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .4s, transform .4s, visibility .4s, border-color .3s; }
.to-top.on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--thread); color: var(--thread); }

@media (max-width: 1100px) {
  .header { grid-template-columns: 1fr auto 1fr; }
  .header nav { display: none; }
  .menu-btn { display: block; grid-column: 3; }
  .logo { grid-column: 2; }
  .feature-photo { grid-column: 1 / 8; }
  .feature-text { grid-column: 8 / 13; }
  .feature--flip .feature-photo { grid-column: 6 / 13; }
  .feature--flip .feature-text { grid-column: 1 / 6; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .footer-invite, .footer-cols { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .logo { font-size: 14px; letter-spacing: .32em; }
  .row3, .fabrics, .numbers { grid-template-columns: 1fr; row-gap: 40px; }
  .grid-gowns { grid-template-columns: 1fr 1fr; gap: 36px 12px; }
  .gown-name { font-size: 19px; }
  .feature, .post--wide, .gown-page, .edit, .faq, .booking, .lost, .footer-top { grid-template-columns: 1fr; }
  .feature > *, .feature--flip > *, .post--wide > *, .gown-page > *, .edit > *, .edit--flip > *, .faq > *, .booking > *, .lost > *, .footer-top > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .feature { gap: 24px; }
  .gown-info { position: static; }
  .details { grid-template-columns: 1fr; }
  .details .ph:nth-child(2) { width: 70%; justify-self: end; }
  .edit { row-gap: 28px; }
  .edit-text { padding-top: 0; }
  .edit-b { width: 70%; justify-self: end; }
  .steps { grid-template-columns: 1fr; row-gap: 40px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .hero-text { gap: 14px; }
  .hero { grid-template-columns: 1fr; }
  .hero-photo + .hero-photo { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
