/* Island House showcase — shared styles. Used by every page via <link>. */
:root{
  --ink:#2b2620; --muted:#6b6257; --line:#e0d8cb; --paper:#f7f3ec; --card:#fffdf9;
  --accent:#7c2d2d; --accent2:#b08640; --maxw:1080px;
  --prov-original:#9a8f79; --prov-new:#2f7d4f; --prov-corrected:#b23b3b; --prov-tradition:#c79a3a;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Georgia,'Times New Roman',serif;color:var(--ink);background:var(--paper);line-height:1.6}
h1,h2,h3,nav,.btn,.eyebrow,.crumb,.badge{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Helvetica,Arial,sans-serif}
a{color:var(--accent)}
img{max-width:100%;height:auto;display:block}

/* header / nav (injected by site.js) */
header.site{position:sticky;top:0;z-index:30;background:rgba(43,38,32,.97);color:#f7f3ec}
.bar{max-width:var(--maxw);margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:12px 20px;gap:16px}
.brand{font-weight:700;letter-spacing:.02em;color:#f7f3ec;text-decoration:none;font-size:16px}
.navwrap{display:flex;flex-wrap:wrap;justify-content:flex-end}
nav.mainnav{display:flex;flex-wrap:wrap;justify-content:flex-end}
nav.mainnav .item{position:relative}
nav.mainnav a{color:#e7ddca;text-decoration:none;font-size:13.5px;margin-left:16px;white-space:nowrap;display:inline-block;padding:4px 0}
nav.mainnav a:hover{color:#fff}
nav.mainnav .sub{display:none;position:absolute;right:0;top:100%;background:#2b2620;border:1px solid #4a4239;border-radius:8px;padding:8px 0;min-width:230px;box-shadow:0 10px 30px #0005}
nav.mainnav .item:hover .sub{display:block}
nav.mainnav .sub a{display:block;margin:0;padding:7px 16px;font-size:13px}
nav.mainnav .sub a:hover{background:#3a332a}

/* generic layout */
.hero{position:relative;min-height:64vh;display:flex;align-items:flex-end;background:linear-gradient(#0000,#000a),#3a3228;color:#fff}
.hero.short{min-height:40vh}
.hero-inner{position:relative;max-width:var(--maxw);margin:0 auto;padding:44px 20px;width:100%}
.hero h1{font-size:clamp(28px,6vw,54px);margin:0 0 8px;font-weight:700}
.hero p{max-width:640px;font-size:18px;color:#f0e9db}
section{padding:52px 20px}
.wrap{max-width:var(--maxw);margin:0 auto}
.crumb{font-size:12px;color:var(--muted);margin:0 0 14px}
.crumb a{color:var(--muted)}
.eyebrow{text-transform:uppercase;letter-spacing:.18em;font-size:12px;color:var(--accent2);margin:0 0 6px}
h2.section-title{font-size:clamp(24px,4vw,36px);margin:0 0 20px;font-weight:700}
.lead{font-size:19px}
.two{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:center}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.btn{display:inline-block;background:var(--accent);color:#fff;text-decoration:none;padding:11px 20px;border-radius:6px;font-size:14px;margin-top:10px}
.btn.gold{background:var(--accent2)}
.divider{background:var(--ink);color:#fff;text-align:center}
.divider h2{font-family:-apple-system,sans-serif;letter-spacing:.14em;font-size:clamp(24px,5vw,48px);margin:0}
.card{background:var(--card);border:1px solid var(--line);border-radius:10px;overflow:hidden;display:flex;flex-direction:column}
.card .body{padding:14px 16px}
.card h3{font-size:17px;margin:0 0 4px}
.card .date{font-size:12px;color:var(--muted);font-family:-apple-system,sans-serif}

/* image placeholders */
.ph{background:repeating-linear-gradient(45deg,#efe7d8,#efe7d8 14px,#e8dfcd 14px,#e8dfcd 28px);
    border:1px dashed #b9ad96;border-radius:8px;display:flex;align-items:center;justify-content:center;
    text-align:center;color:#7a6f5c;min-height:200px;padding:16px;font-family:-apple-system,sans-serif;font-size:13px}
.ph small{display:block;color:#9a8f79;margin-top:6px;font-size:11px;word-break:break-all}
.ph.tall{min-height:320px}
.card .ph{min-height:170px;border:0;border-radius:0}

/* footer */
footer.site{background:var(--ink);color:#e7ddca;padding:36px 20px;font-family:-apple-system,sans-serif;font-size:14px}
footer.site .wrap{display:flex;flex-wrap:wrap;gap:24px;justify-content:space-between}

/* status badge for stubs */
.badge{display:inline-block;font-size:11px;letter-spacing:.06em;text-transform:uppercase;padding:3px 9px;border-radius:20px;background:#efe7d8;color:#7a6f5c;border:1px solid #d8cdb8}

/* ===== PROVENANCE SYSTEM ===== */
/* Every content block can carry data-prov="original|new|corrected|tradition" and data-cite="…".
   Dots are HIDDEN by default and only shown in edit mode (?edit=1). */
[data-prov]{position:relative}
.prov-dot{display:none}
body.edit-mode [data-prov]{outline:1px dotted #cbbfa6;outline-offset:4px}
body.edit-mode .prov-dot{display:inline-block;width:11px;height:11px;border-radius:50%;margin-right:8px;vertical-align:middle;cursor:help}
.prov-dot[data-state="original"]{background:var(--prov-original)}
.prov-dot[data-state="new"]{background:var(--prov-new)}
.prov-dot[data-state="corrected"]{background:var(--prov-corrected)}
.prov-dot[data-state="tradition"]{background:var(--prov-tradition)}
#prov-toggle{position:fixed;right:16px;bottom:16px;z-index:50;background:var(--ink);color:#f7f3ec;border:0;
  border-radius:24px;padding:10px 16px;font-family:-apple-system,sans-serif;font-size:13px;cursor:pointer;box-shadow:0 6px 20px #0004}
#prov-legend{position:fixed;right:16px;bottom:64px;z-index:50;background:var(--card);border:1px solid var(--line);
  border-radius:10px;padding:12px 14px;font-family:-apple-system,sans-serif;font-size:12px;display:none;box-shadow:0 8px 24px #0003}
body.edit-mode #prov-legend{display:block}
#prov-legend .row{display:flex;align-items:center;gap:8px;padding:3px 0}
#prov-legend .d{width:11px;height:11px;border-radius:50%}

/* ===== REAL PHOTOGRAPHY ===== */
/* full-bleed hero image, sitting under the existing dark gradient so white type stays legible */
.hero-media{position:absolute;inset:0;overflow:hidden;background:#3a3228}
.hero-media img{width:100%;height:100%;object-fit:cover;object-position:50% 42%}
.hero-media::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,rgba(0,0,0,.40) 0%,rgba(0,0,0,.10) 26%,rgba(0,0,0,.42) 58%,rgba(0,0,0,.72) 82%,rgba(0,0,0,.86) 100%)}
.hero-inner{z-index:1}
.hero-inner h1,.hero-inner p{text-shadow:0 1px 22px rgba(0,0,0,.55),0 1px 3px rgba(0,0,0,.45)}

/* figures — used for the intro image and every gallery tile */
figure.fig{margin:0}
figure.fig img{width:100%;border-radius:8px;background:#efe7d8}
figure.fig figcaption{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Helvetica,Arial,sans-serif;
  font-size:12.5px;color:var(--muted);margin-top:8px;line-height:1.45}
a.zoom{display:block;position:relative;overflow:hidden;border-radius:8px;cursor:zoom-in;
  box-shadow:0 1px 2px rgba(43,38,32,.10)}
a.zoom img{transition:transform .5s cubic-bezier(.2,.7,.3,1)}
a.zoom::after{content:"";position:absolute;inset:0;border-radius:8px;
  box-shadow:inset 0 0 0 1px rgba(43,38,32,.12);transition:box-shadow .3s}
@media(hover:hover){a.zoom:hover img{transform:scale(1.035)}
  a.zoom:hover::after{box-shadow:inset 0 0 0 2px var(--accent2)}}
a.zoom:focus-visible{outline:3px solid var(--accent2);outline-offset:3px}
@media(prefers-reduced-motion:reduce){a.zoom img{transition:none}a.zoom:hover img{transform:none}}

/* ===== INNER-PAGE FIGURES ===== */
/* two or more figures in a row become a responsive grid; a lone figure stays full width */
.figgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px;margin:22px 0 4px}
.figgrid.one{grid-template-columns:1fr;max-width:820px}
figure.fig.doc a.zoom{background:var(--card)}
figure.fig.doc img{border:1px solid var(--line)}

/* a document figure carries its own download link */
.doclinks{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:10px}
.doclinks .btn{margin:0}
.doclinks .meta{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Helvetica,Arial,sans-serif;
  font-size:12px;color:var(--muted)}

/* image we know is lost — say so plainly rather than pretending */
.noimg{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;
  min-height:260px;padding:28px 24px;border:1px dashed var(--line);border-radius:8px;background:var(--card)}
.noimg .mark{width:34px;height:34px;border-radius:50%;border:1px solid var(--line);margin-bottom:14px;
  display:flex;align-items:center;justify-content:center;color:var(--accent2);font-size:16px}
.noimg .t{font-size:15px;color:var(--ink);margin-bottom:6px}
.noimg .s{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Helvetica,Arial,sans-serif;
  font-size:12.5px;color:var(--muted);line-height:1.55;max-width:34ch}

/* ===== LIGHTBOX (progressive — without JS the links just open the image) ===== */
.lb{position:fixed;inset:0;z-index:100;background:rgba(24,21,17,.94);display:flex;align-items:center;
  justify-content:center;padding:clamp(12px,4vw,48px);opacity:0;transition:opacity .22s}
.lb.open{opacity:1}
.lb figure{margin:0;max-width:100%;max-height:100%;display:flex;flex-direction:column;align-items:center;gap:12px}
.lb img{max-width:100%;max-height:78vh;width:auto;height:auto;border-radius:4px;box-shadow:0 24px 70px rgba(0,0,0,.6)}
.lb figcaption{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Helvetica,Arial,sans-serif;
  font-size:13.5px;color:#e7ddca;max-width:62ch;text-align:center;line-height:1.5}
.lb button{position:absolute;background:rgba(247,243,236,.10);color:#f7f3ec;border:1px solid rgba(247,243,236,.28);
  border-radius:50%;width:46px;height:46px;font-size:20px;line-height:1;cursor:pointer;
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Helvetica,Arial,sans-serif}
.lb button:hover{background:rgba(247,243,236,.20)}
.lb button:focus-visible{outline:3px solid var(--accent2);outline-offset:2px}
.lb .lb-close{top:16px;right:16px}
.lb .lb-prev{left:16px;top:50%;transform:translateY(-50%)}
.lb .lb-next{right:16px;top:50%;transform:translateY(-50%)}
.lb .lb-count{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);color:#b4a992;
  font-family:-apple-system,sans-serif;font-size:12px;letter-spacing:.08em}
body.lb-lock{overflow:hidden}
@media(max-width:560px){.lb .lb-prev,.lb .lb-next{top:auto;bottom:16px;transform:none}
  .lb .lb-prev{left:20px}.lb .lb-next{right:20px}.lb .lb-count{bottom:30px}}

@media(max-width:760px){.two,.grid3{grid-template-columns:1fr}nav.mainnav{display:none}
  /* on a narrow crop, favour the house rather than the castle wall */
  .hero-media img{object-position:34% 50%}}

/* ===== HOME PAGE (index.html) — migrated from its old inline <style>, scoped to
   body.home so nothing else changes. Preserves the home hero + sections exactly. ===== */
.home .hero{min-height:72vh}
.home .hero .ph{position:absolute;inset:0;min-height:0;border:0;border-radius:0}
.home .hero h1{font-size:clamp(30px,6vw,58px);font-family:Georgia,'Times New Roman',serif}
.home section{padding:56px 20px}
.home h2.section-title{margin:0 0 22px}
.home .ph{min-height:220px}
.home .ph.tall{min-height:340px}
.home .divider h2{font-size:clamp(26px,5vw,52px)}
.home .gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.home .news{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.home .news .card .ph,.home .card .ph{min-height:180px;border:0;border-radius:0}
.home blockquote.curtis{font-style:italic;font-size:17px;line-height:1.75;border-left:3px solid var(--accent2);
      margin:22px 0 0;padding:6px 0 6px 22px;color:#3a332a}
.home .consultants{columns:2;column-gap:40px;font-size:15px}
.home .consultants div{break-inside:avoid;padding:5px 0;border-bottom:1px solid var(--line)}
.home .consultants b{font-family:-apple-system,sans-serif;font-size:13px;color:var(--muted);display:block;text-transform:uppercase;letter-spacing:.06em}
.home .note{background:#fbf6e9;border:1px solid var(--accent2);border-radius:8px;padding:10px 14px;font-family:-apple-system,sans-serif;font-size:12.5px;color:#6b5a2e;margin-top:14px}
@media(max-width:760px){.home .gallery,.home .news{grid-template-columns:1fr}.home .consultants{columns:1}}

.card>img{display:block;width:100%;height:190px;object-fit:cover}
.map-embed iframe{display:block}
