/* Wrynne gifts. Matches www.wrynne.com and its /collections pages (values read from the live site, October 2026). */
:root {
  --bg: oklch(0.995 0.002 90);
  --ink: oklch(0.25 0.015 65);
  --muted: oklch(0.48 0.016 65);
  --rule: oklch(0.86 0.008 85);
  /* Wrynne brand colours, used in a few places only: greeting band, buttons, selected states,
     digital gift cards and small labels. The grid, forms and body text stay on the site's neutrals. */
  --espresso: #4A2C20;
  --brown: #8A4D36;
  --sand: #C8BC96;
  --cream: #FAF6E6;
  --sage: #CECFB6;
  --btn: var(--espresso);
  --btn-text: var(--cream);
  --display: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Work Sans', system-ui, sans-serif;
  --gutter: 40px;
  --bar-h: 69px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/24px var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, fieldset { margin: 0; }
ul { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
img, svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.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; }
.shell { max-width: 1300px; margin: 0 auto; padding: 0 var(--gutter); }
main:focus { outline: none; }

/* ---------- type, from the site ---------- */
.eyebrow { display: block; font: 400 10px/15px var(--sans); letter-spacing: 1.6px; text-transform: uppercase; color: var(--brown); }
.page-title { margin-top: 12px; font: 400 36px/40px var(--display); }
.lead { margin-top: 12px; max-width: 672px; font-size: 14px; line-height: 28px; color: var(--muted); }
.form-label, legend, .field label { display: block; font: 400 10.88px/16.32px var(--sans); letter-spacing: 1.3px; text-transform: uppercase; color: var(--ink); }
.small { font-size: 12px; line-height: 20px; }
.muted { color: var(--muted); }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 32px; border: 1px solid var(--btn); border-radius: 0; background: var(--btn); color: var(--btn-text); font: 500 12px/16px var(--sans); letter-spacing: 1.44px; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-block { width: 100%; }
.btn-sm { height: 44px; padding: 0 20px; }
.link { display: inline-block; padding: 0 0 4px; border: 0; border-bottom: 1px solid var(--ink); background: none; color: var(--ink); font: 400 10px/15px var(--sans); letter-spacing: 1.4px; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.link[aria-disabled="true"] { color: var(--muted); border-bottom-color: var(--rule); cursor: default; }
.card-action .link[aria-disabled="true"] { color: var(--brown); border-bottom-color: var(--brown); }
.text-link { padding: 0; border: 0; border-bottom: 1px solid var(--ink); background: none; color: var(--ink); font: inherit; cursor: pointer; }
.back-link { padding: 0; border: 0; background: none; color: var(--muted); font: 400 12px/16px var(--sans); cursor: pointer; }
.back-link:hover { color: var(--ink); }

/* ---------- preview bar (local review only) ---------- */
.previewbar { border-bottom: 1px solid var(--rule); font: 400 10px/15px var(--sans); letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.previewbar .shell { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding-top: 9px; padding-bottom: 9px; }
.previewbar strong { font-weight: 500; color: var(--ink); }
.previewbar a, .previewbar button { padding: 0 0 2px; border: 0; border-bottom: 1px solid var(--rule); background: none; color: var(--muted); font: inherit; letter-spacing: inherit; text-transform: inherit; text-decoration: none; cursor: pointer; }
.previewbar a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- focused header ---------- */
.site-header { border-bottom: 1px solid var(--rule); }
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; height: 96px; }
.wordmark img { width: 144px; height: auto; }
.collab { font: 400 10px/15px var(--sans); letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); text-align: center; }
.collab .tag { margin-left: 10px; padding: 3px 8px; border: 1px solid var(--brown); color: var(--brown); }
.help-btn { justify-self: end; }

/* ---------- collection header ---------- */
.page-head { padding-top: 48px; padding-bottom: 32px; }
/* Greeting band: sand, full width, espresso text (brand: espresso on sand). Cream was tried and popped too little.
   Hierarchy: greeting, then the one thing to do (large serif), then the deadline as a labelled highlight. */
.hero { background: var(--sand); color: var(--espresso); }
.hero-action { margin-top: 20px; max-width: 672px; font: 400 26px/34px var(--display); color: var(--espresso); }
.hero .deadline { margin-top: 24px; display: flex; flex-direction: column; gap: 4px; }
.hero .deadline strong { font: 500 15px/22px var(--sans); }
.phone-row { padding-top: 32px; }
.phone-row .phone-ask { margin-top: 0; }
@media (max-width: 767px) { .hero-action { font-size: 22px; line-height: 30px; } }
.hero .page-head { padding-bottom: 40px; }
.hero .eyebrow, .hero .lead, .hero .phone-note, .hero .preview-note, .hero .deadline, .hero .phone-q { color: var(--espresso); }
.hero .chip { border-color: var(--espresso); color: var(--espresso); }
.hero .chip[aria-pressed="true"] { color: var(--cream); }
.hero :focus-visible { outline-color: var(--espresso); }
.page-head .deadline { margin-top: 12px; font-size: 14px; line-height: 24px; color: var(--ink); }
/* One phone question for the whole page, in the filter chip style. */
.phone-ask { margin-top: 28px; scroll-margin-top: 120px; }
.phone-q { max-width: 672px; font-size: 14px; line-height: 24px; color: var(--ink); }
.phone-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.phone-note { margin-top: 8px; font-size: 12px; line-height: 18px; color: var(--muted); }
.gift .fit-note { margin-top: 20px; }
.sample-flag { color: var(--muted); }
.note { margin-top: 20px; max-width: 672px; padding-top: 16px; border-top: 1px solid var(--rule); }
.note p { margin-top: 8px; font: 400 20px/28px var(--display); }
.preview-note { margin-top: 16px; font-size: 12px; line-height: 20px; color: var(--muted); }

.filterbar { position: sticky; top: 0; z-index: 20; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--bg); }
.filters { display: flex; align-items: center; gap: 8px; padding-top: 12px; padding-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 44px; padding: 8px 12px; border: 1px solid var(--rule); border-radius: 0; background: transparent; color: var(--ink); font: 500 10px/15px var(--sans); letter-spacing: 1.4px; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--espresso); border-color: var(--espresso); color: var(--cream); }

/* ---------- collection grid ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; align-items: start; padding-top: 48px; padding-bottom: 96px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; }
.card { min-width: 0; }
.photo { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; padding: 0; border: 0; background: var(--bg); color: var(--ink); cursor: pointer; overflow: hidden; }
.photo:hover { opacity: .9; }
.photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Wrynne digital gift card: page colours and fonts, no provider logos. The 1px rule gives the card an edge on the page. */
.photo:has(.giftcard) { background: var(--sage); color: var(--espresso); }
.giftcard .gc-amt { color: var(--espresso) !important; }
.giftcard { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 12%; text-align: center; }
.giftcard img { width: 30%; height: auto; margin-bottom: 14%; }
.giftcard .gc-tool { font: 400 26px/32px var(--display); }
.giftcard .gc-amt { font: 400 12px/18px var(--sans); font-weight: 500; letter-spacing: 1.44px; color: var(--muted); }
.card-title { margin-top: 12px; font: 400 20px/25px var(--display); }
.card-title button { padding: 0; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.card-value { margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--ink); }
.card-desc { margin-top: 8px; font-size: 12px; line-height: 20px; color: var(--muted); }
.card-fit { margin-top: 2px; font-size: 12px; line-height: 20px; color: var(--ink); }
.card-action { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.card-action .why { flex-basis: 100%; font-size: 12px; line-height: 18px; color: var(--muted); }

/* ---------- Your gift tray ---------- */
.tray { position: sticky; top: 94px; padding-left: 24px; border-left: 1px solid var(--rule); max-height: calc(100vh - 118px); overflow-y: auto; }
.tray h2, .summary h2 { font: 400 24px/30px var(--display); }
.tray-count { margin-top: 4px; font-size: 12px; line-height: 20px; color: var(--muted); }
.tray-empty { margin-top: 12px; font-size: 12px; line-height: 20px; color: var(--muted); }
.tray-list { margin-top: 16px; border-top: 1px solid var(--rule); }
.tray-item { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.tray-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: start; }
.thumb { position: relative; width: 56px; aspect-ratio: 1 / 1; border: 0; background: var(--bg); overflow: hidden; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb:has(.mini) { border: 1px solid var(--rule); }
.thumb .mini { position: absolute; inset: 0; display: grid; place-items: center; font: 400 17px/1 var(--display); }
.tray-name { font: 400 17px/22px var(--display); }
.tray-variant { margin-top: 2px; font-size: 12px; line-height: 18px; color: var(--muted); }
.tray-actions { margin-top: 10px; display: flex; gap: 16px; }
.tray-hint { margin-top: 16px; font-size: 12px; line-height: 20px; color: var(--ink); }
.issue { margin-top: 10px; padding-left: 10px; border-left: 1px solid var(--ink); font-size: 12px; line-height: 18px; color: var(--ink); }
.fit-note { margin-top: 8px; font-size: 12px; line-height: 18px; color: var(--muted); }
.tray .btn { margin-top: 20px; }

/* questions (inline, only when a chosen piece needs one) */
.q { margin-top: 14px; }
.opts { margin-top: 4px; }
.opts label { display: flex; align-items: flex-start; gap: 12px; min-height: 40px; padding-top: 8px; font-size: 14px; line-height: 24px; cursor: pointer; }
.opts input { flex: none; width: 16px; height: 16px; margin: 4px 0 0; accent-color: var(--ink); }
.q-note { margin-top: 6px; font-size: 12px; line-height: 18px; color: var(--muted); }
.err { display: block; margin-top: 6px; font-size: 12px; line-height: 18px; color: var(--ink); }

/* mobile bottom control */
.traybar { display: none; }

/* ---------- dialogs ---------- */
dialog { padding: 0; border: 1px solid var(--rule); border-radius: 0; background: var(--bg); color: var(--ink); box-shadow: none; }
dialog::backdrop { background: oklch(0.25 0.015 65 / 0.35); }
.modal { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); }
.dlg-inner { padding: 32px; }
.dlg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.dlg-head h2 { font: 400 28px/34px var(--display); }
.dlg-inner > p, .dlg-inner form > p { margin-top: 12px; font-size: 14px; line-height: 24px; color: var(--muted); }
.dlg-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.dlg-error { margin-top: 14px; padding-left: 10px; border-left: 1px solid var(--ink); font-size: 13px; line-height: 20px; }
.swap-list { margin-top: 20px; border-top: 1px solid var(--rule); }
.swap-list li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.swap-list label { display: grid; grid-template-columns: 16px 56px minmax(0, 1fr); gap: 14px; align-items: center; font: 400 17px/22px var(--display); cursor: pointer; }
.swap-list label.no { opacity: .55; cursor: default; }
.swap-list input { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); }
.swap-list .why { display: block; margin-top: 2px; font: 400 12px/18px var(--sans); color: var(--muted); }
.swap-list .rm { margin: 10px 0 0 86px; }

/* detail panel: the site's gift page */
.sheet { width: min(1220px, calc(100vw - 48px)); max-height: calc(100dvh - 48px); }
.sheet-inner { padding: 28px 40px 48px; }
.gift { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 20px; }
.gift .photo { cursor: default; }
.gift .photo:hover { opacity: 1; }
.views { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.views::-webkit-scrollbar { display: none; }
.view-thumb { position: relative; flex: none; width: 64px; aspect-ratio: 1 / 1; padding: 0; border: 1px solid transparent; background: var(--bg); cursor: pointer; overflow: hidden; }
.view-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.view-thumb[aria-pressed="true"] { border-color: var(--ink); }
.gift-caption { margin-top: 12px; font-size: 12px; line-height: 20px; color: var(--muted); }
.gift h2 { margin-top: 12px; font: 400 36px/45px var(--display); }
.gift .value { margin-top: 8px; font-size: 14px; line-height: 20px; }
.gift .line { margin-top: 16px; font-size: 14px; line-height: 24px; color: var(--muted); }
.gift .colours { margin-top: 24px; }
.gift .colour-opts { display: flex; gap: 8px; margin-top: 8px; }
.gift .colour-opts .chip { min-width: 84px; }
.gift .included { margin-top: 24px; }
.gift .included ul { margin-top: 8px; font-size: 14px; line-height: 24px; }
.gift .included li + li { margin-top: 4px; }
.gift .ask { margin-top: 24px; }
.gift .btn { margin-top: 28px; width: 100%; }
.gift .after { margin-top: 8px; font-size: 12px; line-height: 16px; color: var(--muted); }
.accordions { margin-top: 32px; border-top: 1px solid var(--rule); }
.accordions details { border-bottom: 1px solid var(--rule); }
.accordions summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font: 400 18px/28px var(--display); list-style: none; cursor: pointer; }
.accordions summary::-webkit-details-marker { display: none; }
.accordions summary:hover { text-decoration: underline; }
.accordions summary svg { width: 16px; height: 16px; color: var(--muted); transition: transform .2s; }
.accordions details[open] summary svg { transform: rotate(180deg); }
.accordions .acc-body { padding-bottom: 16px; font-size: 14px; line-height: 24px; color: var(--muted); }
.accordions .acc-body p + p { margin-top: 8px; }

.drawer { width: 100vw; max-width: 100vw; max-height: 85dvh; margin: auto 0 0; border-width: 1px 0 0; }
.drawer .tray { position: static; max-height: none; padding: 0 24px calc(24px + env(safe-area-inset-bottom)); border-left: 0; overflow: visible; }
.drawer-head { display: flex; justify-content: flex-end; padding: 20px 24px 0; }

/* ---------- screen 2 ---------- */
.details-top { padding-top: 32px; padding-bottom: 8px; }
.details-top .back-link { margin-bottom: 24px; }
.details-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; padding-top: 32px; padding-bottom: 96px; }
.form-section + .form-section { margin-top: 40px; }
.form-section h2 { font: 400 24px/30px var(--display); }
.form-section > .small { margin-top: 4px; }
.field { margin-top: 20px; }
.field input, .field select { display: block; width: 100%; height: 47px; padding: 11.2px 0; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: transparent; color: var(--ink); font: 400 16px/24px var(--sans); }
.field select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23786d61' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right center / 16px no-repeat; }
.field input:focus, .field select:focus { outline: none; border-bottom-color: var(--ink); }
.field input[readonly] { color: var(--muted); }
.field [aria-invalid="true"] { border-bottom-color: var(--ink); border-bottom-width: 2px; }
.field .hint { display: block; margin-top: 6px; font-size: 12px; line-height: 18px; color: var(--muted); text-transform: none; letter-spacing: 0; }
.row3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 24px; }
.terms { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); }
.terms h3 { font: 400 18px/28px var(--display); }
.terms p { margin-top: 6px; font-size: 14px; line-height: 24px; color: var(--muted); }
.confirm-zone { margin-top: 32px; }
.final-line { font-size: 14px; line-height: 24px; color: var(--ink); }
.confirm-zone > .btn { margin-top: 16px; width: 100%; max-width: 420px; }
.form-error { margin-top: 12px; padding-left: 10px; border-left: 1px solid var(--ink); font-size: 13px; line-height: 20px; }
.code-box { margin-top: 16px; max-width: 420px; padding-top: 20px; border-top: 1px solid var(--rule); }
.code-box .field { margin-top: 8px; }
.code-box .field input { font-size: 22px; letter-spacing: 6px; }
.preview-code { margin-top: 8px; font-size: 12px; line-height: 18px; color: var(--muted); }
.code-actions { margin-top: 20px; display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.summary { padding-left: 32px; border-left: 1px solid var(--rule); position: sticky; top: 24px; }
.summary .link { margin-top: 20px; }

/* ---------- confirmation and other end states ---------- */
.done { padding-top: 48px; padding-bottom: 96px; }
.done > * { max-width: 760px; }
.done .tray-list { margin-top: 32px; }
.done-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.done > .btn { margin-top: 24px; }
.done .lead + .lead { margin-top: 8px; }
.about { margin-top: 56px; padding: 32px; background: var(--cream); }
.about p { color: var(--espresso) !important; }
.about p { margin-top: 12px; max-width: 672px; font-size: 14px; line-height: 28px; color: var(--muted); }
.about-links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 24px; }

/* the site's gift page stacks below 1024px */
@media (max-width: 1023px) {
  .gift { grid-template-columns: 1fr; gap: 24px; }
  .gift > div:first-child { max-width: 560px; }
}

/* ---------- tablet ---------- */
@media (max-width: 1099px) {
  .layout { grid-template-columns: minmax(0, 1fr); padding-bottom: calc(var(--bar-h) + 56px); }
  .layout > .tray { display: none; }
  .traybar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); background: var(--bg); }
  .open-tray { display: flex; flex-direction: column; align-items: flex-start; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
  .open-tray strong { font: 400 20px/24px var(--display); }
  .open-tray span { font-size: 12px; line-height: 16px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
  .details-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .summary { order: -1; position: static; padding-left: 0; border-left: 0; }
}

/* ---------- phone ---------- */
@media (max-width: 767px) {
  :root { --gutter: 24px; }
  .header-row { grid-template-columns: auto 1fr auto; height: 72px; }
  .wordmark img { width: 104px; }
  .collab { text-align: left; font-size: 9px; line-height: 13px; letter-spacing: 1.2px; }
  .collab .tag { display: table; margin: 4px 0 0; }
  .page-head { padding-top: 32px; padding-bottom: 24px; }
  .page-title { font-size: 32px; line-height: 38px; }
  .layout { padding-top: 32px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .card-title { font-size: 18px; line-height: 23px; }
  .giftcard .gc-tool { font-size: 20px; line-height: 25px; }
  .giftcard .gc-amt { font-size: 11px; }
  .sheet { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; }
  .sheet-inner { padding: 20px 24px 40px; }
  .gift { grid-template-columns: 1fr; gap: 24px; }
  .gift h2 { font-size: 32px; line-height: 40px; }
  .dlg-inner { padding: 24px; }
  .row3 { grid-template-columns: 1fr 1fr; }
  .row3 .city { grid-column: 1 / -1; }
  .confirm-zone > .btn, .code-box { max-width: none; }
  .done { padding-top: 32px; }
}
