/* Black's Carpentry: black ink on warm birch, pencil-line workshop drawings.
   One light theme. Every background token has an --on-* partner. */
:root {
  --birch: #ead9b5;      --on-birch: #1b1e21;   --on-birch-soft: #4a3f30;
  --sheet: #f6eedc;      --on-sheet: #1b1e21;   --on-sheet-soft: #4e4434;
  --ply: #dcc596;        --on-ply: #1b1e21;
  --ink: #1b1e21;        --on-ink: #f3e8cf;     --on-ink-soft: #cdbf9f;
  --red: #9e2a1d;        --on-red: #fbf3e3;
  --field: #fffaf0;      --on-field: #1b1e21;
  --pencil: #5d564c;
  --grid: rgba(27, 30, 33, .07);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Archivo", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --r: 2px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--birch);
  color: var(--on-birch);
  /* static birch grain, not animated */
  background-image:
    repeating-linear-gradient(178deg, rgba(120, 86, 40, .05) 0 2px, transparent 2px 23px),
    repeating-linear-gradient(181deg, rgba(120, 86, 40, .04) 0 1px, transparent 1px 41px);
  font: 400 1.0625rem/1.6 var(--sans);
  overflow-wrap: anywhere;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 768px) { .wrap { padding-inline: 2rem; } }
.mono { font-family: var(--mono); font-size: .8125rem; letter-spacing: .04em; }

/* Preview ribbon: in flow, never over content */
.ribbon { margin: 0; background: var(--ink); color: var(--on-ink); font-size: .8125rem; text-align: center; padding: .45rem 1rem; }

/* Buttons: sharp corners, like a cut edge */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.3rem; border: 2px solid var(--ink); border-radius: var(--r);
  font: 600 1rem/1.2 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .15s ease, background-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { background: var(--red); color: var(--on-red); border-color: var(--red); }
.btn-line { background: var(--birch); color: var(--on-birch); }
.btn-line:hover { background: var(--ply); color: var(--on-ply); }

/* Header */
.top { border-bottom: 2px solid var(--ink); }
.top-in { display: flex; align-items: center; gap: 1.25rem; min-height: 68px; }
.brand { display: flex; align-items: baseline; gap: .6rem; text-decoration: none; margin-right: auto; }
.brand b { font: 800 1.6rem/1 var(--serif); }
.brand span { font-size: .875rem; color: var(--on-birch-soft); }
.top nav { display: none; gap: 1.5rem; }
.top nav a { text-decoration: none; font-weight: 600; }
.top nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.top-call { display: none; }
@media (min-width: 900px) { .top nav, .top-call { display: flex; } }
@media (max-width: 380px) { .brand span { display: none; } }

/* Hero */
.hero { padding-block: 2.5rem 3rem; display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: 1fr 1.05fr; padding-block: 4rem 4.5rem; gap: 3rem; } }
.est { font-family: var(--mono); font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.1rem); }
.hero-sub { margin-top: 1.25rem; max-width: 34ch; font-size: 1.125rem; color: var(--on-birch-soft); }
.ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.drawing { background: var(--sheet); color: var(--on-sheet); border: 2px solid var(--ink); border-radius: var(--r); padding: .75rem;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 20px 20px; }
.drawing svg { width: 100%; height: auto; }
.pen { fill: none; stroke: var(--on-sheet); stroke-width: 2; stroke-linejoin: round; }
.pen-fill { fill: var(--ply); }
.pencil { fill: none; stroke: var(--pencil); stroke-width: 1; }
.dash { fill: none; stroke: var(--pencil); stroke-width: 1; stroke-dasharray: 4 4; }
.redline { fill: none; stroke: var(--red); stroke-width: 1.25; }
.lbl { font: 500 12px var(--mono); fill: var(--on-sheet); letter-spacing: .06em; }
.lbl-red { fill: var(--red); }
.lbl-big { font: 800 20px var(--serif); fill: var(--on-sheet); }

/* Drawing-on motion: the joint is drawn, then shaded. Only without reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .draw .pen { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ink 1.6s cubic-bezier(.6, .1, .3, 1) forwards; }
  .draw .pen-fill { fill-opacity: 0; animation: shade .6s ease 1.5s forwards; }
  .draw .pen.b { animation-delay: .5s; }
  .draw .dash, .draw .redline, .draw .lbl, .draw .pencil { opacity: 0; animation: shade .6s ease 1.7s forwards; }
  @keyframes ink { to { stroke-dashoffset: 0; } }
  @keyframes shade { to { opacity: 1; fill-opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* Range: their own words, set on a steel rule */
.range { background: var(--ink); color: var(--on-ink); padding-block: 4rem; }
.range blockquote { margin: 0; font: 700 clamp(1.7rem, 4.4vw, 2.9rem)/1.18 var(--serif); max-width: 24ch; }
.range figcaption { margin-top: 1rem; color: var(--on-ink-soft); }
.rule { margin-top: 2.75rem; }
.rule-bar { height: 48px; border: 2px solid var(--on-ink); border-radius: var(--r);
  background:
    repeating-linear-gradient(90deg, var(--on-ink) 0 2px, transparent 2px 100px) 0 0 / 100% 24px no-repeat,
    repeating-linear-gradient(90deg, var(--on-ink) 0 1px, transparent 1px 50px) 0 0 / 100% 16px no-repeat,
    repeating-linear-gradient(90deg, var(--on-ink-soft) 0 1px, transparent 1px 10px) 0 0 / 100% 8px no-repeat; }
.rule-ends { display: flex; justify-content: space-between; gap: 1rem; margin-top: .75rem; font-family: var(--serif); font-size: 1.15rem; font-weight: 700; }
.rule-ends span:last-child { text-align: right; }
.range-copy { margin-top: 2rem; max-width: 58ch; color: var(--on-ink-soft); }

/* Work: bento of drawing plates */
.work { padding-block: 4.5rem 3.5rem; }
.work h2, .enquire h2 { font-size: clamp(2rem, 5vw, 3rem); }
.work-intro { margin-top: .75rem; max-width: 52ch; color: var(--on-birch-soft); }
.plates { display: grid; gap: 1.25rem; margin-top: 2.25rem; }
@media (min-width: 768px) {
  .plates { grid-template-columns: repeat(6, 1fr); }
  .p-furniture { grid-column: span 4; grid-row: span 2; }
  .p-kitchen, .p-van { grid-column: span 2; }
  .p-set, .p-deck { grid-column: span 3; }
}
.plate { margin: 0; display: flex; flex-direction: column; }
.plate .drawing { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: .75rem; padding: 1rem; }
.plate .drawing svg { margin: auto; max-height: 340px; }
.slot { border: 1.5px dashed var(--pencil); padding: .55rem .7rem; font-family: var(--mono); font-size: .78rem; color: var(--on-sheet-soft); }
.plate figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; padding-top: .7rem; }
.plate h3 { font-size: 1.35rem; }
.plate figcaption span { font-family: var(--mono); font-size: .78rem; color: var(--on-birch-soft); }

/* Reputation title block */
.rep { padding-block: 1rem 4.5rem; }
.titleblock { display: grid; border: 2px solid var(--ink); background: var(--sheet); color: var(--on-sheet); border-radius: var(--r); }
@media (min-width: 768px) { .titleblock { grid-template-columns: 1.4fr 1fr 1fr; } }
.titleblock > div { padding: 1.25rem 1.4rem; }
.titleblock > div + div { border-top: 2px solid var(--ink); }
@media (min-width: 768px) { .titleblock > div + div { border-top: 0; border-left: 2px solid var(--ink); } }
.big { font: 800 clamp(2.4rem, 6vw, 3.4rem)/1 var(--serif); }
.titleblock p { margin-top: .4rem; color: var(--on-sheet-soft); }
.titleblock a { font-weight: 600; color: var(--on-sheet); text-underline-offset: 3px; }

/* Enquire */
.enquire { background: var(--ply); color: var(--on-ply); border-top: 2px solid var(--ink); padding-block: 4.5rem; }
.enq { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .enq { grid-template-columns: .85fr 1.15fr; gap: 4rem; } }
.enq-lead { margin-top: 1rem; max-width: 40ch; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.1rem; }
.contact-list small { display: block; font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.contact-list a { font: 700 1.3rem/1.3 var(--serif); text-underline-offset: 4px; }
form { display: grid; gap: 1.1rem; background: var(--sheet); color: var(--on-sheet); border: 2px solid var(--ink); border-radius: var(--r); padding: 1.4rem; }
@media (min-width: 600px) { form { padding: 2rem; } .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; } }
.pair { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
label { font-weight: 600; }
.hint { font-size: .875rem; color: var(--on-sheet-soft); }
input, select, textarea {
  width: 100%; min-height: 48px; font: inherit; color: var(--on-field); background: var(--field);
  border: 1.5px solid var(--ink); border-radius: var(--r); padding: .6rem .75rem;
}
textarea { min-height: 130px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--red); outline-offset: 1px; }
[aria-invalid="true"] { border-color: var(--red); border-width: 2px; }
.err { color: var(--red); font-size: .9rem; font-weight: 600; }
form .btn { justify-self: start; }
.done { outline: none; }
.done h3 { font-size: 1.6rem; }
.done p { margin-top: .6rem; }

/* Footer, with a plywood edge */
.edge { height: 18px; background: repeating-linear-gradient(180deg, var(--ink) 0 2px, var(--ply) 2px 5px); }
footer { background: var(--ink); color: var(--on-ink); padding-block: 2.5rem 3rem; }
.foot { display: grid; gap: 1.75rem; }
@media (min-width: 768px) { .foot { grid-template-columns: 1.2fr 1fr 1.4fr; } }
.foot b { font: 800 1.5rem/1 var(--serif); }
.foot p { margin-top: .4rem; color: var(--on-ink-soft); font-size: .9375rem; }
.foot a { color: var(--on-ink); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }

/* Mobile sticky actions; body gets room so nothing is covered */
.dock { position: fixed; inset: auto 0 0 0; z-index: 10; display: grid; grid-template-columns: 1fr 1fr 1.3fr; background: var(--ink); color: var(--on-ink); border-top: 2px solid var(--ink); }
.dock a { min-height: 56px; display: flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 600; color: var(--on-ink); }
.dock a + a { border-left: 1px solid var(--pencil); }
.dock .dock-main { background: var(--red); color: var(--on-red); }
body { padding-bottom: 56px; }
@media (min-width: 900px) { .dock { display: none; } body { padding-bottom: 0; } }

.calm { padding-block: 4rem; display: grid; gap: 1.25rem; justify-items: start; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
