:root {
  color-scheme: light dark;
  --page: #ffffff;
  --surface: #f5f5f7;
  --text: #1d1d1f;
  --secondary: #6e6e73;
  --line: #d2d2d7;
  --link: #0066cc;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #000000;
    --surface: #1c1c1e;
    --text: #f5f5f7;
    --secondary: #a1a1a6;
    --line: #38383a;
    --link: #2997ff;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
  font-family: system-ui, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page);
}

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.12em;
}

a:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 4px;
  border-radius: 4px;
}

.page {
  width: min(100% - 40px, 740px);
  margin-inline: auto;
  padding-block: clamp(56px, 9vw, 104px) 64px;
}

.eyebrow,
.meta,
.footer {
  color: var(--secondary);
  font-size: 0.82rem;
}

.eyebrow {
  margin: 0 0 8px;
  font-weight: 600;
}

h1,
h2 {
  letter-spacing: -0.022em;
}

h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2.35rem, 7vw, 4rem);
  line-height: 1.04;
  font-weight: 700;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  line-height: 1.2;
  font-weight: 650;
}

p {
  margin: 0;
}

p,
a,
h1,
h2,
.links span {
  overflow-wrap: anywhere;
}

.intro {
  max-width: 620px;
  margin-top: 24px;
  color: var(--secondary);
  font-size: 1.08rem;
}

.surface {
  margin-top: 40px;
  padding: 24px;
  border-radius: 20px;
  background: var(--surface);
}

.links {
  display: grid;
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  min-height: 56px;
  padding-block: 15px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.links span {
  color: var(--secondary);
  font-weight: 400;
  text-align: right;
}

.footer {
  padding-top: 28px;
}

@media (max-width: 420px) {
  .page {
    width: min(100% - 32px, 740px);
    padding-top: 40px;
  }

  .surface {
    margin-top: 32px;
    padding: 20px;
    border-radius: 16px;
  }

  .links a {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .links span {
    text-align: left;
  }
}

@media print {
  :root {
    color-scheme: light;
    --page: #ffffff;
    --surface: #f5f5f7;
    --text: #000000;
    --secondary: #444444;
    --line: #bbbbbb;
    --link: #000000;
  }

  .page {
    width: 100%;
    max-width: none;
    padding: 0;
  }
}
