@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap");

/* ==========================================================================
   Apex Model Lab - site styles
   Dark theme. Loaded after the old template stylesheet (style.css), which is
   being phased out section by section; rules here win where they overlap.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg: #01050B;            /* matches the inverted logo's background */
  --surface: #0A0F18;       /* cards, panels */
  --surface-2: #111827;     /* raised / hover */
  --border: #1C2230;
  --border-strong: #2A3242;
  --text: #ECEEF3;
  --text-muted: #9AA0AE;
  --heading: #FFFFFF;
  --accent: #FF4A1C;        /* racing red-orange */
  --accent-hover: #FF6238;
  --accent-soft: rgba(255, 74, 28, 0.14);
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Inter", sans-serif;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 22px;
  --header-h: 84px;
  /* contour-line texture echoing the logo */
  --topo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='300'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.05' stroke-width='1.6'%3E%3Cpath d='M-20 40 C80 22,160 58,260 31 S420 58,520 40'/%3E%3Cpath d='M-20 66 C80 45,160 87,260 55.5 S420 87,520 66'/%3E%3Cpath d='M-20 92 C80 68,160 116,260 80 S420 116,520 92'/%3E%3Cpath d='M-20 118 C80 91,160 145,260 104.5 S420 145,520 118'/%3E%3Cpath d='M-20 144 C80 114,160 174,260 129 S420 174,520 144'/%3E%3Cpath d='M-20 170 C80 137,160 203,260 153.5 S420 203,520 170'/%3E%3Cpath d='M-20 196 C80 160,160 232,260 178 S420 232,520 196'/%3E%3Cpath d='M-20 222 C80 183,160 261,260 202.5 S420 261,520 222'/%3E%3Cpath d='M-20 248 C80 206,160 290,260 227 S420 290,520 248'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: dark;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-size: 62.5%;            /* 1rem = 10px at the default browser size */
}
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.6rem;
  line-height: 1.6;
}
img {
  max-width: 100%;
}
ul,
ol {
  margin: 0;
  padding: 0;
}
li {
  list-style: none;
}
button {
  font: inherit;
}
.container {
  max-width: 132rem;
  padding-left: 3.2rem;
  padding-right: 3.2rem;
}
h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  font-family: var(--font-heading);
  font-weight: 700;
}
p {
  color: var(--text-muted);
}
a {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}
::selection {
  background: var(--accent);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Icons ---------- */
.icon {
  width: 2.2rem;
  height: 2.2rem;
  flex: none;
}
.icon--sm {
  width: 1.6rem;
  height: 1.6rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.2rem 2.2rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 1.4rem/1.2 var(--font-heading);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn--accent {
  background: var(--accent);
  color: #fff;
}
.btn--accent:hover,
.btn--accent:focus-visible {
  background: var(--accent-hover);
  color: #fff;
}
.btn--outline {
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 4.2rem;
  height: 4.2rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.icon-btn:hover,
.icon-btn[aria-expanded="true"] {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(1, 5, 11, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header__bar {
  display: flex;
  align-items: center;
  gap: 4rem;
  height: var(--header-h);
}
.site-header__logo img {
  display: block;
  height: 5rem;
  width: auto;
}
.site-nav {
  display: flex;
  gap: 3rem;
  margin-left: auto;
  font: 600 1.5rem var(--font-heading);
}
.site-nav a {
  position: relative;
  padding: 0.6rem 0;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.site-nav a:hover {
  color: var(--heading);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.2rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.site-nav a:hover::after,
.site-nav a.is-current::after {
  transform: scaleX(1);
}
.site-header__tools {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.site-header__menu-btn {
  display: none;
}

/* CAD / USD switch: the current currency is filled in, from data-region on <html> */
.currency {
  display: inline-flex;
  padding: 0.3rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}
.currency button {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.2rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text-muted);
  font: 600 1.25rem var(--font-heading);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.currency img {
  border-radius: 2px;
}
.currency button:hover {
  color: var(--heading);
}
html:not([data-region="us"]) .currency [data-set-region="ca"],
html[data-region="us"] .currency [data-set-region="us"] {
  background: var(--surface-2);
  color: var(--heading);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.site-menu .currency {
  align-self: flex-start;
}

/* search bar under the header */
.site-search {
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.site-search__form {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
}
.site-search__form.container {
  max-width: 76rem;
  margin-left: auto;
  margin-right: auto;
}
.site-search__icon {
  color: var(--text-muted);
}
.site-search__form input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 1.7rem;
}
.site-search__form input::placeholder {
  color: var(--text-muted);
}

/* slide-out menu (phones) */
.site-menu.offcanvas {
  background: var(--bg);
  color: var(--text);
  border-left: 1px solid var(--border);
  padding: 2rem;
  gap: 2.4rem;
}
.site-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-menu__top img {
  height: 4.4rem;
}
.site-menu__search {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  overflow: hidden;
}
.site-menu__search input {
  flex: 1;
  min-width: 0;
  padding: 1.1rem 1.8rem;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 1.5rem;
}
.site-menu__search button {
  padding: 0 1.6rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
}
.site-menu__nav {
  display: flex;
  flex-direction: column;
  font: 600 2rem var(--font-heading);
}
.site-menu__nav a {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}
.site-menu__nav a.is-current {
  color: var(--accent);
}
.site-menu__etsy {
  align-self: flex-start;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 6rem;
  padding-top: 5.6rem;
  border-top: 1px solid var(--border);
  background: #000308;
  font-family: var(--font-body);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3.2rem;
}
.site-footer__brand img {
  display: block;
  height: 5.8rem;
  width: auto;
}
.site-footer__brand .site-footer__tagline {
  margin-top: 1.2rem;
  color: var(--text);
  font: 700 1.2rem var(--font-heading);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.site-footer__brand p {
  max-width: 30rem;
  margin: 1.4rem 0 0;
  font-size: 1.4rem;
  line-height: 1.6;
}
.site-footer__col h2 {
  margin: 0.6rem 0 1.4rem;
  font: 700 1.2rem var(--font-heading);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-footer__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer__col li {
  margin-bottom: 0.9rem;
}
.site-footer__col a {
  color: #C9CBD2;
  font-size: 1.45rem;
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer__col a:hover {
  color: var(--accent);
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 4.4rem;
  padding: 1.8rem 0;
  border-top: 1px solid var(--border);
  color: #7D808B;
  font-size: 1.3rem;
}

/* ---------- Scroll-in animation (AOS custom "rise") ---------- */
/* A short lift with a slight scale-up and blur, instead of AOS's stock 100px fade-up */
html:not(.no-js) [data-aos="rise"] {
  opacity: 0;
  transform: translate3d(0, 24px, 0) scale(0.97);
  filter: blur(4px);
  transition-property: opacity, transform, filter;
}
html:not(.no-js) [data-aos="rise"].aos-animate {
  opacity: 1;
  transform: none;
  filter: none;
}
@media (prefers-reduced-motion: reduce) {
  html:not(.no-js) [data-aos="rise"] {
    transform: none;
    filter: none;
  }
}

/* ---------- Shared page pieces ---------- */
.section {
  padding: 6.4rem 0;
}
.section--tight {
  padding-top: 3.6rem;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.6rem;
}
.section-head h2 {
  margin: 0;
  font-size: 3rem;
}
.section-head__link {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--accent);
  font: 600 1.4rem var(--font-heading);
  text-decoration: none;
}
.section-head__link:hover {
  color: var(--accent-hover);
}
.eyebrow {
  display: block;
  color: var(--accent);
  font: 700 1.1rem var(--font-heading);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Home: intro + product-line blocks ---------- */
.home-hero {
  padding: 3.6rem 0 0;
}
.home-hero__intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 2.6rem;
}
.home-hero__intro h1 {
  margin: 0;
  font-size: 4.4rem;
  font-weight: 800;
  line-height: 1.1;
}
.home-hero__intro h1 em {
  font-style: normal;
  color: var(--accent);
}
.home-hero__intro p {
  max-width: 36rem;
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.6;
}
.line-blocks {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 2.2rem;
}
.line-block:only-child {
  grid-column: 1 / -1;
}
.line-block {
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: #fff;
  text-decoration: none;
  transition: border-color 0.2s;
}
.line-block:hover {
  border-color: var(--border-strong);
}
.line-block__img {
  display: block;
  width: 100%;
  aspect-ratio: 12 / 5;
  object-fit: cover;
}
.line-block__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.4rem;
  padding: 2.4rem 3.4rem;
}
.line-block__badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: 700 1.1rem var(--font-heading);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.line-block h2 {
  margin: 0;
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.line-block p {
  max-width: 52rem;
  margin: 0.6rem 0 0;
  color: var(--text-muted);
  font-size: 1.5rem;
}
.line-block__link {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.8rem;
  font: 600 1.5rem var(--font-heading);
}
.line-block:hover .line-block__link {
  color: var(--accent);
}

/* ---------- Home: benefits strip ---------- */
.benefits {
  margin-top: 3.4rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
  padding-top: 2.8rem;
  padding-bottom: 2.8rem;
}
.benefit {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
}
.benefit__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 1.2rem;
  background: var(--accent-soft);
  color: var(--accent);
}
.benefit h2 {
  margin: 0 0 0.2rem;
  font-size: 1.5rem;
}
.benefit p {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.45;
}
.benefit a {
  color: var(--accent);
}

/* ---------- Model cards and grids ---------- */
.model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}
.model-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.model-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  color: var(--text);
}
.model-card__img {
  aspect-ratio: 1 / 1;
  background: var(--surface-2) var(--topo) center / 420px;
}
.model-card__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.model-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.6rem 1.8rem 1.8rem;
}
.model-card h3 {
  margin: 0.4rem 0 1.2rem;
  font-size: 1.7rem;
}
.model-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.model-card__price {
  color: var(--heading);
  font-weight: 600;
  font-size: 1.6rem;
}
.model-card__view {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  font: 600 1.3rem var(--font-heading);
  transition: color 0.2s;
}
.model-card:hover .model-card__view {
  color: var(--accent);
}

/* shop: line tabs + count */
.shop-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  margin-bottom: 2.6rem;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.tabs a {
  padding: 0.8rem 1.8rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  font: 600 1.4rem var(--font-heading);
  text-decoration: none;
  transition: all 0.2s;
}
.tabs a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.tabs a.is-current {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.shop-bar__count {
  margin: 0;
  font-size: 1.4rem;
}

.site-footer__bottom a {
  color: inherit;
  text-decoration: underline;
}
.site-footer__credits {
  flex-basis: 100%;
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

/* ---------- Model page ---------- */
.btn--lg {
  padding: 1.5rem 3rem;
  font-size: 1.6rem;
}
.model {
  padding: 4.8rem 0 1rem;
}
.model__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5.6rem;
  align-items: start;
}
.model-gallery {
  min-width: 0;
}
.model-gallery__main {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-2) var(--topo) center / 520px;
}
.model-gallery__main img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.model-gallery__stage {
  position: relative;
}
/* Previous / next arrows, on the main photo and at each end of the thumbnail strip */
.gallery-arrow {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--text);
  cursor: pointer;
  transition: opacity 0.2s, background-color 0.2s, border-color 0.2s;
}
/* a bigger tap area than the visible circle, for phones */
.gallery-arrow::before {
  content: "";
  position: absolute;
  inset: -0.4rem;
}
.gallery-arrow:hover {
  border-color: var(--accent);
  background: var(--surface-2);
}
.gallery-arrow.swiper-button-disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}
.gallery-arrow.swiper-button-lock {
  display: none;
}
.model-gallery__stage .gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 4.4rem;
  height: 4.4rem;
  margin-top: -2.2rem;
}
.model-gallery__stage .gallery-arrow--prev {
  left: 1.2rem;
}
.model-gallery__stage .gallery-arrow--next {
  right: 1.2rem;
}
.model-gallery .model-gallery__count {
  position: absolute;
  top: auto;
  left: auto;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 2;
  width: auto;
  padding: 0.3rem 1rem;
  border-radius: 99px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  color: var(--text);
  font-size: 1.3rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
}
.model-gallery__strip {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.2rem;
}
.model-gallery__thumbs {
  flex: 1;
  min-width: 0;
}
.model-gallery__thumbs .swiper-slide {
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s;
}
.model-gallery__thumbs .swiper-slide:hover,
.model-gallery__thumbs .swiper-slide-thumb-active {
  opacity: 1;
  border-color: var(--accent);
}
.model-gallery__thumbs img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.model__info {
  position: sticky;
  top: calc(var(--header-h) + 2.4rem);
}
.model__info .eyebrow {
  text-decoration: none;
}
.model__info h1 {
  margin: 0.8rem 0 0;
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.15;
}
.model__price {
  margin: 1.2rem 0 2.4rem;
  color: var(--heading);
  font: 600 2.4rem var(--font-body);
}
/* Canadian or US price: head.html sets data-region on <html>; without it the Canadian one shows */
.price-us,
.region-us,
html[data-region="us"] .price-ca,
html[data-region="us"] .region-ca {
  display: none;
}
html[data-region="us"] .price-us {
  display: inline;
}
html[data-region="us"] p.region-us {
  display: block;
}
.model__region {
  margin: -1.6rem 0 2.4rem;
  color: var(--text-muted);
  font-size: 1.35rem;
}
.model__description {
  padding-top: 2.4rem;
  border-top: 1px solid var(--border);
}
.model__buy {
  margin-top: 2.4rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--border);
}
.model__buy p {
  margin: 1.2rem 0 0;
  font-size: 1.35rem;
}

/* ---------- Blog ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
}
.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  color: var(--text);
}
.post-card__img img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.8rem 2rem 2rem;
}
.post-card h3 {
  margin: 0.8rem 0 1.6rem;
  font-size: 1.9rem;
  line-height: 1.35;
}
.post-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: auto;
  color: var(--accent);
  font: 600 1.4rem var(--font-heading);
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.8rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 1.35rem;
}
.post-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.post-meta .icon {
  color: var(--accent);
}
.post {
  padding: 4.8rem 0 1rem;
}
.post__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 5.6rem;
  align-items: start;
}
.post__img img {
  display: block;
  width: 100%;
  margin-bottom: 2.4rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.post__main h1 {
  margin: 1.2rem 0 2.4rem;
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.2;
}
.post__aside {
  position: sticky;
  top: calc(var(--header-h) + 2.4rem);
  padding: 2.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.post__aside h2 {
  margin: 0 0 1.6rem;
  font-size: 1.8rem;
}
.mini-post {
  display: flex;
  gap: 1.4rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}
.mini-post img {
  flex: none;
  width: 7.2rem;
  height: 7.2rem;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.mini-post__title {
  display: block;
  margin-bottom: 0.4rem;
  font: 600 1.45rem/1.4 var(--font-heading);
  transition: color 0.2s;
}
.mini-post:hover .mini-post__title {
  color: var(--accent);
}
.mini-post time {
  color: var(--text-muted);
  font-size: 1.3rem;
}

/* ---------- About ---------- */
.about {
  padding: 5.6rem 0 1rem;
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5.6rem;
  align-items: center;
}
.about__img img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.about__text h1 {
  margin: 0 0 2.4rem;
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.15;
}
.icon-list {
  margin: 2.4rem 0 3.2rem;
  padding: 0;
  list-style: none;
}
.icon-list li {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: 1.4rem;
  color: var(--text);
  font-size: 1.6rem;
  list-style: none;
}
.icon-list__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 4rem;
  height: 4rem;
  border-radius: 1.1rem;
  background: var(--accent-soft);
  color: var(--accent);
}
.icon-list__icon .icon {
  width: 2rem;
  height: 2rem;
}
.about__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

/* ---------- How It's Made ---------- */
.process-intro {
  max-width: 72rem;
  margin-bottom: 6.4rem;
}
.process-intro h1 {
  margin: 0.8rem 0 1.6rem;
  font-size: 4.2rem;
  font-weight: 800;
}
.process-intro p {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.6;
}
.process {
  display: grid;
  gap: 8rem;
  margin-bottom: 8rem;
}
.process__step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5.6rem;
  align-items: center;
}
/* every second step puts the photo on the right */
.process__step:nth-child(even) .process__media {
  order: 2;
}
.process__media img,
.process__placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
/* stand-in until a photo is set in _data/process.yml */
.process__placeholder {
  display: grid;
  place-items: center;
  background: var(--topo) center / cover, var(--surface);
  color: var(--accent);
}
.process__placeholder .icon {
  width: 6.4rem;
  height: 6.4rem;
  stroke-width: 1.2;
}
.process__num {
  display: block;
  color: var(--accent);
  font: 800 4.8rem/1 var(--font-heading);
}
.process__text h2 {
  margin: 1.2rem 0 1.6rem;
  font-size: 3rem;
}
.process__text .prose p:last-child {
  margin-bottom: 0;
}
.process-cta {
  padding: 4.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--topo) center / cover, var(--surface);
  text-align: center;
}
.process-cta h2 {
  margin: 0 0 1rem;
  font-size: 3rem;
}
.process-cta p {
  margin: 0 0 2.4rem;
}
.process-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}

/* ---------- Forms (contact form) ---------- */
.contact-form {
  padding: 3.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.contact-form__title {
  margin: 0 0 2.4rem;
  font-size: 2.4rem;
}
.field {
  margin-bottom: 1.8rem;
}
.field label {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--text);
  font: 600 1.4rem var(--font-heading);
}
.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 1.2rem 1.6rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font: 400 1.5rem var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea {
  resize: vertical;
  min-height: 14rem;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #6B7080;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.btn--block {
  width: 100%;
}
.contact-form .contact-form-status {
  margin: 1.4rem 0 0;
  font-size: 1.45rem;
  text-align: center;
}
.contact-form .contact-form-status.is-success {
  color: #4ADE80;
}
.contact-form .contact-form-status.is-error {
  color: #F87171;
}

/* ---------- FAQ + Contact pages ---------- */
.faq__grid,
.contact__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5.6rem;
  align-items: start;
}
.contact__grid {
  grid-template-areas:
    "intro form"
    "img   form";
  grid-template-rows: auto 1fr;
  row-gap: 1.6rem;
}
.contact__intro { grid-area: intro; }
.contact__form { grid-area: form; }
.contact__img { grid-area: img; }
.faq h1,
.contact__intro h1 {
  margin: 0 0 2.4rem;
  font-size: 4rem;
  font-weight: 800;
}
.faq__item {
  border-bottom: 1px solid var(--border);
}
.faq__item:first-child {
  border-top: 1px solid var(--border);
}
.faq__q {
  margin: 0;
}
.faq__q button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  padding: 2rem 0;
  border: none;
  background: none;
  color: var(--heading);
  font: 600 1.7rem/1.4 var(--font-heading);
  text-align: left;
  cursor: pointer;
}
.faq__q button:hover {
  color: var(--accent);
}
.faq__icon {
  color: var(--accent);
  transform: rotate(45deg);
  transition: transform 0.25s;
}
.faq__q button.collapsed .faq__icon {
  transform: none;
}
.faq__a {
  padding: 0 0 2.2rem;
}
.faq__a > :last-child {
  margin-bottom: 0;
}
.contact__img {
  display: block;
  width: 100%;
  aspect-ratio: 12 / 5;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* ---------- Search category dropdown ---------- */
.search-type {
  flex: none;
  padding: 0.9rem 3.4rem 0.9rem 1.4rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  appearance: none;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239AA0AE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 1.2rem center / 1.6rem no-repeat;
  color: var(--text);
  font: 600 1.4rem var(--font-heading);
  cursor: pointer;
}
.search-type:hover,
.search-type:focus {
  border-color: var(--accent);
  outline: none;
}
.search-type option {
  background: var(--surface);
  color: var(--text);
}
.search-result-type {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--accent);
  font: 700 1.1rem var(--font-heading);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Search page ---------- */
.search-page-form {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2.4rem;
  padding: 0.8rem 0.8rem 0.8rem 1.8rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
}
.search-page-form:focus-within {
  border-color: var(--accent);
}
.search-page-form input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 1.7rem;
}
.search-summary {
  margin: 0 0 1.6rem;
  font-size: 1.5rem;
}
.search-summary a {
  color: var(--accent);
  text-decoration: underline;
}
.search-results {
  margin: 0;
  padding: 0;
  list-style: none;
}
.search-result {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  list-style: none;
}
.search-result-title {
  color: var(--heading);
  font: 700 2rem var(--font-heading);
  text-decoration: none;
}
.search-result-title:hover {
  color: var(--accent);
}
.search-result-snippet {
  margin: 0.8rem 0 0;
  font-size: 1.5rem;
  line-height: 1.6;
}
.search-results mark {
  padding: 0 0.1em;
  border-radius: 3px;
  background: var(--accent-soft);
  color: var(--heading);
}

/* ---------- Text pages (Privacy, Terms, ...) ---------- */
.container--narrow {
  max-width: 80rem;
}
.page {
  padding: 5.6rem 0 2rem;
}
.page-head {
  margin-bottom: 3.6rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid var(--border);
}
.page-head h1 {
  margin: 0;
  font-size: 4.2rem;
  font-weight: 800;
}
.page-head__meta {
  margin: 0.8rem 0 0;
  font-size: 1.4rem;
}
.prose {
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1.75;
}
.prose h2 {
  margin: 4rem 0 1.2rem;
  font-size: 2rem;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p {
  margin: 0 0 1.4rem;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}
.prose ul {
  margin: 0 0 1.4rem;
  padding-left: 2.2rem;
}
.prose li {
  margin-bottom: 0.8rem;
  list-style: disc;
}
.prose li::marker {
  color: var(--accent);
}
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.prose a:hover {
  color: var(--accent-hover);
}
.prose strong {
  color: var(--text);
}
.prose h3 {
  margin: 2.4rem 0 0.6rem;
  font-size: 1.6rem;
}
/* The "Quick facts" table on a model page (_includes/model-facts.html) */
.model-facts {
  width: 100%;
  margin: 0 0 1.4rem;
  border-collapse: collapse;
  font-size: 1.45rem;
  line-height: 1.55;
}
.model-facts th,
.model-facts td {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
}
.model-facts th {
  width: 11rem;
  padding-right: 1.6rem;
  color: var(--text);
  font-weight: 600;
}
.model-facts td {
  overflow-wrap: anywhere;
}
/* On a model page the facts sit under the photos and description, across the full width */
.model__facts {
  margin-top: 4.8rem;
  padding-top: 4.8rem;
  border-top: 1px solid var(--border);
}
.model__facts .model-facts th {
  width: 20rem;
}
.model-facts__questions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.4rem 5.6rem;
}
.model-facts__questions h3:first-child {
  margin-top: 0;
}
[id] {
  scroll-margin-top: calc(var(--header-h) + 2rem);
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .site-nav {
    gap: 2.2rem;
  }
}
@media (max-width: 991px) {
  .site-nav,
  .site-header__etsy {
    display: none;
  }
  .site-header__tools {
    margin-left: auto;
  }
  .site-header__menu-btn {
    display: inline-grid;
  }
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer__brand {
    grid-column: 1 / -1;
  }
  .home-hero__intro {
    flex-direction: column;
    align-items: flex-start;
  }
  .line-blocks {
    grid-template-columns: 1fr;
  }
  .model-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .benefits__grid {
    grid-template-columns: 1fr;
  }
  .model__grid {
    grid-template-columns: 1fr;
    gap: 3.2rem;
  }
  .model__info {
    position: static;
  }
  .model__facts {
    margin-top: 3.2rem;
    padding-top: 3.2rem;
  }
  .model__facts .model-facts th {
    width: 14rem;
  }
  .model-facts__questions {
    grid-template-columns: 1fr;
  }
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .post__grid {
    grid-template-columns: 1fr;
  }
  .post__aside {
    position: static;
  }
  .about__grid {
    grid-template-columns: 1fr;
    gap: 3.2rem;
  }
  .about__img img {
    max-width: 48rem;
    margin: 0 auto;
  }
  .process {
    gap: 5.6rem;
  }
  .process__step {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }
  .process__step:nth-child(even) .process__media {
    order: 0;
  }
  .faq__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .contact__grid {
    grid-template-areas:
      "intro"
      "form"
      "img";
    grid-template-rows: auto;
  }
}
@media (max-width: 575px) {
  :root {
    --header-h: 68px;
  }
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .site-header__logo img {
    height: 4.2rem;
  }
  .site-header__tools .currency {
    display: none; /* no room beside the logo on a phone: it's in the slide-out menu */
  }
  .home-hero__intro h1 {
    font-size: 3.4rem;
  }
  .line-block__body {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.6rem;
    padding: 2rem;
  }
  .line-block h2 {
    font-size: 2.4rem;
  }
  .benefits__grid {
    grid-template-columns: 1fr;
  }
  .model-grid {
    gap: 1.4rem;
  }
  .model-card__body {
    padding: 1.2rem 1.4rem 1.4rem;
  }
  .model-card h3 {
    font-size: 1.5rem;
  }
  .section-head h2 {
    font-size: 2.4rem;
  }
  .page {
    padding-top: 3.6rem;
  }
  .model__info h1 {
    font-size: 3rem;
  }
  .post-grid {
    grid-template-columns: 1fr;
  }
  .post__main h1 {
    font-size: 2.8rem;
  }
  .about__text h1,
  .faq h1,
  .contact__intro h1 {
    font-size: 3rem;
  }
  .process-intro h1 {
    font-size: 3.2rem;
  }
  .process__num {
    font-size: 3.6rem;
  }
  .process__text h2,
  .process-cta h2 {
    font-size: 2.4rem;
  }
  .process-cta {
    padding: 3.2rem 2.2rem;
  }
  .contact-form {
    padding: 2.2rem;
  }
  .page-head h1 {
    font-size: 3.2rem;
  }
  .section {
    padding: 4.8rem 0;
  }
}
