* { margin: 0; padding: 0; box-sizing: border-box; }
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/baloo2.woff2') format('woff2');
}
:root {
  --font-display: 'Baloo 2', 'Segoe UI', system-ui, sans-serif;
  --ink: #33302a;          /* body text: warm graphite */
  --ink-soft: #6f6a5e;
  --green: #2f7d5e;        /* camp */
  --green-dark: #1f5b43;
  --orange: #e07a3f;       /* pencil */
  --orange-dark: #c25f28;
  --line: #e6e1d6;
  --paper: #fffdf8;
  --red: #e11d48;          /* the new-lines cue, same red as the step art */
}
h1, h2, h3, .brand-name, .btn-primary, .pill { font-family: var(--font-display); }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: linear-gradient(165deg, #fdfbf5 0%, #f4f7f2 55%, #fdf6ee 100%) fixed;
  color: var(--ink);
  min-height: 100vh; display: flex; flex-direction: column;
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; width: 100%; }
main.wrap { flex: 1; padding-bottom: 60px; }
a { color: var(--green-dark); }

/* header */
.site-header { background: rgba(255,255,255,.88); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 20; }
.site-header::after { content: ""; display: block; height: 4px;
  background: linear-gradient(90deg, #2f7d5e, #6ea88c, #e8a33d, #e07a3f, #2f7d5e); }
.header-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; min-width: 0; }
.brand-mark { width: 46px; height: 46px; flex: none; filter: drop-shadow(0 2px 5px rgba(47,125,94,.25)); transition: transform .25s ease; }
.brand:hover .brand-mark { transform: scale(1.06) rotate(-4deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand-name { font-weight: 800; font-size: 1.38rem; letter-spacing: -.01em; color: var(--green-dark); white-space: nowrap; }
.brand-name b { color: var(--orange); font-weight: 800; }
.brand-tagline { font-size: .64rem; font-weight: 600; color: #94907f; letter-spacing: .12em; text-transform: uppercase; margin-top: 3px; white-space: nowrap; }
.nav-open { display: none; }
.nav-burger { display: none; flex-direction: column; gap: 4px; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--green-dark); border-radius: 2px; }
.header-nav { display: flex; align-items: center; gap: 18px; }
.header-nav a { text-decoration: none; color: var(--ink); font-size: .92rem; font-weight: 600; }
.header-nav a:hover { color: var(--orange-dark); }
.nav-cta { display: inline-flex; align-items: center; gap: 6px; background: var(--green); color: #fff !important;
  padding: 8px 14px; border-radius: 999px; }
.nav-cta:hover { background: var(--green-dark); }
@media (max-width: 879px) {
  .brand-name { font-size: 1.2rem; } .brand-mark { width: 38px; height: 38px; }
  .nav-burger { display: flex; }
  .header-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    align-items: stretch; gap: 0; background: #fff; border-top: 1px solid var(--line); padding: 8px 20px 14px; }
  .header-nav a { padding: 11px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { justify-content: center; margin-top: 10px; border-bottom: 0; }
  .nav-open:checked ~ .header-nav { display: flex; }
}

/* hero */
.hero { text-align: center; padding: 44px 0 26px; }
.hero h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; color: var(--green-dark); }
.lead { color: var(--ink-soft); font-size: 1.08rem; max-width: 700px; margin: 12px auto 0; line-height: 1.65; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; background: var(--orange);
  color: #fff; text-decoration: none; font-weight: 700; padding: 12px 22px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(224,122,63,.28); }
.btn-primary:hover { background: var(--orange-dark); }

/* breadcrumbs */
.crumbs { font-size: .85rem; color: var(--ink-soft); padding: 16px 0 4px; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--orange-dark); text-decoration: underline; }
.crumbs .sep { margin: 0 7px; opacity: .5; }

/* category pills */
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 22px 0 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 16px; text-decoration: none; color: var(--green-dark); font-weight: 700; font-size: .95rem; }
.pill:hover { border-color: var(--green); box-shadow: 0 4px 12px rgba(47,125,94,.14); }

/* section headings */
.sec-h { margin: 34px 0 6px; color: var(--green-dark); font-size: 1.35rem; }
.sec-note { color: var(--ink-soft); font-size: .92rem; margin-bottom: 16px; max-width: 760px; }

/* tutorial cards */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(4, 1fr); margin-top: 16px; }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .grid { grid-template-columns: repeat(2, 1fr); } }
.card { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(47,125,94,.16); }
.card-media { display: block; background: #fff; border-bottom: 1px solid var(--line); }
.card-media img { display: block; width: 100%; height: auto; aspect-ratio: 1/1; object-fit: contain; padding: 8px; }
.card-body { display: block; padding: 12px 14px 14px; }
.card-title { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--green-dark); }
.card-meta { display: block; margin-top: 4px; color: var(--ink-soft); font-size: .84rem; }

/* tutorial page */
.tut-hero { display: grid; grid-template-columns: 1fr 380px; gap: 34px; align-items: center; padding: 18px 0 8px; }
@media (max-width: 860px) { .tut-hero { grid-template-columns: 1fr; } .tut-hero-img { order: -1; } }
.tut-hero h1 { font-size: clamp(1.6rem, 4.4vw, 2.3rem); color: var(--green-dark); letter-spacing: -.02em; }
.tut-hero .lead { margin: 12px 0 0; max-width: none; }
/* Fixed hero box: the drawing scales to fit it, so a landscape car and an upright dog are
   shown at the same visual size. Sizing the box to each drawing's own ratio made the wide
   ones render as a small strip. */
.tut-hero-img img { display: block; width: 100%; height: 100%; aspect-ratio: 1/1;
  object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 14px; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.facts li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 13px;
  font-size: .85rem; color: var(--ink-soft); }
.facts li b { color: var(--green-dark); font-size: 1rem; }
.byline { margin-top: 14px; font-size: .86rem; color: var(--ink-soft); }
.byline a { color: var(--green-dark); }
.byline .dot { margin: 0 6px; opacity: .5; }

/* steps: a blog post, not a card grid. A child has to actually SEE the drawing, so each
   step gets a full-width figure with its instruction above it, read top to bottom. */
.steps { list-style: none; counter-reset: none; max-width: 760px; margin: 0 auto; }
.step { padding: 30px 0 34px; border-bottom: 1px dashed var(--line); }
.step:last-child { border-bottom: 0; }
.step-h { display: flex; align-items: center; gap: 12px; font-size: 1.28rem; color: var(--green-dark); }
.step-no { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center; }
.step-cap { margin: 12px 0 18px; font-size: 1.06rem; line-height: 1.65; color: var(--ink); }
.step-media { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.step-media img { display: block; width: 100%; height: auto; aspect-ratio: var(--ar, 3/4); }
@media (max-width: 620px) {
  .step-h { font-size: 1.12rem; }
  .step-cap { font-size: 1rem; }
}

/* prose + how it works */
.prose { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 24px 28px; margin-top: 30px; line-height: 1.75; color: var(--ink); }
.prose h2, .prose h3 { color: var(--green-dark); margin: 18px 0 8px; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { margin-bottom: 12px; }
.prose ul, .prose ol { margin: 0 0 12px 22px; }
.how { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 26px 30px; margin-top: 32px; }
.how h2 { color: var(--green-dark); margin-bottom: 12px; }
.how ol { padding-left: 22px; color: var(--ink-soft); line-height: 2; }

/* share row: brand-coloured pills. The partial ships .share-row/.share-btn/.sb-*, which the
   first stylesheet never defined, so the buttons rendered as bare underlined links. */
.share-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 18px; }
.share-btn { display: inline-flex; align-items: center; gap: 7px; background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px;
  font: inherit; font-size: .84rem; font-weight: 600; color: var(--ink);
  text-decoration: none; cursor: pointer; line-height: 1;
  transition: color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.share-btn svg { flex: none; }
.share-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.sb-pin:hover  { color: #bd081c; border-color: #bd081c; }
.sb-fb:hover   { color: #1877f2; border-color: #1877f2; }
.sb-wa:hover   { color: #25d366; border-color: #25d366; }
.sb-copy:hover { color: var(--green-dark); border-color: var(--green); }

/* forms */
form.contact { max-width: 520px; }
form.contact label { display: block; margin: 14px 0 5px; font-weight: 600; font-size: .9rem; }
form.contact input, form.contact textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; font: inherit; background: #fff; }
form.contact textarea { min-height: 150px; resize: vertical; }
form.contact .hp { position: absolute; left: -9999px; }
form.contact button { margin-top: 16px; background: var(--orange); color: #fff; border: 0; border-radius: 999px;
  padding: 11px 24px; font: inherit; font-weight: 700; cursor: pointer; }
form.contact button:hover { background: var(--orange-dark); }

/* creator card (About) */
.creator { display: flex; align-items: center; gap: 14px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 18px; margin-bottom: 20px; }
.creator img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; background: #fff; }
.creator b { display: block; color: var(--green-dark); }
.creator span { font-size: .86rem; color: var(--ink-soft); }

/* static page prose */
main.wrap > h1 { color: var(--green-dark); margin: 22px 0 14px; font-size: clamp(1.6rem, 4vw, 2.1rem); }
main.wrap > p, main.wrap > ul, main.wrap > ol, main.wrap > h2, main.wrap > h3 { max-width: 760px; line-height: 1.75; }
main.wrap > p { margin-bottom: 13px; color: var(--ink); }
main.wrap > h2, main.wrap > h3 { color: var(--green-dark); margin: 22px 0 8px; }
main.wrap > ul, main.wrap > ol { margin: 0 0 14px 22px; color: var(--ink); }
main.wrap > ul li, main.wrap > ol li { margin-bottom: 6px; }

/* footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); margin-top: auto; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 34px 20px 22px; }
@media (max-width: 760px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }
.fcol h4 { color: var(--green-dark); font-size: .95rem; margin-bottom: 10px; }
.fcol a, .fcol .lang-current { display: block; color: var(--ink-soft); text-decoration: none; font-size: .88rem; padding: 4px 0; }
.fcol a:hover { color: var(--orange-dark); }
.fcol .lang-current { font-weight: 700; color: var(--green-dark); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding: 14px 20px 22px; color: var(--ink-soft); font-size: .82rem; }
