/* thefutureofwhatmatters.com: one page, no script, no third-party request. Fonts and the mark are served from this origin. */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/ibm-plex-sans-400-500var-latin.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Melkem Display";
  src: url("/fonts/melkem-display-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --green: #014033;
  --cream: #F9F4E5;
  --bg: var(--cream);
  --ink: var(--green);
  --muted: #3b5b51;
  --rule: #c7ccb6;
  --display: "Melkem Display", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--green);
    --ink: var(--cream);
    --muted: #d5dac9;
    --rule: #2f6558;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.65;
  font-variant-numeric: lining-nums tabular-nums;
}

.wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

h1, h2, .closing {
  font-family: var(--display);
  font-weight: 700;
  font-variant-numeric: lining-nums tabular-nums;
  margin: 0;
}

.hero { padding: 40px 0 36px; }
h1 {
  font-size: clamp(2.75rem, 12vw, 5.5rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
}
.lede {
  margin: 32px 0 0;
  max-width: 30rem;
  font-size: clamp(1.25rem, 4.6vw, 1.625rem);
  line-height: 1.5;
}

.block {
  padding: 72px 0;
  border-top: 1px solid var(--rule);
}
h2 {
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  line-height: 1.15;
  margin-bottom: 24px;
}
.block p { margin: 0 0 16px; max-width: 34rem; }
.block p:last-child { margin-bottom: 0; }

.beliefs {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 34rem;
}
.beliefs li {
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}
.beliefs li:nth-child(1) { border-top: 0; padding-top: 0; }

.closing-block {
  padding: 96px 0 104px;
  border-top: 1px solid var(--rule);
}
.closing {
  font-size: clamp(2.25rem, 9.5vw, 4.75rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.closing .keep { white-space: nowrap; }
.closing .brand { display: block; }

footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--rule);
  font-size: 1rem;
  line-height: 1.5;
}
/* The M. sits on MELKEM Green in both modes: the clean tile on cream, the tile with its keyline and glow on green.
   The on-green file keeps the tile at 72% of its canvas, so it is drawn larger and pulled back to the text edge. */
.mark { display: block; width: 56px; height: 56px; margin: 0 0 24px; }
@media (prefers-color-scheme: dark) {
  .mark { width: 78px; height: 78px; margin: -11px 0 13px -11px; }
}
.from { margin: 0 0 8px; }
.from a {
  display: inline-block;
  padding: 10px 0;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
.legal { margin: 0; color: var(--muted); }

.beliefs a {
  display: inline-block;
  padding: 11px 0;
  margin: -11px 0;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

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

@media (min-width: 48rem) {
  .wrap { padding-left: 40px; padding-right: 40px; }
  body { font-size: 1.25rem; }
  .hero { padding: 112px 0 72px; }
  .block { padding: 104px 0; }
  .closing-block { padding: 136px 0 144px; }
  footer { padding: 56px 0 72px; font-size: 1.0625rem; }
}

@media print {
  body { background: #fff; color: #000; }
  .hero { min-height: 0; }
}
