:root {
  --bg: #f1f4f3;
  --surface: #ffffff;
  --ink: #132022;
  --muted: #546366;
  --line: #d4dddc;
  --accent: #0a7380;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1416;
    --surface: #142023;
    --ink: #e3eceb;
    --muted: #94a5a7;
    --line: #26363a;
    --accent: #47c8d5;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.5 "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
}

.bar {
  position: sticky;
  top: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

@media (max-width: 600px) {
  .bar {
    position: static;
  }
}

h1 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.bar p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.actions {
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
  font-weight: 600;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

main {
  display: grid;
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px;
}

main.portrait {
  max-width: 800px;
}

img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
