@font-face {
  font-family: Onest;
  src: url('/app/fonts/Onest-Variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #111214;
  --ink: #e9e8e6;
  --muted: #a8a9ad;
  --border: #303135;
  font-family: Onest, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: 5px; }
a:hover { color: #fff; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: 3px; }
p { line-height: 1.75; }
img { max-width: 100%; height: auto; }
.shell { max-width: 1160px; margin: auto; padding: 32px; }
.skip { position: absolute; top: -100px; inset-inline-start: 20px; padding: 12px; background: var(--ink); color: var(--bg); z-index: 5; }
.skip:focus { top: 12px; }

header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; letter-spacing: -.7px; text-decoration: none; }
.brand img { flex: none; }
.controls { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.controls > a { padding: 12px 0; text-decoration: none; }
.languages { position: relative; }
.languages summary { padding: 12px 0; cursor: pointer; }
.languages > div {
  position: absolute;
  z-index: 3;
  inset-inline-end: 0;
  top: 48px;
  width: 220px;
  max-height: 65vh;
  overflow: auto;
  padding: 8px;
  background: #1d1e21;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px #0005;
}
.languages a { display: block; padding: 10px 12px; text-decoration: none; border-radius: 6px; }
.languages a:hover, .languages a[aria-current] { background: #303135; }
.navigation { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 24px 0; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.navigation a { text-decoration: none; }
.navigation [aria-current] { color: var(--ink); }

.hero { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 48px; padding: 64px 0 56px; }
.eyebrow { color: var(--muted); font-size: 11px; letter-spacing: .12em; margin: 0 0 20px; }
h1 { margin: 0 0 24px; font-size: clamp(38px, 5vw, 68px); font-weight: 500; line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; overflow-wrap: anywhere; }
.intro { max-width: 65ch; margin: 0; color: var(--muted); font-size: 17px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; padding: 16px 24px; min-height: 54px; margin-top: 32px; border-radius: 100px; background: var(--ink); color: var(--bg); text-decoration: none; font-size: 15px; font-weight: 600; }
.button:hover { background: #fff; color: var(--bg); }
.study { margin: 0; width: 100%; max-width: 400px; justify-self: end; }
.study img { display: block; width: 100%; filter: brightness(0) invert(1); opacity: .65; }
.section { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; padding: 28px 0; border-top: 1px solid var(--border); scroll-margin-top: 20px; }
.section h2 { font-size: 18px; line-height: 1.5; font-weight: 500; letter-spacing: -.02em; margin: 0; }
.section p { margin: 0; color: var(--muted); font-size: 15px; max-width: 75ch; overflow-wrap: anywhere; }
.section-body ul { margin: 16px 0 0; padding-inline-start: 20px; max-width: 75ch; color: var(--muted); font-size: 15px; line-height: 1.75; }
.section-body li + li { margin-top: 8px; }
.guide-list { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
.guide-list h3 { margin: 0 0 8px; font-size: 16px; line-height: 1.5; font-weight: 500; }
.article-heading { max-width: 900px; padding: 56px 0; }
.article-heading h1 { font-size: clamp(36px, 4.5vw, 58px); }
.disclaimer { padding: 24px 0; color: var(--muted); max-width: 90ch; font-size: 12px; }
.disclaimer p { margin: 0; }
.related { display: flex; flex-wrap: wrap; gap: 20px; padding: 24px 0 40px; font-size: 14px; }
footer { display: flex; flex-wrap: wrap; gap: 14px 24px; padding: 24px 0 8px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
footer span { margin-inline-end: auto; color: var(--ink); }

@media (max-width: 767px) {
  .shell { padding: 20px 24px; }
  .controls { gap: 16px; font-size: 12px; }
  .brand { font-size: 17px; gap: 7px; }
  .brand img { width: 24px; height: 24px; }
  .navigation { gap: 12px 20px; font-size: 12px; padding: 20px 0; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding: 36px 0; }
  .intro { font-size: 15px; }
  .study { max-width: 260px; justify-self: center; }
  .section { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; }
  .section h2 { font-size: 17px; }
  .section p { font-size: 14px; }
  .section-body ul { font-size: 14px; }
  .article-heading { padding: 36px 0; }
  .related { font-size: 12px; gap: 16px; }
  footer { font-size: 11px; }
  footer span { flex-basis: 100%; }
}
