:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui,
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: #0b0c10;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #0b0c10;
  color: #f5f5f3;
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  border-radius: 6px;
  outline: 3px solid #a8d8ff;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f0eee8;
  color: #17181b;
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 150ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.brand-mark {
  display: block;
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: #d8d8d5;
}

nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #b8b9bd;
  font-size: 14px;
  font-weight: 560;
}

nav a,
.site-footer a,
.text-link {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

nav a:hover,
.site-footer a:hover,
.text-link:hover,
nav a[aria-current="page"],
.site-footer a[aria-current="page"] {
  color: #f5f5f3;
  text-decoration-color: currentColor;
}

.hero {
  display: grid;
  width: min(1120px, calc(100% - 48px));
  min-height: calc(100vh - 88px);
  align-items: center;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: 72px;
  margin: 0 auto;
  padding: 72px 0 112px;
}

.hero-copy,
.room {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: #85868c;
  font-size: 12px;
  font-weight: 680;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
p {
  text-wrap: pretty;
}

.hero h1,
.document-hero h1 {
  margin: 0;
  font-size: clamp(52px, 7vw, 92px);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.lede {
  max-width: 560px;
  margin: 28px 0 0;
  color: #b8b9bd;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.5;
}

.actions,
.document-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  border-color: rgba(255, 255, 255, 0.82);
  background: #f5f5f3;
  color: #17181b;
}

.button-secondary {
  background: #17181c;
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: #202127;
}

.room {
  position: relative;
  min-height: 610px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 54px;
  background: #15171b;
}

.room-controls {
  position: relative;
  z-index: 1;
  display: flex;
  width: fit-content;
  min-height: 48px;
  align-items: center;
  gap: 30px;
  margin: 0 auto 22px;
  padding: 0 28px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: #22242a;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 560;
}

.page {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 486px;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: clamp(44px, 8vw, 78px);
  border-radius: 42px;
  background: #eeece6;
  color: #17181b;
}

.page-label {
  margin: 0 0 30px;
  color: #686970;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page h2 {
  max-width: 420px;
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 560;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.page p:not(.page-label) {
  max-width: 430px;
  margin: 24px 0 0;
  color: #55565c;
  font-size: 16px;
  line-height: 1.62;
}

.page-rule {
  width: 46px;
  height: 3px;
  margin-top: 42px;
  border-radius: 999px;
  background: #84858a;
}

.principles {
  display: grid;
  width: min(1120px, calc(100% - 48px));
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0 auto;
  padding: 0 0 120px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.principles article {
  min-width: 0;
  padding: 50px 36px 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.principles article:first-child {
  padding-left: 0;
  border-left: 0;
}

.principle-number {
  margin: 0 0 30px;
  color: #85868c;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
}

.principles h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 590;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.principles article > p:last-child {
  margin: 14px 0 0;
  color: #b8b9bd;
  font-size: 15px;
  line-height: 1.6;
}

.document-page {
  width: min(940px, calc(100% - 48px));
  margin: 0 auto;
  padding: 94px 0 120px;
}

.document-hero {
  max-width: 820px;
}

.document-hero h1 {
  font-size: clamp(52px, 8vw, 84px);
}

.document-hero > p:last-child {
  max-width: 760px;
  margin: 26px 0 0;
  color: #b8b9bd;
  font-size: clamp(19px, 2.5vw, 24px);
  line-height: 1.5;
}

.document-card {
  margin-top: 72px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 34px;
  background: #15161a;
}

.document-card section {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(0, 1.28fr);
  gap: 54px;
  padding: 42px 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.document-card section:first-child {
  border-top: 0;
}

.document-card h2,
.contact-card h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 630;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.document-card p,
.contact-card p {
  margin: 0;
  color: #b8b9bd;
  font-size: 16px;
  line-height: 1.7;
}

.text-link {
  color: #f5f5f3;
  text-decoration-color: rgba(255, 255, 255, 0.48);
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  margin-top: 64px;
  padding: 34px 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: #1c1d22;
}

.contact-card .eyebrow {
  margin-bottom: 8px;
}

.contact-card p:last-child {
  margin-top: 8px;
}

.support-card {
  margin-top: 24px;
}

.document-actions {
  justify-content: space-between;
}

.site-footer {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #85868c;
  font-size: 13px;
}

.site-footer div {
  display: flex;
  gap: 24px;
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 64px;
    padding-top: 82px;
  }

  .room {
    width: min(640px, 100%);
    min-height: 0;
    justify-self: center;
  }

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

  .principles article,
  .principles article:first-child {
    padding: 34px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 0;
  }

  .document-card section {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .site-header,
  .site-footer,
  .hero,
  .principles,
  .document-page {
    width: min(100% - 32px, 1120px);
  }

  .site-header {
    min-height: 76px;
  }

  .brand span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  nav {
    gap: 18px;
  }

  .hero {
    padding: 64px 0 88px;
  }

  .room {
    padding: 14px;
    border-radius: 34px;
  }

  .room-controls {
    gap: 18px;
    padding: 0 20px;
    font-size: 11px;
  }

  .page {
    min-height: 420px;
    padding: 36px 30px;
    border-radius: 26px;
  }

  .document-page {
    padding: 70px 0 88px;
  }

  .document-card {
    margin-top: 48px;
    border-radius: 24px;
  }

  .document-card section {
    padding: 30px 24px;
  }

  .contact-card {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 24px;
  }

  .document-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    transition-duration: 0.01ms !important;
  }
}
