:root {
  color-scheme: light;
  --ink: #1f2933;
  --muted: #596574;
  --line: #d8dee6;
  --bg: #f5f7fa;
  --panel: #ffffff;
  --accent: #12634f;
  --accent-2: #b4832b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

.shell,
.document {
  width: min(860px, calc(100% - 32px));
  margin: 48px auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
}

.document {
  margin-top: 24px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2 {
  margin: 0;
  line-height: 1.2;
}

h1 {
  font-size: 32px;
}

h2 {
  margin-top: 28px;
  font-size: 18px;
}

p {
  margin: 14px 0 0;
}

.meta,
.small {
  color: var(--muted);
}

.small {
  font-size: 14px;
}

.links {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

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

.links a {
  width: fit-content;
  font-weight: 700;
}

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

textarea {
  width: 100%;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
  resize: vertical;
}

button {
  min-height: 42px;
  margin-top: 14px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

pre {
  overflow-x: auto;
  margin: 16px 0 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #eef2f5;
}

code {
  font-family: Consolas, "Courier New", monospace;
}

@media (max-width: 620px) {
  .shell,
  .document {
    width: min(100% - 20px, 860px);
    margin: 16px auto;
    padding: 22px;
  }

  h1 {
    font-size: 26px;
  }
}

