@font-face { font-family: "Alegreya"; src: url("/fonts/alegreya-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("/fonts/alegreya-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("/fonts/alegreya-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("/fonts/alegreya-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("/fonts/alegreya-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("/fonts/alegreya-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("/fonts/alegreya-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --paper: #f3f0e8;
  --paper-deep: #e8e3d8;
  --white: #fbfaf6;
  --ink: #1f1d1a;
  --soft: #5e5950;
  --rule: #d3ccbf;
  --accent: #8a2e1e;
  --spruce: #24332c;
  --on-spruce: #ece8dd;
  --blank: #efe0a0;
  --focus: #2f6a8a;
  --serif: "Alegreya", Georgia, serif;
  --sans: "Alegreya Sans", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.55 var(--sans); font-kerning: normal; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.3rem; font-weight: 500; }
p { margin: 0 0 1em; }
.small { font-size: .9rem; color: var(--soft); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.blank { background: var(--blank); color: var(--ink); padding: 0 .25em; border-radius: 2px; font-style: normal; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.fn { color: var(--accent); text-decoration: none; font-weight: 700; font-size: .75em; vertical-align: super; line-height: 0; margin-left: .05em; }
.arrow { font-weight: 500; text-decoration: underline; text-underline-offset: .25em; }
.arrow::after { content: " →"; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .8em; min-height: 52px; padding: .8em 1.4em; border: 0; border-radius: 2px; background: var(--ink); color: var(--paper); font: 500 1.05rem var(--sans); cursor: pointer; }
.button:hover { background: #3a3631; }
.button:disabled { background: var(--paper-deep); color: var(--soft); cursor: not-allowed; }
.button-wide { width: 100%; }

/* Rendered stand-ins until real photos exist */
.render { position: relative; margin: 0; overflow: hidden; background: var(--paper-deep); }
.render img { display: block; width: 100%; height: 100%; object-fit: cover; }
.render figcaption { position: absolute; left: 16px; bottom: 12px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgb(255 250 240 / .75); }

/* Masthead */
.preview { margin: 0; padding: 8px var(--gutter); font-size: .82rem; color: var(--soft); border-bottom: 1px solid var(--rule); }
.masthead { position: sticky; top: 0; z-index: 10; display: flex; align-items: baseline; gap: clamp(20px, 4vw, 48px); padding: 18px var(--gutter); background: var(--paper); border-bottom: 1px solid var(--rule); }
.wordmark { font: 500 1.6rem/1 var(--serif); text-decoration: none; letter-spacing: -.01em; }
.nav { display: flex; gap: 24px; }
.nav a, .lang { text-decoration: none; color: var(--soft); }
.nav a:hover, .nav a[aria-current], .lang:hover { color: var(--ink); text-decoration: underline; }
.masthead-end { margin-left: auto; display: flex; align-items: baseline; gap: 22px; }
.lang .short { display: none; }
.cart-toggle { padding: 0; border: 0; background: none; font: 500 1rem var(--sans); color: var(--ink); cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }

main > section { padding-inline: var(--gutter); max-width: 1400px; margin-inline: auto; }

/* Opening */
.opening { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding-top: clamp(40px, 7vw, 96px); }
.opening h1 { grid-column: 1 / 10; font-size: clamp(2.7rem, 6.4vw, 5.8rem); line-height: 1; letter-spacing: -.02em; max-width: 13ch; }
.opening-side { grid-column: 10 / 13; align-self: end; padding-bottom: .6em; color: var(--soft); }
.opening-side p { margin-bottom: .8em; }
.opening-side .arrow { color: var(--ink); }
.photo-hero { grid-column: 1 / -1; margin-top: clamp(32px, 5vw, 56px); aspect-ratio: 16 / 7; }

/* Letter */
.letter { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding-block: clamp(64px, 10vw, 140px); }
.photo-portrait { grid-column: 1 / 5; aspect-ratio: 4 / 5; align-self: start; }
.letter-text { grid-column: 6 / 12; font: 400 clamp(1.25rem, 2vw, 1.55rem)/1.5 var(--serif); }
.letter-text p { margin-bottom: .9em; }
.signature { font-style: italic; font-size: 1.6em; margin: 1.2em 0 0 !important; line-height: 1.1; }
.role { font: 400 .95rem var(--sans); color: var(--soft); }

/* Shop */
.shop { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--rule); scroll-margin-top: 70px; }
.sample-wrap { grid-column: 1 / 7; }
.sample-stage { position: sticky; top: 100px; display: grid; place-items: center; aspect-ratio: 1; background: var(--paper-deep); }
.felt { display: block; background-color: var(--felt, #ddd2bf); background-image: var(--noise); background-size: 180px; background-blend-mode: soft-light; }
.sample { border-radius: 3px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .05), inset 0 -10px 18px rgb(0 0 0 / .07), 0 18px 30px -18px rgb(40 30 20 / .55); transition: width .35s ease, aspect-ratio .35s ease, background-color .35s ease; }
.sample[data-size="s60x60"] { width: 54%; aspect-ratio: 1; }
.sample[data-size="s60x120"] { width: 36%; aspect-ratio: 1 / 2; }
.sample-caption { margin-top: 12px; font-size: .9rem; color: var(--soft); }
.buy { grid-column: 8 / 13; }
.buy h2 { font-size: clamp(2rem, 3.4vw, 2.7rem); margin-bottom: .4em; }
.buy-intro { color: var(--soft); }
fieldset { border: 0; padding: 0; margin: 28px 0 0; min-width: 0; }
legend { padding: 0; margin-bottom: 10px; font-weight: 500; }
#colour-name { font-weight: 400; color: var(--soft); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice, .swatch, .pack { position: relative; cursor: pointer; }
.choice input, .swatch input, .pack input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choice span { display: block; padding: 10px 16px; border: 1px solid var(--rule); border-radius: 2px; background: transparent; }
.choice small { color: var(--soft); font-size: .85rem; }
.choice input:checked + span { border-color: var(--ink); background: var(--white); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input:focus-visible + span, .pack:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch-chip { display: block; width: 40px; height: 40px; border-radius: 2px; background-color: var(--felt); background-image: var(--noise); background-size: 120px; background-blend-mode: soft-light; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); }
.swatch input:checked + .swatch-chip { outline: 2px solid var(--ink); outline-offset: 3px; }
.swatch input:focus-visible + .swatch-chip { outline: 2px solid var(--focus); outline-offset: 3px; }
.packs { border-top: 1px solid var(--rule); }
.pack { display: grid; grid-template-columns: 22px auto 1fr auto; grid-template-areas: "dot name save price" ". each each price"; column-gap: 12px; align-items: baseline; padding: 14px 4px; border-bottom: 1px solid var(--rule); }
.pack::before { content: ""; grid-area: dot; align-self: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--soft); }
.pack:has(input:checked)::before { border: 5px solid var(--ink); }
.pack:has(input:checked) { background: var(--white); }
.pack-name { grid-area: name; font-weight: 500; }
.pack-each { grid-area: each; font-size: .88rem; color: var(--soft); }
.pack-save { grid-area: save; font-size: .88rem; color: var(--accent); }
.pack-price { grid-area: price; font: 400 1.35rem var(--serif); }
.buy-row { display: flex; gap: 10px; margin-top: 24px; }
.stepper { display: flex; align-items: stretch; border: 1px solid var(--rule); border-radius: 2px; }
.stepper button { width: 44px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.stepper button:hover { background: var(--paper-deep); }
.stepper input { width: 2.4em; border: 0; background: none; text-align: center; font: 500 1rem var(--sans); color: var(--ink); -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.buy-submit { flex: 1; justify-content: space-between; }
.buy-total { font-family: var(--serif); font-size: 1.2rem; }
.buy-submit.is-added { background: var(--spruce); }
.buy .small { margin-top: 10px; }
.specs { display: grid; grid-template-columns: 7.5em 1fr; margin: 32px 0 0; border-top: 1px solid var(--rule); }
.specs dt, .specs dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.specs dt { color: var(--soft); }

/* How it's made */
.made { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--rule); scroll-margin-top: 70px; }
.section-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { grid-column: 1 / 7; }
.section-head p { grid-column: 8 / 13; margin: 0; color: var(--soft); }
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
.process h3 { margin: 16px 0 6px; display: flex; align-items: baseline; gap: .45em; }
.step-n { font-style: italic; color: var(--accent); }
.process p { color: var(--soft); margin: 0; }
.drawing { margin: 0; }
.drawing img { display: block; width: 100%; height: auto; }

/* Why only wool */
.why { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--rule); }
.why h2 { grid-column: 1 / 5; }
.why-text { grid-column: 6 / 12; font: 400 1.2rem/1.6 var(--serif); }
.why-text .arrow { font-family: var(--sans); font-size: 1rem; }
.pull { grid-column: 2 / 12; margin: clamp(48px, 7vw, 88px) 0 0; padding-top: 28px; border-top: 1px solid var(--ink); }
.pull p { margin: 0; font: italic 400 clamp(2rem, 4.6vw, 3.8rem)/1.1 var(--serif); letter-spacing: -.01em; }

/* Estimator */
.estimate { max-width: none !important; background: var(--spruce); color: var(--on-spruce); padding-block: clamp(56px, 8vw, 104px); scroll-margin-top: 70px; }
.estimate > * { max-width: 1100px; }
.estimate h2 { margin-bottom: .6em; }
.sentence { font: 400 clamp(1.45rem, 2.8vw, 2.2rem)/1.75 var(--serif); margin: 0; }
.sentence input, .sentence select { font: inherit; color: var(--on-spruce); background: transparent; border: 0; border-bottom: 2px solid rgb(236 232 221 / .55); border-radius: 0; padding: 0 .1em; line-height: 1.2; }
.sentence input { width: 2.6em; text-align: center; -moz-appearance: textfield; }
.sentence input::-webkit-inner-spin-button, .sentence input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.sentence select { -webkit-appearance: none; appearance: none; padding-right: .9em; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: right .3em center, right .05em center; background-size: .25em .25em; background-repeat: no-repeat; }
.sentence select option { color: var(--ink); background: var(--white); }
.sentence input:focus, .sentence select:focus { outline: none; border-bottom-color: var(--on-spruce); }
.estimate-answer { margin: 1.4em 0 .6em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 28px; }
.estimate-answer output { font: italic 400 clamp(1.8rem, 3.6vw, 2.8rem) var(--serif); }
.estimate .small { color: rgb(236 232 221 / .7); }
.estimate a:hover { color: #fff; }

/* Questions */
.faq { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding-block: clamp(56px, 8vw, 104px); scroll-margin-top: 70px; }
.faq h2 { grid-column: 1 / 5; }
.faq-list { grid-column: 6 / 13; border-top: 1px solid var(--rule); }
details { border-bottom: 1px solid var(--rule); }
summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; font: 400 1.3rem var(--serif); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--soft); font-family: var(--sans); }
details[open] summary::after { content: "−"; }
details p { color: var(--soft); max-width: 38em; padding-bottom: 18px; margin: 0; }

.footnote { padding: 0 var(--gutter) 40px; max-width: 1400px; margin: 0 auto; font-size: .88rem; color: var(--soft); }
.footnote span { color: var(--accent); font-weight: 700; }

/* Footer */
.footer { display: grid; grid-template-columns: 2fr 1.5fr 1.5fr; gap: 24px; padding: 40px var(--gutter) 32px; border-top: 1px solid var(--ink); font-size: .95rem; color: var(--soft); }
.footer p, .footer address { margin: 0; font-style: normal; }
.footer-mark { font: 500 1.6rem/1 var(--serif); color: var(--ink); }
.footer-small { grid-column: 1 / -1; margin-top: 24px !important; font-size: .82rem; }

/* Cart drawer */
.cart { margin: 0 0 0 auto; width: min(420px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; padding: 0; border: 0; border-left: 1px solid var(--ink); background: var(--paper); color: var(--ink); display: none; flex-direction: column; }
.cart[open] { display: flex; animation: cart-in .2s ease; }
.cart::backdrop { background: rgb(31 29 26 / .35); }
@keyframes cart-in { from { transform: translateX(24px); opacity: 0; } }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--rule); }
.cart-head h2 { font-size: 1.7rem; }
.cart-close { width: 44px; height: 44px; border: 0; background: none; font-size: 1.8rem; cursor: pointer; color: var(--ink); }
.cart-body { flex: 1; overflow-y: auto; padding: 0 22px; }
.cart-empty { color: var(--soft); padding: 24px 0; }
.cart-line { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.cart-line .felt { width: 52px; height: 52px; border-radius: 2px; }
.cart-line .felt[data-size="s60x120"] { width: 32px; height: 60px; margin-inline: auto; }
.cart-line p { margin: 0; }
.cart-line .name { font-weight: 500; }
.cart-line .meta { font-size: .88rem; color: var(--soft); }
.cart-line .line-total { text-align: right; font-family: var(--serif); font-size: 1.1rem; }
.cart-line .remove { border: 0; background: none; padding: 0; margin-top: 2px; color: var(--soft); font: .85rem var(--sans); text-decoration: underline; cursor: pointer; }
.cart-foot { padding: 18px 22px 22px; border-top: 1px solid var(--rule); }
.cart-subtotal { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 4px; }
.cart-subtotal strong { font: 400 1.4rem var(--serif); }
.cart-foot .button { margin: 14px 0 8px; }

/* Materials page */
.doc-head { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(32px, 5vw, 56px); }
.doc-head h1 { font-size: clamp(2.6rem, 6vw, 5rem); margin-bottom: .4em; }
.doc-head p { max-width: 36em; font: 400 1.3rem/1.5 var(--serif); color: var(--soft); }
.doc-section { padding-bottom: clamp(48px, 7vw, 88px); }
.doc-section h2 { margin-bottom: .4em; }
.doc-intro { color: var(--soft); max-width: 40em; }
.sheet { margin: 0; border-top: 1px solid var(--ink); }
.sheet div { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.sheet dt { grid-column: 1 / 4; font: 400 1.5rem/1.2 var(--serif); }
.sheet dd { grid-column: 4 / 11; margin: 0; font: 400 1.2rem/1.55 var(--serif); }
.table-scroll { overflow-x: auto; margin: 20px 0 28px; }
table { width: 100%; min-width: 640px; border-collapse: collapse; border-top: 1px solid var(--ink); }
th, td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); }
thead th { font-size: .85rem; font-weight: 500; color: var(--soft); }
tbody th { font-weight: 500; }
td.status { font-style: italic; color: var(--accent); font-family: var(--serif); }
.compare td:nth-child(2), .compare thead th:first-of-type { color: var(--ink); font-weight: 500; }
.compare td { color: var(--soft); }

/* Narrow screens */
@media (max-width: 1000px) {
  .nav { display: none; }
  .opening h1 { grid-column: 1 / -1; }
  .opening-side { grid-column: 1 / -1; margin-top: 20px; max-width: 30em; }
  .photo-hero { margin-inline: calc(var(--gutter) * -1); }
  .letter > *, .shop > *, .why > *, .faq > *, .section-head > * { grid-column: 1 / -1 !important; }
  .photo-portrait { max-width: 420px; margin-bottom: 36px; }
  .sample-stage { position: static; aspect-ratio: 4 / 3; }
  .sample[data-size="s60x60"] { width: 42%; }
  .sample[data-size="s60x120"] { width: 26%; }
  .buy { margin-top: 32px; }
  .section-head p { margin-top: 14px; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .why-text { margin-top: 24px; }
  .pull { grid-column: 1 / -1; }
  .faq-list { margin-top: 24px; }
  .sheet dt, .sheet dd { grid-column: 1 / -1; }
  .sheet dd { margin-top: 6px; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .masthead { gap: 16px; }
  .lang .long { display: none; }
  .lang .short { display: inline; }
  .process { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 6.5em 1fr; }
  .sentence input { width: 2.4em; }
  /* The room goes 4:3 on phones so the panels stay a readable size. */
  .photo-hero { aspect-ratio: 4 / 3; }
}

/* Catalog colours */
.c-natural { --felt: #E4D9C6; }
.c-heather { --felt: #A29D94; }
.c-charcoal { --felt: #46443F; }
.c-moss { --felt: #737B58; }
.c-clay { --felt: #B06F58; }
.c-fjord { --felt: #5D6F82; }
