:root {
  --bg: #0b0809;
  --surface: #151011;
  --line: #2a2021;
  --text: #e9dfcf;
  --muted: #a39689;
  --accent: #d2283f;
  --brass: #9c7b4c;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

header.site {
  border-bottom: 1px solid var(--line);
}

header.site .wrap {
  display: flex;
  align-items: center;
  min-height: 64px;
}

.brand {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.brand::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(210, 40, 63, 0.6);
  vertical-align: 1px;
}

main {
  padding: 32px 0 48px;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.25;
  font-weight: 700;
}

h1 {
  font-size: 32px;
  margin: 0 0 8px;
}

h2 {
  font-size: 22px;
  margin: 40px 0 12px;
  padding-top: 8px;
  color: var(--text);
  border-top: 1px solid var(--line);
}

h3 {
  font-size: 18px;
  margin: 24px 0 8px;
  color: var(--brass);
}

p,
ul,
ol,
table {
  margin: 0 0 16px;
}

ul,
ol {
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

a {
  color: #ef6a7c;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

strong {
  color: #f5ecdd;
}

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

.lead {
  font-size: 19px;
  color: var(--text);
}

.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 20px 8px;
  margin: 24px 0;
}

.toc ol {
  margin-bottom: 8px;
}

.note {
  background: var(--surface);
  border-left: 3px solid var(--brass);
  border-radius: 6px;
  padding: 12px 16px;
  margin: 0 0 16px;
}

.table-scroll {
  overflow-x: auto;
  margin: 0 0 16px;
}

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

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

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

/* Landing page */
.hero {
  text-align: center;
  padding-top: 48px;
  padding-bottom: 24px;
}

.hero h1 {
  font-size: 48px;
  letter-spacing: 0.04em;
}

.hero .lead {
  max-width: 560px;
  margin: 0 auto 32px;
  color: var(--muted);
}

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

.btn {
  display: inline-block;
  min-width: 200px;
  padding: 14px 22px;
  border: 1px solid var(--brass);
  border-radius: 10px;
  color: var(--text);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.btn:hover {
  color: var(--text);
  border-color: var(--accent);
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
}

.btn.disabled {
  color: var(--muted);
  border-color: var(--line);
  cursor: default;
}

footer.site {
  border-top: 1px solid var(--line);
  padding: 24px 0 32px;
  color: var(--muted);
  font-size: 15px;
}

footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 12px;
}

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

footer.site a:hover {
  color: var(--text);
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 27px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .btn {
    width: 100%;
  }
}
