/* Ashby & Last: a quiet boutique. Cream paper, espresso ink, oxblood accent, Cormorant display. */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('assets/cormorant-garamond-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('assets/cormorant-garamond-latin-500-italic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #faf6f0;
  --ink: #2a1d15;
  --muted: #66564a;
  --accent: #6e1f2c;
  --accent-ink: #faf6f0;
  --surface: #f2ebe1;
  --line: #ddcfbd;
  --gold: #a07a43;
  --radius: 2px;
  --display: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --font: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
}
body::before {
  content: 'Complimentary fittings  ·  Free returns  ·  Resoled for life';
  display: block; padding: 7px 16px; text-align: center; white-space: pre-wrap;
  background: var(--ink); color: var(--bg); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; }

/* Header: centred wordmark */
.site-header, .site-main, .site-footer { max-width: 1120px; }
.site-header { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 22px 16px 16px; border-bottom: 1px solid var(--line); }
.site-brand { flex-direction: column; gap: 6px; font-family: var(--display); font-weight: 600; font-size: 2.1rem; letter-spacing: 0.04em; line-height: 1; }
.site-logo { width: 52px; height: 52px; }
.site-tagline { margin: 0; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.1rem; color: var(--muted); }

/* Breadcrumb */
.al-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 16px; padding: 0; font-size: 0.85rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.al-crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line); }
.al-crumbs [aria-current] { color: var(--ink); }

/* Product */
.al-gallery { margin: 0; background: linear-gradient(#f3ece2, #ebe1d3); border: 1px solid var(--line); padding: 16px 12px 10px; text-align: center; }
.al-gallery img { width: 100%; height: auto; display: block; }
.al-gallery figcaption { font-family: var(--display); font-style: italic; color: var(--muted); font-size: 1.05rem; }
.al-buy { padding-top: 18px; }
.al-collection { margin: 0; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; color: var(--accent); }
.al-name { font-family: var(--display); font-weight: 600; font-size: clamp(2.4rem, 8vw, 3.4rem); line-height: 1.05; margin: 4px 0 4px; }
.al-price { font-size: 1.3rem; margin: 0 0 12px; }
.al-desc { margin: 0 0 14px; max-width: 46ch; }
.al-colour { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.al-colour b { color: var(--ink); font-weight: 600; margin-right: 6px; }
.al-swatch { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); }
.al-swatch-walnut { background: #7a4226; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--ink); }
.al-swatch-black { background: #1d1a18; }
.al-swatch-oxblood { background: #5c1a26; }

.al-sizes { border: 0; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.al-sizes legend { padding: 0; margin-bottom: 8px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.al-sizes label { position: relative; }
.al-sizes input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.al-sizes span { display: block; padding: 10px 0; text-align: center; border: 1px solid var(--line); background: #fff; font-size: 1.05rem; transition: background 0.2s, color 0.2s; }
.al-sizes input:hover + span { border-color: var(--ink); }
.al-sizes input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.al-sizes input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The skip-the-measuring panel (holds the widget) */
.al-skip { border: 1px solid var(--gold); background: #fffdf9; padding: 20px 18px 8px; position: relative; }
.al-skip::before { content: ''; position: absolute; inset: 4px; border: 1px solid var(--line); pointer-events: none; }
.al-skip-kicker { margin: 0; font-family: var(--display); font-style: italic; font-size: 1.2rem; color: var(--accent); }
.al-skip .report-title { font-family: var(--display); font-weight: 600; font-size: 1.9rem; line-height: 1.1; margin: 0 0 6px; }
.al-skip .report-tagline { margin: 0 0 6px; }
.al-skip .report-asks { margin: 0; color: var(--muted); font-size: 0.95rem; }
.al-skip .report-asks b { color: var(--ink); font-weight: 600; }
.widget { background: none; padding: 6px 0 12px; margin: 8px 0 0; position: relative; }
.widget-hint, .widget-msg { color: var(--muted); }
.widget-msg[data-for='waiting'] { font-family: var(--display); font-style: italic; font-size: 1.25rem; color: var(--ink); }
.widget-error { color: #9b1c1c; }
.widget-qrbox svg { width: min(220px, 62vw); padding: 10px; background: #fff; border: 1px solid var(--line); }
.widget-link, .widget-again { border-radius: var(--radius); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.82rem; font-weight: 600; padding: 13px 20px; }
.widget-link:hover, .widget-again:hover { background: var(--ink); }
.widget-result:focus { outline: none; }

/* Result */
.result { text-align: center; padding: 6px 0 4px; }
.result-headline { font-family: var(--display); font-weight: 600; font-size: 2rem; line-height: 1.1; margin: 6px 0 10px; color: var(--accent); }
.result-reading { margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; color: var(--muted); }
.result-value { display: block; margin-top: 4px; font-family: var(--display); font-weight: 600; font-size: 3rem; line-height: 1; letter-spacing: 0.02em; text-transform: none; color: var(--ink); }
.result-body { text-align: left; }
.result-fact { text-align: left; padding: 10px 0 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.result-fact b { display: block; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.15rem; color: var(--accent); }
.result-disclaimer { text-align: left; color: var(--muted); font-size: 0.82rem; }

.al-perks { list-style: none; padding: 0; margin: 18px 0 0; font-size: 0.92rem; color: var(--muted); }
.al-perks li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.al-perks li::before { content: '\2014'; color: var(--gold); margin-right: 10px; }

.al-story { margin: 40px auto 8px; max-width: 640px; text-align: center; }
.al-story h2 { font-family: var(--display); font-weight: 600; font-size: 2rem; margin: 0 0 6px; }
.al-story h2::after { content: ''; display: block; width: 48px; height: 1px; background: var(--gold); margin: 10px auto 0; }

.site-footer { text-align: center; border-top: 1px solid var(--line); margin-top: 16px; }
.site-footer p { margin: 4px 0; }
.al-foot-brand { font-family: var(--display); font-weight: 600; font-size: 1.3rem; color: var(--ink); }

@media (min-width: 900px) {
  .al-product { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: start; }
  .al-gallery { position: sticky; top: 16px; padding: 48px 24px 20px; }
  .al-buy { padding-top: 0; }
}
