/* ============================================================
   Meade Advisory — site styles
   Brand: navy #0F2A44 · gold/khaki #C9A96B · cream #FBF6EF · black
   Type:  Montserrat (display, UI, labels) · Lora (body prose)
   ============================================================ */

:root {
  /* brand constants — do not theme these */
  --navy:  #0F2A44;
  --gold:  #C9A96B;
  --cream: #FBF6EF;

  /* light palette — complete set defined here */
  --paper:       #FBF6EF;
  --surface:     #FFFFFF;
  --surface-alt: #F4EDE1;
  --ink:         #0F2A44;
  --ink-2:       #3D506A;
  --ink-3:       #6E7F96;
  --rule:        #E3D9C8;
  --rule-strong: #C3B59C;
  --accent:      #A8873F;
  --accent-deep: #8A6D2C;
  --accent-soft: #F3E9D5;
  --btn-bg:      #0F2A44;
  --btn-fg:      #FBF6EF;
  --btn-bg-hover:#1B3E5E;

  --font-display: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body:    "Lora", Georgia, "Times New Roman", serif;

  --gutter: clamp(20px, 5vw, 64px);
  --measure: 66ch;
  --maxw: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:       #0B1C2E;
    --surface:     #11293F;
    --surface-alt: #14314B;
    --ink:         #F4EDE1;
    --ink-2:       #BCC9D8;
    --ink-3:       #8497AC;
    --rule:        #1E3A57;
    --rule-strong: #43678E;
    --accent:      #D4B87E;
    --accent-deep: #E4CF9F;
    --accent-soft: #1A3047;
    --btn-bg:      #C9A96B;
    --btn-fg:      #0F2A44;
    --btn-bg-hover:#DCC089;
    --logo:        #FBF6EF;
  }
}

:root[data-theme="dark"] {
  --paper:       #0B1C2E;
  --surface:     #11293F;
  --surface-alt: #14314B;
  --ink:         #F4EDE1;
  --ink-2:       #BCC9D8;
  --ink-3:       #8497AC;
  --rule:        #1E3A57;
  --rule-strong: #43678E;
  --accent:      #D4B87E;
  --accent-deep: #E4CF9F;
  --accent-soft: #1A3047;
  --btn-bg:      #C9A96B;
  --btn-fg:      #0F2A44;
  --btn-bg-hover:#DCC089;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }

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

/* ---------- structure ---------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding-block: clamp(48px, 7vw, 86px); }
.band + .band { border-top: 1px solid var(--rule); }
.band--tint { background: var(--surface-alt); }

/* label in the margin, content beside it */
.log {
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 44px);
  align-items: start;
}
.log + .log {
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--rule);
}
@media (max-width: 760px) {
  .log { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

/* the brand's signature device: a gold rule beside spaced capitals */
.tag {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
  padding-top: 0.7em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tag::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  flex: none;
}
.tag--muted { color: var(--ink-3); }
.tag--muted::before { background: var(--rule-strong); }

/* ---------- type ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  text-wrap: balance;
  margin: 0;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(1.95rem, 4.2vw, 2.85rem); font-weight: 700; line-height: 1.14; }
h2 { font-size: clamp(1.42rem, 2.8vw, 1.92rem); font-weight: 700; line-height: 1.22; }
h3 { font-size: clamp(1.08rem, 1.8vw, 1.26rem); font-weight: 600; line-height: 1.32; }
h4 {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2);
}

p { margin: 0 0 1.05em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lede { font-size: clamp(1.06rem, 2vw, 1.26rem); line-height: 1.6; color: var(--ink-2); }
.small { font-size: 0.94rem; color: var(--ink-2); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 18px;
}

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-head__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; padding-block: 13px;
}
/* The supplied lockup, used as artwork — scaled only, never restyled.
   Two files: navy for light grounds, cream for dark. */
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand__logo { height: 52px; width: auto; display: block; }
.brand__logo--dark { display: none; }
@media (max-width: 520px) { .brand__logo { height: 40px; } }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand__logo--light { display: none; }
  :root:not([data-theme="light"]) .brand__logo--dark  { display: block; }
}
:root[data-theme="dark"] .brand__logo--light { display: none; }
:root[data-theme="dark"] .brand__logo--dark  { display: block; }

.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); flex-wrap: wrap; }
.nav a {
  font-family: var(--font-display);
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none;
  padding-block: 5px; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  line-height: 1; padding: 15px 26px;
  border-radius: 2px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn--primary:hover { background: var(--btn-bg-hover); color: var(--btn-fg); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- hero ---------- */

.hero { padding-block: clamp(42px, 6vw, 72px) clamp(30px, 4vw, 46px); }
.hero h1 { max-width: 19ch; }
.hero .lede { margin-top: 22px; max-width: 56ch; }

/* ---------- portrait ---------- */

/* About hero: text beside a 4:5 portrait */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.intro .lede + .lede { margin-top: 14px; }
.portrait { margin: 0; }
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  background: var(--surface-alt);
}
@media (max-width: 760px) {
  .intro { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 260px; }
}

/* Small circular portraits carry a gold ring, echoing the badge */
.signoff__photo, .meet__photo {
  display: block;
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1;
  height: auto;
  border: 2px solid var(--accent);
  padding: 4px;
  background: var(--paper);
}
.band--tint .meet__photo { background: var(--surface-alt); }

/* Homepage closing ask, signed */
.signoff {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}
.signoff__photo { width: 176px; }
.signoff__name {
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.signoff__name span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
@media (max-width: 640px) {
  .signoff { grid-template-columns: minmax(0, 1fr); }
  .signoff__photo { width: 120px; }
}

/* Contact: who you are booking with */
.meet {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
}
.meet__photo { width: 92px; flex: none; }
.meet p { margin: 0; }
@media (max-width: 440px) {
  .meet { flex-direction: column; align-items: flex-start; }
}

/* gold rule device closing the hero */
.brandrule { display: flex; align-items: center; gap: 12px; margin-top: 40px; }
.brandrule::before { content: ""; width: 64px; height: 3px; background: var(--accent); flex: none; }
.brandrule::after  { content: ""; flex: 1 1 auto; height: 1px; background: var(--rule); }

/* ---------- credibility strip ---------- */

.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px; background: var(--rule);
  border-block: 1px solid var(--rule);
}
.fact { background: var(--paper); padding: 22px clamp(16px, 2.4vw, 26px); }
.band--tint .fact { background: var(--surface-alt); }
.fact dt {
  font-family: var(--font-display);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 9px;
}
.fact dd {
  margin: 0; font-family: var(--font-display);
  font-size: 0.98rem; font-weight: 600; line-height: 1.4; color: var(--ink);
}

/* ---------- lists ---------- */

.ticks { list-style: none; margin: 18px 0 0; padding: 0; max-width: var(--measure); }
.ticks li {
  position: relative; padding-left: 24px; margin-bottom: 10px;
  color: var(--ink-2); font-size: 0.97rem; line-height: 1.55;
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.66em;
  width: 11px; height: 2px; background: var(--accent);
}
.ticks li:last-child { margin-bottom: 0; }

/* ---------- sequenced entries ---------- */

.track { margin-top: 8px; }
.stint {
  display: grid; grid-template-columns: 126px minmax(0, 1fr);
  gap: clamp(14px, 3vw, 40px);
  padding-block: 26px; border-top: 1px solid var(--rule);
}
.stint:last-child { border-bottom: 1px solid var(--rule); }
.stint__yr {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); padding-top: 0.5em;
  font-variant-numeric: tabular-nums;
}
.stint h3 { margin-bottom: 6px; }
.stint__org {
  font-family: var(--font-display);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 11px;
}
@media (max-width: 640px) {
  .stint { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .stint__yr { padding-top: 0; }
}

/* ---------- forms ---------- */

.form { margin-top: 28px; max-width: 34rem; display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label {
  font-family: var(--font-display);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-2);
}
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--rule-strong);
  border-radius: 2px; padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); outline: 2px solid var(--accent-soft); outline-offset: 0;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- contact detail rows ---------- */

.detail { border-top: 1px solid var(--rule); padding-block: 18px; }
.detail:last-of-type { border-bottom: 1px solid var(--rule); }
.detail dt {
  font-family: var(--font-display);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px;
}
.detail dd { margin: 0; font-size: 1rem; }

/* ---------- callout ---------- */

.note {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 18px 22px; margin-top: 28px;
  max-width: var(--measure); border-radius: 0 2px 2px 0;
}
.note p { font-size: 0.96rem; color: var(--ink-2); }

/* "Call me when" — the reader recognising their own situation */
.note--when p { font-size: 1rem; color: var(--ink); line-height: 1.6; }
.note--when strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95em;
  color: var(--ink);
  margin-right: 0.15em;
}

/* ---------- footer ---------- */

.site-foot {
  border-top: 3px solid var(--accent);
  background: var(--surface-alt);
  padding-block: 36px 42px;
}
.site-foot__inner {
  display: flex; flex-wrap: wrap; gap: 20px 40px;
  align-items: baseline; justify-content: space-between;
}
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--accent); text-decoration: underline; }
.foot-links {
  display: flex; flex-wrap: wrap; gap: 20px;
  font-family: var(--font-display);
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase;
}
.colophon {
  font-family: var(--font-display);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); line-height: 2;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
