/* ---------------------------------------------------------------
   Snowfall Capital
   Type:    serif for display only (wordmark, headline, names);
            neutral grotesk for everything else.
   Colour:  four values on the cream ground, all >= 4.5:1.
   Layout:  one 1180px centred column.
   Spacing: four-step scale.
   --------------------------------------------------------------- */

:root {
  /* Ground + four ink values */
  --cream:      #fafaf7;
  --ink:        #1a1a1a;  /* 16.0:1 — display type, names */
  --body:       #45403a;  /*  9.2:1 — running copy */
  --deemph:     #6e675d;  /*  5.1:1 — roles, descriptors, labels */
  --accent:     #3f5648;  /*  7.7:1 — links only */
  --rule:       #dedcd3;
  --rule-ink:   #1a1a1a;

  /* Four-step spacing scale */
  --s1: 8px;    /* within a group */
  --s2: 20px;   /* between related items */
  --s3: 48px;   /* between groups */
  --s4: 104px;  /* between sections */

  --column: 1180px;
  --gutter: 32px;

  --serif: 'Iowan Old Style', 'Charter', Georgia, serif;
  --grotesk: 'Helvetica Neue', Helvetica, Arial, system-ui, sans-serif;
}

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

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  background: var(--cream);
  color: var(--body);
  font-family: var(--grotesk);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* --- Header: anchored band, closed by a full-width ink rule ------ */

header {
  border-bottom: 1px solid var(--rule-ink);
}

.header-inner {
  display: flex;
  align-items: center;
  padding-top: var(--s3);
  padding-bottom: var(--s3);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--ink);
  text-decoration: none;
}

.mark {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--ink);
}

/* --- Hero: headline runs the full column ------------------------ */

.hero { padding: var(--s4) 0; }

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4.6vw, 4rem);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

/* --- Principals: two equal columns, copy held to 45ch ----------- */

.principals { padding-bottom: var(--s4); }

.principals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s3);
}

.principal h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: var(--s1);
}

.principal .role {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--deemph);
  margin-bottom: var(--s2);
}

.principal p {
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 45ch;
  color: var(--body);
  margin-bottom: var(--s2);
}

.principal a,
.footer-contact a {
  font-size: 0.9375rem;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Investors: rows that fill the column ----------------------- */

.investors {
  padding-top: var(--s3);
  padding-bottom: var(--s4);
  border-top: 1px solid var(--rule);
}

.investors h2 {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--deemph);
  margin-bottom: var(--s3);
}

.investor-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: var(--s3);
}

.investor {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  padding: var(--s2) 0;
  border-bottom: 1px solid var(--rule);
}

.investor-name {
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.3;
  color: var(--ink);
}

.investor-role {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--deemph);
}

.investor-role cite { font-style: italic; }

/* --- Footer: wordmark quieter than the header's ------------------ */

footer {
  border-top: 1px solid var(--rule);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s2);
  padding-top: var(--s3);
  padding-bottom: var(--s3);
}

.footer-mark {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.footer-legal {
  font-size: 0.8125rem;
  color: var(--deemph);
}

/* --- Tablet: bios stack, investors stay paired ------------------- */

@media (max-width: 1024px) {
  :root { --gutter: 28px; --s4: 80px; --s3: 40px; }

  .header-inner { padding-top: var(--s3); padding-bottom: var(--s3); }
  .principals-grid { gap: var(--s3); }
  .investor-list { column-gap: var(--s3); }
}

@media (max-width: 820px) {
  .principals-grid { grid-template-columns: 1fr; }
  .principal p { max-width: 52ch; }
}

/* --- Phone: one column throughout ------------------------------- */

@media (max-width: 640px) {
  :root { --gutter: 20px; --s4: 60px; --s3: 32px; --s2: 16px; }

  .wordmark { font-size: 1.25rem; gap: 10px; }
  .mark { width: 18px; height: 18px; }

  .hero { padding: var(--s4) 0; }
  .hero h1 { line-height: 1.18; }

  .principal h2 { font-size: 1.3125rem; }
  .principal p { max-width: none; }

  .investor-list { grid-template-columns: 1fr; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s1);
  }
}
