/* ------------------------------------------------------------------
   _shared/base.css
   Brand-neutral foundation consumed by every archetype. Palette, type,
   and scale are driven entirely by CSS custom properties. The :root
   below is the DEFAULT token set; generate.js injects a per-prospect
   <style id="brand-tokens"> AFTER the stylesheet link, so brand tokens
   override these defaults (equal specificity, later wins). Veils and
   overlays are derived from --bg with color-mix so they track any palette.

   Also owns the frozen contact-form styles (the form markup is the single
   shared partial archetypes/_shared/contact-form.partial.html), the header,
   footer, buttons, make-it-mine CTA, reveal animation, and a11y utilities.
   ------------------------------------------------------------------ */

:root {
  /* palette (default: charcoal-sienna) */
  --bg: #0d0e0a;
  --surface: #161812;
  --surface-2: #1f221c;
  --text: #f4ede0;
  --text-soft: rgba(244,237,224,0.78);
  --text-mute: rgba(244,237,224,0.55);
  --text-dim: rgba(244,237,224,0.22);
  --accent: #c47753;
  --accent-deep: #a4623f;
  --highlight: #9bb47a;
  --on-accent: #f4ede0;
  --rule: rgba(244,237,224,0.14);
  /* type */
  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'Karla', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --display-clamp: clamp(2.6rem, 6.2vw, 5.4rem);
  --display-lh: 0.98;
  --display-ls: -0.015em;
  --base-size: 17px;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--base-size);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (min-width: 900px) { .wrap { padding: 0 56px; } }

.skip {
  position: absolute; left: -9999px;
  background: var(--text); color: var(--bg); padding: 10px 16px;
}
.skip:focus { left: 8px; top: 8px; z-index: 1000; }

/* ---------- Shared type primitives ---------- */
.kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 22px;
  display: flex; align-items: center; gap: 14px;
}
.kicker-line { display: inline-block; width: 32px; height: 1px; background: var(--accent); }
.kicker-center { justify-content: center; }

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--display-clamp);
  line-height: var(--display-lh);
  letter-spacing: var(--display-ls);
  color: var(--text);
  margin: 0 0 24px;
}
.display em { font-style: italic; color: var(--highlight); font-weight: 400; }

.section-lede { font-size: 1.05rem; color: var(--text-soft); max-width: 50ch; margin: 0; }
.section-head { margin: 0 0 56px; max-width: 640px; }
.section-head-center { margin: 0 auto 64px; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 0;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .15s ease;
  text-align: center;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--on-accent); transform: translateY(-1px); }
.btn-block { width: 100%; padding: 18px 32px; }
.btn-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text-soft); font-size: 14px; font-weight: 500; letter-spacing: 0.02em; }
.btn-link:hover { color: var(--accent); }

/* ---------- Header ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 50; padding: 0; }
.header-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; row-gap: 12px; padding-top: 28px; padding-bottom: 28px; }
.wordmark { display: flex; flex-direction: column; gap: 2px; line-height: 1.1; flex-shrink: 0; }
.wordmark-text { font-family: var(--serif); font-weight: 600; font-size: 24px; letter-spacing: -0.005em; color: var(--text); }
.wordmark-sub { font-family: var(--sans); font-size: 9px; font-weight: 600; letter-spacing: 0.3em; color: var(--text-mute); text-transform: uppercase; }
.nav { display: none; gap: 36px; align-items: center; }
.nav a { color: var(--text-soft); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; position: relative; padding-bottom: 4px; }
.nav a:hover { color: var(--text); }
.nav a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--accent); transition: width .3s ease; }
.nav a:hover::after { width: 100%; }
.header-phone { color: var(--text); font-family: var(--serif); font-weight: 500; font-size: 18px; font-feature-settings: "lnum"; border-bottom: 1px solid var(--text-dim); padding-bottom: 2px; white-space: nowrap; transition: border-color .25s ease, color .25s ease; }
.header-phone:hover { border-color: var(--accent); color: var(--accent); }
@media (min-width: 1000px) { .nav { display: flex; } }

/* ---------- Contact (frozen partial) ---------- */
.contact { padding: 110px 0; background: var(--surface); border-top: 1px solid var(--rule); }
.contact-wrap { display: grid; gap: 56px; grid-template-columns: 1fr; }
.contact-lede { color: var(--text-soft); font-size: 1.1rem; max-width: 40ch; margin: 0 0 36px; }
.contact-direct { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.contact-direct li { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.cd-label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-mute); font-weight: 600; }
.contact-direct a, .contact-direct li > span:last-child { font-family: var(--serif); font-size: 1.2rem; color: var(--text); }
.contact-direct a:hover { color: var(--accent); }
.contact-form { display: flex; flex-direction: column; gap: 22px; background: var(--bg); padding: 40px 32px; border: 1px solid var(--rule); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-mute); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 16px; padding: 14px 0;
  background: transparent; border: 0; border-bottom: 1px solid var(--rule);
  color: var(--text); width: 100%; transition: border-color .25s ease; border-radius: 0;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23ffffff' stroke-opacity='.5' stroke-width='1.5' fill='none'/></svg>");
  background-repeat: no-repeat; background-position: right 4px center; padding-right: 24px;
}
.field select option { background: var(--bg); color: var(--text); }
.field textarea { resize: vertical; min-height: 84px; }
.row { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 600px) { .row { grid-template-columns: 1fr 1fr; } }
.honeypot { position: absolute !important; left: -9999px !important; opacity: 0 !important; height: 0 !important; width: 0 !important; }
.form-status { margin: 0; font-size: 14px; min-height: 20px; color: var(--text-soft); }
.form-status.ok { color: var(--highlight); }
.form-status.err { color: var(--accent); }
.form-fineprint { font-size: 11px; color: var(--text-mute); margin: 0; letter-spacing: 0.05em; }
@media (min-width: 900px) { .contact-wrap { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--rule); padding: 70px 0 0; }
.footer-wrap { display: grid; gap: 48px; grid-template-columns: 1fr; padding-bottom: 50px; border-bottom: 1px solid var(--rule); }
.footer-name { font-family: var(--serif); font-size: 1.7rem; margin: 0 0 8px; color: var(--text); }
.footer-tagline { color: var(--text-mute); font-size: 14px; margin: 0; max-width: 36ch; }
.footer-cols { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-h { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-mute); font-weight: 600; margin: 0 0 8px; }
.footer-col a, .footer-col span { font-family: var(--serif); font-size: 1rem; color: var(--text-soft); }
.footer-fine { padding: 24px 0; }
.footer-fine p { margin: 0; font-size: 12px; color: var(--text-mute); }
@media (min-width: 800px) { .footer-wrap { grid-template-columns: 1.3fr 1fr; align-items: start; } }

/* ---------- Make-it-Mine ---------- */
.make-it-mine {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 14px 22px; border-radius: 0;
  font-size: 14px; font-weight: 500; display: flex; flex-direction: column; line-height: 1.2;
  transition: background .25s ease, color .25s ease, transform .2s ease;
  max-width: 240px; border: 1px solid var(--text);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--bg) 60%, transparent);
}
.make-it-mine:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: translateY(-2px); }
.mim-label { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; }
.mim-cta { font-family: var(--serif); font-size: 17px; font-style: italic; }
@media (max-width: 600px) { .make-it-mine { padding: 12px 18px; bottom: 16px; right: 16px; max-width: 200px; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}


/* ------------------------------------------------------------------
   warm-editorial/archetype.css
   Light, airy editorial layout: static header, split hero (type left,
   framed image right), calm card and grid sections. Token-driven, so any
   light palette recolors it. Distinct in tone and structure from the dark
   full-bleed editorial-stack.
   ------------------------------------------------------------------ */

/* header sits in normal flow here (no full-bleed hero behind it) */
.site-header { position: static; background: var(--bg); border-bottom: 1px solid var(--rule); }
.header-wrap { padding-top: 22px; padding-bottom: 22px; }

/* ---------- Hero (split) ---------- */
.hero { background: var(--bg); }
.hero-wrap { display: grid; gap: 48px; grid-template-columns: 1fr; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero-content { max-width: 620px; }
.lede { font-size: 1.15rem; color: var(--text-soft); margin: 0 0 32px; max-width: 46ch; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.hero-figure { margin: 0; }
.hero-figure img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 3px; }
@media (min-width: 900px) { .hero-wrap { grid-template-columns: 1.05fr 0.95fr; gap: 72px; } }

/* ---------- Stats band ---------- */
.hero-stats { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.hero-stats-wrap { display: grid; grid-template-columns: repeat(2, 1fr); padding-top: 30px; padding-bottom: 30px; }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 12px 24px 12px 0; border-right: 1px solid var(--rule); }
.stat:last-child { border-right: 0; }
.stat-num { font-family: var(--serif); font-size: 2.6rem; font-weight: 500; line-height: 1; color: var(--text); letter-spacing: -0.02em; }
.stat-num-text { font-size: 1.9rem; padding-top: 6px; }
.stat-label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute); font-weight: 600; line-height: 1.4; }
.stat-sub { text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--text-mute); font-weight: 400; }
@media (min-width: 700px) { .hero-stats-wrap { grid-template-columns: repeat(4, 1fr); } .stat-last { border-right: 0; } }

/* ---------- Services (card grid) ---------- */
.services { padding: 96px 0; }
.services-intro { color: var(--text-soft); font-size: 1.05rem; margin: 14px 0 0; max-width: 52ch; }
.services-grid { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 44px; }
.service-card { background: var(--surface); border: 1px solid var(--rule); padding: 30px 28px; display: flex; flex-direction: column; gap: 10px; border-radius: 3px; transition: border-color .25s ease, transform .2s ease, box-shadow .25s ease; }
.service-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 14px 30px color-mix(in srgb, var(--text) 10%, transparent); }
.service-card .service-num { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 1.2rem; line-height: 1; }
.service-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; margin: 0; line-height: 1.15; color: var(--text); }
.service-card p { margin: 0; color: var(--text-soft); font-size: 15px; line-height: 1.5; }
@media (min-width: 700px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Work (image grid) ---------- */
.work { padding: 96px 0; background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.gallery-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 12px; }
.gallery-item { overflow: hidden; border-radius: 3px; background: var(--surface-2); }
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.gallery-item:hover img { transform: scale(1.04); }
@media (min-width: 700px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Area ---------- */
.area { padding: 96px 0; }
.towns-row { display: flex; flex-wrap: wrap; justify-content: center; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-top: 8px; }
.town { font-family: var(--serif); font-size: 1.5rem; font-style: italic; color: var(--text); padding: 20px 26px; position: relative; transition: color .25s ease; }
.town:not(:last-child)::after { content: '\00b7'; position: absolute; right: -4px; top: 50%; transform: translateY(-50%); color: var(--accent); font-style: normal; }
.town:hover { color: var(--accent); }

/* ---------- About (figure left) ---------- */
.about { padding: 96px 0; background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.about-wrap { display: grid; gap: 44px; grid-template-columns: 1fr; align-items: center; }
.about-figure { margin: 0; }
.about-figure img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 3px; }
.about-text p { color: var(--text-soft); font-size: 1.05rem; margin: 0 0 18px; max-width: 56ch; line-height: 1.6; }
.about-text .sig { margin-top: 32px; font-family: var(--serif); font-size: 1.35rem; font-style: italic; color: var(--text); }
.sig-role { display: block; font-family: var(--sans); font-style: normal; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-mute); margin-top: 6px; font-weight: 600; }
@media (min-width: 900px) { .about-wrap { grid-template-columns: 0.9fr 1.1fr; gap: 72px; } }

/* ---------- Reviews (columns) ---------- */
.reviews { padding: 96px 0; }
.reviews-columns { display: grid; gap: 24px; grid-template-columns: 1fr; margin-top: 12px; }
.review { background: var(--surface); border: 1px solid var(--rule); padding: 32px; display: flex; flex-direction: column; gap: 16px; border-radius: 3px; }
.review .stars { color: var(--accent); letter-spacing: 3px; font-size: 14px; }
.review blockquote { margin: 0; font-family: var(--serif); font-size: 1.25rem; font-style: italic; color: var(--text); line-height: 1.4; }
.review cite { font-style: normal; font-family: var(--sans); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mute); font-weight: 600; }
@media (min-width: 800px) { .reviews-columns { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .reviews-columns { grid-template-columns: repeat(3, 1fr); } }
