/* ===========================================================================
   Applied Agents — root page (the practice).
   Warm charcoal canvas, Newsreader serif display, Hanken Grotesk body,
   IBM Plex Mono labels, terracotta accent. Self-hosted fonts, no external
   requests. Editorial single column.
   =========================================================================== */

/* --- Fonts (self-hosted, variable) --------------------------------------- */
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader.woff2") format("woff2");
  font-weight: 200 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens --------------------------------------------------------------- */
:root {
  --bg: #1f1e1d; /* warm charcoal canvas */
  --fg: #f3f1ea; /* headings, bright type */
  --text: #cdcabf; /* body prose */
  --muted: #918e85; /* secondary text */
  --accent: #d97757; /* terracotta */
  --line: rgba(243, 241, 234, 0.1); /* hairline dividers */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

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

html {
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

a {
  color: inherit;
}

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

/* --- Layout --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 46rem; /* 736px */
  margin-inline: auto;
  padding-inline: 1.5rem;
}

main {
  flex: 1;
}

/* --- Header --------------------------------------------------------------- */
.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
}

.wordmark,
.tagline {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wordmark {
  color: var(--fg);
  font-weight: 400;
  text-decoration: none;
}

.tagline {
  color: var(--muted);
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  padding-top: 3.5rem;
  padding-bottom: 3rem;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.75rem;
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--fg);
}

.lead {
  max-width: 38rem;
  margin-top: 1.75rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text);
}

/* --- Sections ------------------------------------------------------------- */
.block {
  border-top: 1px solid var(--line);
  padding-block: 3rem;
}

.seclabel {
  margin-bottom: 1.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.seclabel .num {
  font-weight: 400;
}

h2 {
  max-width: 24ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-wrap: balance;
}

.prose {
  max-width: 38rem;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.prose p,
.tier-desc,
.fact dd {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
}

.prose strong {
  font-weight: 600;
  color: var(--fg);
}

.cta-line {
  color: var(--fg);
  font-weight: 500;
}

/* Inline links inside prose (privacy page) */
.prose a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

.prose a:hover {
  color: var(--accent);
}

/* --- Paired notes (vendor-neutral / capability transfer) ----------------- */
.pair {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  max-width: 38rem;
  display: grid;
  gap: 1.5rem;
}

.pair-title {
  display: block;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.35rem;
}

.pair-desc {
  display: block;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* --- Tiers (three sizes of buyer) ---------------------------------------- */
.tiers {
  margin-top: 2rem;
  display: grid;
  gap: 2rem;
}

.tier {
  max-width: 38rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.tier:first-child {
  border-top: none;
  padding-top: 0;
}

.tier-name {
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1.15;
  color: var(--fg);
}

.tier-size {
  margin-top: 0.4rem;
  margin-bottom: 0.75rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* --- Sub-labels + target / principle lists ------------------------------- */
.sublabel {
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.targets {
  list-style: none;
  padding: 0;
  max-width: 38rem;
  display: grid;
  gap: 1.25rem;
}

.target-name {
  display: block;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.3rem;
}

.target-desc {
  display: block;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.principles {
  list-style: none;
  padding: 0;
  max-width: 38rem;
  display: grid;
  gap: 1rem;
}

.principles li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
}

.principles li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.75rem;
  height: 1px;
  background: var(--accent);
}

/* --- Background facts ----------------------------------------------------- */
.facts {
  margin-top: 2rem;
  max-width: 38rem;
  display: grid;
  gap: 1.5rem;
}

.fact dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.fact dd {
  color: var(--text);
}

/* --- CTA / email ---------------------------------------------------------- */
.email {
  display: block;
  width: fit-content;
  margin-top: 1.25rem;
  font-size: 1.25rem;
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

.email:hover {
  color: var(--accent);
}

.fineprint {
  margin-top: 2rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  padding-block: 2.5rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.footer-row .copy {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.footer-row a {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.footer-row a:hover {
  color: var(--fg);
  text-decoration-color: var(--fg);
}

.footer-row .tagline {
  margin-right: auto;
}

/* --- Desktop (>= 640px) --------------------------------------------------- */
@media (min-width: 640px) {
  .container {
    padding-inline: 2rem;
  }

  .site-header {
    padding-top: 3rem;
  }

  .hero {
    padding-top: 5rem;
    padding-bottom: 4rem;
  }

  h1 {
    font-size: 4.5rem;
    letter-spacing: -0.02em;
  }

  .lead {
    font-size: 1.25rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .block {
    padding-block: 4rem;
  }

  .prose p,
  .tier-desc,
  .fact dd {
    font-size: 1.125rem;
  }

  .tier-name {
    font-size: 1.5rem;
  }

  .principles li {
    font-size: 1.125rem;
  }
}
