:root {
  color-scheme: dark;
  --black: #050505;
  --panel: #0a0a09;
  --panel-soft: #10100f;
  --text: rgba(216, 214, 207, .9);
  --text-strong: #ede7d8;
  --muted: rgba(216, 214, 207, .64);
  --faint: rgba(216, 214, 207, .36);
  --line: rgba(222, 218, 207, .18);
  --line-strong: rgba(222, 218, 207, .29);
  --warm: #ede7d8;
  --warm-soft: rgba(237, 231, 216, .68);
  --danger: #b79882;
  --shadow: 0 26px 90px rgba(0, 0, 0, .52);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #111;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  line-height: 1.72;
  background:
    linear-gradient(rgba(255, 255, 255, .016) 1px, transparent 1px) 0 0 / 100% 5px,
    radial-gradient(circle at 80% 8%, rgba(237, 231, 216, .09), transparent 28rem),
    var(--black);
}

body::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: .18;
  background-image:
    radial-gradient(circle at 16% 21%, rgba(255, 255, 255, .14) 0 .45px, transparent .7px),
    radial-gradient(circle at 78% 63%, rgba(255, 255, 255, .10) 0 .4px, transparent .7px);
  background-size: 7px 7px, 11px 11px;
  mix-blend-mode: screen;
  z-index: 10;
}

a {
  color: var(--text-strong);
  text-decoration-color: rgba(237, 231, 216, .42);
  text-decoration-thickness: 1px;
  text-underline-offset: .24em;
}

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

.site-header {
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--line);
}

.site-footer {
  padding: 34px 0 42px;
  color: var(--faint);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  color: rgba(216, 214, 207, .78);
  font-family: Didot, "Bodoni 72", Georgia, serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 7px;
}

.brand-subtitle {
  color: var(--faint);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid transparent;
  color: var(--muted);
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  border-color: var(--line-strong);
  background: rgba(237, 231, 216, .055);
  color: var(--text-strong);
}

.home,
.document {
  position: relative;
  z-index: 20;
}

.home {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 56px;
}

.hero {
  min-height: 540px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: end;
  gap: 44px;
  padding: clamp(42px, 8vw, 92px) 0 56px;
}

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

.eyebrow,
.doc-kicker,
.meta,
.panel-label {
  margin: 0 0 10px;
  color: var(--faint);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
}

h1,
h2 {
  color: var(--text-strong);
  font-family: Didot, "Bodoni 72", Georgia, serif;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(46px, 8vw, 94px);
}

.lead {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  background: rgba(237, 231, 216, .035);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.button.primary {
  background: var(--warm);
  color: var(--black);
}

.instrument-panel {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(237, 231, 216, .024) 1px, transparent 1px) 0 0 / 100% 7px,
    rgba(10, 10, 9, .78);
  box-shadow: var(--shadow);
}

.instrument-panel strong {
  color: var(--text-strong);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 13px;
  letter-spacing: .06em;
}

.instrument-panel span:not(.panel-label) {
  color: var(--faint);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 10px;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.doc-card {
  padding: 30px;
  background: rgba(10, 10, 9, .88);
}

.doc-card h2 {
  margin: 0 0 14px;
  font-size: 32px;
}

.doc-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
}

.doc-card a {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.document {
  width: min(900px, calc(100% - 40px));
  margin: 42px auto 62px;
}

.document article {
  padding: clamp(30px, 6vw, 68px);
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(237, 231, 216, .018) 1px, transparent 1px) 0 0 / 100% 7px,
    rgba(10, 10, 9, .9);
  box-shadow: var(--shadow);
}

.document h1 {
  font-size: clamp(42px, 7vw, 76px);
}

.document h2 {
  margin: 46px 0 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 30px;
}

.document p,
.document li {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

.document ul {
  padding-left: 1.15em;
}

.document li {
  margin: 8px 0;
}

.notice {
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  background: rgba(237, 231, 216, .045);
  color: var(--warm-soft);
}

@media (max-width: 780px) {
  .site-header,
  .site-footer {
    width: min(100% - 28px, 1120px);
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

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

  .home,
  .document {
    width: min(100% - 28px, 1120px);
  }

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

  h1 {
    font-size: 48px;
  }

  .lead {
    font-size: 17px;
  }

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

  .actions,
  .button {
    width: 100%;
  }

  .document {
    margin-top: 28px;
  }

  .document article {
    padding: 28px 22px;
  }
}
