:root {
  color-scheme: light;
  --ink: #162018;
  --muted: #586255;
  --paper: #f5f1e6;
  --panel: #fffaf0;
  --line: #cec4ac;
  --green: #1f7a4f;
  --rust: #9f4d2d;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(22, 32, 24, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(22, 32, 24, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 38px 38px;
}

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

.doc-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 60px;
}

.hero {
  min-height: 42vh;
  display: grid;
  align-content: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.hero p {
  margin: 0 0 12px;
  color: var(--rust);
  font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}

h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 6.8rem);
  line-height: 0.88;
}

h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  color: var(--muted);
  font: 13px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  margin-top: 24px;
}

article,
.wide {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.82);
  padding: 18px;
}

.wide {
  margin-top: 18px;
}

.task,
.pain {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.task:first-child,
.pain:first-child {
  border-top: 0;
}

.task strong,
.pain strong {
  display: block;
  margin-bottom: 6px;
}

.task span,
.pain span {
  color: var(--muted);
}

pre {
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  color: #273027;
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (max-width: 760px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
