/* PACEtree LLC — monochrome, minimalist single-page stylesheet.
   Palette shared with the PACEtree project site (website/assets/style.css). */

:root {
  --ink:       #1a1a1a;   /* primary text */
  --ink-soft:  #4d4d4d;   /* secondary text */
  --ink-faint: #8a8a8a;   /* muted / small print */
  --ink-ghost: #aaaaaa;   /* lightest — display-size accents only */
  --line:      #e4e4e4;   /* hairlines */
  --bg:        #ffffff;   /* page ground */
  --maxw:      680px;
  --pad:       clamp(1.25rem, 5vw, 2.5rem);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Main ---------- */
.page {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 10vw, 6rem) var(--pad) clamp(2rem, 6vw, 3rem);
}

.card {
  max-width: var(--maxw);
  width: 100%;
  text-align: center;
}

.mark {
  width: clamp(120px, 26vw, 176px);
  height: auto;
  display: block;
  margin: 0 auto clamp(1.5rem, 4vw, 2.25rem);
}

h1 {
  font-size: clamp(2.1rem, 6vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 1.25rem;
}

/* "LLC" is set to the x-height of the wordmark's lowercase letters, so the
   caps sit level with the "e" rather than the "P". Cap height is ~0.72em in
   this stack, so the size needed is the x-height divided by that: 1ex x 1.38.
   Using ex (rather than a flat em) keeps the match when the font falls back
   from SF Pro to Roboto, Segoe or Helvetica, whose x-heights differ. */
h1 .suffix {
  font-weight: 400;
  color: var(--ink-ghost);
  font-size: calc(1ex * 1.38);
  letter-spacing: 0.02em;
}

.mission {
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 34ch;
  margin: 0 auto;
  text-wrap: balance;
}

/* ---------- Footer ---------- */
.site-footer {
  flex: 0 0 auto;
  border-top: 1px solid var(--line);
  padding: 1.5rem var(--pad) 2rem;
  text-align: center;
  color: var(--ink-faint);
}

.site-footer address {
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  line-height: 1.6;
  margin: 0;
}

.site-footer .copyright {
  font-size: 0.72rem;
  margin: 0.75rem 0 0;
  color: var(--ink-faint);
}

@media (max-width: 540px) {
  body { font-size: 16px; }
}

/* ================================================================
   Multi-page additions — site header, content pages, home sections.
   Palette and type scale above are unchanged.
   ================================================================ */

:root {
  --maxw-wide: 880px;
}

/* ---------- Links in body copy ---------- */
.content a,
.hero-links a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ink-faint);
  text-underline-offset: 0.2em;
}
.content a:hover,
.hero-links a:hover { text-decoration-color: var(--ink); }

/* ---------- Site header ---------- */
.site-header {
  flex: 0 0 auto;
  border-bottom: 1px solid var(--line);
}

.site-header .bar {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 1rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.brand img { width: 26px; height: 26px; display: block; }

/* One flex item, so PACEtree and LLC share a baseline rather than each being
   centred on the bar's cross axis (which sat the smaller LLC too high). */
.brand .wordmark { display: block; }
/* "LLC" is set to the x-height of the wordmark's lowercase letters, so the
   caps sit level with the "e" rather than the "P". Cap height is ~0.72em in
   this stack, so the size needed is the x-height divided by that: 1ex x 1.38.
   Using ex (rather than a flat em) keeps the match when the font falls back
   from SF Pro to Roboto, Segoe or Helvetica, whose x-heights differ. */
.brand .suffix {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: calc(1ex * 1.38);
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem clamp(0.9rem, 3vw, 1.6rem);
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Content pages ---------- */
.content {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 4rem) var(--pad) clamp(2.5rem, 7vw, 4rem);
}

.page-title {
  font-size: clamp(1.75rem, 5vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 1rem;
}

.lede {
  font-size: clamp(1.05rem, 2.4vw, 1.15rem);
  color: var(--ink-soft);
  margin: 0 0 2rem;
  text-wrap: pretty;
}

.content h2 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin: 2.75rem 0 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.75rem 0 0.4rem;
}

.content p { margin: 0 0 1.1rem; }

.content ul {
  margin: 0 0 1.1rem;
  padding-left: 1.15rem;
}
.content li { margin-bottom: 0.55rem; }

.content dl { margin: 0 0 1.1rem; }
.content dt {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 0.9rem;
}
.content dd { margin: 0.1rem 0 0; }

.content address {
  font-style: normal;
  line-height: 1.6;
}

.meta {
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* ---------- Home ---------- */
.hero {
  padding: clamp(3rem, 9vw, 5rem) var(--pad) clamp(2rem, 5vw, 3rem);
  text-align: center;
}
.hero .card { margin: 0 auto; }

/* Logo sits beside the wordmark rather than stacked above it. */
.lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.8rem, 2.6vw, 1.4rem);
  margin: 0 0 1.5rem;
}

.lockup .mark {
  width: clamp(68px, 12vw, 108px);
  height: auto;
  margin: 0;
  flex: 0 0 auto;
}

.lockup h1 {
  margin: 0;
  font-size: clamp(1.75rem, 7vw, 3.1rem);
  text-align: left;
}

.hero-links {
  margin: 1.75rem 0 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.95rem;
}

.focus {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(3rem, 8vw, 4.5rem);
  display: grid;
  gap: clamp(1.75rem, 5vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.focus section { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.focus h2 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}
.focus p { margin: 0 0 1rem; color: var(--ink-soft); font-size: 0.97rem; }
.focus a {
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ink-faint);
  text-underline-offset: 0.2em;
}

/* ---------- Footer additions ---------- */
.site-footer .footer-nav {
  margin: 0 0 0.9rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  font-size: 0.78rem;
}
.site-footer .footer-nav a {
  color: var(--ink-faint);
  text-decoration: none;
}
.site-footer .footer-nav a:hover { color: var(--ink-soft); }
