:root {
  color-scheme: dark;
  --bg: #101114;
  --panel: #181b20;
  --panel-strong: #20242b;
  --text: #f3f5f7;
  --muted: #b6bec9;
  --soft: #87919f;
  --line: #303640;
  --accent: #d14b42;
  --accent-strong: #f06b5e;
  --focus: #f5b15b;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(209, 75, 66, 0.18), transparent 32rem),
    linear-gradient(180deg, #111216 0%, #0e1013 100%);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(240, 107, 94, 0.58);
  border-radius: 8px;
  background: linear-gradient(135deg, #2a1718, #231f25);
  color: var(--accent-strong);
  font-weight: 900;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.top-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
}

.top-nav a:hover,
.top-nav a[aria-current="page"] {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

main {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

.hero {
  min-height: 44vh;
  padding: 72px 0 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.card-kicker {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  font-size: clamp(2.4rem, 5vw, 5.4rem);
}

h2 {
  margin-top: 34px;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

.lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

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

.link-card {
  min-height: 230px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(24, 27, 32, 0.86);
  color: var(--muted);
  text-decoration: none;
}

.link-card:hover {
  border-color: rgba(240, 107, 94, 0.6);
  background: var(--panel-strong);
}

.link-card strong {
  color: var(--text);
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  line-height: 1.2;
}

.legal-page {
  padding-bottom: 56px;
}

.legal-document {
  max-width: 850px;
  padding: 44px 0 12px;
}

.legal-document p,
.legal-document li,
.legal-document dd {
  color: var(--muted);
  font-size: 1.04rem;
}

.legal-document p {
  margin: 14px 0 0;
}

.legal-document a {
  color: #ffb0a7;
  text-underline-offset: 4px;
}

.meta-list {
  margin: 28px 0 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.meta-list div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(24, 27, 32, 0.76);
}

.meta-list dt {
  color: var(--soft);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.meta-list dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}

ul {
  padding-left: 22px;
}

.site-footer {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 26px 0 34px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 0.94rem;
}

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

.site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

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

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

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

  .link-card {
    min-height: 190px;
  }
}

@media (max-width: 460px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 24px, var(--max-width));
  }

  .top-nav {
    width: 100%;
  }

  .top-nav a {
    flex: 1 1 auto;
    justify-content: center;
    padding-inline: 10px;
  }

  .legal-document {
    padding-top: 32px;
  }
}
