:root {
  --bg: #fff8f0;
  --surface: #f7ebdd;
  --border: #f0e2d2;
  --ink: #2a0e12;
  --text-2: #5a3a36;
  --text-3: #6e5550;
  --link: #c93214;
  --link-hover: #8f2210;
  --accent: #ff4a2b;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: var(--sans);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1214;
    --surface: #2a1d1f;
    --border: #33242a;
    --ink: #fff1e6;
    --text-2: #e6cfc4;
    --text-3: #bfa59c;
    --link: #ff8a6e;
    --link-hover: #ffb39e;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

header {
  border-bottom: 1px solid var(--border);
}
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font: 800 20px/1 var(--display);
  letter-spacing: -0.01em;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  box-shadow: 0 0 0 1px var(--border);
}
nav a {
  color: var(--text-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 999px;
}
nav a:hover,
nav a[aria-current] {
  background: var(--surface);
  color: var(--ink);
}

main {
  padding: 56px 0 72px;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h1 {
  font-size: clamp(34px, 6vw, 46px);
  margin: 0 0 12px;
}
h2 {
  font-size: 24px;
  margin: 48px 0 12px;
}
h3 {
  font-size: 19px;
  margin: 32px 0 8px;
}

p,
ul {
  margin: 0 0 16px;
}
strong {
  color: var(--ink);
  font-weight: 600;
}
ul {
  padding-left: 22px;
}
li {
  margin: 6px 0;
}
li::marker {
  color: var(--accent);
}
li > ul {
  margin: 6px 0 0;
}

a {
  color: var(--link);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--link-hover);
}
:focus-visible {
  outline: 2px solid var(--text-3);
  outline-offset: 2px;
  border-radius: 4px;
}

h1 + p > em:only-child {
  display: inline-block;
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-3);
  background: var(--surface);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

footer {
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 14px;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 40px;
}
footer a {
  color: var(--text-3);
}

@media (max-width: 520px) {
  html,
  body {
    font-size: 16px;
  }
  main {
    padding: 36px 0 56px;
  }
  h2 {
    margin-top: 40px;
  }
}
