:root {
    color-scheme: light;
    --paper: #faf8f5;
    --white: #fffdfa;
    --ink: #2c2623;
    --muted: #766e67;
    --line: #e8e1da;
    --wine: #8b2635;
    --terra: #a65e2e;
    --sand: #efe7dd;
    --sage: #66745d;
    --serif: Georgia, "Times New Roman", serif;
    --sans: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; }
a { color: inherit; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
.skip-link { position: absolute; z-index: 4; left: 1rem; top: -4rem; background: var(--ink); color: white; padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }
.site-header { min-height: 84px; padding: 0 clamp(1.25rem, 5vw, 5rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--line); background: rgba(250,248,245,.94); }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; font-weight: 750; letter-spacing: -.045em; font-size: 1.1rem; }
.brand > span:last-child > span { color: var(--terra); }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--wine); border-radius: 50%; color: var(--wine); font-family: var(--serif); font-size: 1.2rem; font-weight: 400; }
.brand-mark svg { width: 25px; height: 25px; }
.main-nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); }
.main-nav a, .header-cta { text-decoration: none; font-size: .88rem; font-weight: 650; }
.main-nav a { color: #615951; }
.main-nav a:hover, .text-link:hover { color: var(--wine); }
.header-cta { color: var(--wine); border-bottom: 1px solid #c8a9a7; padding: .35rem 0; }
main { min-height: 55vh; }
.hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(350px, 1.05fr); align-items: center; gap: clamp(2rem, 8vw, 7rem); padding: clamp(3rem, 8vw, 7.5rem) clamp(1.25rem, 9vw, 9rem); }
.hero-copy { max-width: 570px; }
.eyebrow { margin: 0 0 .6rem; color: var(--terra); text-transform: uppercase; font-size: .72rem; letter-spacing: .16em; font-weight: 750; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; }
h1 { font-size: clamp(2.7rem, 5.2vw, 5rem); }
h2 { font-size: clamp(1.9rem, 3vw, 2.65rem); }
h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; }
.hero-copy > p:not(.eyebrow) { max-width: 480px; color: var(--muted); font-size: 1.08rem; margin: 1.4rem 0 1.8rem; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .85rem; border: 1px solid var(--wine); border-radius: 3px; padding: .85rem 1.15rem; background: var(--wine); color: #fff; text-decoration: none; font-weight: 650; transition: background .16s ease, transform .16s ease; }
.button:hover { background: #6f1e2b; transform: translateY(-1px); }
.button-outline { background: transparent; color: var(--wine); }
.button-outline:hover { color: #fff; }
.hero-art { position: relative; min-height: 390px; overflow: hidden; background: #e8ded3; }
.hero-art::before { content: ""; position: absolute; inset: 9% 9% 12%; background: #d3bca7; border: 9px solid #f5efe8; box-shadow: 0 12px 30px #60504219; }
.art-window { position: absolute; z-index: 1; width: 27%; height: 37%; top: 16%; left: 18%; background: linear-gradient(90deg, transparent 47%, #f5efe8 48% 52%, transparent 53%), linear-gradient(0deg, transparent 47%, #f5efe8 48% 52%, transparent 53%), #d8e0d9; border: 7px solid #f5efe8; }
.art-frame { position: absolute; z-index: 1; width: 17%; height: 23%; top: 20%; right: 18%; background: #a66c4e; border: 8px solid #f5efe8; }
.art-sofa { position: absolute; z-index: 2; width: 47%; height: 22%; left: 30%; top: 48%; border-radius: 15px 15px 5px 5px; background: #f4ede3; box-shadow: inset 0 -18px #e6d9ca, 0 10px 0 -4px #8e7965; }
.art-sofa::before, .art-sofa::after { content: ""; position: absolute; bottom: -7px; width: 10px; height: 23px; background: #715746; }
.art-sofa::before { left: 12%; }.art-sofa::after { right: 12%; }
.art-rug { position: absolute; z-index: 1; width: 63%; height: 27%; left: 18%; bottom: 8%; background: #9c6256; border: 9px solid #f0dfc8; outline: 1px solid #9c6256; box-shadow: inset 0 0 0 2px #c59a7d; }
.art-table { position: absolute; z-index: 3; width: 19%; height: 8%; left: 43%; top: 73%; border-radius: 50%; background: #a78363; box-shadow: 0 12px 0 -5px #80624c; }
.section { padding: clamp(3rem, 6vw, 5.5rem) clamp(1.25rem, 9vw, 9rem); border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.5rem; }
.section > p { max-width: 720px; color: var(--muted); }
.text-link { color: var(--wine); font-weight: 700; text-decoration: none; font-size: .9rem; }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.card { display: block; padding: 1.5rem; background: var(--white); border: 1px solid var(--line); text-decoration: none; }
.card:hover { border-color: #c9aaa2; box-shadow: 0 8px 26px #4735260c; }
.card h3 { margin: .8rem 0 1rem; }
.card-icon { color: var(--terra); font-size: 1.4rem; }
.planner-promo { display: flex; align-items: center; gap: 1rem; max-width: 680px; padding: 1.25rem 1.5rem; }
.planner-promo > span:nth-child(2) { flex: 1; }.planner-promo strong, .planner-promo small { display: block; }.planner-promo small { color: var(--muted); margin-top: .2rem; }.promo-icon { color: var(--wine); font-size: 2rem; }
.safety-strip { display: flex; align-items: center; gap: 1.1rem; margin: 0 clamp(1.25rem, 9vw, 9rem) 4rem; padding: 1.15rem 1.4rem; background: #f1e8dc; }
.safety-strip p { flex: 1; margin: 0; font-size: .9rem; }.safety-strip > a { color: var(--wine); font-weight: 700; white-space: nowrap; }
.safety-mark { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--terra); color: var(--terra); border-radius: 50%; font-weight: 700; }
.page-intro { max-width: 950px; margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) 1.5rem 2rem; }
.page-intro h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); }
.page-intro > p:not(.eyebrow) { max-width: 740px; color: var(--muted); font-size: 1.05rem; }
.tool-layout { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr); gap: 1.25rem; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem 4rem; align-items: start; }
.planner-form, .visualizer-card { padding: clamp(1.25rem, 3vw, 2rem); }
.planner-form h2, .visualizer-card h2 { font-size: 1.7rem; margin-bottom: 1rem; }
.planner-form label, .quiz-form label { display: grid; gap: .35rem; margin-bottom: .85rem; font-size: .88rem; font-weight: 650; }
.planner-form input, .planner-form select, .quiz-form select { min-width: 0; width: 100%; padding: .7rem .75rem; border: 1px solid #d5ccc3; border-radius: 3px; background: #fff; color: var(--ink); }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.planner-form .button { width: 100%; margin-top: .35rem; }
.form-note { color: var(--muted); font-size: .78rem; margin-bottom: 0; }
.visualizer-card { min-width: 0; }
.visualizer-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.visualizer-head .eyebrow { margin-bottom: .2rem; }
.status-pill { padding: .35rem .7rem; border-radius: 30px; background: #edf0e9; color: #526148; font-size: .78rem; font-weight: 700; white-space: nowrap; }
#floorplan { width: 100%; height: auto; margin: 1rem 0; background: #f5f0e9; border: 1px solid var(--line); }
.svg-room { fill: #fffdfa; stroke: #72655a; stroke-width: 4; }
.svg-rug { fill: #a65e2e22; stroke: #8b2635; stroke-width: 3; stroke-dasharray: 8 4; }
.svg-furniture-shape { fill: #d9c8b7; stroke: #68594e; stroke-width: 2; }
.svg-label { fill: #5b5048; font: 600 18px var(--sans); }.svg-measure { fill: #766e67; font: 13px var(--sans); }
.fit-copy { color: var(--muted); }.shop-links { margin-top: .8rem; color: var(--muted); font-size: .82rem; }
.quiz-section { background: #f2ece4; }
.quiz-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem 1rem; max-width: 980px; margin-top: 1.5rem; }
.quiz-form .button, .quiz-result { grid-column: 1 / -1; justify-self: start; }
.quiz-result { margin: .4rem 0 0; color: var(--muted); }
.quiz-result a { color: var(--wine); font-weight: 700; }
.diagram-card { max-width: 900px; margin: 0 auto 2rem; padding: 1.2rem; border: 1px solid var(--line); background: var(--white); }
.floorplan { display: block; width: min(100%, 700px); height: auto; margin: 0 auto; }
.size-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.source-note { max-width: 900px; margin: 1rem auto 3rem; padding: 0 1.5rem; color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }
.source-note a { color: var(--wine); }
.safety-card { display: flex; gap: 1rem; max-width: 900px; margin: 0 auto; padding: 1.5rem; border: 1px solid #e6d2c2; background: #f6eee5; }
.safety-card h2 { font-family: var(--sans); font-size: 1rem; font-weight: 750; }.safety-card p { margin-bottom: 0; }
.prose { max-width: 850px; margin: 0 auto 4rem; padding: 1.5rem; background: var(--white); border: 1px solid var(--line); }
.prose p:first-child { margin-top: 0; }.prose p:last-child { margin-bottom: 0; }
.comparison-table-wrap { max-width: 1000px; margin: 0 auto; padding: 1rem 1.5rem; overflow-x: auto; }
.comparison-table { width: 100%; border-collapse: collapse; background: var(--white); }.comparison-table th, .comparison-table td { min-width: 150px; padding: .85rem; text-align: left; vertical-align: top; border: 1px solid var(--line); }.comparison-table thead th { background: #f0e9e1; }.comparison-table tbody th { background: #f8f4ef; }
.site-footer { padding: 3.5rem clamp(1.25rem, 8vw, 8rem) 1.2rem; background: #302925; color: #eee5db; }
.footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding-bottom: 2.5rem; }
.brand-light { color: #fff9f1; }.brand-light > span:last-child > span { color: #d49a6d; }.brand-light .brand-mark { color: #e0b294; border-color: #c98d6a; }
.footer-brand p { max-width: 300px; color: #c7bcb1; font-size: .9rem; }.footer-links { display: grid; align-content: start; gap: .5rem; font-size: .88rem; }.footer-links strong { margin-bottom: .35rem; color: #fff; }.footer-links a { color: #d1c5ba; text-decoration: none; }.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid #514842; color: #bfb4a9; font-size: .78rem; }

@media (max-width: 820px) {
    .site-header { gap: .8rem; }.main-nav { gap: 1rem; }.main-nav a { font-size: .8rem; }.header-cta { display: none; }
    .hero { grid-template-columns: 1fr; }.hero-art { min-height: 330px; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .tool-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .site-header { min-height: 70px; padding: 0 1rem; }.brand { font-size: .95rem; }.brand-mark { width: 30px; height: 30px; }
    .main-nav { gap: .75rem; }.main-nav a:nth-child(2) { display: none; }
    .hero { padding: 3rem 1.25rem; }.hero-art { min-height: 260px; }
    .section-heading { align-items: start; flex-direction: column; gap: .7rem; }
    .card-grid { grid-template-columns: 1fr; }.safety-strip { align-items: start; flex-wrap: wrap; margin-bottom: 2.5rem; }.safety-strip p { flex-basis: calc(100% - 50px); }
    .quiz-form, .size-columns { grid-template-columns: 1fr; }.quiz-form .button, .quiz-result { grid-column: 1; }
    .footer-main { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }.footer-brand { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; }.comparison-table th, .comparison-table td { min-width: 120px; padding: .65rem; }
}
