/* ==========================================================================
   Sandmark Capital
   Built to the Sandmark Branding Guidelines (01_Business_Foundation/Brand).
   Palette, type scale, and 8px spacing rhythm are taken directly from that file.
   ========================================================================== */

:root {
  --forest: #16352A;
  --gold:   #C9A84C;
  --sand:   #E7D9BE;
  --cream:  #F6F1E6;
  --stone:  #9A855C;

  /* 8px base unit: 8 / 16 / 24 / 40 / 64 */
  --u1: 8px;
  --u2: 16px;
  --u3: 24px;
  --u5: 40px;
  --u8: 64px;
  --u12: 96px;

  --measure: 68ch;
  --container: 1120px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--forest);
  font-family: 'Jost', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- type ---------- */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  margin: 0;
  line-height: 1.15;
}

.display {
  font-size: clamp(38px, 5.4vw, 56px);
  letter-spacing: 0.03em;
}
.h1 { font-size: clamp(32px, 4.4vw, 40px); }
.h2 { font-size: clamp(24px, 3vw, 28px); }
.h3 { font-size: 21px; }

.overline {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin: 0 0 var(--u2);
  /* Brand guide: on light grounds, subtitle and rules are Forest.
     Stone at 11px fails WCAG AA on both cream (3.17) and sand (2.56). */
  color: var(--forest);
}
.overline--gold { color: var(--gold); }

p { margin: 0 0 var(--u3); max-width: var(--measure); }
p:last-child { margin-bottom: 0; }
.lead { font-size: 18px; }
.caption { font-size: 12px; line-height: 1.5; }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--u5);
}
.section { padding: var(--u12) 0; }
.section--tight { padding: var(--u8) 0; }
.prose { max-width: var(--measure); }

.rule {
  width: 56px;
  height: 1px;
  background: var(--gold);
  border: 0;
  margin: 0 0 var(--u3);
}
.rule--center { margin-left: auto; margin-right: auto; }

/* ---------- grounds ---------- */
.ground-forest { background: var(--forest); color: var(--sand); }
.ground-sand   { background: var(--sand);   color: var(--forest); }
.ground-cream  { background: var(--cream);  color: var(--forest); }
.ground-forest .overline { color: var(--gold); }
.ground-forest h1, .ground-forest h2, .ground-forest h3 { color: var(--sand); }

/* ---------- tide-line motif ---------- */
.tideline {
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='8'%3E%3Cpath d='M0 6 q3 -4 6 0 t6 0 t6 0 t6 0' fill='none' stroke='%23C9A84C' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  opacity: 0.45;
}
.tideline--forest {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='8'%3E%3Cpath d='M0 6 q3 -4 6 0 t6 0 t6 0 t6 0' fill='none' stroke='%2316352A' stroke-width='1'/%3E%3C/svg%3E");
  opacity: 0.28;
}

/* ---------- header ---------- */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid rgba(22, 53, 42, 0.12);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--u5);
  padding-top: var(--u3);
  padding-bottom: var(--u3);
}
.brand img { height: 44px; width: auto; }
.nav { display: flex; gap: var(--u5); align-items: center; }
.nav a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.nav a:hover { border-bottom-color: var(--gold); }
.nav a[aria-current="page"] { border-bottom-color: var(--gold); }

/* ---------- hero ---------- */
.hero { padding: var(--u12) 0 var(--u8); }
.hero .display { max-width: 16ch; margin-bottom: var(--u3); }
.hero .lead { max-width: 56ch; color: var(--sand); opacity: 0.88; }

.page-head { padding: var(--u8) 0; }
.page-head .h1 { max-width: 20ch; }
.page-head p { color: var(--sand); opacity: 0.88; margin-top: var(--u2); }

/* ---------- panels ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--u8) var(--u5);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--u5);
}
.panel h3 { margin-bottom: var(--u2); }
.panel p { max-width: none; }
.panel::before {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  margin-bottom: var(--u3);
}

/* ---------- criteria table ---------- */
.spec { width: 100%; border-collapse: collapse; margin: 0; }
.spec th, .spec td {
  text-align: left;
  vertical-align: top;
  padding: var(--u3) 0;
  border-bottom: 1px solid rgba(22, 53, 42, 0.15);
}
.spec th {
  width: 26%;
  padding-right: var(--u5);
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--forest);
  line-height: 1.7;
}
.spec td { font-weight: 300; }
.spec tr:first-child th, .spec tr:first-child td { border-top: 1px solid rgba(22, 53, 42, 0.15); }

/* ---------- exclusion list ---------- */
.marked { list-style: none; padding: 0; margin: 0 0 var(--u3); max-width: var(--measure); }
.marked li {
  position: relative;
  padding-left: var(--u3);
  margin-bottom: var(--u2);
}
.marked li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

/* ---------- button ---------- */
.btn {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: var(--u2) var(--u5);
  border: 1px solid var(--gold);
  color: var(--sand);
  transition: background-color 0.18s ease, color 0.18s ease;
}
.btn:hover { background: var(--gold); color: var(--forest); }
.btn--dark { border-color: var(--forest); color: var(--forest); }
.btn--dark:hover { background: var(--forest); color: var(--cream); }

/* ---------- links in prose ---------- */
.link {
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
}
.link:hover { color: var(--stone); }
.ground-forest .link:hover { color: var(--gold); }

/* ---------- principal ---------- */
.bio {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--u8);
  align-items: start;
}
.portrait {
  border: 1px solid var(--gold);
  padding: var(--u1);
  background: var(--cream);
}
.portrait img { width: 100%; height: auto; }
.portrait figcaption {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  padding: var(--u2) 0 4px;
  text-align: center;
}

/* ---------- contact ---------- */
.contact-details { font-size: 18px; line-height: 2; }
.contact-details a { text-decoration: none; border-bottom: 1px solid var(--gold); }

/* ---------- CTA band ---------- */
.cta { text-align: center; }
.cta .h2 { margin-bottom: var(--u3); }
.cta p { margin-left: auto; margin-right: auto; max-width: 52ch; }
.cta .btn { margin-top: var(--u5); }

/* ---------- footer ---------- */
.site-footer { background: var(--forest); color: var(--sand); }
.site-footer .container { padding-top: var(--u8); padding-bottom: var(--u8); }
.site-footer img { height: 56px; width: auto; margin-bottom: var(--u5); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--u5);
  align-items: end;
}
.site-footer a { text-decoration: none; border-bottom: 1px solid rgba(201, 168, 76, 0.6); }
.site-footer .caption { opacity: 0.72; margin-top: var(--u3); }
.footer-nav { display: flex; gap: var(--u3); flex-wrap: wrap; justify-content: flex-end; }
.footer-nav a {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border-bottom: none;
}
.footer-nav a:hover { color: var(--gold); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; gap: var(--u8); }
  .grid-2 { grid-template-columns: 1fr; gap: var(--u8); }
  .bio { grid-template-columns: 1fr; gap: var(--u5); }
  .portrait { max-width: 280px; }
}

@media (max-width: 720px) {
  .container { padding: 0 var(--u3); }
  .section { padding: var(--u8) 0; }
  .hero { padding: var(--u8) 0 var(--u5); }
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--u3);
  }
  .brand img { height: 36px; }
  .nav { gap: var(--u3); flex-wrap: wrap; }
  .nav a { font-size: 10px; letter-spacing: 0.22em; }
  .spec th, .spec td { display: block; width: 100%; padding-right: 0; }
  .spec th { border-bottom: none; padding-bottom: var(--u1); }
  .spec td { padding-top: 0; }
  .spec tr:first-child td { border-top: none; }
  .footer-grid { grid-template-columns: 1fr; align-items: start; }
  .footer-nav { justify-content: flex-start; }
}
