/*
 * Peak Warden — standalone stylesheet (no framework, no Tailwind).
 * Colors follow the Peak Warden Color Standard: three-tier token architecture,
 * semantic names describing role (never appearance), theme carried by scope
 * (:root = light, html.dark = dark) and never by the token name.
 * Typeface: Inter (self-hosted), via --font-sans.
 */

/* ----------------------------------------------------------- Inter font */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300; font-display: swap; src: url('/fonts/Inter-Light.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/Inter-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/Inter-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/Inter-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/Inter-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/Inter-ExtraBold.woff2') format('woff2'); }

/* ---------------------------------------------------------------- tokens
 * Peak Warden Color Standard — three-tier token architecture.
 * Tier 1 (primitives, --color-*): raw, theme-agnostic hues.
 * Tier 2 (semantic, bare names): the day-to-day palette; theme lives in scope
 *   (:root = light, html.dark = dark) — never in the name.
 */

:root {
  /* ================================================= Tier 1 — Primitives
     Raw palette. One fixed hue per token; only semantic tokens flip by theme.
     Don't use primitives directly in UI — except categorical hues in charts. */

  /* Neutral — cool blue-tinted ramp, white -> near-black navy (surfaces & borders) */
  --color-neutral-0: #FFFFFF;
  --color-neutral-50: #FEFEFE;
  --color-neutral-75: #FDFDFE;
  --color-neutral-100: #FCFCFE;
  --color-neutral-150: #FAFAFD;
  --color-neutral-175: #F4F5FA;
  --color-neutral-200: #EDEEF7;
  --color-neutral-250: #E7E8F4;
  --color-neutral-300: #E0E1F1;
  --color-neutral-350: #CCCDE0;
  --color-neutral-700: #212847;
  --color-neutral-750: #1B2533;
  --color-neutral-800: #131B29;
  --color-neutral-850: #111927;
  --color-neutral-870: #0B111F;
  --color-neutral-900: #060C17;
  --color-neutral-925: #040813;
  --color-neutral-950: #030712;

  /* Slate — content ramp (text) */
  --color-slate-200: #e2e8f0;
  --color-slate-300: #cbd5e1;
  --color-slate-400: #94a3b8;
  --color-slate-500: #64748b;
  --color-slate-600: #475569;
  --color-slate-800: #1f2937;
  --color-slate-900: #111827;

  /* Brand */
  --color-brand-400: #1A8DA8; /* dark-mode accent hover (lighten toward) */
  --color-brand-500: #147187; /* the accent, both themes */
  --color-brand-600: #0E5A6A; /* light-mode accent hover (darken) */

  /* Categorical palette — multi-category visuals only (countries, commodities,
     sectors, scenarios). Theme-independent so a category keeps its hue across the
     toggle. Default to -500; use -700 on light and -300 on dark for more contrast. */
  --color-gray-100: #e5e5e5;
  --color-gray-300: #c5c5c5;
  --color-gray-600: #959595;
  --color-gray-900: #4b4b4b;

  --color-red-300: #FF6B6B;
  --color-red-500: #C41E3A;
  --color-red-700: #8B0000;

  --color-green-300: #90EE90;
  --color-green-500: #50C878;
  --color-green-700: #006400;

  --color-blue-300: #4D73B6;
  --color-blue-500: #1C50B7;
  --color-blue-700: #14387F;

  --color-yellow-300: #FABC0C;
  --color-yellow-500: #E49B0F;
  --color-yellow-700: #B8860B;

  --color-purple-300: #E6E6FA;
  --color-purple-500: #702963;
  --color-purple-700: #4B0082;

  --color-orange-300: #FFB347;
  --color-orange-500: #FFA500;
  --color-orange-700: #CC7722;

  --color-teal-300: #4DA6A6;
  --color-teal-500: #006666;
  --color-teal-700: #003D3D;

  --color-brown-300: #C4A484;
  --color-brown-500: #964B00;
  --color-brown-700: #654321;

  --color-pink-300: #F9A8D4;
  --color-pink-500: #ec4899;
  --color-pink-700: #BE185D;

  /* ================================================= Tier 2 — Semantic
     The day-to-day palette. Use these, not raw primitives. Theme lives in
     scope (html.dark overrides below) — never in the name. */

  /* Surfaces */
  --surface: var(--color-neutral-50);          /* page canvas */
  --surface-subtle: var(--color-neutral-100);  /* alt sections, footers, muted panels */
  --surface-raised: var(--color-neutral-150);  /* cards, modals, dropdowns, code */
  --surface-inset: var(--color-neutral-75);    /* inputs, wells (recessed) */
  --surface-hover: var(--color-neutral-200);   /* hover fill on rows / menu items */
  --surface-active: var(--color-neutral-250);  /* active / selected nav or row */

  /* Text */
  --content: var(--color-slate-900);           /* headings, strong text */
  --content-secondary: var(--color-slate-800); /* body copy */
  --content-muted: var(--color-slate-600);     /* labels, captions */
  --content-disabled: var(--color-slate-500);  /* placeholder, disabled, meta */
  --on-accent: var(--color-neutral-0);         /* text/icons on accent fills */

  /* Borders */
  --line: var(--color-neutral-250);        /* borders, dividers, gridlines */
  --line-strong: var(--color-neutral-300); /* footer border, deepest divider */

  /* Brand */
  --accent: var(--color-brand-500);        /* primary action, links, emphasis */
  --accent-hover: var(--color-brand-600);  /* darkens on light */

  /* Status */
  --success: var(--color-green-700);
  --warning: var(--color-yellow-700);
  --danger: var(--color-red-500);
  --info: var(--color-blue-700);

  /* Utility */
  --focus: var(--color-gray-900);              /* keyboard focus ring */
  --scroll-track: var(--color-neutral-175);
  --scroll-thumb: var(--color-neutral-350);

  --font-sans: 'Inter', -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI',
    Roboto, Helvetica, Arial, sans-serif;
}

html.dark {
  /* Semantic tokens flip; Tier-1 primitives are inherited unchanged. */

  /* Surfaces */
  --surface: var(--color-neutral-950);
  --surface-subtle: var(--color-neutral-925);
  --surface-raised: var(--color-neutral-900);
  --surface-inset: var(--color-neutral-850);
  --surface-hover: var(--color-neutral-870);
  --surface-active: var(--color-neutral-850);

  /* Text */
  --content: var(--color-neutral-75);
  --content-secondary: var(--color-slate-200);
  --content-muted: var(--color-slate-300);
  --content-disabled: var(--color-slate-400);
  --on-accent: var(--color-neutral-75);

  /* Borders */
  --line: var(--color-neutral-800);
  --line-strong: var(--color-neutral-750);

  /* Brand — accent is constant across themes; hover LIGHTENS on the dark canvas */
  --accent: var(--color-brand-500);
  --accent-hover: var(--color-brand-400);

  /* Status — lighter shades stay legible on the near-black canvas */
  --success: var(--color-green-500);
  --warning: var(--color-yellow-500);
  --danger: var(--color-red-300);
  --info: var(--color-blue-300);

  /* Utility */
  --focus: var(--color-gray-300);
  --scroll-track: var(--color-neutral-900);
  --scroll-thumb: var(--color-neutral-700);
}

/* ----------------------------------------------------------------- base */
* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: -0.1px;
  color: var(--content-secondary);
  background-color: var(--surface);
}

.layout { min-height: 100vh; display: flex; flex-direction: column; }

.container {
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

main.container { flex: 1; padding-top: 2.5rem; padding-bottom: 4rem; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Theme-swapped asset pairs (logos, etc.) */
html.dark .logo-light { display: none; }
html:not(.dark) .logo-dark { display: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 0.75rem; }
::-webkit-scrollbar-track { background-color: var(--scroll-track); }
::-webkit-scrollbar-thumb {
  background-color: var(--scroll-thumb);
  border: 3px solid transparent;
  background-clip: content-box;
  border-radius: 9999px;
}
* { scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) var(--scroll-track); }

/* --------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  display: flex;
  flex-wrap: wrap; /* lets the mobile nav panel drop to its own full-width row */
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  height: 2.25rem;
}

.brand-logo-link { display: inline-flex; align-items: center; height: 100%; }

.brand-logo { height: 1.35rem; width: auto; }

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  height: 2.25rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--content);
  border-radius: 0.4rem;
  transition: color 0.15s ease;
}

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

.header-actions { display: inline-flex; align-items: center; gap: 0.4rem; }

.site-nav { display: none; align-items: center; gap: 0.2rem; } /* collapsed into the hamburger below sm */

.site-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 2.25rem;
  padding: 0.375rem 0.7rem;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--content-secondary);
  border: 1px solid transparent;
  border-radius: 0.4rem;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}

.site-nav-link:hover { background-color: var(--surface-hover); color: var(--content); }
.site-nav-link svg { opacity: 0.7; }
.site-nav-link:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--focus); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  background-color: transparent;
  color: var(--content-muted);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.theme-toggle:hover { background-color: var(--surface-hover); color: var(--content); }
.theme-toggle:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--focus); }
.theme-toggle svg { display: block; }
html.dark .icon-moon { display: none; }
html:not(.dark) .icon-sun { display: none; }

/* Square, bordered hamburger — visible only below the sm breakpoint. */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  color: var(--content-secondary);
  background-color: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-toggle:hover { background-color: var(--surface-hover); color: var(--content); }
.nav-toggle[aria-expanded="true"] { background-color: var(--surface-hover); }
.nav-toggle:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--focus); }
.nav-toggle svg { display: block; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Full-width dropdown shown when the hamburger is open (mobile only). */
.site-nav-mobile {
  display: none;
  flex-basis: 100%;
  width: 100%;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
}

.site-nav-mobile.is-open { display: flex; }

.site-nav-mobile .site-nav-link {
  width: 100%;
  height: auto;
  padding: 0.625rem 0.7rem;
}

@media (min-width: 640px) {
  .site-nav { display: inline-flex; }
  .nav-toggle { display: none; }
  /* Inline nav is in charge above sm — never show the dropdown. */
  .site-nav-mobile,
  .site-nav-mobile.is-open { display: none; }
}

/* --------------------------------------------------------------- hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.1rem;
  padding: 2rem 0 1rem;
}

.hero-logo {
  height: 5rem;
  width: 5rem;
  border-radius: 1.1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  border: 1px solid var(--line);
}

.hero-title {
  margin: 0;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -1.2px;
  color: var(--content);
  line-height: 1.05;
}

.hero-tagline { margin: 0; font-size: 1.2rem; color: var(--content-muted); }

.hero-lede {
  margin: 0.4rem 0 0;
  max-width: 40rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--content-secondary);
}

@media (min-width: 768px) {
  .hero-logo { height: 5.75rem; width: 5.75rem; }
  .hero-title { font-size: 3.5rem; }
}

/* --------------------------------------------------------- section head */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  margin: 3.5rem 0 1.5rem;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--content-muted);
}

.section-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--content);
}

/* ----------------------------------------------------------- products */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

@media (min-width: 720px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.6rem;
  background-color: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  border-color: var(--accent);
}

.product-card:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--focus); }

.product-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.product-logo { height: 1.6rem; width: auto; }

.product-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--content);
}
.product-wordmark img { height: 1.6rem; width: 1.6rem; }

.product-tag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--content-muted);
  background-color: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 9999px;
}

.product-desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--content-secondary);
}

.visit-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
}

.visit-cta svg { transition: transform 0.15s ease; }
.product-card:hover .visit-cta { color: var(--accent-hover); text-decoration: underline; }
.product-card:hover .visit-cta svg { transform: translateX(2px); }

/* ---------------------------------------------------------- founder */
.founder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 4rem;
}

.founder-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 44rem;
  text-align: center;
}

.founder-avatar {
  height: 5.5rem;
  width: 5.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.founder-bio h2 { margin: 0 0 0.5rem; font-size: 1.35rem; font-weight: 700; color: var(--content); }
.founder-bio p { margin: 0; font-size: 1rem; line-height: 1.65; color: var(--content-secondary); }

@media (min-width: 640px) {
  .founder-row { flex-direction: row; text-align: left; gap: 1.75rem; }
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.3rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--on-accent);
  background-color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 9999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-pill:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.contact-pill:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--focus); }

/* ----------------------------------------------------------- footer */
.site-footer {
  width: 100%;
  border-top: 1px solid var(--line-strong);
  background-color: var(--surface-subtle);
  color: var(--content);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li { list-style: none; }

@media (min-width: 768px) { .footer-links { flex-direction: row; } }

.footer-links a {
  width: fit-content;
  color: var(--content-muted);
  font-weight: 500;
  font-size: 1rem;
}

.footer-links a:hover { text-decoration: underline; color: var(--accent); }
.footer-links a:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--focus); }

.footer-copy { display: flex; align-items: center; justify-content: center; }
.site-footer p { margin: 0; font-size: 0.875rem; text-align: center; color: var(--content-muted); }

/* ---------------------------------------------- legal pages (privacy/terms) */
/* Faint top-right squares grid (mirrors the Metal Pilot app legal pages). */
.squares {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  color: var(--line-strong);
}
.squares::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: min(38vw, 100%);
  height: 40vh;
  background-image:
    linear-gradient(currentColor 2px, transparent 2px),
    linear-gradient(90deg, currentColor 2px, transparent 2px);
  background-size: 150px 150px;
  background-position: right 0 top 0;
  -webkit-mask-image: linear-gradient(to top right, transparent 0%, rgba(0,0,0,.2) 22%, rgba(0,0,0,.62) 55%, #000 100%);
  mask-image: linear-gradient(to top right, transparent 0%, rgba(0,0,0,.2) 22%, rgba(0,0,0,.62) 55%, #000 100%);
}

.legal-page { position: relative; z-index: 1; }

/* Teal accent bar on the title (mirrors the Metal Pilot page title). */
.legal-head {
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
  margin-bottom: 2rem;
}
.legal-head h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--content);
}
@media (min-width: 768px) {
  .legal-head { border-left-width: 6px; padding-left: 1.1rem; }
  .legal-head h1 { font-size: 2.25rem; }
}

.legal { color: var(--content-secondary); font-size: 1rem; line-height: 1.7; }

/* Intro paragraph: semibold, slightly larger (MP intro). */
.legal > p:first-child {
  margin: 0 0 1rem;
  padding-left: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--content-secondary);
}

/* Numbered section headings (mb-2 rhythm). */
.legal h2 {
  margin: 1rem 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--content);
}
.legal h2:first-of-type { margin-top: 0.5rem; }

.legal h3 {
  margin: 0.75rem 0 0.5rem;
  padding-left: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--content);
}

/* Subsection content paragraphs — indented pl-4 like MP. */
.legal p { margin: 0 0 0.5rem; padding-left: 1rem; }

/* Lettered item lists — "a." marker as hanging indent so inline links flow. */
.legal ul, .legal ol {
  counter-reset: legalitem;
  list-style: none;
  margin: 0 0 0.5rem;
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.legal li {
  counter-increment: legalitem;
  position: relative;
  padding-left: 1.4rem;
  margin: 0;
}
.legal li::before {
  content: counter(legalitem, lower-alpha) ".";
  position: absolute;
  left: 0;
  top: 0;
}

.legal strong { color: var(--content); font-weight: 600; }

.legal a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.legal a:hover { color: var(--accent-hover); text-decoration-color: var(--accent-hover); }

/* Last Updated line. */
.legal > p:last-child { margin: 1rem 0 0; padding-left: 0; color: var(--content-muted); }

/* ----------------------------------------------------------------- prose */
/* Generic article styling (kept for the local blog content). */
.prose { font-size: 1rem; line-height: 1.75; color: var(--content-secondary); }
.prose h1, .prose h2, .prose h3, .prose h4 {
  border-bottom: 2px solid var(--accent);
  color: var(--content);
  font-weight: 600;
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin: 2rem 0 0.7rem;
}
.prose h1 { font-size: 1.45rem; }
.prose h2 { font-size: 1.35rem; }
.prose h3 { font-size: 1.1rem; font-weight: 700; border-bottom-width: 1px; border-bottom-color: var(--line); color: var(--content-secondary); margin-top: 1.6rem; }
.prose h4 { font-size: 1rem; }
.prose p { margin: 0 0 1rem; }
.prose a { color: var(--accent); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-hover); text-decoration-color: var(--accent-hover); }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.prose li { margin-bottom: 0.3rem; }
.prose strong { color: var(--content); font-weight: 600; }
.prose blockquote { margin: 1.2rem 0; padding: 0.2rem 0 0.2rem 1rem; border-left: 3px solid var(--accent); color: var(--content-muted); }
.prose img { max-width: 100%; height: auto; border-radius: 0.6rem; }
.prose hr { margin: 2rem 0; border: none; border-top: 1px solid var(--line); }
/* Code: raised surface + --line-strong border, stronger-than-body text (--content),
   all theme tokens so code adapts to light/dark instead of a fixed highlighter box. */
.prose code { font-size: 0.85em; padding: 0.15rem 0.4rem; background-color: var(--surface-raised); border: 1px solid var(--line); border-radius: 0.3rem; }
.prose pre { padding: 1rem; overflow-x: auto; background-color: var(--surface-raised); color: var(--content); border: 1px solid var(--line-strong); border-radius: 0.6rem; }
.prose pre code { padding: 0; background: none; border: none; color: inherit; }
.prose .highlight { background: none; border-radius: 0.6rem; }
.prose .highlight pre.chroma { background-color: var(--surface-raised); color: var(--content); }
.prose .chroma code, .prose .chroma span { color: inherit; background: none; }

/* ------------------------------------------------------------ generic list */
.page-head { margin: 0.5rem 0 1.75rem; }
.page-head h1 { margin: 0; font-size: 1.7rem; font-weight: 700; letter-spacing: -0.5px; color: var(--content); }
.page-lede { margin: 0.4rem 0 0; font-size: 0.95rem; color: var(--content-muted); }

.simple-list { display: flex; flex-direction: column; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.simple-list a { font-size: 1.1rem; font-weight: 600; color: var(--content); }
.simple-list a:hover { color: var(--accent); }
.empty-state { padding: 3rem 0; text-align: center; color: var(--content-muted); }
