:root {
  color-scheme: light dark;
  --accent: #23b5a8;
  --ink: #17201f;
  --muted: #566160;
  --paper: #f8fbfa;
  --panel: #ffffff;
  --line: #dce7e4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #edf7f5;
    --muted: #b8c8c5;
    --paper: #101413;
    --panel: #171d1c;
    --line: #2b3835;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page {
  width: min(760px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 32px 0;
}

.panel {
  width: 100%;
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.document {
  align-self: start;
}

.mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1.05;
}

h2 {
  margin-bottom: 8px;
  padding-top: 12px;
  font-size: 1.05rem;
}

p {
  color: var(--muted);
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}

.back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--muted);
}

.updated {
  margin-bottom: 28px;
}

@media (max-width: 520px) {
  .panel {
    padding: 24px;
  }
}
