:root {
  color-scheme: dark;
  --ink: #f2f0e9;
  --muted: #a7aaa6;
  --line: rgba(242, 240, 233, 0.14);
  --panel: rgba(255, 255, 255, 0.035);
  --accent: #e4a96b;
  --accent-soft: rgba(228, 169, 107, 0.14);
  --background: #111313;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 75% 4%, rgba(228, 169, 107, 0.09), transparent 28rem),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--background);
  background-size: auto, 100% 5.25rem, auto;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-color: rgba(228, 169, 107, 0.55);
  text-underline-offset: 0.25em;
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.site-header,
main,
footer {
  width: min(74rem, calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  min-height: 7.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.24rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  content: "";
  position: absolute;
  width: 0.25rem;
  height: 0.25rem;
  background: var(--accent);
  border-radius: 50%;
}

.brand-mark::before {
  top: 0.42rem;
  left: 0.75rem;
}

.brand-mark::after {
  right: 0.45rem;
  bottom: 0.55rem;
}

.brand-mark span {
  left: 0.48rem;
  bottom: 0.48rem;
}

nav,
footer div {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

nav a,
footer a {
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

nav a[aria-current="page"] {
  color: var(--ink);
}

.hero {
  min-height: 41rem;
  max-width: 55rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 6rem 0;
}

.eyebrow {
  margin: 0 0 1.4rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.06;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.7rem;
  font-size: clamp(3.6rem, 9vw, 7.6rem);
  letter-spacing: -0.055em;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 1rem;
  font-size: 1.55rem;
}

.hero-copy {
  max-width: 41rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link span {
  color: var(--accent);
  font-size: 1.2rem;
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translateX(0.25rem);
}

.principles {
  padding: 8rem 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 45rem;
  margin-bottom: 4rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.card {
  min-height: 19rem;
  padding: 2rem;
  background: var(--panel);
}

.card + .card {
  border-left: 1px solid var(--line);
}

.card-number {
  display: block;
  margin-bottom: 5rem;
  color: var(--accent);
  font: 0.72rem/1 var(--sans);
  letter-spacing: 0.14em;
}

.card p,
.notice > p,
.document p,
.document li,
.not-found > p:not(.eyebrow) {
  color: var(--muted);
}

.notice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: end;
  padding: 9rem 0;
}

.notice h2 {
  max-width: 11ch;
  margin-bottom: 0;
}

.notice > p {
  max-width: 34rem;
  margin-bottom: 0.4rem;
}

.document {
  max-width: 58rem;
  padding: 7rem 0 8rem;
}

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

.document-header h1 {
  max-width: 12ch;
  font-size: clamp(3.2rem, 8vw, 6.2rem);
}

.document-header > p:last-child {
  max-width: 43rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.document section {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 3rem;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--line);
}

.document section h2 {
  margin-bottom: 0;
  font: 750 0.76rem/1.5 var(--sans);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.document section p,
.document section ul {
  grid-column: 2;
  margin-bottom: 0;
}

.document section p + p {
  margin-top: 1rem;
}

.document ul {
  padding-left: 1.2rem;
}

.document li + li {
  margin-top: 0.7rem;
}

.not-found {
  min-height: 38rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 6rem 0;
}

.not-found h1 {
  max-width: 14ch;
  font-size: clamp(3rem, 7vw, 5.8rem);
}

footer {
  min-height: 8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

footer p {
  margin-bottom: 0;
}

@media (max-width: 48rem) {
  .site-header,
  main,
  footer {
    width: min(100% - 2rem, 74rem);
  }

  .site-header {
    min-height: 6rem;
  }

  nav {
    gap: 1rem;
  }

  nav a {
    font-size: 0.72rem;
  }

  .hero {
    min-height: 36rem;
  }

  .card-grid,
  .notice,
  .document section {
    grid-template-columns: 1fr;
  }

  .card + .card {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .card-number {
    margin-bottom: 3rem;
  }

  .notice {
    gap: 2.5rem;
  }

  .document section {
    gap: 1.5rem;
  }

  .document section p,
  .document section ul {
    grid-column: 1;
  }
}

@media (max-width: 31rem) {
  .brand > span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  h1 {
    font-size: 3.25rem;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
  }
}

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

  .text-link span {
    transition: none;
  }
}
