/* M³ VentureWorks
   Layout: a 12-column editorial grid. Labels and section titles sit in a
   left margin column; text sits in the right. Every page opens on a deep
   green masthead and closes on a deep green footer, with a paper body in
   between. Newsreader for display and reading text, Libre Franklin for
   labels, navigation and running copy. Brass is reserved for the ³. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/newsreader.woff2") format("woff2-variations"), url("/fonts/newsreader.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/newsreader-italic.woff2") format("woff2-variations"), url("/fonts/newsreader-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/libre-franklin.woff2") format("woff2-variations"), url("/fonts/libre-franklin.woff2") format("woff2");
}

:root {
  /* paper */
  --paper: #f3f0e8;
  --paper-2: #ebe6da;
  --sand: #d8d0bf;
  /* ink */
  --ink: #1a1814;
  --ink-2: #4a463f;
  --muted: #736e64;
  --rule: rgba(26, 24, 20, 0.14);
  --rule-2: rgba(26, 24, 20, 0.30);
  /* green */
  --green: #1e3f34;
  --green-deep: #14302a;
  --green-line: rgba(243, 240, 232, 0.16);
  --green-line-2: rgba(243, 240, 232, 0.34);
  --sage: #a9bfb0;
  --sage-dim: #7f9789;
  /* brass */
  --brass: #c9a66b;
  --brass-ink: #9a7a45;

  --serif: "Newsreader", "Times New Roman", Times, Georgia, serif;
  --sans: "Libre Franklin", "Franklin Gothic Medium", "Helvetica Neue", Arial, sans-serif;

  --display: clamp(2.35rem, 1.45rem + 3.3vw, 4.1rem);
  --h1: clamp(2.15rem, 1.4rem + 2.6vw, 3.4rem);
  --h2: clamp(1.45rem, 1.2rem + 0.85vw, 1.9rem);
  --reading: clamp(1.2rem, 1.1rem + 0.35vw, 1.4rem);
  --lede: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  --small: 0.875rem;
  --label: 0.75rem;

  --gutter: clamp(1.25rem, 5.5vw, 5.5rem);
  --col-gap: clamp(1.5rem, 3vw, 3rem);
  --measure: 60ch;
}

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

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 106.25%;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

::selection { background: var(--brass); color: var(--green-deep); }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--rule-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  transition: color 120ms ease, text-decoration-color 120ms ease;
}
a:hover { color: var(--green); text-decoration-color: var(--green); }
a:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 1px; }

p, ul, ol, dl { margin: 0; }
ul, ol { padding-left: 1.2rem; }
strong { font-weight: 600; }

/* The ³ */
sup.cube {
  font-size: 0.62em;
  line-height: 0;
  vertical-align: baseline;
  position: relative;
  top: -0.48em;
  margin-left: -0.01em;
  margin-right: 0.02em;
  letter-spacing: 0;
}
.brand sup.cube, .statement sup.cube, h1 sup.cube { color: var(--brass); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--brass); color: var(--green-deep);
  padding: 0.5rem 0.8rem; text-decoration: none; font-size: var(--small);
}
.skip:focus { top: 1rem; color: var(--green-deep); }

.wrap {
  width: 100%;
  max-width: 82rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Type roles */
.label {
  font-family: var(--sans);
  font-size: var(--label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  line-height: 1.4;
}
h1, h2, h3 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--h1); font-weight: 400; max-width: 20ch; }
h2 { font-size: var(--h2); }
p { text-wrap: pretty; }
.reading {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: var(--reading);
  line-height: 1.42;
  letter-spacing: -0.004em;
  max-width: 34ch;
}
.lede {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: var(--lede);
  line-height: 1.4;
  max-width: 40ch;
}
.copy { max-width: var(--measure); }
.copy p + p { margin-top: 1rem; }
.copy ul { max-width: var(--measure); margin-top: 0.75rem; }
.copy li + li { margin-top: 0.4rem; }

/* Green bands: header, masthead, hero, footer */
.band {
  background: var(--green-deep);
  color: var(--paper);
}
.band a { text-decoration-color: var(--green-line-2); }
.band a:hover { color: var(--brass); text-decoration-color: var(--brass); }
.band .label { color: var(--sage); }
.band .lede { color: var(--sage); }
.band ::selection { background: var(--brass); color: var(--green-deep); }

/* Header */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  min-height: 4.75rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--green-line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.brand:hover { color: inherit; }
.mark {
  display: block;
  width: 1.85rem;
  height: 1.85rem;
  flex: none;
}
.wordmark {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}
.nav {
  display: flex;
  gap: 0.25rem 1.85rem;
  margin: 0; padding: 0; list-style: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.nav a {
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  color: var(--paper);
  opacity: 0.86;
}
.nav a:hover { opacity: 1; color: var(--paper); border-bottom-color: var(--brass); }
.nav a[aria-current="page"] { opacity: 1; border-bottom-color: var(--brass); }

@media (max-width: 40rem) {
  .site-header .wrap { flex-wrap: wrap; padding-block: 1rem 0.75rem; }
  .nav { width: 100%; gap: 1.25rem; border-top: 1px solid var(--green-line); padding-top: 0.55rem; font-size: 0.9rem; }
}

/* Main */
main { flex: 1 0 auto; }
.section { padding-block: clamp(3rem, 7vw, 6rem); }

/* The grid: a label column and a content column */
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem var(--col-gap);
  align-items: start;
}
@media (min-width: 48rem) {
  .row { grid-template-columns: 3fr 9fr; }
}
@media (min-width: 64rem) {
  .row { grid-template-columns: 3fr 7fr 2fr; }
  .row.wide { grid-template-columns: 3fr 9fr; }
}
.row .label { padding-top: 0.35rem; }

/* Masthead: the green opening of every page */
.masthead { padding-block: clamp(3.25rem, 8vw, 7rem) clamp(3rem, 7vw, 6rem); }
.masthead .label { display: block; margin-bottom: 1.25rem; }
.masthead .lede { margin-top: 1.4rem; }
.masthead .copy { margin-top: 1.6rem; max-width: 52ch; color: var(--sage); }
.masthead .copy a { color: var(--paper); }
.masthead .copy a:hover { color: var(--brass); }

/* Hero (home) */
.hero { padding-block: clamp(3.75rem, 9vw, 8.5rem) clamp(3rem, 7vw, 6rem); }
.hero .statement {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: var(--display);
  line-height: 1.12;
  letter-spacing: -0.014em;
  max-width: 26ch;
  text-wrap: pretty;
  margin: 0;
}
.hero .statement strong { font-weight: 500; }
.hero-meta {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--green-line-2);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  font-size: var(--small);
  color: var(--sage);
}
.hero-meta a { color: var(--paper); text-decoration-color: var(--green-line-2); }
.hero-meta a:hover { color: var(--brass); }
.hero-meta .label { color: var(--sage-dim); letter-spacing: 0.12em; margin-right: 0.6rem; }

/* Ledger (home body): label left, reading text right, rules between */
.ledger { border-top: 1px solid var(--rule-2); }
.ledger .row {
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--rule);
}
.ledger .row:last-child { border-bottom: 1px solid var(--rule-2); }
.ledger .row .label { padding-top: 0.55rem; }
.ledger .reading + .copy { margin-top: 1.1rem; }
.ledger .copy { color: var(--ink-2); }

/* Article sections (subpages): h2 in the margin column */
.article { border-top: 1px solid var(--rule-2); }
.article .row {
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--rule);
}
.article .row:last-child { border-bottom: 1px solid var(--rule-2); }
.article h2 {
  font-size: var(--h2);
  font-weight: 500;
  max-width: 14ch;
  padding-top: 0.15rem;
}
.article h2 .num {
  display: block;
  font-family: var(--sans);
  font-size: var(--label);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--brass-ink);
  margin-bottom: 0.55rem;
  font-variant-numeric: tabular-nums;
}
.article .copy { color: var(--ink-2); }
.article .copy strong { color: var(--ink); }

/* Record table (About) */
.record {
  background: var(--paper-2);
  border-top: 2px solid var(--green);
  border-bottom: 1px solid var(--sand);
  margin: 0;
  padding-inline: 1.25rem;
}
.record > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.15rem var(--col-gap);
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--sand);
}
.record > div:last-child { border-bottom: 0; }
.record dt {
  font-size: var(--label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  padding-top: 0.3rem;
}
.record dd { margin: 0; font-family: var(--serif); font-optical-sizing: auto; font-size: 1.15rem; line-height: 1.4; color: var(--ink); }
@media (min-width: 40rem) {
  .record > div { grid-template-columns: 11rem minmax(0, 1fr); }
}

/* Contact */
.contact-email {
  display: inline-block;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: min(clamp(1.6rem, 0.6rem + 4.2vw, 3.6rem), 6.4vw);
  letter-spacing: -0.012em;
  line-height: 1.1;
  color: var(--paper);
  text-decoration-color: var(--brass);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.14em;
  margin-top: 1.75rem;
  overflow-wrap: anywhere;
}
.contact-email:hover { color: var(--brass); text-decoration-thickness: 2px; }

/* Footer */
.site-footer {
  padding-block: clamp(2.75rem, 5vw, 4.5rem) 2rem;
  font-size: var(--small);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem var(--col-gap);
}
@media (min-width: 40rem) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (min-width: 64rem) {
  .footer-grid { grid-template-columns: 5fr 2fr 3fr 2fr; }
  .footer-grid > :first-child { grid-column: auto; }
}
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { max-width: 30ch; color: var(--sage); }
.footer-col .label { display: block; margin-bottom: 0.8rem; color: var(--sage-dim); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li + li { margin-top: 0.4rem; }
.footer-col a { text-decoration: none; color: var(--paper); }
.footer-col a:hover { color: var(--brass); text-decoration: underline; }
.footer-col .email { font-family: var(--serif); font-optical-sizing: auto; font-size: 1.1rem; }
.footer-col .dim { color: var(--sage); }
.footer-base {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--green-line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2rem;
  justify-content: space-between;
  color: var(--sage-dim);
}
.footer-base p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .band { background: none; color: #000; }
  a { color: #000; text-decoration: none; }
}
