/* Material page – builds on ../style.css */

.lead { color: var(--muted); line-height: 1.6; max-width: 640px; }

/* ── How it works ── */
.how-to { padding-top: 0; }
.how-to .subhead { margin-top: 0; }
.steps { margin-left: 22px; line-height: 1.8; color: var(--muted); }
.steps strong { color: var(--ink); }

/* ── Task list ── */
.tasks { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }

.task {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color .15s;
  scroll-margin-top: 80px;
}
.task:hover { border-color: rgba(184, 67, 10, .45); }

.task-copy { padding: 28px 32px 30px; }
.task-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--rust);
  margin-bottom: 14px;
}
.task-num::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  background: var(--rust);
  vertical-align: -1px;
}
.task h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 4px; }
.task-tag {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 17px;
  color: var(--teal);
  margin-bottom: 14px;
}
.task-copy p.muted { font-size: 15.5px; }
.task-copy code {
  font-family: "JetBrains Mono", monospace;
  font-size: .9em;
  background: rgba(43, 38, 34, .07);
  padding: 1px 5px;
  border-radius: 2px;
}

/* the file links */
.task-files {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  background: var(--cream);
  border-left: 1px solid var(--line);
}
.file {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  transition: border-color .15s, color .15s;
}
.file:hover { border-color: var(--rust); color: var(--rust); }
.file::after {
  content: "→";
  margin-left: auto;
  font-family: "JetBrains Mono", monospace;
  color: var(--rust);
}
.file-kind {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--muted);
  padding: 3px 7px;
  border-radius: 2px;
  min-width: 62px;
  text-align: center;
}
.file--sheet .file-kind { background: var(--rust); }
.file--q .file-kind { background: var(--teal); }
.file--a .file-kind { background: #3f3a35; }

@media (max-width: 768px) {
  .task { grid-template-columns: 1fr; }
  .task-copy { padding: 22px 18px 20px; }
  .task-files { border-left: 0; border-top: 1px solid var(--line); padding: 16px; }
  .task h2 { font-size: 22px; }
}
