/* Balm's own palette, taken from BalmKit/Sources/BalmKit/Theme/. No web fonts
   and no external requests: these pages have to load instantly behind a CDN,
   work offline inside an in-app browser, and raise no licensing question about
   a typeface.

   Light is Balm's Cream system, the pre-app surface. Dark is the app's own
   water palette. The hero stays navy in both, because it is the app. */
:root {
  --ground: #E7E6D9;
  --surface: #DCDAC9;
  --border: #B0A99A;
  --ink: #060101;
  --ink-2: #524B45;
  /* Slightly darker than the app's Cream.muted (#6B625C), which is measured
     against Cream.surface. Here the same token also has to carry card
     subtitles on the darker card fill, where #6B625C lands at 4.23:1. */
  --dim: #615952;
  --accent: #7A4A3F;
  --rule: rgba(242, 232, 225, 0.045);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #07151D;
    --surface: #0B222D;
    --border: #16394B;
    --ink: #F2E8E1;
    --ink-2: #D8CDC6;
    --dim: #A1B1BA;
    --accent: #E3B29C;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

/* The app's own canvas: deep water, ruled like a page. Drawn in CSS rather
   than shipped as an image so it holds at any width. */
header.hero {
  background-color: #0F3040;
  background-image:
    repeating-linear-gradient(to bottom, var(--rule) 0 1px, transparent 1px 40px);
  color: #F2E8E1;
  padding: 56px 24px 44px;
}

.hero-inner, main, footer .inner { max-width: 720px; margin: 0 auto; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242, 232, 225, 0.72);
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 0 0 12px;
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero p { margin: 0; color: rgba(242, 232, 225, 0.86); max-width: 56ch; }

main { padding: 40px 24px 72px; }

h2 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 44px 0 10px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

h2:first-of-type { margin-top: 8px; }

h3 { margin: 26px 0 6px; font-size: 17.5px; }

p, li { color: var(--ink-2); }
p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 7px; }
strong { color: var(--ink); }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.lede {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 8px;
}
.lede p:last-child { margin-bottom: 0; }

.stamp {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--dim);
  margin-bottom: 28px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 15.5px;
}
th, td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-2);
}
th { color: var(--ink); font-weight: 600; }
.scroll { overflow-x: auto; }

footer {
  border-top: 1px solid var(--border);
  padding: 26px 24px 56px;
  color: var(--dim);
  font-size: 14.5px;
}

footer .inner { display: flex; gap: 18px; flex-wrap: wrap; }

.cards { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin-top: 8px; }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  text-decoration: none;
  color: inherit;
}
.card:hover { border-color: var(--accent); }
.card h2 { margin: 0 0 6px; font-size: 20px; }
.card p { margin: 0; font-size: 15px; color: var(--dim); }
