:root {
  color-scheme: light;
  --background: #f5f9ff;
  --surface: #ffffff;
  --text: #16243a;
  --muted: #5b6b82;
  --primary: #208aef;
  --primary-dark: #126ec5;
  --border: #dbe7f5;
  --shadow: 0 18px 48px rgba(31, 79, 132, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  background: var(--background);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
}

a {
  color: var(--primary-dark);
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid rgba(32, 138, 239, 0.35);
  outline-offset: 3px;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
}

.header-inner,
.main-content,
.site-footer {
  width: min(100% - 2rem, 1080px);
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  margin-right: 0.55rem;
  place-items: center;
  border-radius: 0.7rem;
  color: #ffffff;
  background: var(--primary);
  font-size: 0.95rem;
  vertical-align: -0.35rem;
}

.header-link {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.main-content {
  padding: 4rem 0 5rem;
}

.hero {
  max-width: 700px;
  padding: 1rem 0 3rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 4.7rem);
}

h2 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
}

.lead {
  max-width: 620px;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.link-grid-spaced {
  margin-top: 1.25rem;
}

.link-card {
  display: flex;
  min-height: 170px;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.link-card:hover {
  border-color: rgba(32, 138, 239, 0.55);
  transform: translateY(-2px);
}

.card-label {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
}

.card-description {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.card-action {
  margin-top: 1.25rem;
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.support {
  margin-top: 1.5rem;
  padding: 1.4rem 1.5rem;
  border-radius: 1.1rem;
  color: var(--text);
  background: #e8f3ff;
}

.support p {
  margin: 0;
}

.support a {
  font-weight: 800;
}

.document {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.document-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.document-header h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

.document-meta {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.document-body h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
}

.document-body h3 {
  margin: 2rem 0 0.7rem;
  font-size: 1.2rem;
}

.document-body h4 {
  margin: 1.35rem 0 0.45rem;
  font-size: 1rem;
}

.document-body p {
  margin: 0.75rem 0;
}

.document-body ul {
  margin: 0.65rem 0 1rem;
  padding-left: 1.35rem;
}

.document-body li {
  margin: 0.35rem 0;
}

.document-body a {
  overflow-wrap: anywhere;
}

.placeholder {
  padding: 1.25rem;
  border: 2px dashed #91bde8;
  border-radius: 0.85rem;
  color: var(--primary-dark);
  background: #f3f9ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
  font-weight: 800;
}

.site-footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0.25rem 0;
}

@media (max-width: 760px) {
  .main-content {
    padding: 3rem 0 4rem;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }

  .link-card {
    min-height: 0;
  }

  .document {
    padding: 1.35rem;
  }
}
