:root {
  --paper: #f3eee5;
  --chalk: #fbf8f2;
  --ink: #1f2a27;
  --ink-soft: #4b5753;
  --oak: #b77a3e;
  --oak-dark: #8f5a28;
  --bay: #3f6b6b;
  --line: #ddd4c4;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Figtree", system-ui, sans-serif;
  --r: 6px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  padding-bottom: 64px;
}
img { max-width: 100%; display: block; }
a { color: var(--bay); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
em { font-style: italic; color: var(--oak-dark); }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 99; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 600; color: var(--oak-dark); margin: 0 0 12px; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 56ch; }
.note { font-size: .85rem; color: var(--ink-soft); }
.narrow { max-width: 720px; }

/* header */
.top { background: var(--chalk); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top__in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand__mark { display: grid; gap: 3px; width: 26px; }
.brand__mark i { display: block; height: 6px; background: var(--oak); border-radius: 1px; }
.brand__mark i:nth-child(2) { margin-left: 6px; width: 20px; background: var(--ink); }
.brand__mark i:nth-child(3) { width: 18px; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; }
.brand__name em { font-weight: 400; }
.nav { display: none; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--oak-dark); }
@media (min-width: 960px) { .nav { display: flex; } }

/* buttons */
.btn { display: inline-block; background: var(--ink); color: #fff; padding: 14px 24px; border-radius: var(--r); text-decoration: none; font-weight: 600; border: 2px solid var(--ink); cursor: pointer; font: inherit; font-weight: 600; transition: background .15s, color .15s; }
.btn:hover { background: var(--oak-dark); border-color: var(--oak-dark); }
.btn--sm { padding: 8px 16px; font-size: .9rem; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* hero */
.hero { padding: 40px 0 56px; overflow: hidden; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 500; font-size: .95rem; }
.ticks li::before { content: ""; display: inline-block; width: 10px; height: 10px; border-right: 2px solid var(--oak); border-bottom: 2px solid var(--oak); transform: rotate(45deg) translate(-3px,-3px); margin-right: 8px; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 88px; }
  .hero__grid { grid-template-columns: 1fr 1fr; }
  }

/* sections */
.block { padding: 56px 0; }
.block__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.cats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-top: 20px; }
.cat { display: block; background: var(--chalk); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; text-decoration: none; color: var(--ink); transition: transform .15s, border-color .15s; }
.cat:hover { transform: translateY(-3px); border-color: var(--oak); }
.cat p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.cat__chip { display: grid; gap: 3px; width: 64px; margin-bottom: 16px; }
.cat__chip i { display: block; height: 10px; border-radius: 1px; }
.cat__chip i:nth-child(1) { background: var(--t1); }
.cat__chip i:nth-child(2) { background: var(--t2); margin-left: 12px; }
.cat__chip i:nth-child(3) { background: var(--t3); }
.steps { background: var(--ink); color: #f3eee5; padding: 64px 0; }
.steps ol { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 20px; counter-reset: s; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: s; border-top: 2px solid var(--oak); padding-top: 14px; color: #d9d2c4; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--oak); }
.steps strong { color: #fff; display: block; }
.areas p { max-width: 70ch; color: var(--ink-soft); }

/* listing */
.page { padding: 40px 0 72px; }
.crumbs { font-size: .85rem; color: var(--ink-soft); margin-bottom: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; align-items: center; }
.chip { font: inherit; font-size: .9rem; font-weight: 500; border: 1px solid var(--line); background: var(--chalk); border-radius: 999px; padding: 6px 16px; cursor: pointer; }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.search { margin-left: auto; }
.search input { font: inherit; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--chalk); min-width: 220px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { background: var(--chalk); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--oak); transform: translateY(-3px); }
.card[hidden] { display: none; }
.card__img { aspect-ratio: 1; background: #e9e1d2; position: relative; overflow: hidden; }
.card__img img, .card__img .swatch { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 14px 16px 18px; }
.card__body h3 { font-size: 1.05rem; margin: 2px 0 4px; }
.card__brand { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--oak-dark); margin: 0; font-weight: 600; }
.card__meta { font-size: .85rem; color: var(--ink-soft); margin: 0; }
.swatch { display: block; width: 100%; height: 100%; background: repeating-linear-gradient(90deg, #c9a779 0 38px, #b88f5f 38px 40px, #d6bc92 40px 78px, #a57a49 78px 80px); }
.empty { background: var(--chalk); border: 1px dashed var(--line); padding: 28px; border-radius: var(--r); color: var(--ink-soft); }

/* product page */
.pdp__grid { display: grid; gap: 32px; }
.pdp__media { display: grid; gap: 12px; }
.pdp__media img, .swatch--lg { width: 100%; border-radius: var(--r); aspect-ratio: 4/3; object-fit: cover; background: #e9e1d2; }
.specs { margin: 24px 0; border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--ink-soft); }
.specs dd { margin: 0; font-weight: 500; text-align: right; }
.pdp__cta { margin-top: 24px; }
@media (min-width: 900px) { .pdp__grid { grid-template-columns: 1.1fr .9fr; } .pdp__info { position: sticky; top: 90px; align-self: start; } }

/* form */
.quote { display: grid; gap: 40px; }
@media (min-width: 900px) { .quote { grid-template-columns: .8fr 1.2fr; } }
.form { background: var(--chalk); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 12px; border: 1px solid #c9bfab; border-radius: var(--r); background: #fff; color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--oak); outline-offset: 1px; }
.row { display: grid; gap: 16px; }
@media (min-width: 600px) { .row { grid-template-columns: 1fr 1fr; } }

/* footer + dock */
.foot { background: var(--ink); color: #cfc8ba; padding: 48px 0 24px; margin-top: 40px; font-size: .95rem; }
.foot a { color: #f3eee5; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot__grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.foot__brand { font-family: var(--serif); font-size: 1.3rem; color: #fff; margin: 0 0 8px; }
.foot__h { color: #fff; font-weight: 600; margin: 0 0 8px; }
.foot__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid #36423e; margin-top: 32px; padding-top: 18px; font-size: .85rem; }
.dock { position: fixed; inset: auto 0 0 0; display: grid; grid-template-columns: 1fr 2fr; z-index: 30; box-shadow: 0 -4px 16px rgba(0,0,0,.12); }
.dock a { text-align: center; padding: 16px; text-decoration: none; font-weight: 600; background: var(--chalk); color: var(--ink); }
.dock .dock__main { background: var(--oak-dark); color: #fff; }
@media (min-width: 960px) { .dock { display: none; } body { padding-bottom: 0; } }
.prose p { max-width: 62ch; }
.sel select { font: inherit; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--chalk); }
.more { text-align: center; margin: 28px 0 0; }
.card__img img { background: #e9e1d2; }
@media (max-width: 599px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card__body { padding: 10px 12px 14px; }
  .card__body h3 { font-size: .95rem; }
  .brand__name { font-size: .95rem; line-height: 1.15; }
  .btn--sm { white-space: nowrap; }
}

/* navigation: Flooring dropdown, Carpet, About */
.nav__group { position: relative; }
.nav__btn { font: inherit; font-weight: 500; font-size: .95rem; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nav__btn:hover { color: var(--oak-dark); }
.nav__chev { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .15s; }
.nav__menu { display: none; position: absolute; top: 100%; left: -16px; min-width: 190px; padding: 14px 8px 8px; z-index: 30; }
.nav__menu::before { content: ""; position: absolute; inset: 8px 0 0 0; background: var(--chalk); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 10px 28px rgba(31,42,39,.14); z-index: -1; }
.nav__menu a { display: block; padding: 9px 16px; border-radius: 4px; }
.nav__menu a:hover { background: var(--paper); }
.nav__group:hover .nav__menu, .nav__group.is-open .nav__menu { display: block; }
.nav__group.is-open .nav__chev, .nav__group:hover .nav__chev { transform: rotate(-135deg) translate(-2px, -2px); }
.burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 10px; background: none; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--ink); }
@media (max-width: 959px) {
  .top__in { gap: 12px; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--chalk); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: 0 12px 24px rgba(31,42,39,.1); }
  .nav.is-open { display: flex; }
  .nav a, .nav__btn { padding: 12px 4px; font-size: 1.05rem; }
  .nav__btn { width: 100%; justify-content: space-between; }
  .nav__menu { display: none; position: static; padding: 0 0 6px 12px; min-width: 0; }
  .nav__menu::before { display: none; }
  .nav__group:hover .nav__menu { display: none; }
  .nav__group.is-open .nav__menu { display: block; }
}
@media (min-width: 960px) {
  .burger { display: none; }
  .nav { display: flex; align-items: center; }
}

/* colour picker */
.colours { margin: 22px 0 8px; }
.colours__label { margin: 0 0 10px; font-size: .95rem; }
.colours__count { color: var(--ink-soft); font-size: .85rem; margin-left: 6px; }
.swatches { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sw { width: 58px; height: 58px; padding: 0; border: 2px solid transparent; border-radius: var(--r); background: #e9e1d2; cursor: pointer; overflow: hidden; outline: 1px solid var(--line); outline-offset: -1px; font: inherit; font-size: .7rem; line-height: 1.1; color: var(--ink); }
.sw img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sw:hover { border-color: var(--oak); }
.sw.is-on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--oak); }
.sw:focus-visible { outline: 2px solid var(--oak); outline-offset: 2px; }
.specs--colour { margin-top: 12px; margin-bottom: 0; }
.specs--colour[hidden] { display: none; }

/* source photo is small: show it at its own size instead of blowing it up */
.pdp__media { background: transparent; }
.pdp__sub { margin: -4px 0 16px; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--oak-dark); }

/* product photo frame: small swatch photos are shown at their own size on a tinted panel */
.pdp__frame { border-radius: var(--r); overflow: hidden; background: #e9e1d2; }
.pdp__frame img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 0; }
.pdp__frame.is-lowres { aspect-ratio: 4/3; display: grid; place-items: center; background: #e4dccb; }
.pdp__frame.is-lowres img { width: auto; max-width: 70%; max-height: 80%; aspect-ratio: auto; border-radius: 4px; box-shadow: 0 10px 28px rgba(31,42,39,.2); }
.pdp__note { margin: 0; font-size: .85rem; color: var(--ink-soft); }
.related { padding: 8px 0 72px; }
.related h2 { margin-bottom: 18px; }
.popular { padding-top: 24px; }
.popular .grid { margin-top: 18px; }
.pdp__media { align-content: start; align-self: start; }


/* quote form alignment: labels stack from the top; inputs and dropdowns share one height */
.form label { align-content: start; }
.form input:not([type="hidden"]):not([type="checkbox"]), .form select { height: 48px; padding-top: 0; padding-bottom: 0; line-height: 1.3; }
.form select { appearance: none; -webkit-appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231f2a27' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center; }
.form textarea { line-height: 1.4; }

/* home hero: fan of real sample swatches */
.hero__side { display: grid; gap: 22px; justify-items: center; }
.board { position: relative; width: 100%; max-width: 620px; padding-top: 12px; }
.board::before { content: ""; position: absolute; left: 50%; bottom: 0; width: 88%; aspect-ratio: 2/1; transform: translateX(-50%); border-radius: 999px 999px 0 0; background: #e8dcc6; z-index: 0; }
.fan { list-style: none; margin: 0; padding: 0; position: relative; height: 470px; z-index: 1; }
.fan li { position: absolute; left: 50%; bottom: 0; width: 196px; margin-left: -98px; height: 370px; transform-origin: 50% 105%;
  transform: rotate(calc((var(--i) - 2.5) * 13deg)); transition: transform .25s ease, z-index 0s; z-index: calc(var(--i) + 1); }
.fan li:hover, .fan li:focus-within { transform: rotate(calc((var(--i) - 2.5) * 13deg)) translateY(-24px) scale(1.05); z-index: 20; }
.fan a { display: block; height: 100%; background: var(--chalk); padding: 7px 7px 0; border-radius: 6px; box-shadow: 0 6px 18px rgba(31,42,39,.22); text-decoration: none; color: var(--ink); }
.fan img { display: block; width: 100%; height: calc(100% - 60px); object-fit: cover; border-radius: 2px; background: #e9e1d2; }
.fan__tag { display: grid; align-content: center; height: 60px; padding: 0 2px; line-height: 1.15; }
.fan__tag strong { font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fan__tag small { font-size: .76rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fan a:focus-visible { outline: 3px solid var(--oak); outline-offset: 2px; }
@media (max-width: 899px) {
  .hero__side { margin-top: 8px; }
  .fan { height: 350px; }
  .fan li { width: 138px; margin-left: -69px; height: 280px; }
}
@media (prefers-reduced-motion: reduce) { .fan li { transition: none; } }



/* phones: the hero is just the headline and buttons */
@media (max-width: 899px) {
  .hero__side { display: none; }
  .hero { padding: 28px 0 36px; }
}
