:root {
  color-scheme: dark;
  --canvas: #101214;
  --canvas-raised: #14171a;
  --surface: #1b1f26;
  --surface-strong: #20252d;
  --fill: #303740;
  --border: rgba(248, 250, 252, 0.12);
  --border-soft: rgba(248, 250, 252, 0.08);
  --text: #f8fafc;
  --text-muted: #b8c0ca;
  --text-subtle: #909ba9;
  --accent: #d03333;
  --accent-pressed: #b92c2c;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  --max-width: 980px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 320px),
    var(--canvas);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::selection {
  background: rgba(208, 51, 51, 0.42);
}

a {
  color: inherit;
  text-decoration-color: rgba(248, 250, 252, 0.38);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: currentColor;
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid rgba(208, 51, 51, 0.55);
  outline-offset: 4px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 18px 18px 0;
}

.brand {
  color: var(--text);
  font-size: 1rem;
  font-weight: 750;
  text-decoration: none;
}

.hero {
  width: min(100%, var(--max-width));
  min-height: calc(100svh - 88px);
  margin: 0 auto;
  padding: 72px 18px 40px;
  display: grid;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
}

.hero-icon {
  width: 104px;
  height: 104px;
  border-radius: 22px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 18px;
  font-size: clamp(3rem, 18vw, 7.5rem);
  line-height: 0.88;
  font-weight: 850;
  letter-spacing: 0;
}

.lede {
  max-width: 720px;
  margin-bottom: 18px;
  color: var(--text);
  font-size: clamp(1.2rem, 5.8vw, 2.65rem);
  line-height: 1.12;
  font-weight: 620;
  letter-spacing: 0;
}

.summary {
  max-width: 620px;
  margin-bottom: 28px;
  color: var(--text-muted);
  font-size: 1.04rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  font-size: 0.96rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
}

.button-disabled {
  color: var(--text);
  background: var(--accent);
  box-shadow: 0 18px 34px rgba(208, 51, 51, 0.22);
  cursor: default;
}

.button-secondary {
  color: var(--text);
  border-color: var(--border);
  background: rgba(248, 250, 252, 0.045);
}

.button-secondary:hover {
  border-color: rgba(248, 250, 252, 0.22);
  background: rgba(248, 250, 252, 0.07);
}

.link-section {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 28px 18px 72px;
  display: grid;
  border-top: 1px solid var(--border-soft);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.link-list {
  display: grid;
  gap: 10px;
}

.link-row {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.link-row:hover {
  border-color: rgba(248, 250, 252, 0.22);
  background: var(--surface-strong);
}

.link-row span:first-child {
  font-weight: 720;
}

.link-row span:last-child {
  color: var(--text-subtle);
  font-size: 0.9rem;
}

.document-page {
  width: min(100%, 780px);
  margin: 0 auto;
  padding: 74px 18px 78px;
}

.document {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.72;
}

.document-label {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 760;
}

.document h1 {
  max-width: 100%;
  margin-bottom: 28px;
  color: var(--text);
  font-size: clamp(2.3rem, 11vw, 4.75rem);
  line-height: 0.95;
}

.document h2 {
  margin: 34px 0 10px;
  color: var(--text);
  font-size: 1.06rem;
  line-height: 1.25;
}

.document p {
  margin-bottom: 18px;
}

.document a {
  color: var(--text);
  font-weight: 700;
}

.document-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 22px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.contact-card {
  max-width: 620px;
}

.contact-email {
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 5vw, 1.4rem);
  line-height: 1.35;
}

.site-footer {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 28px 18px 36px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-subtle);
  font-size: 0.9rem;
  line-height: 1.55;
}

.site-footer p {
  margin-bottom: 14px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

@media (max-width: 520px) {
  .hero {
    align-items: start;
    min-height: auto;
    padding-top: 70px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }
}

@media (min-width: 760px) {
  .site-header {
    padding-top: 24px;
  }

  .hero {
    padding-top: 92px;
  }

  .link-section {
    max-width: var(--max-width);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .button-secondary,
  .link-row,
  a {
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, text-decoration-color 160ms ease;
  }
}
