/* paulmccabe.com — shared styles */
:root {
  --sand: #f6f1e8;
  --paper: #fffdf9;
  --ink: #1d2a33;
  --muted: #5b6770;
  --sea: #1f5f74;
  --sea-dark: #164656;
  --dune: #c9a46a;
  --line: #e4dccd;
  --note-bg: #fff4d6;
  --note-ink: #7a5b12;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(29, 42, 51, .08);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sand: #121a1f; --paper: #172229; --ink: #ecebe6; --muted: #a8b3ba;
    --sea: #6fb7cc; --sea-dark: #8fcbdc; --dune: #d8b884; --line: #2a3841;
    --note-bg: #3a3218; --note-ink: #f1d79a; --shadow: 0 10px 30px rgba(0,0,0,.35);
  }
}
:root[data-theme="dark"] {
  --sand: #121a1f; --paper: #172229; --ink: #ecebe6; --muted: #a8b3ba;
  --sea: #6fb7cc; --sea-dark: #8fcbdc; --dune: #d8b884; --line: #2a3841;
  --note-bg: #3a3218; --note-ink: #f1d79a; --shadow: 0 10px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--sand); color: var(--ink);
  font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sea); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.brand small { display: block; font-family: var(--sans); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: .95rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--sea); }

/* hero */
.hero { position: relative; min-height: 72vh; display: grid; align-items: end; color: #fff; overflow: hidden; }
.hero.short { min-height: 56vh; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,25,35,.05) 30%, rgba(10,25,35,.72)); }
.hero .wrap { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 48px; width: 100%; }
.hero p.lede { font-size: 1.2rem; max-width: 640px; opacity: .95; }
.eyebrow { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--dune); margin-bottom: .6em; }
.hero .eyebrow { color: #f3dcae; }
.hero.plain { background: linear-gradient(135deg, #1f5f74, #2f7f8f 55%, #c9a46a); min-height: 50vh; }
.hero.plain::after { background: linear-gradient(180deg, transparent, rgba(10,25,35,.35)); }

/* buttons */
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.2em; }
.btn {
  display: inline-block; padding: .75em 1.25em; border-radius: 999px; font-weight: 600; font-size: .95rem;
  text-decoration: none; background: var(--sea); color: #fff; border: 2px solid var(--sea);
}
.btn:hover { background: var(--sea-dark); border-color: var(--sea-dark); }
.btn.ghost { background: transparent; color: var(--sea); }
.hero .btn.ghost { color: #fff; border-color: rgba(255,255,255,.8); }
.btn.light { background: #fff; color: #164656; border-color: #fff; }

/* sections */
section { padding: 72px 0; }
section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head p { color: var(--muted); }

.grid { display: grid; gap: 24px; }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card .img { aspect-ratio: 4 / 3; background: var(--line); position: relative; }
.card .img img { width: 100%; height: 100%; object-fit: cover; }
.card .img.placeholder { display: grid; place-items: center; background: linear-gradient(135deg, #2f7f8f, #c9a46a); color: #fff; font-family: var(--serif); font-size: 1.4rem; text-align: center; padding: 16px; }
.card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: .4em; flex: 1; }
.card .body p { color: var(--muted); font-size: .97rem; }
.card .body .btn { align-self: flex-start; margin-top: auto; }
.tag {
  position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.94); color: #164656;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .35em .7em; border-radius: 999px;
}
.tag.sale { background: var(--dune); color: #2a1e08; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; color: var(--ink); font-weight: 500; }
.facts span::before { content: "• "; color: var(--dune); }
.facts span:first-child::before { content: ""; }

.tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
section.alt .tile { background: var(--sand); }
.tile h3 { font-size: 1.12rem; margin-bottom: .35em; }
.tile p { color: var(--muted); font-size: .95rem; margin: 0; }
.tile .icon { font-size: 1.6rem; margin-bottom: .3em; }

/* stats bar */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: -44px auto 0; position: relative; z-index: 2; box-shadow: var(--shadow); }
.stats div { background: var(--paper); padding: 18px; text-align: center; }
.stats strong { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--sea); }
.stats span { font-size: .85rem; color: var(--muted); }

/* property detail */
.two-col { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.6fr 1fr; } }
.book-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); align-self: start; position: sticky; top: 84px; }
.book-box h3 { margin-bottom: .2em; }
.book-box .btn { display: block; text-align: center; margin-top: 10px; }
.book-box .small { font-size: .85rem; color: var(--muted); margin-top: 14px; }
ul.checks { list-style: none; padding: 0; margin: 0 0 1.2em; columns: 2 220px; column-gap: 28px; }
ul.checks li { padding-left: 1.5em; position: relative; margin-bottom: .45em; break-inside: avoid; }
ul.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--sea); font-weight: 700; }
table.beds { width: 100%; border-collapse: collapse; margin-bottom: 1.4em; font-size: .97rem; }
table.beds td { padding: .55em 0; border-bottom: 1px solid var(--line); }
table.beds td:last-child { text-align: right; color: var(--muted); }

.gallery { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(4, 1fr); } .gallery a:first-child { grid-column: span 2; grid-row: span 2; } }
.gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.04); }

blockquote.review { margin: 0; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--dune); border-radius: var(--radius); padding: 20px 22px; }
section.alt blockquote.review { background: var(--sand); }
blockquote.review p { font-family: var(--serif); font-size: 1.08rem; margin-bottom: .6em; }
blockquote.review cite { font-style: normal; font-size: .88rem; color: var(--muted); }

/* draft notes for Paul (delete before launch) */
.draft-note {
  background: var(--note-bg); color: var(--note-ink); border: 1px dashed currentColor; border-radius: 10px;
  padding: .7em 1em; font-size: .88rem; margin: 1em 0;
}
.draft-note::before { content: "DRAFT NOTE: "; font-weight: 700; letter-spacing: .04em; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--sea), #2f7f8f); color: #fff; border-radius: var(--radius); padding: 40px 28px; display: grid; gap: 16px; align-items: center; }
@media (min-width: 800px) { .cta-band { grid-template-columns: 1.4fr 1fr; padding: 48px; } }
.cta-band h2 { color: #fff; }
.cta-band p { opacity: .92; margin: 0; }

/* forms */
form.signup { display: grid; gap: 10px; }
form.signup input, form.signup textarea, form.signup select { font: inherit; padding: .7em .9em; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); width: 100%; }

footer.site-footer { padding: 48px 0 64px; color: var(--muted); font-size: .92rem; border-top: 1px solid var(--line); background: var(--paper); }
footer.site-footer .wrap { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
footer.site-footer h4 { font-family: var(--serif); color: var(--ink); font-size: 1.05rem; margin: 0 0 .5em; }
footer.site-footer a { color: var(--muted); }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { margin-bottom: .3em; }

/* ---- Polish pass 2026-12-02 ---- */
/* Hero text stays readable over bright photos and drawings */
.hero::after { background: linear-gradient(180deg, rgba(10,25,35,.10) 0%, rgba(10,25,35,.35) 45%, rgba(10,25,35,.82) 100%); }
.hero h1, .hero .lede, .hero .eyebrow, .hero p { text-shadow: 0 1px 3px rgba(0,0,0,.5), 0 0 18px rgba(0,0,0,.3); }
/* Cards: every photo cropped the same way */
.card .img { overflow: hidden; }
.card .img img { position: absolute; inset: 0; display: block; }
.card .img .tag { z-index: 1; }
/* A last card on its own row spans the row, photo beside the text */
@media (min-width: 900px) {
  .card.wide { grid-column: 1 / -1; flex-direction: row; }
  .card.wide .img { flex: 0 0 38%; aspect-ratio: auto; min-height: 260px; }
}
/* Line icons in place of emoji */
.tile .icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(31,95,116,.10); color: var(--sea); margin-bottom: .7em; font-size: 0; }
.tile .icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Footer */
footer.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; }
/* In-page jump links */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.4em; }
.jump a { font-size: .85rem; font-weight: 600; padding: .45em .9em; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--sea); text-decoration: none; }
.jump a:hover { border-color: var(--sea); }
/* Architect's drawings as hero: blueprint-style tint so white text reads cleanly */
.hero.drawing > img { filter: grayscale(1) contrast(1.1); opacity: .55; }
.hero.drawing { background: #164758; }
.hero.drawing::after { background: linear-gradient(180deg, rgba(22,71,88,.55), rgba(16,52,66,.92)); }
