/* Palette and type taken from the app's Theme.swift: warm paper, ink, stone, one sage accent; serif light headings, system sans body. */
:root {
  --paper: #F3EFE7;        /* Theme.background */
  --card: #FDFCF9;         /* Theme.card */
  --sand: #EAE5DB;         /* Theme.cardElevated */
  --ink: #1C1B19;          /* Theme.ink */
  --stone: #9E998F;        /* Theme.stone */
  --sage: #7C9A83;         /* Theme.accent */
  --ochre: #B8944A;        /* Theme.warn */
  --terracotta: #B5664A;   /* Theme.bad */
  --text-2: rgba(28, 27, 25, .55);   /* Theme.textSecondary */
  --hairline: rgba(28, 27, 25, .12); /* Theme.hairline */
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }

header.site { display: flex; align-items: center; justify-content: space-between; padding: 28px 0 8px; }
header.site .brand { font-size: 15px; letter-spacing: 4px; text-transform: uppercase; font-weight: 500; text-decoration: none; color: rgba(28,27,25,.75); }
header.site nav a { font-size: 14px; color: var(--text-2); text-decoration: none; margin-left: 22px; }
header.site nav a:hover { color: var(--ink); }

h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 6vw, 44px); line-height: 1.12; margin: 44px 0 10px; letter-spacing: -0.005em; }
h2 { font-family: var(--sans); font-size: 17px; font-weight: 600; margin: 40px 0 8px; }
h3 { font-size: 16px; font-weight: 600; margin: 24px 0 4px; }
p, li { margin: 0 0 12px; }
ul { padding-left: 20px; }
.lead { font-size: 19px; color: var(--text-2); max-width: 42ch; }
.meta { color: var(--text-2); font-size: 14px; margin: 0 0 28px; }
.meta a { color: var(--text-2); }

.card { background: var(--card); border: 1px solid var(--hairline); border-radius: 20px; padding: 22px 24px; margin: 28px 0; }
.card h2 { margin-top: 0; font-family: var(--serif); font-weight: 300; font-size: 26px; }
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: rgba(124,154,131,.18); color: var(--sage); vertical-align: 3px; margin-left: 6px; font-family: var(--sans); }

.btn { display: inline-block; font-family: var(--sans); font-size: 16px; font-weight: 500; background: var(--ink); color: var(--paper); text-decoration: none; padding: 14px 24px; border-radius: 999px; }
.btn.quiet { background: transparent; color: rgba(28,27,25,.85); border: 1px solid rgba(28,27,25,.25); }
.btn.quiet:hover { color: var(--ink); }

hr.lang { border: 0; border-top: 1px solid var(--hairline); margin: 64px 0; }
footer.site { margin: 80px 0 40px; padding-top: 20px; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--text-2); display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer.site a { color: var(--text-2); text-decoration: none; }
footer.site a:hover { color: var(--ink); }
@media (max-width: 480px) { header.site { flex-direction: column; align-items: flex-start; gap: 10px; } header.site nav a { margin: 0 16px 0 0; } }
