@font-face {
  font-family: 'Manrope';
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/Manrope_600SemiBold.ttf') format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/Manrope_700Bold.ttf') format('truetype');
}

:root {
  --bg: #f6f4ee;
  --surface: #fffdf8;
  --ink: #1d1a17;
  --muted: #6b645b;
  --line: #e4ded2;
  --accent: #3a2140;
  --accent-ink: #f8f5ee;
  --rose: #cf7a6c;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d0c;
    --surface: #171614;
    --ink: #efece6;
    --muted: #a39c91;
    --line: #2b2925;
    --accent: #eba597;
    --accent-ink: #171310;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

main,
header,
footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 16px;
}

header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 28px;
  padding-bottom: 8px;
}

header a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-family: Manrope, sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}

header img {
  width: 32px;
  height: 32px;
}

.mark-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .mark-light {
    display: none;
  }
  .mark-dark {
    display: block;
  }
}

h1,
h2,
h3 {
  font-family: Manrope, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(30px, 6vw, 42px);
  margin: 40px 0 12px;
}

h2 {
  font-size: 22px;
  margin: 40px 0 8px;
}

h3 {
  font-size: 18px;
  margin: 24px 0 4px;
}

p,
li {
  max-width: 65ch;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.lede {
  font-size: 20px;
  color: var(--muted);
  margin-top: 0;
}

.updated {
  color: var(--muted);
  font-size: 15px;
}

.label {
  font-family: Manrope, sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 22px;
  margin: 24px 0;
}

.code {
  font-family: Manrope, sans-serif;
  font-weight: 700;
  font-size: 40px;
  letter-spacing: 0.2em;
  margin: 4px 0 0;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: Manrope, sans-serif;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: inset 0 -3px 0 rgb(0 0 0 / 0.2);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 12px 0;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px 8px 0;
  border-bottom: 1px solid var(--line);
}

th {
  font-weight: 600;
}

.table-scroll {
  overflow-x: auto;
}

footer {
  margin-top: 64px;
  padding-top: 20px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

footer a {
  color: inherit;
}
