/* Coastal Handyman Service - Morro Bay - spec build #57
   ---------------------------------------------------------------------------
   PALETTE: sand #CDBDAA and dark #2F2418 SAMPLED off the pebble backsplash he
   set (p09, medians of the light pebbles and the dark counter). The sea teal
   #2C6E73 is CHOSEN, not sampled - the only teal in his photos is a
   customer's own "flip flop" sign - and the letter says so.

   Structure, unlike #46-#56: a serif, editorial page. Split hero with the
   kitchen; the long review printed large as the SECOND section (the review
   is the best thing he has); a room-by-room mosaic; railings and doors; a
   second short review; the license. Soft 14px radius. No eyebrows.

   ⚠ EVERY RATIO BELOW WAS COMPUTED, NOT ESTIMATED.
     #2F2418 dark on shell 13.48 | on sand 8.26 | shell on dark 13.48
     #2C6E73 sea on shell 5.21 | white on sea 5.86
     #9FD0D2 seaL on dark 8.96                  DARK GROUNDS ONLY
     #5E5347 muted on shell 6.66 (on sand 4.09: NOT used on sand)
   --------------------------------------------------------------------------- */

:root {
  --shell: #F6F1EA;
  --sand:  #CDBDAA;
  --dark:  #2F2418;
  --sea:   #2C6E73;
  --seaL:  #9FD0D2;   /* DARK GROUNDS ONLY */
  --muted: #5E5347;
  --white: #FFFFFF;
  --rule:  #E2D8CA;
  --r: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --wide: 1160px;
  --sect: clamp(64px, 9vw, 108px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--shell); color: var(--dark);
  font-family: ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  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(--sea); color: var(--white); }
:root            { caret-color: var(--sea); accent-color: var(--sea); }
:focus-visible   { outline: 2px solid var(--sea); outline-offset: 3px; }
a                { color: var(--sea); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.tabular, time, dd { font-variant-numeric: tabular-nums; }
@supports (scrollbar-color: auto) {
  html { scrollbar-color: var(--sea) var(--shell); 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 12px; }
.intro { color: var(--muted); max-width: 60ch; margin: 0 0 30px; }

.btn { display: inline-block; background: var(--sea); color: var(--white); font-weight: 700;
  text-decoration: none; padding: 14px 24px; border-radius: 999px; white-space: nowrap; }
.btn:hover { background: #22585C; }

/* ── Masthead ─────────────────────────────────────────────────────────── */
.mast .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center;
  justify-content: space-between; padding-block: 20px; border-bottom: 1px solid var(--rule); }
.mark { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 700; line-height: 1.15; }
.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(--dark); font-weight: 700; text-decoration: none; border: 1.5px solid var(--dark);
  border-radius: 999px; padding: 9px 18px; white-space: nowrap; }
.mast .tel:hover { background: var(--dark); color: var(--shell); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(40px, 6vw, 80px); }
.hero .wrap { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); margin: 0 0 20px; }
.lede { font-size: 19px; max-width: 42ch; margin: 0 0 26px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0; }
.actions span { color: var(--muted); font-size: 15px; }
.hero-photo img { border-radius: var(--r); }

/* ── Lead review ──────────────────────────────────────────────────────── */
.review-lead { background: var(--dark); color: var(--shell); padding-block: var(--sect); }
.review { margin: 0; }
.review blockquote { margin: 0; }
.review-lead .review p { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.55; margin: 0 0 16px; max-width: 58ch; }
.review figcaption { margin-top: 10px; font-size: 15px; color: var(--sand); }
.review figcaption b { color: var(--seaL); }

/* ── Rooms ────────────────────────────────────────────────────────────── */
.rooms { padding-block: var(--sect); }
.room-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.room-grid figure { display: flex; flex-direction: column; }
.room-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); flex: 1; min-height: 0; }
.room-grid figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.r1 { grid-column: 1 / 5; grid-row: 1 / span 2; }
.r2 { grid-column: 5 / 10; grid-row: 1; }
.r2 img { aspect-ratio: 3 / 2; }
.r5 { grid-column: 10 / 13; grid-row: 1; }
.r5 img { aspect-ratio: 1; }
.r3 { grid-column: 5 / 9; grid-row: 2; }
.r4 { grid-column: 9 / 13; grid-row: 2; }
.r3 img, .r4 img { aspect-ratio: 4 / 3; }

/* ── Rails ────────────────────────────────────────────────────────────── */
.rails { background: var(--white); padding-block: var(--sect); }
.rails .wrap { display: grid; grid-template-columns: 4fr 5fr 3fr; gap: 20px 28px; align-items: end; }
.rails-text { align-self: center; }
.rails-text p { font-size: 18px; margin: 0; }
.rails img { border-radius: var(--r); }
.rails figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* ── Second review ────────────────────────────────────────────────────── */
.review-b { padding-block: clamp(48px, 7vw, 80px); }
.review.small { border-left: 4px solid var(--sea); padding-left: 24px; max-width: 760px; }
.review.small p { font-family: var(--serif); font-size: 21px; margin: 0; }
.review.small figcaption { color: var(--muted); }
.review.small figcaption b { color: var(--dark); }

/* ── License ──────────────────────────────────────────────────────────── */
.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(--sea); }

/* ── Reach ────────────────────────────────────────────────────────────── */
.reach { background: var(--sea); 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, 44px); font-weight: 700; }
.big a { color: var(--white); text-decoration: none; }

/* ── Letter ───────────────────────────────────────────────────────────── */
.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 ───────────────────────────────────────────────────────────── */
footer { background: var(--dark); color: var(--shell); 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(--sand); font-size: 15px; }
footer a { color: var(--seaL); }
footer .legal { grid-column: 1 / -1; margin-top: 18px; padding-top: 18px; border-top: 1px solid #4A3B2B; font-size: 13px; line-height: 1.6; }

.callbar { display: none; }

@media (max-width: 900px) {
  .hero .wrap, .license .wrap { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .room-grid { grid-template-columns: 1fr 1fr; }
  .r1, .r2, .r3, .r4, .r5 { grid-column: auto; grid-row: auto; }
  .r2 { grid-column: 1 / -1; }
  .r1 { grid-column: 1 / -1; } .r1 img { aspect-ratio: 1; object-position: 50% 40%; }
  .rails .wrap { grid-template-columns: 3fr 2fr; }
  .rails-text { grid-column: 1 / -1; }
}
@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(--sea); color: var(--white);
    font-weight: 700; text-decoration: none; border-radius: 999px; padding: 14px; }
}
