:root {
  --ink: #24211f;
  --steel: #e4e6e3;
  --white: #f8f9f7;
  --teal: #08636c;    /* spindle body */
  --orange: #f0642b;  /* clamp knobs */
  --wood: #342b29;
  --sand: #d9b98c;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--ink); font: 17px/1.55 "Segoe UI", system-ui, sans-serif; }
h1, h2, h3, .big, .brand { font-family: Bahnschrift, "DIN Alternate", "Roboto Condensed", "Arial Narrow", sans-serif; line-height: 1.1; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.5vw, 54px); margin: 0 0 28px; }
h3 { font-size: 24px; margin: 14px 0 6px; }
a { color: inherit; }
img, video { display: block; max-width: 100%; height: auto; }
video { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: #111; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
section { padding: 80px 0; scroll-margin-top: 10px; }

.wrap { width: 100%; max-width: 1220px; margin: auto; padding-inline: 24px; }
.narrow { max-width: 860px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; }

.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 76px; }
.brand { font-size: 22px; font-weight: 700; text-decoration: none; }
nav { display: flex; align-items: center; gap: 26px; }
nav a:not(.btn) { text-decoration: none; }
.btn, .line { display: inline-block; padding: 12px 20px; font: 600 16px/1.3 "Segoe UI", system-ui, sans-serif; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn { background: var(--orange); color: #1b100b; }
.line { border-color: currentColor; background: none; color: inherit; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.hero { background: var(--teal); color: #fff; padding: 0; }
.hero .split { align-items: center; }
.hero img { width: 100%; height: min(760px, calc(100svh - 76px)); min-height: 480px; object-fit: cover; object-position: center 40%; }
.hero h1 { font-size: 24px; font-weight: 400; margin: 32px 0 18px; }
.big { font-size: clamp(36px, 4.4vw, 62px); font-weight: 700; margin: 0 0 24px; }
.hero p:not(.big) { max-width: 34em; }

.three { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dark { background: var(--wood); color: #f4eee7; }
.dark h3 { color: var(--sand); }
.lead { max-width: 44em; margin: -12px 0 28px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.metal { display: grid; grid-template-columns: 260px minmax(0, 520px); gap: 32px; align-items: center; margin-top: 56px; }
.parts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
figure { margin: 0; }
figure img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
figcaption { padding-top: 10px; }
.note { border-top: 2px solid var(--ink); padding-top: 18px; margin: 36px 0 0; }
.tint { background: var(--steel); }
details { border-top: 1px solid #969b96; padding: 16px 0; }
summary { font-weight: 600; cursor: pointer; }

form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
label { display: grid; align-content: start; gap: 5px; font-size: 15px; font-weight: 600; }
input, select, textarea { width: 100%; min-width: 0; min-height: 46px; padding: 10px; border: 1px solid #777d78; background: #fff; color: var(--ink); font: 16px "Segoe UI", system-ui, sans-serif; }
.wide { grid-column: 1 / -1; }
.small { font-size: 14px; margin: 0; }
footer { background: var(--ink); color: #d8d5d1; padding: 24px 0; font-size: 14px; }
.legal { padding-block: 60px; }

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .split { gap: 28px; }
}
@media (max-width: 680px) {
  section { padding: 52px 0; }
  nav a:not(.btn) { display: none; }
  .brand { font-size: 18px; }
  nav .btn { padding: 9px 12px; white-space: nowrap; }
  .split, .three, .grid, .parts, form { grid-template-columns: minmax(0, 1fr); }
  .hero .split { padding-inline: 0; gap: 24px; }
  .hero .split > div { padding-inline: 20px; }
  .hero img { height: 420px; min-height: 0; }
  .metal { grid-template-columns: minmax(0, 1fr); }
}

/* multi-page site */
.top { flex-wrap: wrap; row-gap: 0; padding-block: 12px; }
.top nav { margin-left: auto; gap: 24px; }
nav a[aria-current] { text-decoration: underline !important; text-decoration-color: var(--orange) !important; text-decoration-thickness: 2px !important; text-underline-offset: 6px; }
.top-cta { padding: 9px 14px; white-space: nowrap; }
.page-head { background: var(--teal); color: #fff; padding: 52px 0; }
.page-head h1 { font-size: clamp(38px, 5vw, 64px); margin: 0 0 10px; }
.page-head p { max-width: 44em; margin: 0; }
.middle { align-items: center; }
.split > img { width: 100%; max-height: 680px; object-fit: cover; }
.parts.three { grid-template-columns: repeat(3, 1fr); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; vertical-align: top; padding: 11px 10px 11px 0; border-bottom: 1px solid #c3c7c2; }
th { width: 38%; }
.cta { background: var(--sand); padding: 48px 0; }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.cta h2 { margin: 0; font-size: 36px; }
.cta p { margin-top: 0; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 40px; }
.foot > p { flex-basis: 100%; }
.foot p { margin: 4px 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }

/* shop */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product { display: flex; flex-direction: column; align-items: flex-start; }
.product img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product .price { font-weight: 700; margin-top: auto; }
#added { margin-top: 28px; padding: 14px 18px; background: var(--steel); }
#cart-lines { list-style: none; margin: 0; padding: 0; }
#cart-lines li { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 8px 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid #c3c7c2; }
.remove { border: 0; padding: 6px 0; background: none; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }

@media (max-width: 680px) {
  .top nav { order: 3; flex-basis: 100%; margin: 0; padding-top: 10px; flex-wrap: wrap; gap: 0 16px; font-size: 15px; }
  .top nav a:not(.btn) { display: inline-block; padding-block: 6px; }
  .parts.three, .products { grid-template-columns: minmax(0, 1fr); }
  .page-head { padding: 34px 0; }
}
.product-name { font-size: 25px; margin: 16px 0 4px; }
#cart-lines li input { width: 110px; }
#cart-lines li span, #cart-lines .remove { justify-self: end; text-align: right; }
