:root {
  --bg: #fafaf7;
  --text: #1c1f21;
  --muted: #5a6166;
  --card: #ffffff;
  --line: #e2ddd3;
  --accent: #7a4f00;
  --slate: #263238;
  --amber: #f2a007;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121416;
    --text: #e8eaec;
    --muted: #a7b0b6;
    --card: #1b1f22;
    --line: #2e3337;
    --accent: #f2a007;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

header.site {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}

header.site a.brand {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

header.site nav a { margin-left: 1rem; }
header.site nav a:first-child { margin-left: 0; }

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

h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 0.5rem; }
h2 { font-size: 1.25rem; margin: 2rem 0 0.5rem; }

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

.app {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.app img { width: 88px; height: 88px; border-radius: 20px; flex: none; }
.app h2 { margin-top: 0; }
.app p { margin: 0.25rem 0 0.75rem; }

.hero { display: flex; gap: 1.25rem; align-items: center; margin-bottom: 1rem; }
.hero img { width: 104px; height: 104px; border-radius: 24px; flex: none; }

.badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--slate);
  color: var(--amber);
}

ul { padding-left: 1.25rem; }
li { margin: 0.25rem 0; }

.note {
  background: var(--card);
  border-left: 4px solid var(--amber);
  padding: 0.75rem 1rem;
  border-radius: 6px;
}

footer.site {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 30rem) {
  .app, .hero { flex-direction: column; }
  h1 { font-size: 1.7rem; }
}
