/* MC Experience archive and MC for Goodwool (lib/experience.js): the site's anthracite palette, Barlow Condensed
   titles and Inter text, red rule of the eyebrows. Pages of their own, without the homepage's scripts. */
:root {
  color-scheme: dark;
  --site-bg: #242424; --surface: #2e2e2e; --surface-deep: #1c1c1c;
  --text: #f3f3f0; --text-secondary: #c4c5c3; --text-muted: #b0b2b1;
  --red: #e32630; --line: rgb(255 255 255 / 13%); --line-strong: rgb(255 255 255 / 24%);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--site-bg); color: var(--text); font-family: Inter, Arial, sans-serif; font-size: 16px; line-height: 1.65; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }


/* The site header sits over the top of the page (position: absolute, 100px), as on the homepage. */
.xp-main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 170px 0 96px; }
.xp-eyebrow { font-size: .8125rem; letter-spacing: .19em; font-weight: 500; color: var(--text-secondary); margin: 0 0 18px; text-transform: uppercase; }
.xp-eyebrow a { text-decoration: none; }
.xp-rule { display: inline-block; background: var(--red); width: 32px; height: 2px; margin-right: 12px; vertical-align: middle; }
h1 { font-family: 'Barlow Condensed', Arial Narrow, sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1; margin: 0 0 36px; text-wrap: balance; }

.xp-cover { margin: 0 0 40px; }
.xp-cover img { width: 100%; height: auto; max-height: 78vh; object-fit: cover; }
.xp-text { max-width: 760px; color: var(--text-secondary); font-size: 1.0625rem; }
.xp-text p { margin: 0 0 1.1em; }
.xp-button { display: inline-block; margin-top: 8px; padding: 13px 22px; border: 1px solid var(--line-strong); text-decoration: none; color: var(--text); font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; }
.xp-button:hover { border-color: var(--text); }

.xp-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 10px; margin-top: 56px; }
.xp-photo { display: block; overflow: hidden; background: var(--surface-deep); aspect-ratio: 3 / 2; }
.xp-photo.is-wide { grid-column: span 2; grid-row: span 2; }
.xp-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.xp-photo:hover img { transform: scale(1.03); }
.xp-back { margin-top: 56px; font-size: .875rem; letter-spacing: .1em; text-transform: uppercase; }

.xp-lead { max-width: 640px; color: var(--text-secondary); margin: -16px 0 44px; }
.xp-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 22px; }
.xp-cards a { display: grid; gap: 10px; text-decoration: none; }
.xp-card-photo { aspect-ratio: 3 / 2; background: var(--surface-deep); overflow: hidden; }
.xp-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.xp-cards a:hover img { transform: scale(1.03); }
.xp-card-date { font-size: .75rem; letter-spacing: .15em; color: var(--text-muted); text-transform: uppercase; }
.xp-card-title { font-family: 'Barlow Condensed', Arial Narrow, sans-serif; font-size: 1.6rem; line-height: 1.05; text-transform: uppercase; font-weight: 600; }

.xp-footer { border-top: 1px solid var(--line); padding: 36px max(20px, 4vw) 44px; display: grid; gap: 8px; font-size: .875rem; color: var(--text-secondary); }
.xp-footer a { text-decoration: none; }
.xp-legal { color: var(--text-muted); font-size: .8125rem; }

@media (max-width: 900px) { .xp-gallery, .xp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .xp-main { padding-top: 130px; }
  .xp-gallery, .xp-cards { grid-template-columns: minmax(0, 1fr); }
  .xp-photo.is-wide { grid-column: auto; grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) { .xp-photo img, .xp-card-photo img { transition: none; } }

/* MC for Goodwool: banner with the title over the photo, the cars two photos each, the three Goodwool points. */
.gw-hero { position: relative; margin: 0 0 34px; min-height: 360px; display: grid; align-items: end; overflow: hidden; background: var(--surface-deep); }
.gw-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gw-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(20 20 20 / 82%), rgb(20 20 20 / 10%) 60%); }
.gw-hero > div { position: relative; z-index: 1; padding: 0 36px 30px; }
.gw-hero h1 { margin: 0; font-size: clamp(3rem, 8vw, 6.2rem); }
.gw-claim { font-family: 'Barlow Condensed', Arial Narrow, sans-serif; font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: .06em; text-align: center; margin: 0 0 54px; }
.gw-cars { display: grid; gap: 40px; }
.gw-car h2, .gw-points h2 { font-family: 'Barlow Condensed', Arial Narrow, sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 1.5rem; margin: 0 0 12px; }
.gw-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gw-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; margin: 80px 0 0; padding-top: 44px; border-top: 1px solid var(--line); }
.gw-points p { color: var(--text-secondary); margin: 0 0 12px; }
.gw-points .gw-lead { color: var(--text); font-weight: 500; }
.gw-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 56px; }
.gw-actions .xp-button { margin-top: 0; }
@media (max-width: 900px) { .gw-points { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .gw-hero { min-height: 260px; } .gw-hero > div { padding: 0 18px 20px; } .gw-pair { grid-template-columns: minmax(0, 1fr); } }

/* Goodwool partnership: the call to ask for a made-to-measure cover. */
.gw-partner { margin-top: 72px; padding: 40px; background: var(--surface); border-left: 3px solid var(--red); }
.gw-partner h2 { font-family: 'Barlow Condensed', Arial Narrow, sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.05; margin: 0 0 14px; }
.gw-partner > p:not(.xp-eyebrow):not(.gw-actions) { max-width: 640px; color: var(--text-secondary); margin: 0; }
.gw-partner .gw-actions { margin-top: 26px; }
.xp-button.gw-primary { background: var(--text); color: var(--site-bg); border-color: var(--text); }
.xp-button.gw-primary:hover { background: transparent; color: var(--text); }
.gw-links { margin-top: 28px; }
@media (max-width: 600px) { .gw-partner { padding: 26px 20px; } }

/* Gallery photos open enlarged on the page (public/xp-lightbox.js). */
.xp-photo { cursor: zoom-in; }
.xp-lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(14 14 14 / 96%); color: #f4f4f0; overflow: hidden; }
.xp-lightbox::backdrop { background: rgb(0 0 0 / 70%); }
.xp-lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 64px 84px 24px; box-sizing: border-box; }
.xp-lightbox img { max-width: 100%; max-height: calc(100dvh - 130px); object-fit: contain; display: block; }
.xp-lightbox figcaption { font-size: .8125rem; letter-spacing: .12em; color: #b9bbbe; }
.xp-lightbox button { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid #ffffff38; background: rgb(20 20 20 / 60%); color: inherit; cursor: pointer; transition: background .2s, border-color .2s; }
.xp-lightbox button:hover, .xp-lightbox button:focus-visible { background: #f4f4f0; color: #111; border-color: #f4f4f0; outline: none; }
.xp-lightbox button svg { width: 22px; height: 22px; }
.xp-lb-close { top: 16px; right: 16px; }
.xp-lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.xp-lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.xp-lightbox button[hidden] { display: none; }
html.xp-lb-open { overflow: hidden; }
@media (max-width: 700px) {
  .xp-lightbox figure { padding: 64px 12px 20px; }
  .xp-lb-prev, .xp-lb-next { top: auto; bottom: 18px; transform: none; }
  .xp-lb-prev { left: 12px; } .xp-lb-next { right: 12px; }
  .xp-lightbox img { max-height: calc(100dvh - 170px); }
}
