/* ============================================================
   EverNorth Wealth Advisory
   ------------------------------------------------------------
   Palette   ink #0e1117 · gold #b8975a · white · bone #faf8f5
   Display   Newsreader (light, optical-size serif)
   Body      Inter
   Signature A gold meridian running the full height of the page,
             with a latitude tick at the head of each section.
   ============================================================ */

/* ---------- fonts ------------------------------------------
   Newsreader and Inter, self-hosted. The WOFF2 files in
   assets/fonts/ are byte-identical to the ones Google Fonts
   served, and the declarations below are generated from the
   Google stylesheet, so rendering is unchanged. Newsreader
   keeps its opsz axis: optical sizing stays automatic.
   Subsets: latin + latin-ext only (all site copy is latin).
   ------------------------------------------------------------ */

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 400;
  font-display: swap;
  src: url('assets/fonts/newsreader-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 400;
  font-display: swap;
  src: url('assets/fonts/newsreader-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 200 400;
  font-display: swap;
  src: url('assets/fonts/newsreader-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 200 400;
  font-display: swap;
  src: url('assets/fonts/newsreader-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink:        #0e1117;
  --ink-soft:   #2a2f36;
  --slate:      #5c636c;
  --gold:       #b8975a;   /* hairlines, ticks, rules — decorative only */
  --gold-text:  #8c7345;   /* gold used AS TEXT: 4.51:1 on white, meets AA */
  --gold-line:  rgba(184, 151, 90, 0.32);
  --white:      #ffffff;
  --bone:       #faf8f5;

  --rail:       104px;   /* meridian offset from container edge */
  --gutter:     200px;   /* text start on desktop */
  --measure:    660px;

  --band-y:     clamp(72px, 9vw, 132px);
}

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

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px 0 var(--gutter);
}

/* the meridian */
.wrap::before {
  content: "";
  position: absolute;
  left: var(--rail);
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0,
    var(--gold-line) 60px,
    var(--gold-line) calc(100% - 60px),
    transparent 100%
  );
}

.band {
  position: relative;
  padding-block: var(--band-y);
  border-top: 1px solid rgba(14, 17, 23, 0.08);
}

.band:first-child { border-top: 0; }

/* latitude tick on the meridian */
.band::before {
  content: "";
  position: absolute;
  left: calc(var(--rail) - var(--gutter));
  top: var(--band-y);
  width: 30px;
  height: 1px;
  background: var(--gold);
}

.band--plain::before { display: none; }

.band--bone {
  background: var(--bone);
  border-top: 0;
}

/* full-bleed tint that still respects the centred column */
.tint {
  background: var(--bone);
}

.measure { max-width: var(--measure); }
.measure-wide { max-width: 820px; }

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

h1, h2, h3, .display {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-weight: 300;
  color: var(--ink);
  margin: 0;
}

h1 {
  font-size: clamp(2.85rem, 6vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.024em;
}

h2 {
  font-size: clamp(1.95rem, 3.5vw, 2.85rem);
  line-height: 1.14;
  letter-spacing: -0.018em;
}

h3 {
  font-weight: 400;
  font-size: 1.42rem;
  line-height: 1.3;
  letter-spacing: -0.012em;
  margin-bottom: 0.5rem;
}

h1 em, h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--ink);
}

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

.eyebrow {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.645rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin: 0 0 1.9rem;
}

.lead {
  font-size: 1.24rem;
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 640px;
}

.note {
  font-size: 0.855rem;
  line-height: 1.65;
  color: var(--slate);
  max-width: 620px;
}

.quiet { color: var(--slate); }

.rule {
  width: 84px;
  height: 1px;
  background: var(--gold);
  border: 0;
  margin: 2.6rem 0;
}

/* ---------- links ------------------------------------------ */

a { color: inherit; }

.link {
  display: inline-block;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--gold);
  transition: color 180ms ease, border-color 180ms ease;
}

.link:hover { color: var(--gold-text); }

.link .arw {
  display: inline-block;
  transition: transform 220ms ease;
  margin-left: 0.35em;
}

.link:hover .arw { transform: translateX(4px); }

.contact-line {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.4rem;
  line-height: 1.75;
}

.contact-line a {
  text-decoration: none;
  border-bottom: 1px solid var(--gold-line);
  transition: border-color 180ms ease;
}

.contact-line a:hover { border-bottom-color: var(--gold); }

/* ---------- masthead --------------------------------------- */

.masthead {
  position: relative;
  z-index: 3;
  padding: 34px 0 30px;
}

.masthead .wrap::before { display: none; }

.masthead-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.wordmark {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.32rem;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.wordmark span { color: var(--gold); }

nav.primary {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

nav.primary a {
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--slate);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

nav.primary a:hover { color: var(--ink); }
nav.primary a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

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

.hero {
  padding-block: clamp(84px, 12vw, 168px) clamp(72px, 10vw, 128px);
  border-top: 0;
}

.hero::before { top: clamp(84px, 12vw, 168px); }

.hero h1 { max-width: 15ch; }

.hero .lead { margin-top: 2.4rem; }

.hero .link { margin-top: 2.6rem; }

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

.plainlist {
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
  max-width: var(--measure);
}

.plainlist li {
  padding: 0.72rem 0;
  border-bottom: 1px solid rgba(14, 17, 23, 0.08);
  color: var(--ink-soft);
}

.plainlist li:first-child { border-top: 1px solid rgba(14, 17, 23, 0.08); }

.entries { margin-top: 3rem; }

.entry {
  padding: 2.1rem 0;
  border-top: 1px solid rgba(14, 17, 23, 0.08);
  max-width: 740px;
}

.entry:last-child { border-bottom: 1px solid rgba(14, 17, 23, 0.08); }

.entry p { margin-bottom: 0; color: var(--ink-soft); }

/* numbered stages — the only place numbering is used, because
   the process genuinely is a sequence */
.stage {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 0 26px;
  padding: 2.2rem 0;
  border-top: 1px solid rgba(14, 17, 23, 0.08);
  max-width: 760px;
}

.stage:last-of-type { border-bottom: 1px solid rgba(14, 17, 23, 0.08); }

.stage .num {
  font-family: "Newsreader", Georgia, serif;
  font-size: 0.95rem;
  color: var(--gold-text);
  letter-spacing: 0.06em;
  padding-top: 0.42rem;
}

.stage p { margin-bottom: 0; color: var(--ink-soft); }

/* The seven stages are h2 — they sit directly beneath the page h1,
   and h3 there skipped a level. They keep h3 appearance exactly. */
.stage h2 {
  font-weight: 400;
  font-size: 1.42rem;
  line-height: 1.3;
  letter-spacing: -0.012em;
  margin-bottom: 0.5rem;
}

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

.portrait {
  margin: 0;
  max-width: 300px;
}

.tm {
  font-size: 0.42em;
  vertical-align: 0.82em;
  letter-spacing: 0.03em;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(100%) contrast(1.04);
}

.portrait figcaption {
  margin-top: 1.15rem;
  font-size: 0.83rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--slate);
}

.split {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 58px;
  align-items: start;
}

/* ---------- pull quote ------------------------------------- */

.pullquote {
  margin: 3.2rem 0;
  padding-left: 30px;
  border-left: 1px solid var(--gold);
  max-width: 640px;
}

.pullquote p {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.42;
  color: var(--ink);
  letter-spacing: -0.012em;
}

/* ---------- facts ------------------------------------------ */

.facts {
  list-style: none;
  padding: 0;
  margin: 2.8rem 0 0;
  display: grid;
  gap: 0.55rem;
}

.facts li {
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--slate);
}

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

.sitefoot {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  margin-top: clamp(72px, 9vw, 128px);
  padding: clamp(58px, 7vw, 88px) 0 44px;
  font-size: 0.9rem;
}

.sitefoot .wrap::before {
  background: linear-gradient(
    to bottom,
    transparent 0,
    rgba(184, 151, 90, 0.28) 40px,
    rgba(184, 151, 90, 0.28) calc(100% - 40px),
    transparent 100%
  );
}

.sitefoot .wordmark { color: var(--white); }

.footgrid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footgrid p { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; max-width: 320px; }

.foothead {
  font-size: 0.645rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.15rem;
}

.footlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }

.footlist a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.72);
  transition: color 180ms ease;
}

.footlist a:hover { color: var(--gold); }

.legal {
  margin-top: 40px;
  font-size: 0.755rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.45);
  max-width: 760px;
}

.legal p { max-width: 760px; }

.legal a { color: rgba(255, 255, 255, 0.6); }

/* ---------- motion ----------------------------------------- */

.js .rise {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 620ms cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 620ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.js .rise.in { opacity: 1; transform: none; }

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

/* gold reads 6.85:1 on the ink footer, where ink would disappear */
.sitefoot :focus-visible {
  outline-color: var(--gold);
}

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

/* ---------- responsive ------------------------------------- */

@media (max-width: 1040px) {
  :root { --rail: 60px; --gutter: 128px; }
}

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .portrait { max-width: 300px; }
  .footgrid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 640px) {
  html { font-size: 16px; }
  :root { --gutter: 26px; --band-y: 60px; }
  .wrap { padding: 0 26px; }
  .wrap::before { display: none; }
  .band::before { display: none; }
  .masthead { padding-top: 26px; }
  .masthead-inner { gap: 18px; }
  nav.primary { gap: 20px; width: 100%; }
  nav.primary a { font-size: 0.72rem; }
  .footgrid { grid-template-columns: 1fr; }
  .stage { grid-template-columns: 44px 1fr; gap: 0 16px; }
  .pullquote { padding-left: 20px; }
  .contact-line { font-size: 1.2rem; }
}

/* Below 360px the h1 on process.html cannot fit "Planning Process™"
   (bound by a non-breaking space) and forced horizontal scroll,
   failing 1.4.10 Reflow. Scoped below the 390px support floor so no
   supported width changes. */
@media (max-width: 360px) {
  h1 { font-size: 2.5rem; }
}
