/* Kyle Buller Carpentry Service - Morro Bay - spec build #59
   ---------------------------------------------------------------------------
   PALETTE SAMPLED OFF THE REDWOOD STAIN ON HIS PERGOLA (p08): median of the
   saturated mid-tone pixels = #A54A2E, used as sampled (5.39 on cream).
   Sky #DDE9F2 is the sky behind his own decks. No logo exists.

   Structure, unlike #46-#58: a full-bleed pergola photo with a floating
   cream CARD over its lower left (not a scrim); the first review set large on
   sky blue; an asymmetric five-photo grid; two reviews; the license.
   Slab-ish heavy sans, square corners. No eyebrows.

   ⚠ EVERY RATIO BELOW WAS COMPUTED, NOT ESTIMATED.
     #A54A2E red on cream 5.39 | on white 5.80 | white on it 5.80
     #8A3A22 redD on cream 7.20
     #1E1A17 ink on cream 16.05 | on sky 14.00
     #5D544E muted on cream 6.86
     #F0B9A3 redL on char 8.88 | cream on char 14.22   DARK GROUNDS ONLY
   --------------------------------------------------------------------------- */

:root {
  --red:   #A54A2E;
  --redD:  #8A3A22;
  --redL:  #F0B9A3;   /* DARK GROUNDS ONLY */
  --cream: #FAF6F0;
  --sky:   #DDE9F2;
  --white: #FFFFFF;
  --ink:   #1E1A17;
  --char:  #2A2420;
  --muted: #5D544E;
  --rule:  #E4DBD0;
  --wide: 1180px;
  --sect: clamp(64px, 9vw, 108px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  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(--red); color: var(--white); }
:root            { caret-color: var(--red); accent-color: var(--red); }
:focus-visible   { outline: 2px solid var(--redD); outline-offset: 3px; }
a                { color: var(--redD); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.tabular, time, dd { font-variant-numeric: tabular-nums; }
@supports (scrollbar-color: auto) {
  html { scrollbar-color: var(--red) var(--cream); 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 { letter-spacing: -0.03em; line-height: 1.05; font-weight: 900; }
h2 { font-size: clamp(28px, 3.6vw, 42px); margin: 0 0 12px; }
.intro { color: var(--muted); max-width: 60ch; margin: 0 0 30px; }

.btn { display: inline-block; background: var(--red); color: var(--white); font-weight: 800;
  text-decoration: none; padding: 15px 26px; white-space: nowrap; }
.btn:hover { background: var(--redD); }

/* ── Masthead ─────────────────────────────────────────────────────────── */
.mast { background: var(--char); color: var(--cream); }
.mast .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center;
  justify-content: space-between; padding-block: 14px; }
.mark { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; }
.mark span { display: block; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--redL); }
.mast .tel { color: var(--cream); font-weight: 700; text-decoration: none; white-space: nowrap; }

/* ── Hero: photo with a floating card ─────────────────────────────────── */
.hero { position: relative; min-height: 640px; background: var(--char); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero-card { position: absolute; left: max(24px, calc((100vw - var(--wide)) / 2 + 24px)); bottom: 48px;
  max-width: 520px; background: var(--cream); padding: clamp(24px, 3vw, 40px); border-top: 6px solid var(--red); }
.hero h1 { font-size: clamp(32px, 4.4vw, 54px); margin: 0 0 16px; }
.lede { font-size: 18px; margin: 0 0 22px; }
.hours { margin: 12px 0 0; font-size: 15px; color: var(--muted); }

/* ── Lead quote ───────────────────────────────────────────────────────── */
.quote-lead { background: var(--sky); padding-block: var(--sect); }
.review { margin: 0; }
.review blockquote { margin: 0; }
.big-q p { font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.4; margin: 0; max-width: 34ch; }
.review figcaption { margin-top: 16px; font-size: 15px; color: var(--muted); }
.review figcaption b { color: var(--ink); }

/* ── Work grid ────────────────────────────────────────────────────────── */
.work { padding-block: var(--sect); }
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.work-grid figure { display: flex; flex-direction: column; }
.work-grid img { width: 100%; height: 100%; object-fit: cover; flex: 1; min-height: 0; }
.work-grid figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.w1 { grid-column: 1 / 6; grid-row: span 2; }
.w2 { grid-column: 6 / 13; }
.w2 img { aspect-ratio: 16 / 9; }
.w3 { grid-column: 6 / 9; }
.w4 { grid-column: 9 / 13; }
.w3 img, .w4 img { aspect-ratio: 4 / 3; }
.w5 { grid-column: 1 / 13; }
.w5 img { aspect-ratio: 21 / 8; height: auto; flex: none; object-position: 50% 60%; }

/* ── Reviews ──────────────────────────────────────────────────────────── */
.reviews { background: var(--white); padding-block: var(--sect); }
.reviews .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.reviews .review { border-left: 4px solid var(--red); padding-left: 22px; }
.reviews .review p { font-size: 18px; margin: 0; }

/* ── License ──────────────────────────────────────────────────────────── */
.license { padding-block: var(--sect); }
.license .wrap { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(28px, 5vw, 72px); }
.record { margin: 0; border-top: 3px solid var(--ink); }
.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-weight: 900; font-size: 21px; color: var(--redD); }

/* ── Reach ────────────────────────────────────────────────────────────── */
.reach { background: var(--red); 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-size: clamp(30px, 4vw, 46px); font-weight: 900; letter-spacing: -0.02em; }
.big a { color: var(--white); text-decoration: none; }

/* ── Letter ───────────────────────────────────────────────────────────── */
.letter { padding-block: var(--sect); }
.letter .wrap { max-width: 700px; }
.letter p { font-size: 18px; margin: 0 0 18px; }
.sign { margin-top: 26px !important; font-weight: 700; }

/* ── Footer ───────────────────────────────────────────────────────────── */
footer { background: var(--char); color: var(--cream); padding-block: 56px 96px; }
footer .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
footer h4 { margin: 0 0 8px; font-size: 17px; }
footer p { margin: 0 0 4px; color: var(--redL); font-size: 15px; }
footer a { color: var(--redL); }
footer .legal { grid-column: 1 / -1; margin-top: 18px; padding-top: 18px; border-top: 1px solid #45392F; font-size: 13px; line-height: 1.6; color: #D8CCC2; }

.callbar { display: none; }

@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero > img { position: static; height: 360px; }
  .hero-card { position: static; max-width: none; }
  .license .wrap, .reviews .wrap { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .w1, .w2, .w3, .w4, .w5 { grid-column: auto; grid-row: auto; }
  .w1, .w2, .w5 { grid-column: 1 / -1; }
  .w1 img { aspect-ratio: 4 / 5; }
  .w5 img { aspect-ratio: 4 / 3; }
}
@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(--char);
  }
  .callbar a { display: block; text-align: center; background: var(--red); color: var(--white);
    font-weight: 800; text-decoration: none; padding: 14px; }
}
