:root {
  color-scheme: light dark;
  --paper: #f6f1e8;
  --surface: #fffcf6;
  --ink: #25221d;
  --muted: #5f5549;
  --accent: #813927;
  --rule: #c9b9a6;
  --timber: #5b3e30;
  --plaster: #dcc9aa;
  font: 1rem/1.55 system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #211e1a;
    --surface: #2d2721;
    --ink: #f6eddf;
    --muted: #cdc0ae;
    --accent: #ffb194;
    --rule: #766552;
    --timber: #362720;
    --plaster: #9c8063;
  }
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.15em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 0.2em; }
h1, h3, .wordmark { font-family: Georgia, serif; }
h1, h2, h3, p { margin: 0; }

.wrap { width: min(70rem, calc(100% - 2.5rem)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--rule); }
.header-inner, nav { display: flex; align-items: center; gap: 0.5rem 1.25rem; flex-wrap: wrap; }
.header-inner { justify-content: space-between; padding-block: 0.55rem; }
.wordmark { font-size: 1.4rem; font-weight: 700; }
.site-header a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink);
  text-decoration: none;
}
.site-header a:hover, nav a[aria-current] { color: var(--accent); text-decoration: underline; }

.intro { padding-block: clamp(1.75rem, 5vw, 3.5rem) 1.75rem; }
h1 { font-size: clamp(2.35rem, 5.5vw, 4.75rem); line-height: 1.04; letter-spacing: -0.045em; }
.intro h1 { max-width: 17ch; }
.intro p { margin-top: 0.8rem; color: var(--muted); font-size: 1.08rem; max-width: 52ch; }
.section-heading {
  border-top: 1px solid var(--rule);
  padding-block: 0.6rem 0.75rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.product {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--rule);
  background: var(--surface);
}
.product-art {
  height: clamp(4.5rem, 9vw, 7rem);
  border-bottom: 1px solid var(--rule);
  background: var(--plaster) center 45% / cover no-repeat;
  background-image: var(--cover, none),
    repeating-linear-gradient(90deg, var(--timber) 0 5px, transparent 5px 48px),
    repeating-linear-gradient(var(--brace, 45deg), transparent 0 29px, var(--timber) 29px 34px);
}
.timberwright-art { --cover: url("images/timberwright.jpg"); }
.houses-art { --cover: url("images/medieval-half-timbered-houses.jpg"); --brace: -45deg; }
.tiers-art { --brace: 135deg; }
.product-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 1.05rem; }
.product h3 { font-size: clamp(1.4rem, 2.1vw, 1.75rem); line-height: 1.13; }
.product h3 + p { margin-block: 0.55rem 0.85rem; color: var(--muted); }
.price { margin-top: auto; font-weight: 700; }
.price span { color: var(--muted); font-size: 0.78em; }
.store-links { display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem; margin: 0.55rem 0 0; padding: 0; list-style: none; }
.store-links a, .store-links span {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  border: 1px solid var(--rule);
  padding: 0.28rem 0.6rem;
  font-size: 0.87rem;
}
.store-links span { color: var(--muted); }
.store-links a[href^="[["], .store-links a:not([href^="[["]) + span { display: none; }
.video-link { display: inline-block; margin-top: 0.5rem; padding-block: 0.25rem; font-size: 0.88rem; }

.about { margin-top: 1.75rem; padding-bottom: 2.5rem; }
.about p { max-width: 64ch; }
.contact { padding-block: clamp(2rem, 7vw, 5rem); }
.contact h1 + p { margin-top: 1rem; }
.contact a { overflow-wrap: anywhere; }
.report {
  max-width: 47rem;
  margin-top: 1.7rem;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  padding: clamp(1rem, 3vw, 1.6rem);
  background: var(--surface);
}
.report h2 { font: 700 clamp(1.25rem, 3vw, 1.6rem)/1.2 Georgia, serif; }
.report ol { margin: 0.75rem 0 0; padding-inline-start: 1.35rem; }
.report li + li { margin-top: 0.35rem; }

@media (max-width: 47.99rem) {
  .product-grid { grid-template-columns: 1fr; }
  .product-art { height: clamp(4.5rem, 15vw, 7rem); }
}
