:root {
  color-scheme: light dark;
  --background: #f7f7f7;
  --foreground: #242426;
  --muted: #6d6d73;
  --primary: #3e5fc8;
  --border: #e2e2e5;
  --shadow: #2529441f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #151516;
    --foreground: #ededee;
    --muted: #9a9aa1;
    --primary: #7d97ea;
    --border: #2c2c2f;
    --shadow: #00000080;
  }
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 48px, 1120px);
  margin: 0 auto;
}

header {
  justify-content: center;
  padding: 20px 0;
}

.brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

main {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 2vh 24px 0;
  text-align: center;
}

.logo {
  width: auto;
  height: clamp(72px, 13vh, 128px);
  margin-bottom: 2.5vh;
}

h1 {
  margin: 0;
  font-size: clamp(30px, min(5.2vh, 9vw), 56px);
  text-wrap: balance;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

h1 span {
  display: block;
  color: var(--muted);
}

main > p {
  max-width: 34em;
  margin: 2vh 0 0;
  color: var(--muted);
  font-size: 18px;
}

.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 3vh;
}

.button {
  padding: 11px 22px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.button:hover {
  filter: brightness(1.08);
}

small {
  color: var(--muted);
  font-size: 13px;
}

picture {
  position: relative;
  flex: 1;
  min-height: min(720px, (100vw - 48px) * 0.625);
  width: 100%;
  margin-top: 4vh;
}

picture img {
  position: absolute;
  top: 0;
  left: 50%;
  width: auto;
  max-width: min(100%, 1440px);
  height: auto;
  max-height: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 25px 60px -18px var(--shadow);
  transform: translateX(-50%);
}

footer {
  justify-content: center;
  gap: 24px;
  padding: 16px 0;
  color: var(--muted);
  font-size: 13px;
}

footer nav {
  display: flex;
  gap: 16px;
}

footer a:hover {
  color: var(--foreground);
}

.document {
  height: auto;
  min-height: 100dvh;
  overflow: auto;
}

.document main {
  display: block;
  padding: 4vh 24px 6vh;
  text-align: left;
}

article {
  max-width: 680px;
  margin: 0 auto;
}

article h1 {
  font-size: clamp(30px, 6vw, 44px);
}

article h2 {
  margin: 2em 0 0.5em;
  font-size: 20px;
  letter-spacing: -0.01em;
}

article p,
article li {
  color: var(--foreground);
}

article ul {
  padding-left: 1.25em;
}

article li + li {
  margin-top: 0.4em;
}

article a {
  color: var(--primary);
}

article a:hover {
  text-decoration: underline;
}

article code {
  font-size: 0.9em;
}

.updated {
  margin-top: 0.5em;
  color: var(--muted) !important;
  font-size: 14px;
}

@media (max-width: 640px) {
  main > p {
    font-size: 16px;
  }
}
