/* Autonomyware Solutions: Make at Home only. Loaded after solutions.css on /solutions/make-at-home.
   Shared tokens, frames and blocks live in solutions.css; this file holds what is this page's alone.
   Character: the maker's bench. A pegboard of dots, layer lines like a print in progress, a dashed "filament"
   joining the steps, squared exercise-book paper for the kids. All of it is drawn in the page's one tint
   (--sol-tint, muted clay) on the site's own surfaces and radii; teal stays the only interactive colour. */

/* ---- Theme: the shared Solutions theme (solutions.css) sets the tint; this page adds its hero motif. ---- */
/* Motif: a pegboard of dots with a warm wash top-left (drawn by solutions.css on .sol-hero::before) ... */
.sol-theme-make-at-home {
  --mah-dash: color-mix(in srgb, var(--sol-tint) 62%, transparent);   /* the dashed filament lines */
  --mah-grid: color-mix(in srgb, var(--sol-tint) 10%, transparent);   /* squared paper */
  --sol-motif:
    radial-gradient(44% 62% at 0% 0%, var(--sol-tint-wash), transparent 72%),
    radial-gradient(circle at 10px 10px, var(--sol-tint-line) 1.3px, transparent 1.9px) 0 0 / 20px 20px;
}
/* ... and, set off behind the hero clip, a stack of fine layer lines: a part on the print bed, with a drafting
   corner mark at its foot. */
.sol-theme-make-at-home .sol-hero-media::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; inset: 16% -4% -9% 10%;
  border-right: 2px solid var(--sol-tint-line); border-bottom: 2px solid var(--sol-tint-line); border-radius: 0 0 var(--radius) 0;
  background: repeating-linear-gradient(180deg, color-mix(in srgb, var(--sol-tint) 34%, transparent) 0 1px, transparent 1px 5px);
  -webkit-mask-image: linear-gradient(120deg, transparent 8%, #000 55%); mask-image: linear-gradient(120deg, transparent 8%, #000 55%);
}

/* ---- Say it / shape it / print it: three stops on one dashed rail ---- */
.sol-journey { --j-gap: clamp(18px, 2.6vw, 36px); --j-row: 44px; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--j-row) var(--j-gap); }
.sol-journey-step { position: relative; display: grid; align-content: start; gap: 18px; }
.sol-journey-rail { display: flex; align-items: center; gap: 12px; }
.sol-journey-rail::after { content: ""; flex: 1; border-top: 2px dashed var(--mah-dash); margin-right: calc(-1 * var(--j-gap)); }
.sol-journey-step:last-child .sol-journey-rail::after { margin-right: 0;
  -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent); mask-image: linear-gradient(90deg, #000 30%, transparent); }
.sol-journey-n {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--sol-tint); background: color-mix(in srgb, var(--sol-tint) 10%, var(--paper));
  font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1; color: var(--sol-tint-ink);
}
/* The clip, with the site's drafting corner marks set just outside it like registration marks. */
.sol-journey-media { position: relative; }
.sol-journey-media::before, .sol-journey-media::after { content: ""; position: absolute; z-index: 1; width: 16px; height: 16px; pointer-events: none; }
.sol-journey-media::before { left: -6px; top: -6px; border-left: 2px solid var(--sol-tint); border-top: 2px solid var(--sol-tint); }
.sol-journey-media::after { right: -6px; bottom: -6px; border-right: 2px solid var(--sol-tint); border-bottom: 2px solid var(--sol-tint); }
.sol-journey-media .sol-media { box-shadow: var(--shadow-card); }
.sol-journey-copy { display: grid; gap: 8px; }
.sol-journey-copy h3 { font-family: var(--font-display); font-size: clamp(19px, 1.7vw, 22px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.sol-journey-copy p { font-size: 15px; line-height: 1.6; color: var(--ink-soft); }

/* ---- Sculpture wall: the renders on the Library's daylight studio, hung in a staggered row ---- */
.sol-sculpts { list-style: none; margin: 0; padding: 0 0 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.sol-sculpts li:nth-child(even) { transform: translateY(28px); }
.sol-sculpts figure { margin: 0; height: 100%; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--sol-stage-glow), var(--sol-stage); }
.sol-sculpts img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 50%; }
.sol-sculpts figcaption { flex: 1; display: grid; align-content: start; gap: 4px; padding: 12px 14px 14px; background: var(--raised); border-top: 1px solid var(--line); }
.sol-sculpts b { font-family: var(--font-display); font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; }
.sol-sculpts span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .02em; color: var(--sol-tint-ink); }

/* ---- Engineering with kids: a plate of squared paper, four step cards, and a loop back to the start ---- */
.sol-kids {
  position: relative; padding: clamp(24px, 4vw, 52px); border: 1px solid var(--line); border-radius: var(--radius-lg);
  background:
    linear-gradient(var(--mah-grid) 1px, transparent 1px) -1px -1px / 24px 24px,
    linear-gradient(90deg, var(--mah-grid) 1px, transparent 1px) -1px -1px / 24px 24px,
    var(--raised);
}
.sol-kids::before, .sol-kids::after { content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none; }
.sol-kids::before { left: -1px; top: -1px; border-left: 2px solid var(--sol-tint); border-top: 2px solid var(--sol-tint); border-radius: var(--radius-lg) 0 0 0; }
.sol-kids::after { right: -1px; bottom: -1px; border-right: 2px solid var(--sol-tint); border-bottom: 2px solid var(--sol-tint); border-radius: 0 0 var(--radius-lg) 0; }
.sol-kids .sol-sec-head { margin-bottom: clamp(22px, 3vw, 32px); }
.sol-kids-steps { --k-gap: 16px; position: relative; list-style: none; margin: 0; padding: 0 0 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--k-gap); counter-reset: kid; }
.sol-kids-steps li { position: relative; display: grid; align-content: start; padding: 18px 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--raised-2); box-shadow: var(--shadow-card); }
/* The numeral: a little sticker, set slightly askew. */
.sol-kids-steps li::before {
  counter-increment: kid; content: counter(kid); display: grid; place-items: center; width: 36px; height: 36px;
  border: 1.5px solid var(--sol-tint); border-radius: var(--radius-sm); background: var(--sol-tint-wash);
  font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1; color: var(--sol-tint-ink); transform: rotate(-4deg);
}
.sol-kids-steps li:nth-child(2)::before { transform: rotate(3deg); }
.sol-kids-steps li:nth-child(3)::before { transform: rotate(-2deg); }
.sol-kids-steps li:nth-child(4)::before { transform: rotate(5deg); }
/* Dashed links card to card ... */
.sol-kids-steps li:not(:last-child)::after { content: ""; position: absolute; top: 36px; left: 100%; width: calc(var(--k-gap) + 2px); border-top: 2px dashed var(--mah-dash); }
/* ... and the loop under the row, from the last card back up into the first: "what would make it better?" */
.sol-kids-steps::after { content: ""; position: absolute; left: calc((100% - 3 * var(--k-gap)) / 8); right: calc((100% - 3 * var(--k-gap)) / 8); bottom: 0; height: 30px; border: 2px dashed var(--mah-dash); border-top: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); pointer-events: none; }
.sol-kids-steps::before { content: ""; position: absolute; left: calc((100% - 3 * var(--k-gap)) / 8 - 4px); bottom: 27px; width: 8px; height: 8px; border-left: 2px solid var(--sol-tint); border-top: 2px solid var(--sol-tint); transform: rotate(45deg); pointer-events: none; }
.sol-kids-steps b { display: block; margin-top: 14px; font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.sol-kids-steps span { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .sol-sculpts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sol-kids-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 0; }
  .sol-kids-steps::before, .sol-kids-steps::after, .sol-kids-steps li:nth-child(even)::after { content: none; }
}
@media (max-width: 860px) {
  /* The rail turns vertical: numeral and dashed line on the left, the step's words then its clip on the right. */
  .sol-journey { --j-row: 28px; grid-template-columns: minmax(0, 1fr); }
  .sol-journey-step { grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; row-gap: 16px; }
  .sol-journey-rail { grid-column: 1; grid-row: 1 / span 2; flex-direction: column; gap: 10px; }
  .sol-journey-rail::after { border-top: 0; border-left: 2px dashed var(--mah-dash); margin: 0 0 calc(-1 * var(--j-row)); }
  .sol-journey-step:last-child .sol-journey-rail::after { margin-bottom: 0;
    -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent); mask-image: linear-gradient(180deg, #000 30%, transparent); }
  .sol-journey-n { width: 40px; height: 40px; font-size: 18px; }
  .sol-journey-copy { grid-column: 2; grid-row: 1; }
  .sol-journey-media { grid-column: 2; grid-row: 2; }
  .sol-theme-make-at-home .sol-hero-media::after { inset: 16% -2% -16px 10%; }
}
@media (max-width: 560px) {
  .sol-sculpts { gap: 10px; padding-bottom: 16px; }
  .sol-sculpts li:nth-child(even) { transform: translateY(16px); }
  .sol-sculpts figcaption { padding: 10px 11px 12px; }
  .sol-sculpts b { font-size: 14px; }
  .sol-sculpts span { font-size: 11px; }
  .sol-kids-steps { grid-template-columns: minmax(0, 1fr); }
  .sol-kids-steps li:nth-child(2)::after { content: ""; }
  .sol-kids-steps li:not(:last-child)::after { top: 100%; left: 35px; width: 0; height: calc(var(--k-gap) + 2px); border-top: 0; border-left: 2px dashed var(--mah-dash); }
}
