/* Design: after the Pinterest analysis on getdesign.md (see ../../DESIGN.md). Language only. */
:root {
  --red: #e60023; --red-press: #cc001f;
  --ink: #000; --ink-soft: #211922; --body: #33332e; --mute: #62625b; --ash: #91918c;
  --canvas: #fff; --soft: #fbfbf9; --card: #f6f6f3; --chip: #e5e5e0; --chip-press: #c8c8c1;
  --line: #dadad3; --dark: #262622; --focus: #435ee5;
  --r: 16px; --r-lg: 32px; --pill: 9999px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #fff; --ink-soft: #f1ecef; --body: #d9d9d3; --mute: #a5a59e; --ash: #7b7b75;
    --canvas: #1b1b18; --soft: #20201d; --card: #2a2a26; --chip: #34342f; --chip-press: #45453f;
    --line: #3a3a35; --dark: #111110; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #fff; --ink-soft: #f1ecef; --body: #d9d9d3; --mute: #a5a59e; --ash: #7b7b75;
  --canvas: #1b1b18; --soft: #20201d; --card: #2a2a26; --chip: #34342f; --chip-press: #45453f;
  --line: #3a3a35; --dark: #111110; color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.4; color: var(--body); background: var(--canvas); }
a { color: var(--ink-soft); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: var(--canvas); padding: 8px 12px; border-radius: var(--r); }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* ---------- header */
.top { position: sticky; top: 0; z-index: 20; background: var(--canvas); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 20px; letter-spacing: -0.4px; white-space: nowrap; }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand b { color: #e60023; font-weight: 700; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; padding: 10px 14px; border-radius: var(--pill); white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--card); }
.search { flex: 1; min-width: 0; position: relative; }
.search input { width: 100%; height: 48px; border: 0; border-radius: var(--pill); background: var(--card); color: var(--ink);
  font: inherit; padding: 0 16px 0 44px; }
.search input:focus { background: var(--canvas); box-shadow: 0 0 0 2px var(--focus); outline: none; }
.search svg { position: absolute; left: 16px; top: 15px; width: 18px; height: 18px; color: var(--mute); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px;
  border: 0; border-radius: var(--r); font: 700 15px/1 var(--font); text-decoration: none; cursor: pointer;
  background: var(--chip); color: var(--ink); white-space: nowrap; }
.btn:hover { background: var(--chip-press); }
.btn.red { background: var(--red); color: #fff; }
.btn.red:hover { background: var(--red-press); }
.btn.small { height: 40px; padding: 0 14px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .nav { display: none; } }
@media (max-width: 520px) { .brand span { display: none; } }

/* ---------- hero */
.hero { padding: 48px 0 24px; text-align: center; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.08; letter-spacing: -1.2px; color: var(--ink); margin: 0 auto 16px; max-width: 900px; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p { font-size: 18px; color: var(--mute); max-width: 640px; margin: 0 auto; }
.hero .chips { justify-content: center; margin-top: 28px; }

/* ---------- chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: var(--pill); background: var(--card);
  color: var(--ink); font: 700 14px/1 var(--font); text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; }
.chip:hover { background: var(--chip); }
.chip[aria-pressed="true"], .chip.on { background: var(--ink); color: var(--canvas); }
.pill { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--pill); background: var(--card);
  color: var(--ink); font: 700 12px/1 var(--font); white-space: nowrap; }
.pill.lvl-Easy { background: #c7f0da; color: #103c25; }
.pill.lvl-Medium { background: #fff1c2; color: #5c4400; }
.pill.lvl-Intermediate { background: #ffe0e3; color: #7a0012; }

/* ---------- masonry grid of models */
.grid { columns: 5 220px; column-gap: 16px; padding: 8px 0 48px; }
.card { break-inside: avoid; display: block; margin: 0 0 16px; text-decoration: none; color: var(--ink); }
.card .pic { background: var(--card); border-radius: var(--r); overflow: hidden; position: relative; }
.card .pic img { width: 100%; transition: transform .25s ease; }
.card:hover .pic img { transform: scale(1.04); }
.card .pic .over { position: absolute; left: 10px; top: 10px; }
.card .t { font-weight: 700; font-size: 15px; padding: 8px 4px 0; }
.card .m { font-size: 13px; color: var(--mute); padding: 2px 4px 0; }
.card[hidden] { display: none; }
.empty { text-align: center; color: var(--mute); padding: 32px 0; }

/* ---------- section heads */
.sec { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 40px 0 12px; }
.sec h2 { font-size: 28px; letter-spacing: -0.8px; color: var(--ink); margin: 0; }
.sec a { font-weight: 700; font-size: 15px; color: var(--ink); }

/* ---------- model page */
.crumbs { font-size: 13px; color: var(--mute); margin: 16px 0 0; }
.crumbs a { color: var(--mute); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.pin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; background: var(--canvas);
  border-radius: var(--r-lg); box-shadow: 0 1px 20px rgba(0,0,0,.08); overflow: hidden; margin: 16px 0 32px; }
.pin .pic { background: var(--card); display: flex; align-items: center; justify-content: center; padding: 24px; }
.pin .pic img { width: 100%; max-width: 420px; max-height: 480px; height: auto; object-fit: contain; }
.pin .info { padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.pin h1 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -0.8px; color: var(--ink); margin: 0; }
.pin .lede { font-size: 17px; margin: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; }
.need { background: var(--card); border-radius: var(--r); padding: 14px 16px; font-size: 15px; }
.need b { color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
@media (max-width: 860px) {
  .pin { grid-template-columns: 1fr; border-radius: var(--r); box-shadow: none; }
  .pin .info { padding: 20px 4px 4px; }
  .pin .pic { border-radius: var(--r); }
}

/* ---------- steps */
.steps-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 8px 0 16px; }
.steps-head h2 { font-size: 28px; letter-spacing: -0.8px; color: var(--ink); margin: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.step { background: var(--card); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.step .img { background: #fff; aspect-ratio: 1; display: flex; }
.step .img img { width: 100%; height: 100%; object-fit: contain; }
.step .txt { padding: 12px 14px 16px; display: flex; gap: 10px; align-items: flex-start; }
.step .n { flex: none; width: 28px; height: 28px; border-radius: var(--pill); background: var(--ink); color: var(--canvas);
  font: 700 13px/28px var(--font); text-align: center; }
.step p { margin: 3px 0 0; color: var(--ink); font-size: 15px; }
.step.done .n { background: var(--red); color: #fff; }
.step.photo .img { background: var(--soft); }
.steps.big { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
.tips { background: var(--card); border-radius: var(--r); padding: 20px 24px; margin: 32px 0; }
.tips h2 { margin: 0 0 8px; font-size: 22px; color: var(--ink); }
.tips ul { margin: 0; padding-left: 20px; }
.tips li { margin: 6px 0; }

/* ---------- prose pages */
.prose { max-width: 760px; margin: 0 auto; padding: 24px 0 48px; }
.prose h1 { font-size: clamp(32px, 4.5vw, 48px); letter-spacing: -1px; color: var(--ink); line-height: 1.1; margin: 16px 0 12px; }
.prose h2 { font-size: 24px; color: var(--ink); margin: 32px 0 8px; letter-spacing: -0.4px; }
.prose p, .prose li { font-size: 17px; line-height: 1.55; }
.symbols { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 16px 0; }
.symbols figure { margin: 0; background: var(--card); border-radius: var(--r); overflow: hidden; }
.symbols img { background: #fff; width: 100%; }
.symbols figcaption { padding: 12px 14px; font-size: 14px; }
.symbols figcaption b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }

/* ---------- paper page */
.papers { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin: 16px 0 40px; }
.paper { background: var(--card); border-radius: var(--r); overflow: hidden; }
.paper .sw { aspect-ratio: 1; background: #fff; }
.paper .sw img { width: 100%; height: 100%; }
.paper .b { padding: 12px 14px 14px; }
.paper .b b { color: var(--ink); display: block; margin-bottom: 8px; }
.paper .dl { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- band + footer */
.band { background: var(--dark); color: #fff; border-radius: var(--r-lg); padding: 40px 32px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; flex-wrap: wrap; margin: 24px 0 48px; }
.band h2 { margin: 0 0 6px; font-size: 28px; letter-spacing: -0.8px; color: #fff; }
.band p { margin: 0; color: rgba(255,255,255,.75); }
.foot { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--mute); }
.foot .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.foot h3, .foot .fh { font-size: 14px; color: var(--ink); margin: 0 0 8px; }
.foot a { color: var(--mute); text-decoration: none; display: block; padding: 3px 0; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .fine { margin-top: 24px; display: flex; gap: 16px; flex-wrap: wrap; }
.foot .fine a { display: inline; }

/* ---------- consent */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin: 0 auto; background: var(--canvas);
  border-radius: var(--r); box-shadow: 0 8px 32px rgba(0,0,0,.2); padding: 16px 20px; }
.consent p { margin: 0 0 12px; font-size: 14px; }
.consent .row { display: flex; gap: 8px; justify-content: flex-end; }

@media print {
  .top, .foot, .actions, .band, .consent, .crumbs, .search { display: none !important; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .step { break-inside: avoid; background: none; border: 1px solid #ccc; }
}

/* ---------- phones: two-column masonry, chips scroll sideways */
@media (max-width: 600px) {
  .grid { columns: 2; column-gap: 10px; }
  .card { margin-bottom: 12px; }
  .card .t { font-size: 14px; }
  .hero { padding: 28px 0 12px; }
  .hero p { font-size: 16px; }
  .hero .chips { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin: 20px -16px 0; padding: 0 16px 4px;
    scrollbar-width: none; }
  .hero .chips::-webkit-scrollbar { display: none; }
  .steps { grid-template-columns: 1fr; }
  .band { padding: 28px 20px; border-radius: var(--r); }
}

/* ---------- light / dark switch: shows the moon in light mode, the sun in dark mode */
.theme { flex: none; width: 40px; height: 40px; border-radius: var(--pill); border: 0; background: var(--chip); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; margin-left: 8px; }
.theme:hover { background: var(--chip-press); }
.theme svg { width: 20px; height: 20px; }
.theme .i-sun { display: none; }
:root[data-theme="dark"] .theme .i-sun { display: block; }
:root[data-theme="dark"] .theme .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme .i-moon { display: none; }
}

.sister { background: var(--card); border-radius: var(--r); padding: 14px 16px; font-size: 15px; margin: 24px 0; }
