@font-face {
  font-family: ManropeLocal;
  src: url("/assets/fonts/manrope-var.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: NewsreaderLocal;
  src: url("/assets/fonts/newsreader-italic-var.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #111714;
  --paper: #f3f0e8;
  --paper-raised: #faf8f1;
  --line: rgba(17, 23, 20, 0.16);
  --line-strong: rgba(17, 23, 20, 0.3);
  --lime: #c8f34a;
  --lime-dark: #668d10;
  --muted: #637069;
  --danger: #8d342c;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font: 500 15px/1.7 ManropeLocal, sans-serif;
}

a {
  color: inherit;
}

code,
.mono {
  font-family: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;
}

.skip {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  background: var(--lime);
  color: var(--ink);
  transform: translateY(-180%);
  transition: transform 0.16s;
}

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

.shell {
  width: min(1180px, calc(100% - 48px));
  margin: auto;
}

.header {
  border-bottom: 1px solid var(--line);
  background: rgba(243, 240, 232, 0.95);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 780;
  letter-spacing: -0.055em;
  text-decoration: none;
}

.mark {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.links {
  display: flex;
  gap: 22px;
  color: #3f4a43;
  font-size: 11px;
  font-weight: 720;
}

.links a {
  text-decoration: none;
}

.links a:hover,
.links a:focus-visible {
  color: #000;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.16s;
}

.cta:hover,
.cta:focus-visible {
  background: var(--lime);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 84px;
  background: var(--ink);
  color: #f7f5ed;
}

.hero::before {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, #000, transparent 76%);
  content: "";
}

.hero::after {
  position: absolute;
  right: -180px;
  bottom: -260px;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(200, 243, 74, 0.48);
  border-radius: 50%;
  box-shadow:
    0 0 0 48px rgba(200, 243, 74, 0.04),
    0 0 0 96px rgba(200, 243, 74, 0.035);
  content: "";
}

.hero .shell {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 25px;
  color: var(--lime);
  font: 700 9px/1.2 ui-monospace, "Cascadia Mono", monospace;
  letter-spacing: 0.13em;
}

.eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(200, 243, 74, 0.1);
  content: "";
}

.hero h1 {
  max-width: 930px;
  margin: 0;
  overflow-wrap: break-word;
  font-size: clamp(54px, 7vw, 98px);
  font-weight: 540;
  letter-spacing: -0.085em;
  line-height: 0.88;
}

.hero h1 em {
  color: var(--lime);
  font-family: NewsreaderLocal, Georgia, serif;
  font-weight: 400;
  white-space: normal;
}

.hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 31px 0 0;
  color: #c3cbc5;
  font-size: 15px;
  line-height: 1.7;
}

.layout {
  display: grid;
  grid-template-columns: minmax(200px, 0.35fr) minmax(0, 1fr);
  gap: clamp(38px, 8vw, 130px);
  padding: 68px 0 100px;
}

.aside {
  align-self: start;
  position: sticky;
  top: 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.38);
}

.aside small,
.aside-title {
  display: block;
  color: var(--muted);
  font: 700 9px/1.35 ui-monospace, "Cascadia Mono", monospace;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.aside p {
  margin: 12px 0 0;
  color: #354039;
  font-size: 12px;
  line-height: 1.65;
}

.aside a {
  display: inline-flex;
  margin-top: 18px;
  color: #1d2c22;
  font-size: 11px;
  font-weight: 750;
  text-underline-offset: 3px;
}

.aside nav {
  display: grid;
  gap: 9px;
  margin-top: 15px;
}

.aside nav a {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 5px;
  margin: 0;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.aside nav span {
  color: var(--lime-dark);
  font-family: ui-monospace, "Cascadia Mono", monospace;
  font-size: 9px;
}

.intro {
  margin: 0 0 42px;
  padding: 22px 25px;
  border-left: 4px solid var(--lime);
  background: #eaeee0;
  color: #26332a;
  font-size: 13px;
  line-height: 1.68;
}

.intro code,
.aside code,
.section code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.intro--warning {
  border-left-color: #dc766b;
  background: #f2e4de;
}

.section {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 28px;
}

.section:last-child {
  border-bottom: 1px solid var(--line);
}

.num {
  padding-top: 7px;
  color: var(--lime-dark);
  font: 700 10px/1 ui-monospace, "Cascadia Mono", monospace;
  letter-spacing: 0.08em;
}

.section h2 {
  max-width: 700px;
  margin: 0;
  color: #152017;
  font-size: clamp(23px, 3vw, 33px);
  font-weight: 620;
  letter-spacing: -0.065em;
  line-height: 1.02;
}

.section h3 {
  margin: 22px 0 0;
  color: #26342b;
  font-size: 13px;
  letter-spacing: -0.02em;
}

.section p,
.section li {
  max-width: 720px;
  color: #526058;
  font-size: 13px;
}

.section p {
  margin: 15px 0 0;
}

.section ul,
.section ol {
  margin: 15px 0 0;
  padding-left: 19px;
}

.section li + li {
  margin-top: 8px;
}

.section strong {
  color: #26342b;
}

.section code {
  padding: 0.12rem 0.34rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.56);
  color: #26342b;
  font-size: 0.9em;
}

.flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.flow article,
.info-card {
  min-height: 165px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-raised);
}

.flow i {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 5px;
  background: var(--lime);
  font: 800 11px/1 ui-monospace, monospace;
  font-style: normal;
}

.flow h3 {
  margin: 19px 0 5px;
  font-size: 12px;
  letter-spacing: -0.025em;
}

.flow p {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.info-card {
  min-height: 0;
}

.info-card small {
  display: block;
  color: var(--lime-dark);
  font: 700 9px/1.3 ui-monospace, "Cascadia Mono", monospace;
  letter-spacing: 0.08em;
}

.info-card h3 {
  margin: 14px 0 6px;
  font-size: 13px;
}

.info-card p {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
}

.notice {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--lime);
  background: rgba(255, 255, 255, 0.45);
}

.notice p {
  margin: 0;
}

.placeholder {
  display: inline-block;
  margin-top: 12px;
  padding: 9px 11px;
  border: 1px solid rgba(74, 109, 73, 0.42);
  border-radius: 7px;
  background: rgba(200, 243, 74, 0.14);
  color: #26342b;
  font: 600 12px/1.4 ui-monospace, "Cascadia Mono", monospace;
  text-decoration: none;
}

a.placeholder:hover {
  border-color: #4a6d49;
  background: rgba(200, 243, 74, 0.24);
}

a.placeholder:focus-visible {
  outline: 3px solid rgba(74, 109, 73, 0.35);
  outline-offset: 3px;
}

.placeholder-note {
  display: block;
  margin-top: 7px;
  color: #425449;
  font-size: 10px;
  font-weight: 730;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.support-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 38px;
}

.support-index a {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper-raised);
  text-decoration: none;
}

.support-index a:hover,
.support-index a:focus-visible {
  border-color: var(--ink);
  background: #fffdf7;
}

.support-index span {
  color: var(--lime-dark);
  font: 700 9px/1 ui-monospace, "Cascadia Mono", monospace;
}

.support-index b {
  font-size: 11px;
}

.support-index i {
  font-style: normal;
}

.troubleshooter {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper-raised);
}

.troubleshooter details + details {
  border-top: 1px solid var(--line);
}

.troubleshooter summary {
  position: relative;
  padding: 16px 45px 16px 17px;
  color: #26342b;
  cursor: pointer;
  font-size: 12px;
  font-weight: 730;
  list-style: none;
}

.troubleshooter summary::-webkit-details-marker {
  display: none;
}

.troubleshooter summary::after {
  position: absolute;
  top: 50%;
  right: 17px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  content: "+";
  font: 600 14px/20px ui-monospace, monospace;
  text-align: center;
  transform: translateY(-50%);
}

.troubleshooter details[open] summary::after {
  content: "−";
}

.troubleshooter details > div {
  padding: 0 17px 18px;
}

.troubleshooter p,
.troubleshooter li {
  font-size: 12px;
}

.footer {
  color: #c7d0c8;
  background: #101612;
}

.footer .shell {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.footer p {
  margin: 0;
  color: #8d9a90;
  font-size: 10px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  font-size: 10px;
}

.footer a {
  text-decoration: none;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--lime);
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 32px, 1180px);
  }

  .links {
    display: none;
  }

  .hero {
    padding: 74px 0 63px;
  }

  .hero h1 {
    font-size: clamp(44px, 13vw, 58px);
  }

  .layout {
    grid-template-columns: 1fr;
    padding: 44px 0 72px;
  }

  .aside {
    position: static;
  }

  .flow,
  .policy-grid,
  .support-index {
    grid-template-columns: 1fr;
  }

  .footer .shell {
    min-height: 150px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .footer nav {
    justify-content: flex-start;
  }
}

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

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