:root {
  --graphite: #14181C;
  --graphite-2: #1F252B;
  --steel: #1F3A54;
  --copper: #B87333;
  --copper-bright: #D99A5B;
  --slate: #7C858E;
  --bone: #EDEBE7;
  --paper: #F8F6F1;
  --line: rgba(124, 133, 142, .28);
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--graphite);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--bone);
  background:
    radial-gradient(circle at 82% 14%, rgba(31, 58, 84, .78), transparent 31rem),
    radial-gradient(circle at 13% 93%, rgba(184, 115, 51, .09), transparent 27rem),
    var(--graphite);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .34;
  background-image:
    linear-gradient(rgba(184, 115, 51, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 115, 51, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

a { color: inherit; }

.page {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr auto;
}

.shell { width: min(calc(100% - 64px), 1220px); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--graphite);
  background: var(--copper-bright);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus { top: 12px; }

header {
  border-bottom: 1px solid var(--line);
  background: rgba(20, 24, 28, .88);
  backdrop-filter: blur(16px);
}

.header-row {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--bone);
  font: 700 12px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .1em;
  text-decoration: none;
}

.mark {
  position: relative;
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--copper);
  border-radius: 50%;
}

.mark::before,
.mark::after {
  content: "";
  position: absolute;
  background: var(--copper);
}

.mark::before { width: 15px; height: 1px; }
.mark::after { width: 1px; height: 15px; }

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

.nav-links a {
  color: #A8AFB4;
  text-decoration: none;
  font: 600 11px/1 Inter, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--copper-bright);
}

.article-main {
  padding: 72px 0 88px;
}

.article {
  width: min(100%, 760px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: var(--copper-bright);
  font: 700 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow::before { content: "//"; color: var(--copper); }

.article h1 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(2.1rem, 5vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.byline {
  margin: 22px 0 0;
  color: #A8AFB4;
  font-size: .92rem;
  line-height: 1.55;
}

.byline a {
  color: var(--copper-bright);
  text-decoration: none;
}

.byline a:hover { text-decoration: underline; }

.credentials,
.note,
.warning {
  margin: 28px 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(184, 115, 51, .38);
  border-left: 4px solid var(--copper);
  border-radius: 8px;
  background: rgba(184, 115, 51, .1);
  color: var(--bone);
  font-size: .92rem;
  line-height: 1.6;
}

.warning {
  border-color: rgba(199, 106, 99, .55);
  border-left-color: #C76A63;
  background: rgba(158, 43, 37, .13);
}

.article-body {
  margin-top: 42px;
}

.article-body h2 {
  margin: 52px 0 18px;
  color: var(--paper);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -.03em;
}

.article-body h3 {
  margin: 32px 0 12px;
  color: var(--paper);
  font-size: 1.15rem;
  line-height: 1.35;
  letter-spacing: -.02em;
}

.article-body p,
.article-body li {
  color: #C6C9C8;
  font-size: 1.05rem;
  line-height: 1.75;
}

.article-body p { margin: 0 0 1.15em; }

.article-body a {
  color: var(--copper-bright);
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.3em;
  padding: 0 0 0 1.2em;
}

.article-body li { margin: 0 0 .55em; }

.article-body li::marker { color: var(--copper); }

.article-jump {
  margin: 28px 0 0;
  color: #A8AFB4;
  font-size: .95rem;
}

.article-jump a { color: var(--copper-bright); }

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.4em;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  line-height: 1.5;
}

.article-body th,
.article-body td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  color: #C6C9C8;
}

.article-body th {
  color: var(--paper);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.article-body tbody th {
  font-size: .92rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
  color: var(--bone);
}

.refs { font-size: .95rem; }

.refs a { overflow-wrap: anywhere; }

.post-list {
  display: grid;
  gap: 16px;
  margin-top: 42px;
}

.post-card {
  display: block;
  padding: 24px 26px;
  border: 1px solid rgba(184, 115, 51, .38);
  border-radius: 14px;
  background: rgba(31, 37, 43, .55);
  text-decoration: none;
}

.post-card:hover { border-color: var(--copper-bright); }

.post-card h2 {
  margin: 0 0 10px;
  color: var(--paper);
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  line-height: 1.25;
  letter-spacing: -.03em;
}

.post-card p {
  margin: 0;
  color: #C6C9C8;
  font-size: 1rem;
  line-height: 1.65;
}

.related {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.related h2 {
  margin: 0 0 16px;
  color: var(--paper);
  font-size: 1.2rem;
}

.related ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.related li { margin: 0 0 10px; }

.related a { color: var(--copper-bright); }

.step-label {
  display: block;
  margin-bottom: 6px;
  color: var(--copper-bright);
  font: 700 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.quote {
  margin: 0 0 1.2em;
  color: var(--paper);
  font-size: 1.2rem;
  line-height: 1.55;
}

.cta {
  position: relative;
  overflow: hidden;
  margin-top: 56px;
  padding: 34px;
  border: 1px solid rgba(184, 115, 51, .38);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(31, 58, 84, .84), rgba(31, 37, 43, .87));
  box-shadow: 0 28px 90px rgba(0, 0, 0, .22);
}

.cta h2 {
  margin: 0 0 12px;
  color: var(--paper);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -.04em;
}

.cta p {
  margin: 0;
  color: #B8BEC2;
  font-size: .96rem;
  line-height: 1.65;
}

.cta p a { color: var(--copper-bright); }

.signup-form { position: relative; z-index: 2; margin-top: 22px; }

.field-row { display: grid; grid-template-columns: .7fr 1.3fr; gap: 10px; }

.signup-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.signup-form input[type="text"],
.signup-form input[type="email"] {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: rgba(20, 24, 28, .63);
  font: 500 .86rem/1.2 Inter, sans-serif;
}

.signup-form input::placeholder { color: #8F979D; }

.signup-form input:focus {
  border-color: var(--copper-bright);
  box-shadow: 0 0 0 3px rgba(217, 154, 91, .12);
}

.signup-form button {
  width: 100%;
  min-height: 52px;
  margin-top: 10px;
  padding: 13px 18px;
  color: var(--graphite);
  border: 1px solid var(--copper);
  border-radius: 8px;
  background: var(--copper);
  font: 800 .76rem/1 Inter, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

.signup-form button:hover {
  background: var(--copper-bright);
  border-color: var(--copper-bright);
}

.signup-form button:disabled { opacity: .65; cursor: wait; }

.consent {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 9px;
  margin-top: 13px;
  align-items: start;
}

.consent input {
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  accent-color: var(--copper);
}

.consent label {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
  color: #A8AFB4;
  font-size: .68rem;
  line-height: 1.45;
}

.form-status {
  display: none;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(184, 115, 51, .55);
  border-left: 4px solid var(--copper);
  border-radius: 8px;
  background: rgba(184, 115, 51, .12);
  color: var(--bone);
  font-size: .9rem;
  line-height: 1.55;
}

.form-status.is-visible { display: block; }

.form-status.is-error {
  border-color: rgba(199, 106, 99, .62);
  border-left-color: #C76A63;
  background: rgba(158, 43, 37, .13);
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: #8E969C;
  font: 600 10px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-note {
  max-width: 760px;
  margin: 0 auto 18px;
  color: #8E969C;
  font: 500 12px/1.55 Inter, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 600px) {
  .shell { width: min(calc(100% - 30px), 1220px); }
  .header-row { min-height: 74px; }
  .brand { font-size: 10px; }
  .mark { width: 30px; height: 30px; }
  .article-main { padding: 48px 0 64px; }
  .cta { padding: 27px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; gap: 8px; }
}

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