/* ==========================================================================
   C9 Ventures — production stylesheet
   Order: tokens · fonts · reset · layout · type · components · responsive
   Palette and type scale are the approved brand values. Do not add colors.
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------- */
:root {
  --umber: #14120F;   /* all type, the mark */
  --paper: #F4F1EB;   /* primary ground */
  --chalk: #FCFAF6;   /* documents, cards, form ground */
  --stone: #6E6A62;   /* labels, metadata — 5.3:1 on Paper */
  --moss:  #3D4A40;   /* links and scores only */
  --hair:  #E2DCD1;   /* hairline on paper */
  --body:  #45413A;   /* body copy on paper */

  --measure: 58ch;
  --shell-max: 1120px;
  /* Margin is one ninth of the page width, capped so long lines never form. */
  --shell-pad: clamp(20px, 11.11vw, 96px);

  --font-serif: "Newsreader", Georgia, "Iowan Old Style", "Times New Roman", Times, serif;
  --font-sans: "Instrument Sans", system-ui, -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* --- 2. Fonts ------------------------------------------------------------
   Newsreader (serif) and Instrument Sans (sans), self-hosted, SIL Open Font
   License 1.1. Licence files sit alongside the binaries in assets/fonts/.
   No third-party font service is called from anywhere in this package.
   Only the four weights the site actually uses are loaded.
   ------------------------------------------------------------------------- */
@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/newsreader-300.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/newsreader-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/instrument-sans-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/instrument-sans-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

/* --- 3. Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font: 400 17px/1.8 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, dl, dd, dt, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, picture { max-width: 100%; }
img { display: block; height: auto; }
hr { border: 0; margin: 0; }

a { color: var(--moss); text-decoration: none; border-bottom: 1px solid rgba(61, 74, 64, 0.4); }
a:hover { color: var(--umber); border-bottom-color: rgba(20, 18, 15, 0.5); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--umber);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--umber); color: var(--chalk);
  padding: 12px 20px; border: 0; z-index: 10;
  font: 500 14px/1.4 var(--font-sans);
}
.skip-link:focus { left: 0; }

/* --- 4. Layout ---------------------------------------------------------- */
.shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding-inline: var(--shell-pad);
}
.section { padding-block: 72px; }
.section--hero { padding-block: 96px 64px; }
.measure { max-width: var(--measure); }
.measure > p + p { margin-top: 22px; }

.hero-copy {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 44px;
  row-gap: 32px;
}
.hero-copy .display--hero,
.hero-copy .measure { grid-column: 1 / span 2; max-width: none; }

.rule { height: 1px; background: var(--umber); margin: 22px 0 32px; }

/* --- 5. Type ------------------------------------------------------------ */
.label {
  font: 500 10px/1.4 var(--font-sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--stone);
}
.display {
  font-family: var(--font-serif);
  font-weight: 300;
  color: var(--umber);
  letter-spacing: -0.024em;
  text-wrap: pretty;
}
.display--hero { font-size: clamp(32px, 5.4vw, 54px); line-height: 1.08; max-width: 24ch; }
.display--section { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.16; max-width: 28ch; margin-bottom: 22px; }
.note { font-size: 15px; line-height: 1.75; color: var(--stone); max-width: var(--measure); margin-top: 24px; }

/* --- 6. Header and footer ---------------------------------------------- */
.site-header { border-bottom: 1px solid var(--hair); background: var(--paper); }
.site-header__inner { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-block: 20px; }
.wordmark {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.024em;
  color: var(--umber);
  white-space: nowrap;
}
.header-link { font: 400 13px/1.4 var(--font-sans); white-space: nowrap; }
.wordmark--link { color: var(--umber); border-bottom: 0; }
.wordmark--link:hover { color: var(--umber); }

.site-footer { border-top: 1px solid var(--hair); margin-top: 24px; }
.site-footer__inner {
  padding-block: 40px 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px;
  align-items: start;
}
.footer-brand { grid-column: 1 / span 1; }
.footer-name {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.3;
  color: var(--umber);
  margin-bottom: 8px;
}
.footer-line { font-size: 13px; line-height: 1.65; max-width: 31ch; }
.footer-legal {
  grid-column: 2 / span 2;
  font-size: 13px;
  line-height: 1.75;
  color: var(--body);
}
.footer-meta { font-size: 12px; line-height: 1.7; color: var(--stone); margin-top: 24px; }

/* --- 7. Editorial image ------------------------------------------------- */
.editorial { margin-block: 8px 8px; }
.editorial img { width: 100%; aspect-ratio: 1600 / 1072; object-fit: cover; object-position: 50% 45%; }

/* --- 8. Cards (Where C9 helps) ----------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.card { display: flex; flex-direction: column; gap: 12px; }
.card__num { font-size: 13px; line-height: 1.4; color: var(--stone); font-variant-numeric: tabular-nums; }
.card__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--umber);
  white-space: nowrap;
}
.card p { font-size: 15px; line-height: 1.75; text-wrap: pretty; }

/* --- 9. Rows (How C9 works) ------------------------------------------- */
.rows { margin-top: 24px; }
.row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  padding-block: 22px;
  border-top: 1px solid var(--hair);
}
.row:last-child { border-bottom: 1px solid var(--hair); }
.row dt {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.018em;
  color: var(--umber);
}
.row dd { font-size: 15px; line-height: 1.75; text-wrap: pretty; }

/* --- 10. Split sections (Founder, The Ninth) -------------------------- */
.split { display: grid; grid-template-columns: 1fr 260px; gap: 56px; align-items: start; }
.split--wide-figure { grid-template-columns: 1fr minmax(280px, 440px); }
.split__figure img { width: 100%; }
#founder .split__figure img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; }
#ninth .split__figure img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 45% 55%; }

/* --- 11. Form ---------------------------------------------------------- */
.form { margin-top: 32px; max-width: 560px; }
.field { display: flex; flex-direction: column; gap: 8px; padding-block: 14px; }
.field:first-of-type { border-top: 1px solid var(--hair); }
.field label {
  font: 500 10px/1.4 var(--font-sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
}
.field__opt { letter-spacing: 0.12em; color: var(--stone); }
.field input, .field textarea {
  font: 400 16px/1.6 var(--font-sans);
  color: var(--umber);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--umber);
  border-radius: 0;
  padding: 4px 0 8px;
  width: 100%;
  min-height: 44px;
}
.field textarea { resize: vertical; min-height: 96px; }
.field[data-invalid="true"] input,
.field[data-invalid="true"] textarea { border-bottom-color: #7E3327; }
.field__error { font: 400 13px/1.6 var(--font-sans); color: #7E3327; }

.button {
  margin-top: 26px;
  font: 400 15px/1.4 var(--font-sans);
  color: var(--chalk);
  background: var(--umber);
  border: 1px solid var(--umber);
  border-radius: 0;
  padding: 14px 26px;
  min-height: 48px;
  cursor: pointer;
}
.button:hover { background: #2A2723; }
.button[disabled] { opacity: 0.55; cursor: default; }

.form__status { font-size: 15px; line-height: 1.75; margin-top: 20px; }
.form__status[data-state="ok"] { color: var(--moss); }
.form__status[data-state="error"] { color: #7E3327; }
.form__privacy { font-size: 13px; line-height: 1.7; color: var(--body); margin-top: 20px; max-width: 52ch; }

/* Honeypot: off-screen rather than display:none, so bots still see it. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- 12. Static confirmation / 404 ------------------------------------ */
.standalone { min-height: 70vh; display: flex; align-items: center; }

/* --- 13. Responsive --------------------------------------------------- */
@media (max-width: 900px) {
  .hero-copy { grid-template-columns: 1fr; row-gap: 28px; }
  .hero-copy .display--hero,
  .hero-copy .measure { grid-column: 1; }
  .cards { grid-template-columns: 1fr; gap: 36px; }
  .card__title { white-space: normal; }
  .row { grid-template-columns: 1fr; gap: 10px; }
  .split, .split--wide-figure { grid-template-columns: 1fr; gap: 28px; }
  .split__figure { order: -1; }
  #founder .split__figure img { width: 200px; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand, .footer-legal { grid-column: 1; }
  .footer-break { display: none; }
  .section { padding-block: 56px; }
  .section--hero { padding-block: 64px 44px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .card p, .row dd { font-size: 15px; }
  .editorial img { aspect-ratio: 4 / 3; }
  #ninth .split__figure img { aspect-ratio: 4 / 3; }
}

/* --- 14. Motion and print ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media print {
  .site-header, .form, .header-link, .skip-link { display: none; }
  body { background: #fff; color: #000; }
}
