/* S.B. Finish - Buellton / Solvang - spec build #50
   ---------------------------------------------------------------------------
   PALETTE: TWO SOURCES, BOTH HIS, AND NEITHER IS A LOGO COLOR.
   - The ink and the type come off his printed business card (p06): black
     slab-serif caps, a script line, ornamental rules, on white. The card has
     no color at all, so the masthead copies its STRUCTURE (motto / name /
     script line) rather than a hue.
   - The accent is SAMPLED off his stained front door (p05): median of the
     saturated mid-dark pixels in the door panel, #6A3022, hue ~12.
     ⚠ Not white-balanced: there is no neutral reference in that frame, and
     the stucco around it is genuinely warm. Treat it as "his stain, as
     photographed", not a measured pigment.

   Structure, deliberately unlike the last four builds:
     #46 So-Cal       type-led on warm paper, reviews grouped by room
     #48 Coastal Ridge black and orange, reviewer's sentence as the hero
     #49 Armorcoat    indigo hero with the license as a mono stat row
     #50 S.B. Finish  centered card-style masthead in a serif, split hero with
                      the kitchen, a dark BEFORE/AFTER band (his own two photos
                      of one fireplace wall), the card's service list as a
                      definition list beside the card itself, a door + text
                      split, then one full-bleed exterior. No reviews section
                      (one review, no text). No eyebrows.

   ⚠ EVERY RATIO BELOW WAS COMPUTED, NOT ESTIMATED.
     #1C1815 ink      on paper 15.53 | on white 17.63
     #6A3022 stain    on paper  8.98 | on white 10.20 | white on it 10.20
     #241B17 espresso paper on it 14.86
     #E6B9A3 stainL   on espresso 9.51 | on ink 9.94    DARK GROUNDS ONLY
     #5E554D muted    on paper  6.41 | on white 7.29
     #B9AEA3 mutedD   on espresso 7.75                  DARK GROUNDS ONLY
   --------------------------------------------------------------------------- */

:root {
  --ground:  #FFFFFF;
  --paper:   #F5F0E6;
  --ink:     #1C1815;
  --stain:   #6A3022;
  --stainL:  #E6B9A3;   /* DARK GROUNDS ONLY */
  --espresso:#241B17;
  --muted:   #5E554D;
  --mutedD:  #B9AEA3;   /* DARK GROUNDS ONLY */
  --rule:    #DCD3C4;
  --rule-d:  #43362F;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --slab:  Rockwell, "Rockwell Nova", "Roboto Slab", "Clarendon", Georgia, serif;
  --sans:  ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wide: 1180px;
  --sect: clamp(64px, 9vw, 112px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -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(--stain); color: var(--ground); }
:root            { caret-color: var(--stain); accent-color: var(--stain); }
:focus-visible   { outline: 2px solid var(--stain); outline-offset: 3px; }
a                { color: var(--stain); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.tabular, time, dd { font-variant-numeric: tabular-nums; }
@supports (scrollbar-color: auto) {
  html { scrollbar-color: var(--stain) 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.12; }
h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 0 0 14px; }
.intro { color: var(--muted); max-width: 58ch; margin: 0 0 32px; }

.btn {
  display: inline-block; background: var(--stain); color: #fff; font-weight: 700;
  text-decoration: none; border-radius: 3px; padding: 14px 24px; white-space: nowrap;
}
.btn:hover { background: #56261B; }

/* ── Masthead: the business card's own structure ──────────────────────── */
.mast { background: var(--ground); border-bottom: 1px solid var(--rule); }
.mast .wrap { position: relative; text-align: center; padding-block: 26px 22px; }
.motto {
  margin: 0; font-family: var(--serif); font-size: 14px; font-weight: 700;
  color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 12px;
}
.motto::before, .motto::after { content: ""; width: 34px; height: 1px; background: currentColor; }
.mark {
  margin: 4px 0 0; font-family: var(--slab); font-weight: 700; font-size: clamp(38px, 6vw, 56px);
  line-height: 1; letter-spacing: 0.01em; text-transform: uppercase;
}
.script {
  margin: 6px 0 0; font-family: var(--serif); font-style: italic; font-size: 19px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.script::before, .script::after { content: ""; flex: 0 1 90px; height: 1px; background: var(--ink); }
.mast .tel {
  position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none;
  border: 1px solid var(--ink); border-radius: 3px; padding: 9px 16px;
}
.mast .tel:hover { background: var(--ink); color: #fff; }

/* ── Hero: type left, the kitchen right ───────────────────────────────── */
.hero { background: var(--paper); padding-block: clamp(40px, 6vw, 80px); }
.hero .wrap { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 { font-size: clamp(36px, 5vw, 58px); margin: 0 0 20px; }
.lede { font-size: 19px; max-width: 40ch; margin: 0 0 28px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin: 0; }
.hours { color: var(--muted); font-size: 15px; }
.hero-photo img { border-radius: 2px; }

/* ── Before / after band ──────────────────────────────────────────────── */
.pair { background: var(--espresso); color: var(--paper); padding-block: var(--sect); }
.pair .intro { color: var(--mutedD); }
.pair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pair figcaption { margin-top: 12px; color: var(--mutedD); font-size: 15px; }
.pair figcaption b { color: var(--stainL); }

/* ── Services: the card's list, beside the card ───────────────────────── */
.services { padding-block: var(--sect); }
.services .wrap { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.card img { border: 1px solid var(--rule); border-radius: 3px; }
.svc { margin: 0; border-top: 2px solid var(--ink); }
.svc div { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.svc dt { font-family: var(--serif); font-weight: 700; font-size: 23px; line-height: 1.25; }
.svc dd { margin: 6px 0 0; color: var(--muted); }

/* ── Wood: door and text ──────────────────────────────────────────────── */
.wood { background: var(--paper); padding-block: var(--sect); }
.wood .wrap { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.w-door figcaption { margin-top: 10px; color: var(--muted); font-size: 15px; }
.w-text p { font-size: 19px; max-width: 44ch; margin: 0; }

/* ── Outside: full bleed ──────────────────────────────────────────────── */
.outside img { width: 100%; max-height: 720px; object-fit: cover; }
.outside figcaption { padding-block: 14px 0; color: var(--muted); font-size: 15px; }

/* ── License record ───────────────────────────────────────────────────── */
.license { padding-block: var(--sect); }
.license .wrap { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(28px, 5vw, 72px); }
.record { margin: 0; border-top: 2px solid var(--ink); }
.record div { display: grid; grid-template-columns: 190px 1fr; gap: 16px; padding: 13px 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: 21px; color: var(--stain); }

/* ── Reach ────────────────────────────────────────────────────────────── */
.reach { background: var(--paper); padding-block: clamp(52px, 7vw, 84px); border-top: 1px solid var(--rule); }
.reach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: end; }
.reach-grid p { margin: 0 0 10px; }
.big { font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 4vw, 42px); }
.big a { color: var(--ink); text-decoration: none; }

/* ── Letter ───────────────────────────────────────────────────────────── */
.letter { padding-block: var(--sect); background: var(--ground); }
.letter .wrap { max-width: 720px; }
.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 ───────────────────────────────────────────────────────────── */
footer { background: var(--espresso); 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(--stainL); }
footer .legal { grid-column: 1 / -1; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--rule-d); font-size: 13px; line-height: 1.6; }

/* ── Mobile call bar ──────────────────────────────────────────────────── */
.callbar { display: none; }

@media (max-width: 860px) {
  .hero .wrap, .services .wrap, .wood .wrap, .license .wrap { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .w-door { max-width: 360px; }
  .mast .tel { position: static; transform: none; display: inline-block; margin-top: 14px; }
}
@media (max-width: 600px) {
  .pair-grid, .reach-grid, 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(--espresso);
  }
  .callbar a { display: block; text-align: center; background: var(--stain); color: #fff;
    font-weight: 700; text-decoration: none; border-radius: 3px; padding: 14px; }
  .script::before, .script::after { flex-basis: 36px; }
}
