/* Veil and Vellum Design storefront. Mobile first: the base rules are for a phone,
   and wider screens add to them. Colours are the brand kit's palette. */

@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: "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: "Lato"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/lato-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/lato-latin-700-normal.woff2") format("woff2"); }

:root {
  --ivory: #F4EEE8;
  --mist: #ECE3DC;
  --pearl: #D6C6BB;
  --taupe: #A99287;
  --stone: #88766E;
  --gold: #C5A17B;
  --twilight: #4A3D4C;
  --night: #3A2F3C;
  --text: #3F3441;
  --muted: #65575F;
  --serif: "Cormorant Garamond", "EB Garamond", Garamond, Georgia, serif;
  --sans: "Lato", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: 16px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--text); font: 400 1rem/1.6 var(--sans);
  overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--twilight); text-underline-offset: 3px; }
a:hover { color: var(--night); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--twilight); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 8vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 5.5vw, 2.2rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--twilight); color: var(--ivory); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.label { font: 700 .72rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--stone); margin-bottom: .6em; }
.center { text-align: center; }
.narrow { max-width: 640px; margin-inline: auto; padding-inline: var(--gutter); }
.hint { font-size: .86rem; color: var(--muted); margin: .4em 0 0; }
.text-link { font-weight: 700; }
.intro { color: var(--muted); padding-inline: var(--gutter); }

/* Test-mode notice and draft notes */
.notice { background: var(--gold); color: var(--night); font-size: .82rem; font-weight: 700; text-align: center; padding: 8px var(--gutter); }
.draft-note { border: 1px dashed var(--stone); background: var(--mist); color: var(--muted); font-size: .85rem; padding: 8px 12px; border-radius: var(--radius); font-style: normal; display: block; }

/* Header */
.masthead { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px var(--gutter); background: rgba(244, 238, 232, .96); border-bottom: 1px solid var(--pearl);
  backdrop-filter: blur(6px); }
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--twilight);
  font: 600 1.35rem/1 var(--serif); letter-spacing: .02em; white-space: nowrap; }
.wordmark em { font-style: italic; font-weight: 500; color: var(--stone); }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 22px; height: 2px; background: var(--twilight); transition: transform .2s; }
.menu[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu[open] summary span:nth-child(2) { opacity: 0; }
.menu[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--ivory); border-bottom: 1px solid var(--pearl);
  display: flex; flex-direction: column; padding: 8px var(--gutter) 16px; box-shadow: 0 12px 24px rgba(58, 47, 60, .12); }
.menu nav a { padding: 12px 0; text-decoration: none; font: 600 1.25rem var(--serif); border-bottom: 1px solid var(--mist); }
.desktop-nav { display: none; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px;
  border: 1px solid var(--twilight); border-radius: 999px; background: var(--twilight); color: var(--ivory);
  font: 700 .82rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s; }
.button:hover { background: var(--night); color: var(--ivory); }
.button.gold { background: var(--gold); border-color: var(--gold); color: var(--night); }
.button.gold:hover { background: #D4B48F; border-color: #D4B48F; color: var(--night); }
.button.ghost { background: transparent; border-color: var(--gold); color: var(--ivory); }
.button.ghost:hover { background: rgba(197, 161, 123, .16); }
.button.ghost-dark { background: transparent; color: var(--twilight); }
.button.ghost-dark:hover { background: var(--mist); color: var(--twilight); }
.button.wide { width: 100%; margin-top: 12px; }
.button.small { min-height: 40px; padding: 8px 18px; font-size: .74rem; }
.button[disabled] { opacity: .55; cursor: not-allowed; }

/* Hero: the Twilight Gilt post, as a page */
.hero { background: var(--twilight); color: var(--ivory); padding: 20px var(--gutter) 32px; }
.hero-frame { border: 1px solid var(--gold); outline: 1px solid rgba(197, 161, 123, .55); outline-offset: -9px;
  padding: 40px 22px 28px; text-align: center; max-width: 1120px; margin: 0 auto; }
.ornament { color: var(--gold); letter-spacing: .5em; margin-bottom: 1em; }
.hero h1 { color: var(--ivory); font-style: italic; font-weight: 500; font-size: clamp(2.4rem, 11vw, 4.4rem); }
.hero h1 span { display: block; }
.hero .lede { color: var(--pearl); max-width: 34em; margin-inline: auto; }
.actions { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 32px; }
.hero-art { width: min(100%, 420px); margin: 0 auto; box-shadow: 0 18px 40px rgba(0, 0, 0, .28); }

/* Sections */
.band { padding: 48px 0; }
.band.ivory { background: var(--mist); }
.section-title { text-align: center; padding-inline: var(--gutter); }
.steps { list-style: none; margin: 24px auto; padding: 0 var(--gutter); display: grid; gap: 20px; max-width: 1040px; }
.steps li { background: #FBF8F5; border: 1px solid var(--pearl); border-radius: var(--radius); padding: 22px; }
.step-mark { display: inline-grid; place-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold);
  color: var(--gold); font: 600 1.05rem var(--serif); margin-bottom: 10px; }
.steps p { color: var(--muted); margin: 0; }

/* The feed: three across, as on an Instagram profile */
.grid.feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; max-width: 960px; margin: 24px auto; }
.tile { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--pearl); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.tile:hover img { transform: scale(1.03); }
.tile-caption { position: absolute; inset: auto 0 0 0; padding: 28px 10px 10px; color: var(--ivory); font: italic 500 1rem/1.25 var(--serif);
  background: linear-gradient(transparent, rgba(58, 47, 60, .85)); opacity: 0; transition: opacity .25s; }
.tile:hover .tile-caption, .tile:focus-visible .tile-caption { opacity: 1; }
.profile { display: flex; gap: 18px; align-items: flex-start; padding: 28px var(--gutter) 8px; max-width: 960px; margin: 0 auto; }
.avatar { width: 72px; height: 72px; flex: none; border-radius: 50%; box-shadow: 0 0 0 2px var(--ivory), 0 0 0 3px var(--gold); }
.profile h1 { font-size: 1.9rem; margin-bottom: .25em; }
.profile p { color: var(--muted); font-size: .95rem; margin-bottom: .6em; }
.profile .price-line { color: var(--twilight); font-weight: 700; }

/* Looks */
.looks-row { display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px var(--gutter) 16px; max-width: 1200px; margin: 0 auto; }
.look-card { margin: 0; scroll-snap-align: start; }
.look-card img { box-shadow: 0 8px 20px rgba(58, 47, 60, .14); }
.look-card figcaption { font-size: .9rem; color: var(--muted); padding-top: 10px; }
.look-card strong { display: block; font: 600 1.2rem var(--serif); color: var(--twilight); }

/* Page heads and prose */
.page-head { padding: 36px var(--gutter) 8px; max-width: 640px; margin: 0 auto; box-sizing: content-box; }
.page-head .lede, .lede { font-size: 1.08rem; color: var(--muted); }
.price { font: 600 1.6rem var(--serif); color: var(--twilight); margin: .3em 0 1em; }
.prose { padding-bottom: 48px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.4em; }
.faq details { border-bottom: 1px solid var(--pearl); padding: 14px 0; }
.faq summary { cursor: pointer; font: 600 1.25rem var(--serif); color: var(--twilight); }
.faq details p { margin: .7em 0 0; }
.contact-list { padding-bottom: 48px; }
.contact-list p { display: flex; flex-direction: column; border-bottom: 1px solid var(--pearl); padding: 14px 0; margin: 0; }

/* Order forms */
.order-form { max-width: 640px; margin: 0 auto; padding: 8px var(--gutter) 48px; }
.field { border: 0; margin: 0 0 26px; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; font: 700 .76rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  color: var(--twilight); margin-bottom: 10px; padding: 0; }
textarea, select, input[type="email"] { width: 100%; font: 400 1.05rem/1.5 var(--sans); color: var(--text); background: #FBF8F5;
  border: 1px solid var(--taupe); border-radius: var(--radius); padding: 12px 14px; }
textarea { resize: vertical; min-height: 96px; font-family: var(--serif); font-size: 1.3rem; }
select { min-height: 48px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--twilight) 50%),
  linear-gradient(135deg, var(--twilight) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
textarea:focus, select:focus, input:focus { border-color: var(--twilight); }
.count { font-size: .8rem; color: var(--muted); text-align: right; margin: 4px 0 0; }
.invalid textarea, .invalid select, .invalid .look-picker, .invalid .segmented { border-color: #9B4A4A; box-shadow: 0 0 0 1px #9B4A4A; }
.alert { border-left: 4px solid #9B4A4A; background: #F6E6E3; color: #5C2B2B; padding: 12px 14px; margin-bottom: 22px; border-radius: var(--radius); }
.alert p { margin: 0; }

.look-picker { display: grid; grid-auto-flow: column; grid-auto-columns: 40%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 2px 12px; border-radius: var(--radius); }
.look-option { scroll-snap-align: start; cursor: pointer; position: relative; }
.look-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.look-option img { border: 2px solid transparent; border-radius: var(--radius); transition: border-color .2s; }
.look-name { display: block; text-align: center; font: 600 1.05rem var(--serif); color: var(--muted); padding-top: 6px; }
.look-option input:checked + img { border-color: var(--gold); box-shadow: 0 0 0 2px var(--twilight); }
.look-option input:checked ~ .look-name { color: var(--twilight); }
.look-option input:checked ~ .look-name::before { content: "✦ "; color: var(--gold); }
.look-option input:focus-visible + img { outline: 2px solid var(--gold); outline-offset: 3px; }
.look-notes { list-style: none; margin: 4px 0 0; padding: 0; font-size: .88rem; color: var(--muted); }
.look-notes strong { color: var(--twilight); }
@supports selector(:has(*)) {
  .look-notes li { display: none; }
  .field:has(input[value="twilight-gilt"]:checked) li[data-look="twilight-gilt"],
  .field:has(input[value="pearl-seal"]:checked) li[data-look="pearl-seal"],
  .field:has(input[value="new-moon"]:checked) li[data-look="new-moon"],
  .field:has(input[value="vellum-ink"]:checked) li[data-look="vellum-ink"],
  .field:has(input[value="warm-stone"]:checked) li[data-look="warm-stone"] { display: block; }
}

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-radius: var(--radius); }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 8px 10px; text-align: center;
  border: 1px solid var(--taupe); border-radius: var(--radius); background: #FBF8F5; font-size: .95rem; }
.segmented input:checked + span { background: var(--twilight); border-color: var(--twilight); color: var(--ivory); }
.segmented input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.summary { border-top: 1px solid var(--pearl); border-bottom: 1px solid var(--pearl); padding: 16px 0; margin: 8px 0 4px; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 6px; color: var(--twilight); }
.summary .line strong { white-space: nowrap; }
.summary .total { font-weight: 700; border-top: 1px dashed var(--pearl); padding-top: 8px; margin-top: 4px; }
/* Order bump: a quote sigil added to a custom order */
.bump { background: #FBF8F5; border: 2px dashed var(--gold); border-radius: var(--radius); padding: 14px; margin-top: 18px; }
.field > label.bump-toggle { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; margin: 0;
  font: 400 .95rem/1.5 var(--sans); letter-spacing: normal; text-transform: none; color: var(--text); }
.bump-toggle input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--twilight); }
.bump-toggle strong { color: var(--twilight); }
.bump-toggle s { color: var(--muted); }
.bump select { margin-top: 12px; }
.bump-line, .with-bump { display: none !important; }
.order-form:has(#bump:checked) .bump-line { display: flex !important; }
.order-form:has(#bump:checked) .with-bump { display: inline !important; }
.order-form:has(#bump:checked) .without-bump { display: none; }
@supports not selector(:has(*)) {
  .bump-line { display: flex !important; }
  .bump-line span::after { content: " (if added)"; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* The extras set offer */
.offer { border: 1px solid var(--gold); border-radius: var(--radius); background: #FBF8F5; padding: 22px 18px; margin-bottom: 18px; }
.offer h2 { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.offer-price { font: 700 1rem var(--sans); color: var(--night); background: var(--gold); border-radius: 999px; padding: 4px 12px; }
.offer-list { padding-left: 1.1em; margin: 0 0 12px; }
.offer-list li { margin-bottom: 8px; }
.offer-art { display: flex; gap: 10px; margin-bottom: 14px; }
.swatch { display: block; width: 56px; height: 56px; border-radius: var(--radius); border: 1px solid var(--pearl); position: relative; }
.swatch::after { content: "✦"; position: absolute; inset: 0; display: grid; place-content: center; font-size: 1.4rem; }
.swatch.dark { background: #000; }
.swatch.dark::after { color: #fff; }
.swatch.light { background: #fff; }
.swatch.light::after { color: #000; }
.swatch.phone { width: 30px; border-radius: 6px; background: var(--twilight); }
.swatch.phone::after { color: var(--gold); font-size: 1rem; }

/* Product page */
.product { max-width: 1120px; margin: 0 auto; }
.product-media { background: var(--mist); padding: 16px; }
.product-media img { width: min(100%, 520px); margin: 0 auto; box-shadow: 0 12px 30px rgba(58, 47, 60, .18); }
.product-body { padding: 24px var(--gutter) 0; }
.product-body h1 { font-style: italic; font-weight: 500; }
.citation { color: var(--muted); font-size: .95rem; }
.product .order-form { padding-inline: 0; }

/* Receipt */
.receipt { padding-bottom: 48px; }
.receipt p { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--pearl); padding: 12px 0; margin: 0; }
.receipt p span { color: var(--muted); }
.receipt p strong { text-align: right; color: var(--twilight); }
.receipt p.hint { display: block; border: 0; }

/* Footer */
.footer { background: var(--twilight); color: var(--pearl); text-align: center; padding: 40px var(--gutter) 28px; }
.footer-ornament { color: var(--gold); }
.footer-name { font: 600 1.6rem var(--serif); color: var(--ivory); margin: .4em 0 .2em; }
.footer .label { color: var(--taupe); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 20px auto; max-width: 640px; }
.footer-links a { color: var(--ivory); padding: 8px 0; font-size: .9rem; }
.footer .fine { font-size: .78rem; color: var(--taupe); max-width: 560px; margin: .6em auto; }

/* Tablets and up */
@media (min-width: 768px) {
  :root { --gutter: 32px; }
  .actions { flex-direction: row; justify-content: center; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .looks-row { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; }
  .look-picker { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; }
  .profile { gap: 32px; align-items: center; }
  .avatar { width: 120px; height: 120px; }
  .grid.feed { gap: 6px; padding-inline: var(--gutter); }
  .grid.feed.full { padding-inline: var(--gutter); }
  .contact-list p { flex-direction: row; justify-content: space-between; align-items: baseline; }
}

/* Room for the whole menu on one line */
@media (min-width: 960px) {
  .menu { display: none; }
  .desktop-nav { display: flex; gap: 26px; }
  .desktop-nav a { text-decoration: none; font: 700 .76rem var(--sans); letter-spacing: .16em; text-transform: uppercase;
    white-space: nowrap; }
  .desktop-nav a:hover { text-decoration: underline; }
}

/* Desktops */
@media (min-width: 1000px) {
  .hero-frame { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; text-align: left; padding: 56px; }
  .hero .lede { margin-inline: 0; }
  .actions { justify-content: flex-start; margin-bottom: 0; }
  .product { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 32px var(--gutter); }
  .product-media { position: sticky; top: 90px; align-self: start; padding: 24px; }
  .product-body { padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
