@font-face {
  font-family: "Archivo";
  src: url("fonts/Archivo-Black.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #0e0d0c;
  --surface: #181614;
  --surface-raised: #24211d;
  --line: #322d28;
  --text: #f2ede6;
  --muted: #a89f94;
  --dim: #958b80;
  --amber: #ffb547;
  --on-amber: #1e1404;
  --edge: 20px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  color: var(--text);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 8px var(--edge) 48px;
}

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

a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.top {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 24px var(--edge) 16px;
}

.logo {
  display: inline-block;
  line-height: 0;
}

.logo img {
  height: 29px;
  width: auto;
}

h1,
h2,
h3 {
  font-family: "Archivo", "Arial Black", system-ui, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

h1 {
  font-size: 34px;
  margin: 24px 0 16px;
}

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

h3 {
  font-size: 17px;
  margin: 28px 0 8px;
}

.doc p,
.doc li {
  color: var(--text);
  overflow-wrap: anywhere;
}

.doc li + li {
  margin-top: 6px;
}

blockquote {
  margin: 0 0 24px;
  padding: 12px 16px;
  border-left: 3px solid var(--amber);
  background: var(--surface);
  border-radius: 0 12px 12px 0;
  color: var(--muted);
}

blockquote p {
  margin: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
  display: block;
  overflow-x: auto;
}

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

th {
  color: var(--muted);
  font-weight: 600;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}

.bottom {
  border-top: 1px solid var(--line);
  padding: 24px var(--edge) 32px;
  color: var(--dim);
  font-size: 14px;
  text-align: center;
}

.bottom ul,
.links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}

.bottom a {
  color: var(--muted);
}

.bottom p {
  margin: 16px 0 0;
}

.hero {
  text-align: center;
  padding: 12vh 0 40px;
}

.wordmark {
  width: min(320px, 70vw);
  height: auto;
}

.hero h1 {
  font-size: clamp(40px, 11vw, 72px);
  margin: 28px 0 12px;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 460px;
  margin: 0 auto 32px;
}

.store {
  display: inline-block;
  margin: 0;
  padding: 12px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--amber);
  font-weight: 600;
}

.store-badge {
  display: inline-block;
  line-height: 0;
}

.store-badge img {
  width: 194px;
  height: auto;
}

.share-note {
  color: var(--muted);
  font-size: 14px;
  margin: 12px 0 0;
}

.links {
  padding: 24px 0;
}

.links a {
  color: var(--text);
}

.share-preview {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 60vh;
  margin: 0 auto;
  border-radius: 16px;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

a.button,
a.button:visited {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 16px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

a.button.secondary,
a.button.secondary:visited {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}
