/* matteisn.com — Vang brand family (v4)
   Same brand palette + type system as vang.capital + vangadvisory.com.
   Personal-site STRUCTURE preserved (off-grid portrait, CV list, prose blocks).
*/

:root {
  --navy: #0a1641;
  --navy-soft: #2a3461;
  --navy-faint: #6a7493;
  --purple: #4b04af;
  --purple-soft: #8a5cd6;
  --teal: #0ea5a5;
  --rule: #d6dbe6;
  --section-bg: #f2f2f2;
  --paper: #ffffff;
  --headline: "Montserrat", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --body: "Open Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --measure: 36rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--purple);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-thickness 0.15s ease, color 0.15s ease;
}
a:hover { text-decoration-thickness: 2px; color: var(--navy); }

main {
  max-width: 70rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* MASTHEAD */
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--rule);
  padding: 1.75rem 0 1.25rem;
  margin-bottom: 4rem;
}

.wordmark {
  font-family: var(--headline);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.masthead-meta {
  font-family: var(--body);
  font-size: 0.78rem;
  color: var(--navy-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

/* LEDE */
.lede {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16rem;
  gap: 4rem;
  align-items: start;
  margin: 0 0 6rem;
}

.lede-prose {
  font-family: var(--headline);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 36ch;
  font-weight: 500;
  color: var(--navy);
}

.lede-prose a {
  text-decoration-thickness: 1.5px;
  color: var(--purple);
}

.portrait {
  margin: 0;
  position: relative;
  margin-top: 0.6rem;
}

.portrait img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1px;
  position: relative;
  z-index: 1;
}

.portrait::after {
  content: "";
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  right: -0.6rem;
  bottom: -0.6rem;
  border: 1px solid var(--purple);
  z-index: 0;
}

/* BLOCK */
.block {
  margin: 0 0 5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
}

.rubric {
  font-family: var(--headline);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 2rem;
}

.prose {
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: var(--measure);
  margin: 0;
  color: var(--navy);
}

/* NOW — 2 items */
.now {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
}

.now-item { margin: 0; }

.now-item h3 {
  font-family: var(--headline);
  font-weight: 600;
  font-size: 1.65rem;
  margin: 0 0 0.25rem;
  letter-spacing: -0.012em;
  color: var(--navy);
}

.now-item h3 a {
  text-decoration: none;
  border-bottom: 1.5px solid var(--purple);
  padding-bottom: 1px;
  color: var(--navy);
}

.now-when {
  font-family: var(--headline);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--navy-faint);
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  font-weight: 500;
}

.now-role {
  font-family: var(--body);
  color: var(--purple);
  margin: 0 0 0.85rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.now-item p {
  margin: 0 0 0.6rem;
  font-size: 0.98rem;
  line-height: 1.65;
}

.inline-links {
  font-family: var(--headline);
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

/* CV — typographic list */
.cv { list-style: none; margin: 0; padding: 0; }

.cv-row {
  display: grid;
  grid-template-columns: 6rem minmax(0, 18rem) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.cv-row:first-child { padding-top: 0; }
.cv-row:last-child { border-bottom: none; }

.cv-when {
  font-family: var(--headline);
  font-size: 0.85rem;
  color: var(--navy-faint);
  letter-spacing: 0.02em;
  font-weight: 500;
}

.cv-where {
  font-family: var(--headline);
  font-size: 1rem;
  letter-spacing: -0.005em;
  color: var(--navy);
  font-weight: 500;
}

.cv-where strong { font-weight: 700; }

.cv-what {
  font-family: var(--body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--navy);
}

.colophon { text-align: left; }
.colophon .prose { font-size: 1.1rem; }

/* FOOTER */
.site-foot {
  border-top: 1px solid var(--rule);
  margin: 6rem auto 0;
  padding: 1.75rem var(--gutter) 2rem;
  max-width: 70rem;
  font-family: var(--body);
  font-size: 0.82rem;
  color: var(--navy-faint);
  letter-spacing: 0.01em;
  line-height: 1.6;
}

.site-foot p { margin: 0; }
.mono { font-family: var(--headline); font-weight: 500; font-size: 0.78rem; }

/* RESPONSIVE */
@media (max-width: 800px) {
  .masthead {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .lede {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 4rem;
  }
  .portrait { max-width: 18rem; }
  .lede-prose { font-size: 1.4rem; }
  .now {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .cv-row {
    grid-template-columns: 5rem 1fr;
    gap: 1rem;
  }
  .cv-what {
    grid-column: 1 / -1;
    margin-top: 0.4rem;
  }
}

@media (max-width: 500px) {
  body { font-size: 16px; }
  .lede-prose { font-size: 1.25rem; line-height: 1.35; }
  .now-item h3 { font-size: 1.4rem; }
  .rubric { font-size: 0.72rem; }
}
