:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --ink: #171717;
  --muted: #646773;
  --line: #dfe3ea;
  --panel: #ffffff;
  --brand: #b6192e;
  --brand-dark: #171717;
  --teal: #0e7c86;
  --gold: #b7791f;
  --shadow: 0 18px 45px rgba(23, 23, 23, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-dark);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: block;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  background: #ffffff;
  color: var(--brand);
  outline: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 42px;
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  min-height: min(620px, calc(100vh - 150px));
  margin: 0 auto;
  padding: 64px 0 48px;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.5rem, 8vw, 5.7rem);
}

h2 {
  font-size: 1.18rem;
}

p {
  margin: 0;
}

.hero p:not(.eyebrow),
.document-header p:not(.eyebrow) {
  max-width: 690px;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.3rem);
}

.hero-visual {
  display: grid;
  place-items: center;
  min-height: 320px;
  border-left: 1px solid var(--line);
}

.hero-visual img {
  width: min(360px, 80%);
  height: auto;
  filter: drop-shadow(0 26px 35px rgba(182, 25, 46, 0.18));
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 72px;
}

.link-card {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 24px;
  box-shadow: var(--shadow);
  text-decoration: none;
}

.link-card:hover,
.link-card:focus-visible {
  border-color: rgba(182, 25, 46, 0.55);
  outline: none;
  transform: translateY(-2px);
}

.link-label {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 850;
}

.link-detail {
  color: var(--muted);
  font-size: 0.96rem;
}

.document {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 80px;
}

.document.compact {
  width: min(960px, calc(100% - 32px));
}

.document-header {
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.document-header h1 {
  font-size: clamp(2.35rem, 7vw, 4.8rem);
}

.document section {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.document section:last-child {
  border-bottom: 0;
}

.document section p,
.document li {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
}

.document section a {
  color: var(--teal);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.document ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.support-item {
  border-top: 4px solid var(--gold);
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
}

.support-item:nth-child(2) {
  border-top-color: var(--brand);
}

.support-item:nth-child(3) {
  border-top-color: var(--teal);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 34px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--brand);
  font-weight: 750;
  text-decoration: none;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: auto;
    padding: 36px 0 34px;
  }

  .hero-visual {
    min-height: 180px;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 28px;
  }

  .hero-visual img {
    width: min(220px, 62%);
  }

  .quick-links,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .document {
    padding-top: 34px;
  }
}

@media (max-width: 480px) {
  .site-header,
  .hero,
  .quick-links,
  .document,
  .document.compact,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a {
    flex: 1 1 auto;
  }

  .link-card {
    min-height: 145px;
    padding: 20px;
  }
}
