/* =====================================================================
   DesignEDly look. Change the colours, fonts and spacing HERE only.
   ===================================================================== */
:root {
  --terracotta: #C4622D;
  --terracotta-deep: #A9501F;   /* buttons and link text (passes contrast) */
  --moss: #4A6741;
  --moss-deep: #3D5736;
  --honey: #D4A843;
  --linen: #F2EBE0;
  --linen-dark: #E8DCC8;
  --paper: #FFFDF8;
  --charcoal: #2C2416;
  --muted: #4A3C2A;
  --wood: #3E2C1E;
  --wood-dark: #1F150C;
  --ok-bg: #DCE8D6;
  --full-bg: #F4D9C6;
  --new-bg: #F3E6BC;

  --font-display: 'Shippori Mincho', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, monospace;
  --font-hand: 'Caveat', cursive;

  --edge: 3px solid var(--charcoal);
  --gutter: 48px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--linen); color: var(--charcoal); font: 17px/1.55 var(--font-body); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--terracotta-deep); }
a:hover { color: #7E3A14; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; }
.section { padding: 72px var(--gutter); }
.section--tight { padding-top: 40px; padding-bottom: 24px; }
.section--sand { background: var(--linen-dark); border-top: var(--edge); border-bottom: var(--edge); }
.section--moss { background: var(--moss); color: #fff; border-top: var(--edge); border-bottom: var(--edge); }
.label { font: 13px var(--font-mono); letter-spacing: 2.5px; text-transform: uppercase; color: var(--moss-deep); margin-bottom: 12px; }
.label--honey { color: var(--honey); }
.label--pale { color: var(--new-bg); }
.h-xl { font-weight: 800; font-size: clamp(34px, 5vw, 58px); line-height: 1.08; }
.h-lg { font-weight: 800; font-size: clamp(30px, 4vw, 44px); line-height: 1.12; }
.h-md { font-weight: 700; font-size: 26px; line-height: 1.2; }
.lead { font-size: 20px; max-width: 560px; }
.muted { color: var(--muted); }

/* ---- header ---- */
.site-header { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 20px var(--gutter); border-bottom: var(--edge); background: var(--linen); }
.brand { font: 800 30px var(--font-display); color: var(--charcoal); text-decoration: none; display: flex; align-items: center; gap: 10px; letter-spacing: .5px; }
.brand-mark { width: 18px; height: 18px; background: var(--terracotta); border: var(--edge); transform: rotate(45deg); display: inline-block; }
.brand small { display: block; font: 500 11px var(--font-mono); letter-spacing: 2px; text-transform: uppercase; color: var(--moss-deep); margin-top: 4px; }
.brand span.stack { line-height: 1.1; }
.tagline { flex: 1 1 220px; text-align: center; font: 600 28px var(--font-hand); color: var(--moss); }
.nav { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center; font-weight: 500; }
.nav a { color: var(--charcoal); text-decoration: none; }
.nav a.current { border-bottom: 3px solid var(--terracotta); }

/* ---- buttons ---- */
.btn { display: inline-block; padding: 14px 26px; border: var(--edge); font: 700 17px var(--font-body); text-decoration: none; cursor: pointer; min-height: 48px; text-align: center; }
.btn--primary { background: var(--terracotta-deep); color: #fff; box-shadow: 5px 5px 0 var(--charcoal); }
.btn--moss { background: var(--moss); color: #fff; box-shadow: 4px 4px 0 var(--charcoal); }
.btn--honey { background: var(--honey); color: var(--charcoal); box-shadow: 5px 5px 0 var(--wood-dark); }
.btn--paper { background: var(--linen); color: var(--charcoal); box-shadow: 4px 4px 0 var(--charcoal); }
.btn--ghost { background: transparent; color: var(--linen); border-color: var(--linen); font-weight: 500; }
.btn--sm { padding: 10px 20px; min-height: 44px; font-size: 16px; box-shadow: 4px 4px 0 var(--charcoal); }
.btn:hover { color: inherit; }
.btn--primary:hover, .btn--moss:hover { color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---- the wood table ---- */
.table-top { background: var(--wood) repeating-linear-gradient(90deg, rgba(0,0,0,.12) 0, rgba(0,0,0,.12) 2px, transparent 2px, transparent 140px); color: var(--linen); border-bottom: var(--edge); }
.hero { padding: 80px var(--gutter) 96px; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero .copy { flex: 1 1 440px; min-width: 0; }
.hero h1 { color: var(--linen); margin-bottom: 22px; }
.hero p.lead { color: var(--linen-dark); }
.doors { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.door { display: flex; align-items: center; gap: 20px; padding: 24px 26px; background: var(--linen); color: var(--charcoal); text-decoration: none; border: var(--edge); box-shadow: 8px 8px 0 var(--wood-dark); }
.door:nth-child(1) { transform: rotate(-.8deg); } .door:nth-child(2) { transform: rotate(.6deg); } .door:nth-child(3) { transform: rotate(-.4deg); }
.door-icon { flex: none; width: 56px; height: 56px; border: var(--edge); display: flex; align-items: center; justify-content: center; }
.door b { display: block; font: 800 26px/1.15 var(--font-display); }
.door span.sub { color: var(--muted); font-size: 16px; }
.door .arrow { margin-left: auto; font-size: 26px; font-weight: 700; color: var(--terracotta-deep); }

/* ---- generic cards ---- */
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.card { background: var(--paper); border: var(--edge); padding: 26px; }
.card--moss { box-shadow: 6px 6px 0 var(--moss); } .card--terra { box-shadow: 6px 6px 0 var(--terracotta); }
.card--honey { box-shadow: 6px 6px 0 var(--honey); } .card--ink { box-shadow: 6px 6px 0 var(--charcoal); }
.kicker { font: 13px var(--font-mono); letter-spacing: 2px; margin-bottom: 10px; }
.step { border-top: 6px solid var(--terracotta); padding-top: 16px; }
.step:nth-child(2) { border-color: var(--moss); } .step:nth-child(3) { border-color: var(--honey); } .step:nth-child(4) { border-color: var(--charcoal); }
.step .n { font: 600 40px/1 var(--font-hand); color: var(--terracotta-deep); }
.step h3 { font-size: 22px; margin: 6px 0; }

/* ---- listing cards ---- */
.photo { position: relative; overflow: hidden; background: var(--moss); display: flex; align-items: center; justify-content: center; }
.photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.photo .letter { font: 800 56px/1 var(--font-display); color: #fff; }
.photo .tag { position: absolute; left: 10px; bottom: 10px; font: 11px var(--font-mono); letter-spacing: 1px; background: var(--linen); color: var(--charcoal); border: 2px solid var(--charcoal); padding: 2px 7px; }
.badge { display: inline-block; padding: 3px 10px; border: 2px solid var(--charcoal); font-size: 14px; background: var(--linen); }
.badge--ok { background: var(--ok-bg); font-weight: 700; } .badge--full { background: var(--full-bg); font-weight: 700; }
.badge--new { background: var(--new-bg); font-weight: 700; } .badge--met { background: var(--honey); font: 500 12px var(--font-mono); }
.badge--example { font: 12px var(--font-mono); letter-spacing: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.result { display: flex; flex-wrap: wrap; background: var(--paper); border: var(--edge); box-shadow: 7px 7px 0 var(--charcoal); margin-bottom: 26px; }
.result .photo { flex: 0 0 220px; min-height: 170px; border-right: var(--edge); }
.result .body { flex: 1 1 340px; min-width: 0; padding: 20px 24px; display: flex; flex-direction: column; gap: 8px; }
.result .side { flex: 0 0 230px; padding: 20px 24px; border-left: var(--edge); background: #F7F1E7; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.result h3 { font-size: 24px; line-height: 1.2; }
.result--similar { box-shadow: 5px 5px 0 #8A7A62; }
.result--similar .photo { flex-basis: 170px; min-height: 130px; }
.meta { color: var(--muted); font-size: 15px; }
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.cards3 .result { display: flex; flex-direction: column; margin: 0; }
.cards3 .result .photo { flex: none; height: 140px; border-right: 0; border-bottom: var(--edge); min-height: 0; }
.cards3 .result .side { border-left: 0; border-top: var(--edge); }

/* ---- filter bar ---- */
.filters { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: flex-end; }
.field { flex: 1 1 200px; display: flex; flex-direction: column; gap: 6px; }
.field label { font: 12px var(--font-mono); letter-spacing: 1.5px; text-transform: uppercase; color: var(--linen-dark); }
.field input, .field select { min-height: 48px; padding: 0 14px; font: 17px var(--font-body); border: var(--edge); background: var(--linen); color: var(--charcoal); width: 100%; }
.check { display: flex; align-items: center; gap: 12px; min-height: 48px; color: var(--linen); font-weight: 500; flex: 1 1 180px; }
.check input { width: 24px; height: 24px; accent-color: var(--honey); }

/* ---- panels ---- */
.panel-wood { background: var(--wood); color: var(--linen); border: var(--edge); box-shadow: 8px 8px 0 var(--terracotta); padding: 30px; }
.progress { height: 20px; border: 3px solid var(--linen); margin-bottom: 8px; }
.progress i { display: block; height: 100%; background: var(--honey); }
.divider { border-top: 3px dashed var(--charcoal); padding-top: 36px; margin: 64px 0 12px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; margin-bottom: 34px; }
.stat { background: var(--paper); border: var(--edge); padding: 20px; }
.stat b { display: block; font: 800 40px/1 var(--font-display); }
.quote { background: var(--paper); border: var(--edge); padding: 24px; margin: 0; }
.quote blockquote { margin: 0 0 14px; font: 21px/1.4 var(--font-display); }
.quote figcaption { font: 12px var(--font-mono); letter-spacing: 1px; color: var(--muted); }
.listing-top { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.listing-top .photo { height: 380px; border: var(--edge); box-shadow: 8px 8px 0 var(--charcoal); }
.summary { flex: 1 1 400px; min-width: 0; background: var(--paper); border: var(--edge); box-shadow: 8px 8px 0 var(--moss); padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.summary .btn { display: block; }

/* ---- footer ---- */
.site-footer { background: var(--charcoal); color: var(--linen-dark); padding: 44px var(--gutter); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--linen-dark); }
.site-footer .name { font: 800 26px var(--font-display); color: var(--linen); }
.site-footer .small { font: 11px var(--font-mono); letter-spacing: 2px; text-transform: uppercase; }
.site-footer .hand { font: 600 24px var(--font-hand); color: var(--honey); }
.credit { font-size: 13px; color: var(--linen-dark); margin-top: 8px; }

@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .section { padding-top: 48px; padding-bottom: 48px; }
  .result .photo, .result--similar .photo { flex-basis: 100%; height: 170px; border-right: 0; border-bottom: var(--edge); }
  .result .side { flex-basis: 100%; border-left: 0; border-top: var(--edge); }
  .hero { padding-top: 48px; padding-bottom: 56px; }
}
