:root {
  --background: #050608;
  --foreground: #f3f1ea;
  --muted: #8b9097;
  --line: rgba(243, 241, 234, 0.12);
  --gold: #c8a96a;
  --ice: #8fbfd8;
  --surface: rgba(255, 255, 255, 0.018);
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color-scheme: dark;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-wrap: break-word;
}

body::selection {
  background: rgba(200, 169, 106, 0.32);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-color: rgba(143, 191, 216, 0.55);
  text-underline-offset: 4px;
}

a:hover {
  color: var(--gold);
}

a:focus-visible {
  border-radius: 0.25rem;
  outline: 2px solid var(--ice);
  outline-offset: 4px;
}

.site-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  overflow-x: hidden;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 6, 8, 0.94);
}

.header-inner,
.footer-inner,
.home-inner {
  width: min(100%, 80rem);
  margin-inline: auto;
}

.header-inner {
  display: flex;
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 0.5rem 1.25rem;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.75rem;
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration: none;
}

.brand:hover {
  color: var(--foreground);
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.125rem;
}

.site-nav a {
  border-radius: 0.375rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.25rem;
  padding: 0.625rem 0.75rem;
  text-decoration: none;
}

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

main {
  flex: 1;
}

.home-hero {
  display: flex;
  min-height: 29rem;
  align-items: center;
  padding: 5rem 1.25rem;
}

.home-copy {
  max-width: 50rem;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.revision {
  margin-top: 1.25rem;
  color: var(--muted);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 56rem;
  margin: 1.25rem 0 0;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.home-lead {
  max-width: 44rem;
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.documents {
  border-top: 1px solid var(--line);
  padding: 4rem 1.25rem 6rem;
}

.documents-heading {
  margin: 1rem 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.document-card {
  display: flex;
  min-height: 12rem;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: var(--surface);
  padding: 1.5rem;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.document-card:hover {
  border-color: rgba(200, 169, 106, 0.65);
  background: rgba(255, 255, 255, 0.035);
  color: var(--foreground);
}

.document-number {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.document-title {
  margin: 2rem 0 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
}

.legal-page {
  padding: 5rem 1.25rem 6rem;
}

.legal-document {
  width: min(100%, 56rem);
  margin-inline: auto;
}

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

.legal-document h1 {
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1.05;
}

.legal-section {
  padding-top: 2.75rem;
}

.legal-section + .legal-section {
  margin-top: 2.75rem;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 650;
  line-height: 1.25;
}

.legal-section h3 {
  margin: 1.75rem 0 0.5rem;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
}

.legal-section p,
.legal-section address {
  margin: 0.9rem 0 0;
  font-size: 1rem;
  font-style: normal;
  line-height: 1.75;
}

.legal-section ul {
  margin: 1rem 0 0;
  padding-left: 1.4rem;
}

.legal-section li {
  padding-left: 0.25rem;
  line-height: 1.75;
}

.legal-section li + li {
  margin-top: 0.45rem;
}

.contact-block {
  margin-top: 1.25rem;
  border-left: 2px solid var(--gold);
  padding: 0.125rem 0 0.125rem 1.25rem;
}

.contact-block p,
.contact-block address {
  margin-top: 0.4rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 1.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
}

.footer-brand {
  margin-bottom: 1.25rem;
}

.footer-details {
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-details p {
  margin: 0.35rem 0;
}

.footer-title {
  margin: 0;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
  font-size: 0.875rem;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--foreground);
}

@media (min-width: 640px) {
  .header-inner,
  .home-hero,
  .documents,
  .legal-page,
  .site-footer {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .legal-page {
    padding-top: 6rem;
  }
}

@media (min-width: 1024px) {
  .header-inner,
  .home-hero,
  .documents,
  .legal-page,
  .site-footer {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }

  .brand img {
    width: 3rem;
    height: 3rem;
  }

  .header-inner {
    min-height: 4.5rem;
  }
}

@media (max-width: 767px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  .site-nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .site-nav a {
    flex: 0 0 auto;
    min-height: 2.75rem;
    padding: 0.7rem 0.65rem;
  }

  .document-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .document-card {
    min-height: 10rem;
  }
}

@media (max-width: 374px) {
  .header-inner,
  .home-hero,
  .documents,
  .legal-page,
  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-nav a {
    font-size: 0.8rem;
    padding-inline: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
