:root {
  --bg: #141414;
  --fg: #F3EFE6;
  --dim: #A8A29A;
  --rule: #2C2B29;
  --accent: #E8A33D;
  color-scheme: dark light;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #F3EFE6;
    --fg: #141414;
    --dim: #5E5A54;
    --rule: #D9D3C7;
    --accent: #8F5A0B;
  }
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--fg);
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", "DejaVu Sans Mono", monospace;
  font-size: 15px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0 auto;
  max-width: 68ch;
  padding: 2.5rem 1.25rem 3rem;
}

a { color: var(--accent); text-decoration: none; }
main a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
}
a:hover, a:focus-visible { text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 3px; }

header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 3rem;
}

.mark {
  color: var(--fg);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}
.mark span { color: var(--accent); font-weight: 400; }
.mark:hover { text-decoration: none; }

nav { display: flex; gap: 1.25rem; }
nav a { color: var(--dim); }
nav a[aria-current="page"] { color: var(--fg); }

h1, h2, h3 { font-size: 1rem; line-height: 1.4; margin: 2.5rem 0 0.75rem; }
h1 { font-size: 1.15rem; margin-top: 0; }
h2::before { content: "## "; color: var(--accent); font-weight: 400; }
h3::before { content: "### "; color: var(--dim); font-weight: 400; }

p, ul, dl { margin: 0 0 1rem; }
ul { padding-left: 2ch; }
li { margin-bottom: 0.35rem; }
li::marker { content: "- "; color: var(--dim); }

.dim { color: var(--dim); }
.tag { color: var(--accent); white-space: nowrap; }

.products { list-style: none; padding: 0; }
.products li { margin-bottom: 1.5rem; }
.products li::marker { content: none; }
.products .name { font-weight: 700; color: var(--fg); }

code {
  font-family: inherit;
  background: var(--rule);
  padding: 0.05em 0.35em;
  border-radius: 3px;
}

hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--dim);
  font-size: 0.87rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  justify-content: space-between;
}
footer a { color: var(--dim); }

@media (max-width: 480px) {
  html { font-size: 14px; }
  body { padding-top: 1.75rem; }
  header { margin-bottom: 2.25rem; }
}
