:root {
	--paper: #f7f3ee; --card: #fffdfa; --ink: #241f1c; --muted: #6d625b; --line: #e6dcd2;
	--accent: #9a4a5c; --accent-ink: #fff; --soft: #f1e6df; --radius: 16px;
	--font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--font); }
a { color: var(--accent); }
img, canvas { max-width: 100%; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 780px; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 20; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: 14px; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 700; color: var(--accent); margin: 0 0 6px; }

.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { font-weight: 800; color: var(--ink); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; font-size: 19px; }
.brand-mark { width: 20px; height: 20px; border-radius: 50%; background: conic-gradient(#e8a87c 0 25%, #9db4c0 0 50%, #8e3b5a 0 75%, #a3a98a 0); }
.site-nav { display: flex; gap: 4px 16px; margin-left: auto; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 15px; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a[aria-current] { border-color: var(--accent); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; font: inherit; }
@media (max-width: 760px) {
	.menu-toggle { display: block; }
	.site-nav { display: none; width: 100%; flex-direction: column; padding-bottom: 12px; }
	.site-nav.open { display: flex; }
}

.page-hero { padding: 32px 0 12px; }
.page-hero h1 { font-family: var(--serif); font-size: clamp(32px, 5vw, 48px); line-height: 1.1; margin: 0 0 12px; }
.intro { font-size: 19px; color: #4a403a; max-width: 760px; margin: 0; }
.breadcrumb { font-size: 14px; color: var(--muted); padding-top: 18px; }
.section { margin: 40px 0; }
h2 { font-family: var(--serif); font-size: 28px; line-height: 1.2; margin: 1.6em 0 .5em; }
.section > h2:first-child, .palette h2 { margin-top: 0; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px; padding: 11px 20px; font: 600 16px var(--font); text-decoration: none; cursor: pointer; min-height: 44px; }
.button.big { padding: 14px 26px; font-size: 17px; }
.button.ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.button:disabled { opacity: .6; cursor: wait; }
.text-button { background: none; border: 0; color: var(--muted); text-decoration: underline; font: inherit; font-size: 14px; cursor: pointer; padding: 8px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: 15px; }
.check input { margin-top: 5px; }

/* Quiz */
.quiz { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 20px 0; }
.quiz-progress { position: sticky; top: 60px; background: var(--card); z-index: 2; padding: 6px 0 10px; font-size: 14px; color: var(--muted); }
.quiz-progress::after { content: ""; display: block; height: 4px; border-radius: 4px; margin-top: 6px; background: linear-gradient(90deg, var(--accent) var(--p, 0%), var(--soft) var(--p, 0%)); }
.q { border: 0; border-top: 1px solid var(--line); padding: 18px 0; margin: 0; min-width: 0; }
.q legend { font-weight: 650; font-size: 18px; padding: 0; display: flex; gap: 10px; }
.q-num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-size: 14px; }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; margin-top: 10px; }
.opt { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; background: #fff; font-size: 15px; line-height: 1.35; }
.opt:has(input:checked) { border-color: var(--accent); background: #f8ecef; box-shadow: inset 0 0 0 1px var(--accent); }
.opt input { accent-color: var(--accent); flex: none; }
.selfie { border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; margin: 16px 0; }
.selfie summary { cursor: pointer; }
.selfie-body { padding-top: 10px; }
.pick-canvas { display: block; width: 100%; max-width: 420px; border-radius: 12px; margin: 10px 0; cursor: crosshair; touch-action: manipulation; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font: 14px var(--font); cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.chip .dot { width: 16px; height: 16px; border-radius: 50%; border: 1px dashed #b9aca2; }
.chip .dot.set { border: 1px solid rgba(0,0,0,.2); }
.pick-tip { min-height: 1.6em; }
.quiz-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 12px; }
.form-status { width: 100%; margin: 4px 0 0; font-size: 15px; color: #8a3a2c; }

/* Results */
.quiz-result { margin: 24px 0; scroll-margin-top: 80px; }
.result-card, .upsell { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.result-title { font-size: 40px; margin: 0 0 10px; }
.swatch-row { display: flex; border-radius: 10px; overflow: hidden; height: 34px; margin: 6px 0 10px; }
.swatch-row span { flex: 1; }
.dims { display: grid; gap: 12px; margin: 16px 0; max-width: 520px; }
.dim-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.dim-label strong { color: var(--ink); }
.dim-track { position: relative; height: 8px; border-radius: 8px; background: linear-gradient(90deg, #8fa6c8, #e9e2da 50%, #e3a66f); }
.dim-track span { position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 3px solid #fff; transform: translate(-50%, -50%); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.mini { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px; border: 1px solid rgba(0,0,0,.15); }
.upsell { background: #fbf2f4; border-color: #ecd2d9; }
.upsell h3 { margin-top: 0; font-family: var(--serif); font-size: 22px; }
.checkout-form { margin-top: 10px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.cards.three { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--ink); font-size: 15px; }
.card span { color: var(--muted); }
.card:hover { border-color: var(--accent); }
.season-card .swatch-row { height: 26px; margin: 0 0 4px; }
.cta-band { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 22px 24px; margin: 40px 0; }
.cta-band h2 { margin: 0 0 4px; font-size: 24px; }
.cta-band p { margin: 0; color: #ddd3cc; }

/* Palette */
.palette { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 20px 0; }
.palette-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.palette-group h3 { margin: 18px 0 2px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 8px; }
.swatch { display: flex; flex-direction: column; align-items: stretch; gap: 2px; background: none; border: 0; padding: 0; text-align: left; font: 13px/1.3 var(--font); color: var(--ink); cursor: copy; }
.swatch .chip-color { display: block; height: 72px; border-radius: 12px; background: var(--c); border: 1px solid rgba(0,0,0,.08); }
.swatch-name { font-weight: 600; margin-top: 4px; }
.swatch code { color: var(--muted); }
.swatch:focus-visible .chip-color, .mini-swatch:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.mini-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-swatch { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px 6px 6px; font: 14px var(--font); cursor: copy; }
.mini-swatch .chip-color, .avoid-list .chip-color { width: 24px; height: 24px; border-radius: 50%; background: var(--c); border: 1px solid rgba(0,0,0,.1); display: inline-block; flex: none; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.traits { width: 100%; border-collapse: collapse; font-size: 15px; }
.traits th { text-align: left; width: 32%; color: var(--muted); font-weight: 600; vertical-align: top; }
.traits th, .traits td { padding: 8px 6px; border-bottom: 1px solid var(--line); }
.avoid-list { list-style: none; padding: 0; margin: 0; }
.avoid-list li { display: grid; grid-template-columns: 30px 1fr; column-gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.avoid-list li .chip-color { grid-row: span 2; margin-top: 2px; }
.formulas { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.formula { font-size: 14px; }
.formula-swatches { display: flex; height: 60px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(0,0,0,.08); margin-bottom: 4px; }
.formula-swatches span:nth-child(1) { flex: 3; } .formula-swatches span:nth-child(2) { flex: 2; } .formula-swatches span:nth-child(3) { flex: 1; }
.wallpaper-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.wallpaper canvas { width: 160px; height: auto; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
fieldset.inline { border: 0; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 6px; }

/* Try-on and drape test */
.tryon, .drape-test { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.drape-test { margin: 20px 0; }
.photo-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 10px 0; }
.privacy-pill { margin: 0; }
.drape-stage { margin: 12px 0; }
.drape-canvases { display: flex; gap: 12px; justify-content: center; }
.drape-canvases figure { margin: 0; flex: 1; max-width: 340px; text-align: center; }
.drape-canvases canvas { width: 100%; height: auto; border-radius: 14px; display: block; }
.drape-canvases figcaption { font-size: 14px; font-weight: 600; margin-top: 4px; }
.sliders { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 10px 0; font-size: 14px; color: var(--muted); }
.sliders label { display: flex; align-items: center; gap: 8px; }
.tswatches { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.tswatch { width: 40px; height: 40px; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.tswatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ink); }
.tswatch.is-avoid { border-style: dashed; border-color: #fff; }
.drape-answers { text-align: center; }
.answer-buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.step { font-weight: 600; }

/* Prose */
.prose { max-width: 780px; }
.prose h3 { font-size: 19px; margin: 1.4em 0 .4em; }
.prose table, .prose + table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--soft); }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; max-width: 780px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 0; }

/* Report */
.report section { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 16px 0; break-inside: avoid; }
.report-head { padding: 8px 0 10px; }
.report-head h2 { font-size: 40px; margin: 0 0 8px; }
.report h3 { font-family: var(--serif); font-size: 24px; margin: 0 0 8px; }
.report h4 { margin: 14px 0 6px; }
.rswatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.rswatches.compact { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.rswatch { margin: 0; font-size: 13px; line-height: 1.35; }
.rswatch > span { display: block; height: 64px; border-radius: 12px; border: 1px solid rgba(0,0,0,.08); }
.rswatch figcaption { display: flex; flex-direction: column; padding-top: 4px; }
.rswatch code, .rswatch em { color: var(--muted); }
.shopping-card { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; max-width: 520px; border: 1px solid var(--line); padding: 8px; border-radius: 12px; background: #fff; }
.shopping-card span { aspect-ratio: 1; border-radius: 6px; display: flex; align-items: flex-end; justify-content: center; }
.shopping-card code { font-size: 9px; background: rgba(255,255,255,.8); border-radius: 3px; padding: 0 2px; margin-bottom: 3px; }
.scan-status { font-size: 16px; }

.site-footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 30px 0 40px; font-size: 15px; }
.footer-inner { display: grid; gap: 18px; }
.footer-links, .footer-seasons { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-seasons a { color: var(--muted); font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; z-index: 30; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media print {
	.site-header, .site-footer, .no-print, .actions, .toast, ins.adsbygoogle, .google-auto-placed { display: none !important; }
	body { background: #fff; font-size: 12pt; }
	.report section { border: 0; padding: 0; }
	* { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
