/* Kliss Cabinets - Templeton - spec build #65
   ---------------------------------------------------------------------------
   PALETTE SAMPLED OFF HIS OWN CHERRY CABINETRY (p05): median of the
   saturated mid-dark pixels = #623527, used as sampled. Dark ground #2B1A14
   is that cherry deepened; slate #4E5A69 echoes the blue mudroom (p09).

   Structure, unlike #53-#64: a type-first hero with the headline across the
   full width and the kitchen photo BELOW it, full-bleed; the 2025 review set
   large; a four-photo kitchen grid; a mudroom + shop split; three reviews;
   the license. Serif headings (a woodworker's page). No eyebrows.

   ⚠ EVERY RATIO BELOW WAS COMPUTED, NOT ESTIMATED.
     #623527 cherry on paper 9.55 | white on it 10.20
     #2B1A14 dark on paper 15.59 | #F2D6C8 blush on dark 12.08 | #C9B6AA on dark 8.53
     #4E5A69 slate on paper 6.57 | #5E544E muted on paper 6.89
   --------------------------------------------------------------------------- */

:root {
  --cherry: #623527;
  --dark:   #2B1A14;
  --blush:  #F2D6C8;   /* DARK GROUNDS ONLY */
  --mutedD: #C9B6AA;   /* DARK GROUNDS ONLY */
  --paper:  #FAF7F2;
  --white:  #FFFFFF;
  --slate:  #4E5A69;
  --muted:  #5E544E;
  --rule:   #E6DDD3;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --wide: 1180px;
  --sect: clamp(64px, 9vw, 108px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--dark);
  font-family: ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}

/* Browser surfaces. The parts you did not draw still carry the design, and
   this is the cheapest signal that a page was built rather than assembled. */
::selection      { background: var(--cherry); color: var(--white); }
:root            { caret-color: var(--cherry); accent-color: var(--cherry); }
:focus-visible   { outline: 2px solid var(--cherry); outline-offset: 3px; }
a                { color: var(--cherry); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.tabular, time, dd { font-variant-numeric: tabular-nums; }
@supports (scrollbar-color: auto) {
  html { scrollbar-color: var(--cherry) var(--paper); scrollbar-width: thin; }
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
.wrap { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: 24px; }
.muted { color: var(--muted); }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.015em; line-height: 1.1; }
h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 0 0 20px; }
.intro { color: var(--muted); max-width: 60ch; margin: 0 0 30px; }
figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }

.btn { display: inline-block; background: var(--cherry); color: var(--white); font-weight: 700;
  text-decoration: none; padding: 15px 26px; border-radius: 3px; white-space: nowrap; }
.btn:hover { background: var(--dark); }

.mast .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center;
  justify-content: space-between; padding-block: 18px; border-bottom: 1px solid var(--rule); }
.mark { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 700; line-height: 1.1; }
.mark span { display: block; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 14px; font-weight: 500; color: var(--muted); }
.mast .tel { color: var(--cherry); font-weight: 700; text-decoration: none; white-space: nowrap; }

.hero { padding-top: clamp(44px, 6vw, 84px); }
.hero h1 { font-size: clamp(38px, 5.6vw, 70px); margin: 0 0 26px; max-width: 20ch; }
.hero h1 em { font-style: italic; color: var(--cherry); }
.hero-row { display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: flex-end; justify-content: space-between; margin-bottom: clamp(32px, 5vw, 56px); }
.lede { font-size: 19px; max-width: 46ch; margin: 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 0; }
.actions span { color: var(--muted); font-size: 15px; }
.hero-photo img { width: 100%; max-height: 640px; object-fit: cover; }

.quote { background: var(--dark); color: var(--paper); padding-block: var(--sect); }
.review { margin: 0; }
.review blockquote { margin: 0; }
.review.big p { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 32px); line-height: 1.45; margin: 0; max-width: 40ch; }
.quote figcaption { margin-top: 18px; color: var(--mutedD); font-size: 15px; }
.quote figcaption b { color: var(--blush); }

.work { padding-block: var(--sect); }
.k-grid { display: grid; grid-template-columns: 3fr 5fr 3fr; grid-template-rows: auto auto; gap: 14px; }
.k-grid figure { display: flex; flex-direction: column; }
.k-grid img { width: 100%; height: 100%; object-fit: cover; flex: 1; min-height: 0; }
.k1 { grid-column: 1; grid-row: 1 / span 2; }
.k2 { grid-column: 2; grid-row: 1; }
.k3 { grid-column: 2; grid-row: 2; }
.k4 { grid-column: 3; grid-row: 1 / span 2; }
.k2 img, .k3 img { aspect-ratio: 16 / 10; }

.more { background: var(--white); padding-block: var(--sect); }
.more .wrap { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.m-text p { font-size: 18px; margin: 0 0 24px; max-width: 44ch; }

.reviews { padding-block: var(--sect); }
.rev-grid { display: grid; grid-template-columns: 3fr 2fr 2fr; gap: 28px; align-items: start; }
.rev-grid .review { border-top: 3px solid var(--cherry); padding-top: 18px; }
.rev-grid .review p { margin: 0 0 10px; font-size: 16px; }
.rev-grid figcaption b { color: var(--dark); }

.license { padding-block: var(--sect); background: var(--white); }
.license .wrap { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(28px, 5vw, 72px); }
.record { margin: 0; border-top: 2px solid var(--dark); }
.record div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.record dt { color: var(--muted); font-size: 15px; }
.record dd { margin: 0; }
.record .hi dd { font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--cherry); }

.reach { background: var(--cherry); color: var(--white); padding-block: clamp(48px, 7vw, 80px); }
.reach .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.reach h2 { margin-bottom: 6px; }
.reach .muted { color: var(--white); margin: 0; }
.big { margin: 0; font-family: var(--serif); font-size: clamp(30px, 4vw, 46px); font-weight: 700; }
.big a { color: var(--white); text-decoration: none; }

.letter { padding-block: var(--sect); }
.letter .wrap { max-width: 700px; }
.letter p { font-family: var(--serif); font-size: 19px; line-height: 1.7; margin: 0 0 18px; }
.sign { margin-top: 26px !important; font-weight: 700; }

footer { background: var(--dark); color: var(--paper); padding-block: 56px 96px; }
footer .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
footer h4 { margin: 0 0 8px; font-family: var(--serif); font-size: 18px; }
footer p { margin: 0 0 4px; color: var(--mutedD); font-size: 15px; }
footer a { color: var(--blush); }
footer .legal { grid-column: 1 / -1; margin-top: 18px; padding-top: 18px; border-top: 1px solid #47322A; font-size: 13px; line-height: 1.6; }

.callbar { display: none; }

@media (max-width: 900px) {
  .more .wrap, .license .wrap, .rev-grid { grid-template-columns: 1fr; }
  .k-grid { grid-template-columns: 1fr 1fr; grid-auto-flow: dense; }
  .k1, .k4 { grid-row: auto; grid-column: auto; }
  .k2, .k3 { grid-column: 1 / -1; grid-row: auto; }
  .k1 img, .k4 img { aspect-ratio: 3 / 4; }
  .hero-photo img { max-height: 420px; }
}
@media (max-width: 600px) {
  footer .wrap { grid-template-columns: 1fr; }
  .record div { grid-template-columns: 1fr; gap: 2px; }
  .mast .tel { display: none; }
  .callbar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--dark);
  }
  .callbar a { display: block; text-align: center; background: var(--cherry); color: var(--white);
    font-weight: 700; text-decoration: none; border-radius: 3px; padding: 14px; }
}
