:root {
  --ink: #f7f3e8;
  --ink-2: #d9d2c1;
  --muted: #a99f89;
  --quiet: #827a69;
  --bg: #080907;
  --panel: rgba(18, 20, 16, .78);
  --panel-solid: #f4efe2;
  --panel-cool: #171a14;
  --line: rgba(247, 243, 232, .15);
  --line-strong: rgba(247, 243, 232, .3);
  --olive: #9fb67d;
  --olive-2: #c1d19d;
  --plum: #11140f;
  --clay: #d0b36b;
  --gold: #dcc681;
  --blue: #9aa68d;
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 34px 110px rgba(0, 0, 0, .45);
  --shadow-card: 0 24px 70px rgba(0, 0, 0, .32);
  --max: 1420px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--ink);
  font-family: IBM Plex Sans, sans-serif;
  line-height: 1.65;
  background:
    linear-gradient(90deg, rgba(247, 243, 232, .045) 1px, transparent 1px),
    radial-gradient(circle at 12% -5%, rgba(159, 182, 125, .18), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(208, 179, 107, .12), transparent 30rem),
    linear-gradient(180deg, #070807 0%, #10120e 48%, #090a08 100%);
  background-size: 96px 100%, auto, auto, auto;
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .42;
  background:
    linear-gradient(rgba(247, 243, 232, .045) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .08), transparent 28rem);
  background-size: 100% 42px, auto;
  mask-image: linear-gradient(180deg, #000, transparent 80%);
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

::selection {
  background: var(--ink);
  color: var(--panel-solid);
}

.shell {
  width: min(calc(100% - 56px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(247, 243, 232, .12);
  background: rgba(8, 9, 7, .78);
  backdrop-filter: blur(20px) saturate(1.08);
}

.topbar {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  position: relative;
  width: 58px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  color: #f4e8d2;
  background:
    linear-gradient(90deg, #151515 0 72%, #9b5f45 72% 100%);
  border: 1px solid rgba(21, 21, 21, .92);
  box-shadow: 8px 8px 0 rgba(155, 95, 69, .16);
  font-family: Space Grotesk, sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: lowercase;
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 18px;
  bottom: 7px;
  height: 1px;
  background: currentColor;
  opacity: .72;
}

.brand-text {
  display: grid;
  line-height: 1.02;
}

.brand-name {
  font-family: Space Grotesk, sans-serif;
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -.04em;
}

.brand-sub {
  color: #9d9481;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  overflow: hidden;
}

.nav a {
  white-space: nowrap;
  padding: 9px 10px;
  border-radius: 10px;
  color: #d7d1c2;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: -.01em;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.nav a:hover {
  background: rgba(247, 243, 232, .1);
  color: #fff8e8;
  transform: translateY(-1px);
}

.header-action {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  border-radius: 12px;
  background: var(--panel-solid);
  color: #0a0b09;
  font-size: .8rem;
  font-weight: 800;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .48);
  transition: transform .2s ease, box-shadow .2s ease;
}

.header-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(18, 20, 19, .22);
}

.header-action:after {
  content: "->";
  transform: translateY(-1px);
}

main {
  padding: 42px 0 104px;
}

.surface {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(28, 31, 24, .82), rgba(14, 16, 12, .82));
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--olive-2);
  font-family: Space Grotesk, sans-serif;
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .15em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow:before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
  opacity: .75;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Newsreader, serif;
  font-weight: 650;
  letter-spacing: -.05em;
  line-height: .96;
}

p {
  margin: 0;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid var(--panel-solid);
  border-radius: 999px;
  background: var(--panel-solid);
  color: #0a0b09;
  font-weight: 800;
  box-shadow: 0 20px 56px rgba(0, 0, 0, .38);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(18, 20, 19, .22);
}

.button:active {
  transform: translateY(0);
}

.button.alt {
  background: rgba(247, 243, 232, .06);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: none;
}

.button.alt:hover {
  background: rgba(247, 243, 232, .12);
}

.site-footer {
  padding: 52px 0 60px;
  border-top: 1px solid rgba(247, 243, 232, .12);
  background: #060706;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr .9fr .9fr .9fr;
  gap: 28px;
}

.footer-brand {
  max-width: 28rem;
}

.footer-brand strong {
  display: block;
  margin-bottom: 10px;
  font-family: Space Grotesk, sans-serif;
  font-size: 1.15rem;
  letter-spacing: -.04em;
}

.footer p,
.site-footer p,
.site-footer a {
  color: #a99f89;
}

.site-footer h4 {
  margin: 0 0 14px;
  color: var(--olive);
  font-family: Space Grotesk, sans-serif;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.site-footer a:hover {
  color: var(--ink);
}

@media (max-width: 1040px) {
  .topbar {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 10px 0 12px;
  }

  .brand {
    grid-column: 1;
  }

  .header-action {
    grid-column: 2;
    grid-row: 1;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 2px 0 0;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

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

@media (max-width: 680px) {
  .shell {
    width: min(calc(100% - 28px), var(--max));
  }

  .site-header {
    position: sticky;
  }

  .topbar {
    min-height: 0;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    padding: 10px 0;
  }

  .brand-mark {
    width: 48px;
    height: 30px;
    border-radius: 3px;
  }

  .brand-sub {
    display: none;
  }

  .brand-name {
    font-size: 1.08rem;
  }

  .header-action {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    padding: 9px 11px;
    border-radius: 10px;
    font-size: 0;
  }

  .header-action:before {
    content: "Method";
    font-size: .72rem;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    width: 100%;
    max-width: 100%;
    gap: 7px;
    padding: 4px 0 0;
    overflow-x: auto;
  }

  .nav a {
    min-width: max-content;
    padding: 7px 10px;
    border: 1px solid rgba(247, 243, 232, .14);
    border-radius: 999px;
    background: rgba(247, 243, 232, .07);
    text-align: center;
    white-space: nowrap;
    font-size: .68rem;
    line-height: 1.15;
  }

  main {
    padding-top: 26px;
  }

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

@media (max-width: 380px) {
  .brand-name {
    font-size: 1rem;
  }

  .header-action {
    padding-inline: 9px;
  }
}

@media (max-width: 430px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .brand {
    min-width: 0;
  }

  .brand-text {
    min-width: 0;
  }

  .brand-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav {
    display: none;
  }
}
