/* SNEJ project catalogue: photography, model identity and specification actions. */
:root {
  --spec-ink: #252a2c;
  --spec-muted: #535f59;
  --spec-rule: #cfd5d1;
  --spec-paper: #f4f5f2;
}
#main :where(a,button,summary,input,textarea,select):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
#main .spec-model-heading h1 {
  font: 500 clamp(2rem,3.6vw,3.6rem)/1.06 var(--font-display, "Instrument Sans", sans-serif);
  letter-spacing: -.045em;
  margin: 8px 0 0;
  color: var(--spec-ink);
  text-wrap: balance;
}
#main .spec-model-heading .small-index {
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--spec-muted);
}
#main :is(.model-hero,.kitchen-model > .hero,.wardrobe-model > .hero):has(> .spec-model-heading) {
  display: grid;
  grid-template-areas: "visual heading" "visual copy";
  grid-template-rows: auto 1fr;
  row-gap: 20px;
  align-items: start;
}
#main .spec-model-heading { grid-area: heading; min-width: 0; }
#main .spec-model-quote { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 4px; color: var(--spec-ink); font-weight: 500; text-decoration: underline; text-underline-offset: 5px; }
#main .spec-model-heading + div { grid-area: visual; min-width: 0; }
#main .spec-model-heading ~ :is(.model-copy,.hero-copy) { grid-area: copy; min-width: 0; padding-block-start: 0; }
#main :is(.model-copy,.hero-copy) > .lead { margin-top: 0; max-width: 62ch; }
#main product-selections > [data-selection-enquiry] {
  margin: 0 0 20px;
  min-height: 48px;
  width: fit-content;
}
#main .snej-pdf-range__card figcaption {
  gap: 4px 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 12px 16px;
}
#main .snej-pdf-range__card figcaption > strong { grid-column: 1; font-size: 1.06rem; font-variant-numeric: tabular-nums; }
#main .snej-pdf-range__card figcaption > span { grid-column: 1; font-size: .78rem; line-height: 1.45; }
#main .spec-card-quote {
  grid-column: 2; grid-row: 1 / 3;
  min-height: 44px; display: inline-flex; align-items: center; gap: 6px;
  font-size: .875rem; color: var(--spec-ink); text-underline-offset: 4px; text-decoration: underline;
}
#main .spec-card-quote:hover { color: var(--spec-muted); }
#main .spec-quote-help { margin-top: 24px; border-top: 1px solid var(--spec-rule); }
#main .spec-quote-help summary { min-height: 48px; padding: 12px 8px; cursor: pointer; font-weight: 500; }
#main .spec-quote-help p { max-width: 64ch; margin: 8px 8px 16px; }
#main #inquiry-form .required-note { margin: 8px 0 20px; }
#main #inquiry-form .spec-quote-help + .brief-extras { margin-top: 0; }
#main .article-prose :is(h2,h3) { text-wrap: balance; scroll-margin-top: 7rem; }
#main .article-prose p { max-width: 70ch; }
#main :where(.system-index,.crumbs,.range-breadcrumb) a { text-underline-offset: 4px; }
#main .range-chapter__copy h3 { text-wrap: balance; }
#main .snej-catalogue-breadcrumbs { line-height: 1.4; }
html body #main .editorial-home #products .product-tile__body {
  margin: 0; padding: 16px 0 12px; background: transparent; border: 0;
  border-bottom: 1px solid var(--spec-rule); border-radius: 0; box-shadow: none;
}
html body #main .editorial-home #products .product-tile__body > .eyebrow {
  font-size: .75rem; color: var(--spec-muted); letter-spacing: .08em;
}
html body #main .editorial-home #products .product-tile figure {
  margin: 0; border-radius: 2px; box-shadow: none; overflow: hidden;
}
html body #main .editorial-home #products .product-tile h3 { margin: 8px 0; }
@media (min-width: 1024px) {
  html body #main .editorial-home #products .product-editorial {
    display: grid; grid-template-columns: 1.08fr 1fr; gap: 24px 40px;
  }
  html body #main .editorial-home #products .product-tile:first-child {
    grid-row: span 2; display: grid; grid-template-rows: 1fr auto;
  }
  html body #main .editorial-home #products .product-tile:first-child figure {
    aspect-ratio: 16/10; height: 100%; min-height: 0;
  }
  html body #main .editorial-home #products .product-tile:nth-child(n+2) {
    display: grid; grid-template-columns: minmax(0,1.07fr) minmax(0,1fr);
    gap: 20px; align-items: center; border-bottom: 1px solid var(--spec-rule);
  }
  html body #main .editorial-home #products .product-tile:nth-child(n+2) figure { aspect-ratio: 5/4; }
  html body #main .editorial-home #products .product-tile:nth-child(n+2) .product-tile__body { border: 0; }
  html body #main .editorial-home #products .product-tile figure img { width: 100%; height: 100%; object-fit: cover; }
}
@media (max-width: 760px) {
  #main :is(.model-hero,.kitchen-model > .hero,.wardrobe-model > .hero):has(> .spec-model-heading) {
    grid-template: "heading" auto "visual" auto "copy" auto / minmax(0,1fr);
    row-gap: 16px;
  }
  #main .spec-model-heading h1 { font-size: clamp(1.9rem,7.8vw,2.65rem); text-wrap: pretty; }
  #main .model-picture { padding: 12px; border-radius: 4px; }
  #main .crumbs { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: center; }
  #main :is(.crumbs,.range-breadcrumb,.system-index,.snej-catalogue-breadcrumbs) a,
  #main .back, #main .sample-request a {
    display: inline-flex; align-items: center; min-height: 44px;
  }
  #main #rfq.rfq-section { padding-top: 20px; }
  #main #rfq .rfq-layout { gap: 16px; }
  #main .rfq-layout .inquiry-intro { padding-right: 0; }
  #main .rfq-layout .inquiry-intro h1 { margin: 8px 0; }
  #main .rfq-layout .inquiry-intro > p { margin: 0; }
  html body #main .editorial-home #products .product-editorial { display: grid; grid-template-columns: 1fr; gap: 20px; }
  html body #main .editorial-home #products .product-tile:nth-child(n+2) { display: grid; grid-template-columns: 36% minmax(0,1fr); align-items: center; gap: 16px; }
  html body #main .editorial-home #products .product-tile:nth-child(n+2) figure { aspect-ratio: 4/5; }
  html body #main .editorial-home #products .product-tile:nth-child(n+2) .product-tile__body { padding-block: 8px; }
}
@media (max-width: 370px) {
  #main .snej-pdf-range__card figcaption { grid-template-columns: 1fr; }
  #main .spec-card-quote { grid-column: 1; grid-row: auto; }
}
