:root {
  color-scheme: light dark;
  --background: #fbf8f5;
  --surface: #ffffff;
  --text: #180c1b;
  --muted: #675a69;
  --line: #e5d9df;
  --accent: #1f5cf5;
  --accent-contrast: #ffffff;
  --warm: #f7eadf;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

header,
main,
footer {
  width: min(100% - 32px, 760px);
  margin-inline: auto;
}

header {
  padding-block: 44px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px 7px 12px 7px;
  background: var(--accent);
  color: var(--accent-contrast);
}

main {
  padding-bottom: 40px;
}

.document {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px 18px 30px 18px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgb(37 17 42 / 7%);
}

.intro,
.section {
  padding: clamp(24px, 6vw, 48px);
}

.intro {
  background: var(--warm);
}

.section + .section {
  border-top: 1px solid var(--line);
}

h1,
h2 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 16ch;
  font-size: clamp(38px, 9vw, 64px);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(24px, 5vw, 32px);
}

p,
ul {
  margin-block: 0 16px;
}

p:last-child,
ul:last-child {
  margin-bottom: 0;
}

ul {
  padding-left: 1.25em;
}

.lede {
  max-width: 58ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 19px;
}

.meta {
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

.contact-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  border-radius: 18px 11px 18px 11px;
  background: var(--warm);
}

.contact-card strong {
  font-size: 20px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-block: 0 48px;
  color: var(--muted);
  font-size: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0d0710;
    --surface: #170d1a;
    --text: #fff8ff;
    --muted: #c7b8c8;
    --line: #3c2c3f;
    --warm: #291a22;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

.table-scroll {
  overflow-x: auto;
  margin-block: 16px;
}

table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-size: 0.94em;
}

th,
td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--warm);
}

@media print {
  :root { color-scheme: light; }
  body { background: white; color: black; font-size: 11pt; }
  header, main, footer { width: 100%; }
  .document { border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
  .intro, .section { padding: 12pt 0; background: none; }
  h1 { font-size: 24pt; }
  h2 { font-size: 16pt; break-after: avoid; }
  .table-scroll { overflow: visible; }
  table { min-width: 0; }
}
