/* raven.h15n.org. Black at the top of every page; the rest follows the
   system's light or dark appearance. */

:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --faint: #86868b;
  --line: #e3e3e8;
  --paper: #ffffff;
  --stage: #f3f3f5;
  --code: #f2f2f4;
  --link: #0a64d8;
  --night: #000000;
  --night-ink: #f5f5f7;
  --night-muted: #a1a1a6;
  --night-line: #2a2a2d;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: 20px;
  --text: 42rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f5f5f7;
    --muted: #a1a1a6;
    --faint: #86868b;
    --line: #2c2c2e;
    --paper: #0d0d0e;
    --stage: #161618;
    --code: #1f1f22;
    --link: #5aa2ff;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.15em; }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.015em; margin: 0; }

code, kbd, pre { font-family: var(--mono); font-size: 0.88em; }
code { background: var(--code); border-radius: 5px; padding: 0.1em 0.35em; }
kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0.05em 0.45em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--paper);
  font-size: 0.82em;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
}
pre {
  background: var(--code);
  border-radius: 10px;
  padding: 16px 18px;
  overflow-x: auto;
  line-height: 1.5;
}
pre code { background: none; padding: 0; font-size: 1em; }

/* --- The bar ------------------------------------------------------------ */

.bar { background: var(--night); color: var(--night-ink); border-bottom: 1px solid var(--night-line); }
/* On the front page the bar floats over the skyline. */
.home .bar { position: absolute; inset: 0 0 auto; z-index: 1; background: transparent; border-bottom-color: transparent; }
.bar__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.bar__home {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--night-ink);
  font: 600 18px/1 var(--display);
  letter-spacing: -0.01em;
}
.bar__home img { border-radius: 6px; }
.bar__home:hover { text-decoration: none; }
.bar__nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.bar__nav a { color: var(--night-muted); }
.home .bar__nav a:not(.bar__download) { color: rgb(255 255 255 / 0.8); }
.home .bar__nav a:not(.bar__download):hover { color: #fff; }
.bar__nav a:hover, .bar__nav a[aria-current] { color: var(--night-ink); text-decoration: none; }
.bar__nav .bar__download {
  color: var(--night);
  background: var(--night-ink);
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 500;
}
.bar__nav .bar__download:hover { color: var(--night); background: #fff; }

/* --- Front page --------------------------------------------------------- */

/* The skyline, darkened most where the text sits: a pool of shadow behind
   the centre, and a wash from the top so the bar stays legible. */
.hero {
  position: relative;
  color: var(--night-ink);
  text-align: center;
  background-color: var(--night);
  background-image:
    radial-gradient(ellipse 60% 55% at 50% 48%, rgb(0 0 0 / 0.55), rgb(0 0 0 / 0) 100%),
    linear-gradient(rgb(0 0 0 / 0.55), rgb(0 0 0 / 0.15) 30%, rgb(0 0 0 / 0.25) 70%, rgb(0 0 0 / 0.7)),
    url("/assets/skyline.jpg");
  background-image:
    radial-gradient(ellipse 60% 55% at 50% 48%, rgb(0 0 0 / 0.55), rgb(0 0 0 / 0) 100%),
    linear-gradient(rgb(0 0 0 / 0.55), rgb(0 0 0 / 0.15) 30%, rgb(0 0 0 / 0.25) 70%, rgb(0 0 0 / 0.7)),
    image-set(url("/assets/skyline.webp") type("image/webp"), url("/assets/skyline.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center 35%;
}
.hero__inner { max-width: 760px; margin: 0 auto; padding: 128px var(--gutter) 120px; min-height: min(82vh, 820px); display: flex; flex-direction: column; justify-content: center; }
.hero__icon { width: 128px; height: 128px; display: block; margin: 0 auto 24px; filter: drop-shadow(0 8px 24px rgb(0 0 0 / 0.5)); }
.hero h1 { font-size: clamp(56px, 12vw, 104px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; text-shadow: 0 2px 30px rgb(0 0 0 / 0.5); }
.hero__pitch { font-size: clamp(19px, 2.6vw, 24px); line-height: 1.45; color: rgb(255 255 255 / 0.82); margin: 20px auto 0; max-width: 34ch; text-shadow: 0 1px 12px rgb(0 0 0 / 0.6); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.hero__fine { margin: 22px 0 0; font: 13px/1.6 var(--mono); color: rgb(255 255 255 / 0.7); text-shadow: 0 1px 8px rgb(0 0 0 / 0.7); }
.hero__fine a { color: rgb(255 255 255 / 0.7); text-decoration: underline; text-underline-offset: 0.2em; }
.hero__fine a:hover { color: var(--night-ink); }

.button {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.35);
  background: rgb(0 0 0 / 0.3);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--night-ink);
  font-weight: 500;
  font-size: 16px;
}
.button:hover { text-decoration: none; border-color: var(--night-ink); }
.button--primary { background: var(--night-ink); border-color: var(--night-ink); color: var(--night); }
.button--primary:hover { background: #fff; }

.feature { border-bottom: 1px solid var(--line); }
.feature__inner, .why__inner { max-width: 960px; margin: 0 auto; padding: 88px var(--gutter); text-align: center; }
.feature h2 { font-size: clamp(32px, 5vw, 48px); font-weight: 700; letter-spacing: -0.03em; }
.feature p { max-width: 36rem; margin: 16px auto 0; color: var(--muted); font-size: 19px; }

.shot { margin: 48px auto 0; }
.shot picture, .shot > div {
  display: block;
  background: var(--stage);
  border-radius: 20px;
  padding: clamp(20px, 5vw, 56px);
}
.shot img { display: block; width: 100%; max-width: var(--shot-w, 100%); height: auto; margin: 0 auto; }
.shot--missing > div {
  min-height: 260px;
  display: grid;
  place-items: center;
  border: 1.5px dashed var(--line);
  color: var(--faint);
  font: 14px var(--mono);
}

.why { background: var(--stage); }
.why__inner { max-width: var(--text); text-align: left; }
.why h2 { font-size: 28px; font-weight: 700; }
.why p { color: var(--muted); margin: 14px 0 0; }

/* --- Pages: the changelog and the guide -------------------------------- */

.page { max-width: var(--text); margin: 0 auto; padding: 56px var(--gutter) 96px; }
.page h1, .guide__body h1 { font-size: clamp(34px, 5vw, 44px); font-weight: 700; letter-spacing: -0.03em; }
.page__lede { font-size: 19px; color: var(--muted); margin: 12px 0 0; }

.release { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 32px; }
.release h2 { font-size: 26px; font-weight: 700; }
.release h2 a { color: inherit; }
.release__date { margin: 4px 0 0; color: var(--faint); font-size: 15px; }
.release h3 { font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 28px 0 0; }

.release ul, .release p,
.guide__body > p, .guide__body > ul, .guide__body > ol, .guide__body > table, .guide__body > pre { margin: 14px 0 0; }
.release ul, .guide__body ul { padding-left: 1.2em; }
.release li, .guide__body li { margin: 6px 0; }
.release li::marker, .guide__body li::marker { color: var(--faint); }

.guide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
}
.guide__side { padding: 48px 0 64px; }
.guide__side nav { position: sticky; top: 24px; }
.guide__menu { display: none; }
.guide nav ul { list-style: none; margin: 0; padding: 0; }
.guide nav li a {
  display: block;
  padding: 5px 10px;
  margin: 1px 0;
  border-radius: 8px;
  color: var(--muted);
  font-size: 15px;
}
.guide nav li a:hover { color: var(--ink); background: var(--stage); text-decoration: none; }
.guide nav li a[aria-current] { color: var(--ink); background: var(--stage); font-weight: 600; }
.guide__group {
  margin: 22px 0 6px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.guide__body { max-width: var(--text); padding: 48px 0 96px; min-width: 0; }
.guide__body h2 { font-size: 24px; font-weight: 700; margin-top: 44px; scroll-margin-top: 24px; }
.guide__body h2 + * { margin-top: 12px; }
.guide__body .shot { margin: 28px 0 0; }
.guide__body .shot picture, .guide__body .shot > div { padding: 24px; border-radius: 16px; }

.guide__body table { width: 100%; border-collapse: collapse; font-size: 16px; }
.guide__body th, .guide__body td { text-align: left; vertical-align: top; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line); }
.guide__body th { font-size: 13px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; }
.guide__body thead tr:has(th:empty) { display: none; }
.guide__body td:first-child { white-space: nowrap; }

.guide__next { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }
.guide__next a { display: flex; flex-direction: column; font-weight: 600; }
.guide__next a:hover { text-decoration: none; }
.guide__next span { font-size: 13px; font-weight: 400; color: var(--faint); }
.guide__following { margin-left: auto; text-align: right; }

/* --- Footer ------------------------------------------------------------- */

.foot { border-top: 1px solid var(--line); }
.foot__inner { max-width: 1100px; margin: 0 auto; padding: 32px var(--gutter) 48px; font-size: 14px; color: var(--muted); }
.foot__inner p { margin: 0; }
.foot__small { margin-top: 8px !important; font-size: 13px; color: var(--faint); max-width: 44rem; }

/* --- Narrow screens ----------------------------------------------------- */

@media (max-width: 760px) {
  .bar__nav { gap: 16px; }
  .guide { display: block; }
  .guide__side { display: none; }
  .guide__menu { display: block; border-bottom: 1px solid var(--line); margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
  .guide__menu summary { padding: 14px 0; font-weight: 600; cursor: pointer; }
  .guide__menu nav { padding-bottom: 16px; }
  .guide__body { padding-top: 32px; }
  .guide__body td:first-child { white-space: normal; }
  .feature__inner, .why__inner { padding: 64px var(--gutter); }
}

@media (max-width: 380px) {
  .bar__nav { gap: 12px; font-size: 14px; }
}
