/* How-to-draw guides (/how-to-draw and /how-to-draw/<slug>), on top of styles.css.
   Pages are generated by scripts/site/build-tutorials.py — edit the script, not the HTML. */

.crumbs {
  padding-top: 20px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.crumbs a {
  color: var(--ink-soft);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.tutorial h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  text-wrap: balance;
}

/* Hero */
.t-hero {
  padding: 28px 0 40px;
}
.t-hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}
.eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.t-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  text-wrap: balance;
  margin-bottom: 14px;
}
.t-hero .lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 52ch;
}
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 22px;
}
.chips li {
  background: var(--card);
  border: 1.5px solid var(--border-soft);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.92rem;
  font-weight: 600;
}
.steps-link {
  font-weight: 600;
  text-decoration: none;
}
.steps-link:hover {
  text-decoration: underline;
}
.t-hero-art {
  width: min(100%, 380px);
  margin: 0 auto;
  background: var(--card);
  border: 1.5px solid var(--border-soft);
  border-radius: 26px 22px 25px 23px / 23px 26px 22px 25px;
  box-shadow: 0 8px 24px rgba(61, 54, 54, 0.08);
  padding: 12px;
  transform: rotate(1deg);
}
.t-hero-art img {
  display: block;
  width: 100%;
  height: auto;
}
@media (min-width: 860px) {
  .t-hero-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
  }
}

/* What you need */
.t-need {
  padding: 8px 0 24px;
}
.t-need h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.t-need ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  color: var(--ink-soft);
}
.t-need li::before {
  content: "✓ ";
  color: var(--progress-green);
  font-weight: 600;
}

/* Steps */
.t-steps {
  padding: 32px 0 24px;
}
.t-note {
  color: var(--ink-soft);
  margin: 8px 0 28px;
  max-width: 60ch;
}
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.step {
  background: var(--card);
  border: 1.5px solid var(--border-soft);
  border-radius: 22px 18px 21px 19px / 19px 22px 18px 21px;
  box-shadow: 0 6px 18px rgba(61, 54, 54, 0.06);
  overflow: hidden;
  scroll-margin-top: 16px;
}
.step img {
  display: block;
  width: 100%;
  height: auto;
  /* air around the drawing, so it doesn't touch the card edges */
  padding: 28px 32px 12px;
}
.step-body {
  padding: 4px 20px 20px;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--card);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.step h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.step p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}
@media (max-width: 600px) {
  .steps {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }
}
.tip {
  margin-top: 28px;
  background: var(--card);
  border-left: 4px solid var(--hint-blue);
  border-radius: 6px 18px 18px 6px;
  padding: 16px 20px;
  max-width: 720px;
}

/* All steps in one picture */
.t-pin {
  padding: 40px 0 24px;
}
.t-pin-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}
.t-pin img {
  display: block;
  width: min(100%, 360px);
  height: auto;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(61, 54, 54, 0.12);
}
.t-pin p {
  color: var(--ink-soft);
  margin: 10px 0 18px;
}
.pin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.pin-btn {
  display: inline-block;
  padding: 12px 26px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.pin-btn:hover {
  background: var(--accent);
  color: var(--card);
}
@media (min-width: 760px) {
  .t-pin-grid {
    grid-template-columns: 360px 1fr;
    gap: 48px;
  }
}

/* App call to action */
.t-app {
  padding: 40px 0 16px;
}
.t-app-card {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 28px;
}
.t-app-card h2 {
  margin-bottom: 10px;
}
.t-app-card > p:first-of-type {
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 auto 24px;
}

/* Guide cards (hub and "more easy things to draw") */
.t-hub {
  padding: 32px 0 16px;
}
.t-hub h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  text-wrap: balance;
  margin-bottom: 12px;
}
.t-hub .lead {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 56ch;
  margin-bottom: 28px;
}
.t-more {
  padding: 40px 0 48px;
}
.t-more h2 {
  margin-bottom: 24px;
}
.byline {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: -4px 0 14px;
}
