/* Accrue — shared stylesheet. Colours, type, and layout primitives only.
   Page-specific styles live inline on each page to keep files self-contained.
   Aligned to Accrue Brand Guidelines V5, May 2026. */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT,WONK@0,9..144,300..700,0..100,0..1;1,9..144,300..700,0..100,0..1&family=Source+Serif+4:ital,opsz,wght@0,8..60,300..700;1,8..60,300..700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  /* V5 palette — Section 08 */
  --forest:     #1B4332;
  --linen:      #FAF7F2;
  --brass:      #9A7B4B;
  --brass-lt:   #D9C7A4;
  --deep:       #0F1F18;
  --sage:       #D8EDDF;
  --ink:        #1A1A1A;
  --paper:      #FFFFFF;
  --line:       rgba(15,31,24,0.12);
  --line-2:     rgba(15,31,24,0.22);
  --muted:      rgba(15,31,24,0.62);

  /* V5 typography — Section 09. Fraunces (display), Source Serif 4 (body),
     Inter (UI), JetBrains Mono (eyebrows/numerals). Lora kept as fallback
     so any legacy page renders if a font fails to load. */
  --serif-display: "Fraunces", "Lora", Georgia, "Times New Roman", serif;
  --serif:         "Source Serif 4", "Lora", Georgia, "Times New Roman", serif;
  --sans:          "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono:          "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap:     1160px;
  --gutter:   48px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--serif);
  color: var(--ink);
  background: var(--linen);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--forest); text-decoration: none; border-bottom: 1px solid rgba(27,67,50,0.3); transition: border-color .2s ease; }
a:hover { border-bottom-color: var(--brass); }

.eyebrow {
  font-family: var(--sans);
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 10px;
  font-weight: 600;
}

h1, h2, h3, h4 {
  font-family: var(--serif-display);
  color: var(--forest);
  font-weight: 400;
  letter-spacing: -0.005em;
  margin: 0;
}
h1 { font-size: 52px; line-height: 1.15; letter-spacing: -0.01em; }
h2 { font-size: 32px; line-height: 1.2; }
h3 { font-size: 22px; line-height: 1.3; }
p  { margin: 0 0 16px; font-size: 17px; }
p.lede { font-size: 20px; line-height: 1.5; max-width: 62ch; color: var(--ink); }

/* Nav */
.site-nav {
  border-bottom: 1px solid var(--line);
  background: var(--linen);
}
.site-nav .wrap {
  max-width: var(--wrap); margin: 0 auto; padding: 22px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.site-nav .mark img { height: 34px; }
.site-nav .mark { border: 0; }
.site-nav nav { display: flex; gap: 28px; align-items: center; }
.site-nav nav a {
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.02em;
  color: var(--ink); border: 0; font-weight: 500;
}
.site-nav nav a:hover { color: var(--forest); border: 0; }
.site-nav nav a.cta {
  padding: 10px 16px; border: 1px solid var(--forest); border-radius: 2px;
  color: var(--forest);
}
.site-nav nav a.cta:hover { background: var(--forest); color: var(--linen); }

/* Sections */
section { padding: 88px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; }
section.forest { background: var(--forest); color: var(--linen); border-top: 0; }
section.forest h1, section.forest h2, section.forest h3 { color: var(--linen); }
section.forest a { color: var(--linen); border-bottom-color: rgba(250,247,242,0.4); }
section.forest a:hover { border-bottom-color: var(--brass); }
section.forest .eyebrow { color: #D9C7A4; }

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

/* Rule separators */
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.rule-brass { height: 1px; background: var(--brass); border: 0; width: 48px; margin: 0 0 24px; }

/* Grid */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 32px;
  border-radius: 2px;
}
.card h3 { margin-bottom: 12px; }

/* Footer */
footer.site-footer {
  background: var(--deep); color: var(--linen);
  padding: 64px 0 40px;
}
footer.site-footer .wrap { max-width: var(--wrap); padding: 0 var(--gutter); }
footer.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
footer.site-footer img { height: 30px; opacity: 0.95; }
footer.site-footer h4 {
  font-family: var(--sans); color: #D9C7A4; font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; font-weight: 600; margin: 0 0 16px;
}
footer.site-footer a {
  display: block; color: rgba(250,247,242,0.82); font-family: var(--sans); font-size: 14px;
  padding: 4px 0; border: 0;
}
footer.site-footer a:hover { color: var(--linen); }
footer.site-footer .lede { font-size: 15px; color: rgba(250,247,242,0.82); max-width: 38ch; line-height: 1.55; }
footer.site-footer .fine {
  font-family: var(--sans); font-size: 11.5px; line-height: 1.7;
  color: rgba(250,247,242,0.55); border-top: 1px solid rgba(250,247,242,0.14);
  padding-top: 28px; letter-spacing: 0.02em;
}
footer.site-footer .fine strong { color: rgba(250,247,242,0.85); font-weight: 600; }

/* Utilities */
.center { text-align: center; }
.mute { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 13px; color: var(--brass); }
.img-round { border-radius: 8px; overflow: hidden; }
.img-round img { border-radius: 8px; }

/* Hamburger toggle (hidden on desktop) */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; margin-right: -8px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 5px 0; transition: all .25s; border-radius: 1px; }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4px,-5px); }

@media (max-width: 900px) {
  :root { --gutter: 24px; }
  section { padding: 56px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 32px; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  h3 { font-size: 19px; }
  p { font-size: 16px; }
  p.lede { font-size: 18px; }

  /* Mobile nav */
  .nav-toggle { display: block; }
  .site-nav .wrap { padding: 16px var(--gutter); }
  .site-nav .mark img { height: 28px; }
  .site-nav nav {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--linen); border-bottom: 1px solid var(--line);
    padding: 8px 0; z-index: 100; box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  }
  .site-nav nav.open { display: flex; }
  .site-nav nav a { padding: 14px var(--gutter); font-size: 15px; display: block; border-bottom: 1px solid var(--line); }
  .site-nav nav a:last-child { border-bottom: none; }
  .site-nav nav a.cta { margin: 12px var(--gutter); text-align: center; border: 1px solid var(--forest); border-radius: 2px; padding: 12px; }
  .site-nav .wrap { position: relative; }

  /* Footer */
  footer.site-footer .cols { grid-template-columns: 1fr; gap: 32px; }
  footer.site-footer { padding: 48px 0 32px; }

  /* Touch targets */
  a, button { min-height: 44px; }
  .eyebrow { font-size: 12px; }
}

@media (max-width: 480px) {
  :root { --gutter: 18px; }
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  .site-nav .mark img { height: 24px; }
}
