:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --text: #1f1d1a;
  --muted: #625c55;
  --line: #e6dfd4;
  --accent: #2f6b3a;
  --accent-soft: #e7f0e6;
  --warm: #b85c1e;
  --radius: 14px;
  --max: 760px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: #1e4a27; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.logo-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; font: 700 15px/1 Georgia, "Times New Roman", serif; }
.logo-name { font: 700 20px/1.1 Georgia, "Times New Roman", serif; letter-spacing: .2px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: underline; }

/* Main */
main { padding: 36px 0 56px; }
h1 { font: 700 34px/1.2 Georgia, "Times New Roman", serif; margin: 0 0 10px; }
h2 { font: 700 23px/1.3 Georgia, "Times New Roman", serif; margin: 36px 0 10px; }
h3 { font-size: 18px; margin: 24px 0 6px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin: 4px 0; }
.lead { font-size: 19px; color: var(--muted); margin-bottom: 26px; }
.updated { color: var(--muted); font-size: 14px; }
.small { font-size: 14px; color: var(--muted); }

/* Hero */
.hero { padding: 8px 0 6px; }
.hero h1 { font-size: 40px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.tags li { margin: 0; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 4px 12px; font-size: 15px; font-weight: 600; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 8px 0 28px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 14px; }
.card h2, .card h3 { margin: 0 0 6px; font-size: 15px; font-family: inherit; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.card p { margin: 0 0 6px; }
.card .big { font-size: 19px; font-weight: 600; }

.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 18px 0; }
.box.highlight { border-color: #c9dcc6; background: var(--accent-soft); }
.box > :last-child { margin-bottom: 0; }

.lang-label { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--warm); margin-bottom: 4px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 680px) { .two-col { grid-template-columns: 1fr; } }

.kw { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; background: #f1ece3; border-radius: 6px; padding: 1px 6px; }

.btn { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 10px; padding: 10px 16px; font: 600 16px/1.2 inherit; font-family: inherit; text-decoration: none; cursor: pointer; }
.btn:hover { background: #24552d; color: #fff; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 22px 0 30px; font-size: 14px; color: var(--muted); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 8px; }
.site-footer a { color: var(--muted); }
.site-footer p { margin: 0 0 4px; }

/* Consent form */
.form-sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.form-sheet h1 { font-size: 24px; margin-bottom: 2px; }
.form-sheet .sub { color: var(--muted); margin-bottom: 16px; font-size: 15px; }
.consent-text { font-size: 15px; line-height: 1.5; }
.consent-text p { margin-bottom: 8px; }
.fields { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.field { font-size: 13px; color: var(--muted); }
.field .line { border-bottom: 1.5px solid var(--text); height: 30px; margin-bottom: 4px; }
.field.full { grid-column: 1 / -1; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; color: var(--text); padding-top: 6px; }
.checkbox { display: inline-block; width: 15px; height: 15px; border: 1.5px solid var(--text); border-radius: 3px; vertical-align: -2px; margin-right: 6px; }
.agree { margin-top: 16px; font-size: 15px; font-weight: 600; }
.form-actions { margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
@media (max-width: 560px) {
  .fields { grid-template-columns: 1fr; }
  .form-sheet { padding: 20px 18px; }
  h1 { font-size: 29px; }
  .hero h1 { font-size: 34px; }
}

@media print {
  @page { size: letter; margin: 0.5in; }
  body { background: #fff; font-size: 11pt; }
  .site-header, .site-footer, .no-print { display: none !important; }
  main { padding: 0; }
  .wrap { max-width: none; padding: 0; }
  .form-sheet { border: 0; padding: 0; border-radius: 0; }
  .form-sheet h1 { font-size: 16pt; }
  .consent-text { font-size: 10pt; }
  .consent-text p { margin-bottom: 5pt; }
  .two-col { grid-template-columns: 1fr 1fr; gap: 14pt; }
  .fields { grid-template-columns: 1fr 1fr; gap: 12pt 18pt; margin-top: 12pt; }
  .field .line { height: 22pt; }
  a { color: var(--text); text-decoration: none; }
}
