/* Little Loom Arts – "transparent artboard" look in the brand colours.
   The checkerboard and the selection box come from the tools our buyers design in
   (Canva, Cricut Design Space, Procreate); the brown and terracotta come from the logo. */
:root {
  --paper: #fbf7ef;        /* logo cream */
  --checker: #f0e7d8;      /* transparency grid */
  --surface: #ffffff;
  --ink: #3f332a;          /* body text, 11.4:1 on paper */
  --ink-2: #6e5e52;        /* secondary text, 5.8:1 */
  --line: #e6dccb;
  --brand: #554335;        /* logo brown: buttons, footer */
  --accent: #b66744;       /* logo terracotta: decoration, large shapes */
  --select: #9c5434;       /* terracotta deepened for text/links/white-on, 5.3:1 */
  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --r-lg: 22px;
  --r-md: 12px;
  --r-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--font); font-variation-settings: "opsz" 14; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--select); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.05; font-weight: 800; letter-spacing: -0.025em; font-variation-settings: "opsz" 96, "wdth" 88; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3, .tile-title, .guide-title, .license-title { font-size: 1.15rem; line-height: 1.2; letter-spacing: -0.01em; font-variation-settings: "opsz" 24, "wdth" 100; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.block { margin-top: clamp(64px, 9vw, 120px); }
.lead { font-size: clamp(1.06rem, 1.5vw, 1.2rem); color: var(--ink-2); max-width: 60ch; }
.fine { font-size: .86rem; color: var(--ink-2); }
.meta { font-size: .88rem; color: var(--ink-2); margin: 0; }
.empty { padding: 32px; background: var(--surface); border-radius: var(--r-md); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--surface); padding: 10px 14px; }
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons & links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 600; text-decoration: none; border: 2px solid var(--brand); transition: background-color .15s, color .15s; cursor: pointer; }
.btn:hover { background: var(--select); border-color: var(--select); }
.btn-large { min-height: 52px; padding: 12px 28px; font-size: 1.05rem; }
.btn-small { min-height: 40px; padding: 6px 16px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--surface); color: var(--select); border-color: var(--select); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--checker); border-color: var(--checker); color: var(--brand); }
.link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--select); }
.link:hover { color: var(--select); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251, 247, 239, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.logo img { display: block; height: 40px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-size: .96rem; }
.site-nav a:not(.btn):hover { background: var(--surface); }
.site-nav a:not(.btn)[aria-current="page"], .site-nav a:not(.btn)[aria-current="page"]:hover { background: var(--brand); color: #fff; }
.site-nav .btn { margin-left: 8px; }
.nav-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 600 .95rem var(--font); cursor: pointer; }
.nav-toggle .icon { width: 20px; height: 20px; }
.drawer-head, .drawer-label, .drawer-themes, .nav-backdrop { display: none; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(32px, 6vw, 80px); }
.hero h1 { margin-bottom: 22px; max-width: 14ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* The artboard: a transparency grid with the latest bundles laid on it as layers */
.artboard {
  position: relative; aspect-ratio: 1 / .86; border-radius: var(--r-lg); overflow: hidden;
  background-color: #f7f8f5;
  background-image: conic-gradient(var(--checker) 25%, transparent 0 50%, var(--checker) 0 75%, transparent 0);
  background-size: 28px 28px;
  border: 1px solid var(--line);
}
.layer { position: absolute; display: block; border-radius: 6px; box-shadow: 0 18px 40px -22px rgba(63, 51, 42, .5); }
.layer img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.layer-2 { width: 46%; aspect-ratio: 4 / 3; left: 5%; top: 7%; transform: rotate(-5deg); }
.layer-3 { width: 46%; aspect-ratio: 4 / 3; right: 5%; bottom: 7%; transform: rotate(4deg); }
.layer-1 { width: 62%; aspect-ratio: 4 / 3; left: 19%; top: 22%; z-index: 2; }
.selection { position: absolute; inset: -7px; border: 1.5px solid var(--accent); pointer-events: none; animation: select-in .5s .6s both cubic-bezier(.2, .8, .2, 1); }
.selection i { position: absolute; width: 11px; height: 11px; background: #fff; border: 1.5px solid var(--accent); border-radius: 2px; }
.selection i:nth-child(1) { left: -6px; top: -6px; }
.selection i:nth-child(2) { left: calc(50% - 5.5px); top: -6px; }
.selection i:nth-child(3) { right: -6px; top: -6px; }
.selection i:nth-child(4) { right: -6px; top: calc(50% - 5.5px); }
.selection i:nth-child(5) { right: -6px; bottom: -6px; }
.selection i:nth-child(6) { left: calc(50% - 5.5px); bottom: -6px; }
.selection i:nth-child(7) { left: -6px; bottom: -6px; }
.selection i:nth-child(8) { left: -6px; top: calc(50% - 5.5px); }
.dims { position: absolute; left: 50%; bottom: -40px; transform: translateX(-50%); background: var(--select); color: #fff; font-size: .82rem; font-weight: 600; padding: 3px 10px; border-radius: 5px; white-space: nowrap; font-variant-numeric: tabular-nums; animation: select-in .4s 1s both cubic-bezier(.2, .8, .2, 1); }
@keyframes select-in { from { opacity: 0; transform: scale(.96); } }
@keyframes dims-in { from { opacity: 0; } }
.dims { animation-name: dims-in; }

/* Section heads */
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: clamp(20px, 3vw, 32px); }
.page-head { padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(24px, 4vw, 40px); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: 16px; max-width: 18ch; }

/* Product tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px) clamp(16px, 2.4vw, 28px); }
.tile { position: relative; }
.tile-img { display: block; border-radius: var(--r-md); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.tile-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tile .tile-title { margin-top: 14px; font-size: 1.2rem; }
.tile .tile-title a { text-decoration: none; }
.tile .tile-title a::after { content: ""; position: absolute; inset: 0; } /* whole tile is the link target */
.tile:hover .tile-title a { color: var(--select); }
.tile:hover .tile-img { border-color: var(--select); box-shadow: 0 0 0 1px var(--select); }
.tile-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.tile-meta p { margin: 0; }
.tile-specs { color: var(--ink-2); font-size: .92rem; line-height: 1.4; }
.tile-specs .dot { color: var(--line); color: color-mix(in srgb, var(--ink-2) 45%, transparent); }
.tile-price { color: var(--select); font-weight: 700; font-size: 1.08rem; white-space: nowrap; }
.sticker { position: absolute; top: -10px; left: -8px; z-index: 1; background: var(--select); color: #fff; font-weight: 700; font-size: .85rem; padding: 4px 12px; border-radius: 999px; transform: rotate(-6deg); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.filters a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 500; }
.filters a:hover { border-color: var(--ink); }
.filters a[aria-current="page"], .filters a[aria-current="page"]:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Themes: wide rows with a strip of covers */
.themes { display: grid; gap: 14px; }
.theme { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 24px; align-items: center; padding: 18px; border-radius: var(--r-lg); background: var(--surface); text-decoration: none; border: 1px solid transparent; }
.theme:hover { border-color: var(--select); }
.theme-text { display: grid; gap: 8px; padding: 8px 8px 8px 12px; }
.theme-name { font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -0.02em; line-height: 1.05; font-variation-settings: "opsz" 96, "wdth" 88; }
.theme:hover .theme-name { color: var(--select); }
.theme-intro { color: var(--ink-2); max-width: 46ch; }
.theme-count { display: inline-flex; align-items: center; gap: 8px; width: fit-content; margin-top: 4px; padding: 8px 14px 8px 16px; border-radius: 999px; background: var(--paper); color: var(--select); font-weight: 700; font-size: .95rem; transition: background-color .2s, color .2s; }
.theme:hover .theme-count { background: var(--select); color: #fff; }
.go { display: inline-flex; align-items: center; gap: 6px; }
.go .icon { width: 18px; height: 18px; transition: translate .2s; }
.theme:hover .go .icon, .guide:hover .go .icon { translate: 3px 0; }
.theme-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.theme-strip img { border-radius: var(--r-sm); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* Specs */
.specs-block { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.specs-block h2 { margin-bottom: 16px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.facts li { display: flex; gap: 14px; color: var(--ink-2); }
.facts .icon { color: var(--select); width: 26px; height: 26px; margin-top: 2px; }
.facts strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }

/* License */
.license { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.license > div { background: var(--surface); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); }
.license .license-title { font-size: 1.3rem; margin-bottom: 14px; }
.license li { display: flex; gap: 12px; padding: 9px 0; border-top: 1px solid var(--paper); }
.license li .icon { translate: 0 2px; } /* centre the icon on the first line of text */
.license .can .icon { color: #23845b; }
.license .cant .icon { color: #b3392f; }
.license-compact li { font-size: .95rem; padding: 7px 0; }

/* Guides */
.guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide { position: relative; background: var(--surface); border-radius: var(--r-md); padding: 24px; display: flex; flex-direction: column; }
.guide .guide-title { font-size: 1.25rem; margin-bottom: 10px; }
.guide .guide-title a { text-decoration: none; }
.guide .guide-title a::after { content: ""; position: absolute; inset: 0; }
.guide:hover .guide-title a { color: var(--select); }
.guide p { color: var(--ink-2); }
.guide .meta { margin-top: auto; }
.guide-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--paper); }
.guide-foot .go { color: var(--select); font-weight: 700; font-size: .92rem; }

/* FAQ */
.faq { margin-top: 20px; display: grid; gap: 8px; }
.faq details { background: var(--surface); border-radius: var(--r-md); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 56px; padding: 14px 20px; font-weight: 600; font-size: 1.05rem; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--ink-2); max-width: 66ch; }
.faq summary:hover { color: var(--select); }

/* Accordions (FAQ, full description): JS animates the height; the chevron turns at once. */
.acc summary { list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary > .icon { flex: none; color: var(--select); transition: transform .3s cubic-bezier(.22, 1, .36, 1); }
.acc.is-open summary > .icon { transform: rotate(180deg); }
.acc-body.animating { overflow: hidden; }

/* CTA band */
.cta-band { margin-top: clamp(72px, 10vw, 128px); background: var(--select); color: #fff; padding-block: clamp(40px, 6vw, 64px); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; }
.cta-band p { margin: 10px 0 0; color: #fff; }

/* Breadcrumbs */
.crumbs ol { list-style: none; margin: 0; padding: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Product page */
.product, .product-main { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: clamp(28px, 5vw, 64px); align-items: start; }
.product { padding-top: 24px; }
.product-main { grid-column: 1 / -1; }
/* The gallery stays pinned while the info column scrolls by. Its sticky range ends with
   .product-main; the full description sits below it, so opening it can't shift the gallery. */
.product-media { position: sticky; top: 92px; }
.product > .full-desc { grid-column: 2; }
.frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.carousel { position: relative; }
.slides { display: flex; margin: 0; padding: 0; list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slides:focus-visible { outline: none; }
/* Ring the rounded frame, not the square track inside it (which the corners would clip). */
.carousel:has(.slides:focus-visible) .frame { outline: 3px solid var(--select); outline-offset: 3px; }
.slide { flex: 0 0 100%; aspect-ratio: 4 / 3; scroll-snap-align: center; scroll-snap-stop: always; background: var(--surface) center / contain no-repeat; }
.slide > img, .slide > video { width: 100%; height: 100%; object-fit: contain; }
.slide-video { position: relative; background-size: cover; }
.slide > video { object-fit: cover; }
.vid-toggle { position: absolute; left: 12px; bottom: 12px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(63, 51, 42, .72); color: #fff; cursor: pointer; transition: background-color .2s; }
.vid-toggle:hover { background: var(--select); }
.vid-toggle svg { width: 16px; height: 16px; fill: currentColor; }
.vid-toggle .i-play, .vid-toggle.paused .i-pause { display: none; }
.vid-toggle.paused .i-play { display: inline; }
.car-btn { position: absolute; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer; box-shadow: 0 2px 10px rgba(63, 51, 42, .14); transition: opacity .2s, background-color .2s; }
.car-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.car-btn:hover { background: var(--surface); color: var(--select); }
.car-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.car-btn:disabled { opacity: 0; pointer-events: none; }
.car-prev { left: -22px; }
.car-next { right: -22px; }
.car-count { position: absolute; right: 12px; bottom: 12px; margin: 0; padding: 4px 10px; border-radius: 999px; background: rgba(63, 51, 42, .78); color: #fff; font-size: .8rem; font-variant-numeric: tabular-nums; pointer-events: none; }
/* Touch screens swipe; the arrows would only cover the artwork. */
@media (hover: none) and (pointer: coarse) { .car-btn { display: none; } }
@media (prefers-reduced-motion: reduce) { .slides { scroll-behavior: auto; } }
.strip { position: relative; margin-top: 12px; }
.thumbs { display: flex; gap: 8px; padding: 2px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumbs li { flex: 0 0 calc((100% - 32px) / 5); scroll-snap-align: start; }
.strip-btn { position: absolute; top: 50%; translate: 0 -50%; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; box-shadow: 0 2px 8px rgba(63, 51, 42, .16); }
.strip-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.strip-btn:hover { color: var(--select); border-color: var(--select); }
.strip-btn[hidden] { display: none; }
.strip-prev { left: -14px; }
.strip-next { right: -14px; }
.thumb { position: relative; display: block; width: 100%; padding: 0; border: 2px solid transparent; border-radius: var(--r-sm); overflow: hidden; background: var(--surface); cursor: pointer; }
.thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.thumb:hover { border-color: var(--line); }
.thumb[aria-current="true"] { border-color: var(--accent); }
.play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(63, 51, 42, .28); }
.play svg { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: #fff; fill: var(--brand); }
.pin-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; min-height: 44px; }
.collection { font-weight: 600; color: var(--select); margin-bottom: 8px; }
.product-info h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; margin-bottom: 14px; }
.product-info h2 { font-size: 1.25rem; margin: 28px 0 10px; letter-spacing: -0.01em; }
.price { font-size: 1.3rem; font-weight: 600; margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.product-info .fine { margin: 10px 0; }
.inspector { margin: 0 0 24px; background: var(--surface); border-radius: var(--r-md); border: 1px solid var(--line); overflow: hidden; }
.inspector div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 10px 16px; font-size: .95rem; }
.inspector div + div { border-top: 1px solid var(--paper); }
.inspector dt { color: var(--ink-2); }
.inspector dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.uses li { position: relative; padding: 6px 0 6px 22px; }
.uses li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 10px; height: 10px; border: 1.5px solid var(--select); border-radius: 2px; }
.full-desc { margin-top: 28px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--surface); transition: border-color .2s; }
.full-desc:hover, .full-desc.is-open { border-color: var(--select); }
.full-desc summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 12px 16px 12px 18px; }
.full-desc summary > span { display: grid; gap: 2px; }
.full-desc summary strong { font-weight: 700; }
.full-desc summary .fine { font-size: .84rem; line-height: 1.35; }
.full-desc summary > .icon { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--paper); }
.full-desc .prose { padding: 4px 18px 6px; font-size: .95rem; color: var(--ink-2); }
.sticky-buy { display: none; }

/* Prose */
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 2.2rem 0 .8rem; }
.prose h3 { margin: 1.6rem 0 .5rem; }
.prose ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.prose ol { padding-left: 1.3em; margin-bottom: 1em; }
.prose li { margin-bottom: .35em; }
.prose a { text-decoration-color: var(--select); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose blockquote { margin: 1.6rem 0; padding: 16px 20px; background: var(--surface); border-left: 4px solid var(--select); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.prose blockquote p { margin: 0; }

/* Post */
.post { max-width: 820px; }
.post-head { padding-block: clamp(24px, 4vw, 48px) 24px; }
.post-head h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin-bottom: 16px; }
.toc { background: var(--surface); border-radius: var(--r-md); padding: 18px 22px; margin-bottom: 28px; }
.toc p { font-weight: 700; margin-bottom: 8px; }
.toc li { padding: 3px 0; }
.toc a { color: var(--ink-2); }
.toc a:hover { color: var(--select); }

/* Footer */
.site-footer { background: var(--brand); color: rgba(255, 255, 255, .8); padding: 56px 0 28px; }
main:has(> .cta-band) + .site-footer .footer-grid { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 40px; }
main:has(> .cta-band) + .site-footer { padding-top: 0; }
main { padding-bottom: clamp(72px, 10vw, 128px); }
main:has(> .cta-band) { padding-bottom: 0; }
.nw { white-space: nowrap; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-name { margin: 0 0 14px; }
.footer-name img { height: 48px; width: auto; }
.footer-title { font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-grid li a { display: inline-block; padding: 5px 0; text-decoration: none; color: rgba(255, 255, 255, .8); }
.footer-grid li a:hover { color: #fff; text-decoration: underline; }
.site-footer .fine { color: rgba(255, 255, 255, .78); margin: 40px auto 0; }

@media (max-width: 980px) {
  .tiles, .guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .theme { grid-template-columns: 1fr; }
  .specs-block { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  /* Drawer menu. backdrop-filter would trap the fixed drawer inside the header, so it goes. */
  .site-header { background: var(--paper); backdrop-filter: none; }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-header { z-index: 50; }
  .nav-toggle { display: inline-flex; }
  .site-nav { position: fixed; top: 0; right: 0; bottom: 0; z-index: 2; width: min(86vw, 360px); flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 20px calc(20px + env(safe-area-inset-bottom)); overflow-y: auto; background: var(--paper); border-radius: 22px 0 0 22px; box-shadow: -30px 0 60px -30px rgba(40, 31, 24, .45); transform: translateX(104%); visibility: hidden; transition: transform .42s cubic-bezier(.22, 1, .36, 1), visibility 0s .42s; }
  .site-nav.open { transform: none; visibility: visible; transition: transform .42s cubic-bezier(.22, 1, .36, 1); }
  .site-nav > :not(.drawer-head) { opacity: 0; translate: 18px 0; transition: opacity .25s, translate .25s; }
  .site-nav.open > :not(.drawer-head) { opacity: 1; translate: 0; transition: opacity .35s, translate .45s cubic-bezier(.22, 1, .36, 1); }
  .site-nav.open > :nth-child(2) { transition-delay: .08s; }
  .site-nav.open > :nth-child(3) { transition-delay: .12s; }
  .site-nav.open > :nth-child(4) { transition-delay: .16s; }
  .site-nav.open > :nth-child(5) { transition-delay: .2s; }
  .site-nav.open > :nth-child(6) { transition-delay: .24s; }
  .site-nav.open > :nth-child(n+7) { transition-delay: .28s; }
  .drawer-head { display: flex; justify-content: space-between; align-items: center; min-height: 60px; margin-bottom: 10px; padding-left: 16px; border-bottom: 1px solid var(--line); }
  .drawer-title { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; font-variation-settings: "opsz" 96, "wdth" 88; }
  .nav-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; }
  .site-nav a:not(.btn) { min-height: 48px; display: flex; align-items: center; padding: 0 16px; font-size: 1.08rem; font-weight: 600; }
  .drawer-label { display: block; margin: 18px 0 6px 16px; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
  .drawer-themes { display: grid; gap: 2px; }
  .drawer-themes a:not(.btn) { min-height: 42px; font-size: 1rem; font-weight: 500; }
  .site-nav .btn { margin: auto 0 0; min-height: 50px; font-size: 1rem; }
  .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 1; background: rgba(40, 31, 24, .42); opacity: 0; transition: opacity .35s; }
  .nav-backdrop.show { opacity: 1; }
  .nav-backdrop[hidden] { display: none; }

  .hero, .product { grid-template-columns: 1fr; }
  .product-main { grid-template-columns: 1fr; row-gap: clamp(28px, 5vw, 64px); }
  .product > .full-desc { margin-top: 28px; }
  .product-media { position: static; }
  .product > .full-desc { grid-column: 1; }
  .hero { padding-top: 28px; gap: 28px; }
  .hero h1 { font-size: clamp(2.2rem, 9.6vw, 2.8rem); line-height: 1.02; max-width: 20ch; margin-bottom: 14px; }
  .hero .lead { font-size: 1rem; line-height: 1.55; }
  .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
  .actions .btn-large { min-height: 50px; padding: 10px 12px; font-size: .98rem; }
  .artboard { margin-bottom: 40px; }
  .tiles { gap: 28px 14px; }
  .tile .tile-title { margin-top: 10px; font-size: .9rem; line-height: 1.25; }
  .tile-meta { flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 4px; }
  .tile-specs { font-size: .8rem; line-height: 1.35; }
  .tile-price { font-size: 1rem; }
  .thumbs li { flex-basis: calc((100% - 24px) / 4.4); }
  .strip-prev { left: -10px; }
  .strip-next { right: -10px; }
  .car-btn { display: none; }
  .facts, .license, .guides { grid-template-columns: 1fr; }
  .theme { padding: 12px; gap: 16px; }
  .theme-strip { order: -1; }
  .theme-text { padding: 4px; }
  .inspector div { grid-template-columns: 100px 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  /* Section chips: one swipeable row instead of a tall stack. */
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 4px; scroll-padding-inline: var(--gutter); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .filters::-webkit-scrollbar { display: none; }
  .filters a { flex: none; white-space: nowrap; }
  .sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; justify-content: space-between; align-items: center; gap: 12px; padding: 10px var(--gutter); background: var(--surface); border-top: 1px solid var(--line); font-weight: 600; }
  body:has(.sticky-buy) .site-footer { padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
