/* JRS Financial: Option D (A's dark palette, B's single consultation button). */

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1A1918;
  --ink-deep: #141312;
  --stone: #E4DFDB;
  --stone-dark: #DCD7D3;
  --clay: #8D5D44;
  --clay-dark: #7A4F39;
  --clay-light: #C9A58F;
  --text-on-ink: #CFC9C4;
  --text-footer: #B8B1AC;
  --text-muted: #4A4542;
  --text-subtle: #5A5552;
  --line-on-ink: #8C8580;
  --white: #FFFFFF;
  --max: 70rem;
  --gutter: 1.5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

h1, h2, h3, p, ul { margin: 0; }

img, svg { display: block; }

a { color: var(--clay-dark); }
a:hover { color: var(--ink); }

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

.dk { background: var(--ink); color: var(--stone); }
.dk a { color: var(--stone); }
.dk a:hover { color: var(--clay-light); }
.dk :focus-visible { outline-color: var(--stone); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Skip link */
.skip {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 10;
  background: var(--white);
  color: var(--ink);
  padding: 0.75rem 1rem;
  font-weight: 500;
  border-radius: 4px;
}
.skip:focus { left: 1rem; }

/* Eyebrow */
.eb {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay-dark);
}
.dk .eb { color: var(--clay-light); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.75rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  overflow-wrap: anywhere;
  text-align: center;
}
a.btn-clay,
.dk a.btn-clay { background: var(--clay); color: var(--white); }
a.btn-clay:hover,
.dk a.btn-clay:hover { background: var(--clay-dark); color: var(--white); }

/* Header */
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.brand { display: inline-flex; padding: 0.5rem 0; }
.brand svg { width: 8.5rem; height: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; }
.nav a,
.dk .nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  padding: 0.75rem 0.875rem;
  color: inherit;
}
.nav a:hover,
.dk .nav a:hover { text-decoration: underline; color: inherit; }

/* Hero */
.hero { overflow: hidden; }
.hero .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3.5rem;
  padding-top: 4rem;
  padding-bottom: 6rem;
}
.hero-copy {
  flex: 1 1 28.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(2.5rem, 1.5rem + 3.2vw, 3.75rem);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.hero .lede {
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--text-on-ink);
  max-width: 34em;
}
.hero-j {
  flex: 1 1 18.75rem;
  align-self: stretch;
  position: relative;
  min-height: 20rem;
}
.hero-j svg {
  position: absolute;
  right: -30%;
  top: 50%;
  transform: translateY(-50%);
  width: 140%;
  max-width: 38.75rem;
  height: auto;
}

/* Credentials strip */
.creds { background: var(--ink-deep); color: var(--text-on-ink); }
.creds ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.creds .sep { display: flex; }
.creds .sep svg { width: 0.875rem; height: 0.875rem; }

/* Sections */
.section .wrap { padding-top: 5rem; padding-bottom: 5rem; }
.h2 {
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.5rem);
  line-height: 1.1;
  font-weight: 500;
}

/* About */
.about { background: var(--stone); }
.about .wrap { display: flex; flex-wrap: wrap; gap: 3.5rem; }
.about-id { flex: 1 1 17.5rem; display: flex; flex-direction: column; gap: 1rem; }
.about-id img {
  width: 100%;
  max-width: 15rem;
  height: auto;
  aspect-ratio: 6 / 7;
  border-bottom: 4px solid var(--clay);
  border-radius: 4px;
  object-fit: cover;
  object-position: center 25%;
  background: var(--white);
}
.about-id .role { color: var(--text-subtle); }
.about-body {
  flex: 2 1 28.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 40em;
}
.about-body h3 { font-size: 1.375rem; font-weight: 500; line-height: 1.3; }
.about-body h3 + p { margin-top: -0.25rem; }
.about-body p + h3 { margin-top: 1rem; }
.about-body .note { color: var(--text-muted); }

/* Services */
.services { background: var(--stone-dark); }
.services .wrap { display: flex; flex-direction: column; gap: 3rem; }
.services-head { display: flex; flex-direction: column; gap: 1rem; }
.cards {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18.75rem), 1fr));
  gap: 1rem;
}
.card {
  background: var(--stone);
  padding: 2rem;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.card svg { width: 1.5rem; height: 1.5rem; }
.card h3 { font-size: 1.25rem; font-weight: 500; line-height: 1.3; }
.card p { color: var(--text-muted); }

/* Contact */
.contact .wrap { display: flex; flex-wrap: wrap; gap: 3.5rem; }
.contact-main { flex: 1 1 26.25rem; display: flex; flex-direction: column; gap: 1.5rem; }
.contact-main h2 {
  font-size: clamp(2.25rem, 1.6rem + 2vw, 3rem);
  line-height: 1.1;
  font-weight: 500;
}
.contact-main p { font-size: 1.125rem; color: var(--text-on-ink); max-width: 30em; }
.contact-details {
  flex: 1 1 18.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  font-size: 1.0625rem;
  margin: 0;
}
.contact-details div { display: flex; flex-direction: column; gap: 0.25rem; }
.contact-details dd { margin: 0; }
.contact-details a { display: inline-block; padding: 0.25rem 0; }

/* Footer */
.site-footer { background: var(--ink-deep); color: var(--text-footer); }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  font-size: 0.875rem;
  line-height: 1.7;
}
.legal { flex: 1 1 32.5rem; display: flex; flex-direction: column; gap: 0.25rem; }
.legal p { margin: 0; }

@media (max-width: 37.5em) {
  :root { --gutter: 1rem; }
  .hero-j { min-height: 10rem; }
}
