@import "/entry/theme.css";
@import "./landing.css";

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--text);
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

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

.document-header {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.document-header nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 0.82rem;
}

.document-header .brand-name {
  color: var(--text);
  font-weight: 400;
}

.document-header nav a {
  text-decoration: none;
}

.document-main {
  padding: 76px 0 96px;
}

.document-main > header {
  padding-bottom: 42px;
}

.document-main h1,
.error-page h1 {
  margin: 0;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.document-updated {
  margin: 18px 0 0;
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.74rem;
}

.document-intro {
  max-width: 680px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.document-section {
  padding: 30px 0;
  border-top: 1px solid var(--border);
}

.document-section h2 {
  margin: 0 0 14px;
  font-family: "Archivo Black", sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
}

.document-section p,
.document-section ul {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.document-section ul {
  padding-left: 1.2rem;
}

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

.document-section a {
  color: var(--green-pale);
}

.error-page {
  display: grid;
  width: min(620px, calc(100% - 40px));
  min-height: 100svh;
  align-content: center;
  justify-items: start;
  margin: 0 auto;
}

.error-page > p:not(.eyebrow) {
  margin: 22px 0 30px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .document-shell { width: min(100% - 32px, 1180px); }
  .document-header { min-height: 74px; }
  .document-header nav a:not(:first-child) { display: none; }
  .document-main { padding: 58px 0 76px; }
}
