@import url("../fonts/fonts.css");

/* =========================================================
   CLASSIC CARS & CULTURE — core design system

   Black stock, chrome trim, white type. The page is the night;
   the only things that catch the light are the mark, the rules
   and the photography. Nothing here is allowed to look printed
   on paper — that language now belongs to the magazine pages.
   ========================================================= */

:root {
  /* The mark and the cover are both cut on pure black. The page has
     to be the same black or you can see the edges of the artwork. */
  --black:        #000000;
  --panel:        #08080a;
  --panel-2:      #0e0f12;

  --white:        #ffffff;
  --text:         #f2f3f5;
  --text-soft:    #a7adb5;
  --text-faint:   #6e747c;

  --rule:         rgba(255, 255, 255, 0.13);
  --rule-strong:  rgba(255, 255, 255, 0.32);

  --silver:       #d9dde2;
  --silver-deep:  #9aa1aa;
  --silver-wash:  rgba(217, 221, 226, 0.10);

  /* the chrome ramp — light, shadow, light again, the way a bumper
     picks up the sky and the road at once */
  --chrome: linear-gradient(
    176deg,
    #ffffff 0%,
    #e6e9ed 14%,
    #9aa1aa 38%,
    #5d646d 50%,
    #c9ced4 62%,
    #ffffff 78%,
    #8f969f 100%
  );

  --display: "Didot", "Bodoni 72", "Bodoni MT", "Playfair Display", "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;

  /* kept for the magazine pages, which are still set as printed matter */
  --mono: "Courier Prime", "Courier New", ui-monospace, monospace;
  --type: "Special Elite", "Courier Prime", "Courier New", monospace;

  --gut: clamp(20px, 5.2vw, 64px);
  --stack: clamp(64px, 13vw, 148px);
  --measure: 60ch;

  --head-h: 64px;

  /* paper grain — only the magazine clippings use it now */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.86' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)' opacity='0.19'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(15px, 3.9vw, 17px);
  font-weight: 300;
  line-height: 1.78;
  letter-spacing: 0.008em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--silver-wash); color: var(--white); }

:focus-visible {
  outline: 1px solid var(--silver);
  outline-offset: 4px;
}

/* ---------------------------------------------------------
   Layout
   --------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: var(--gut);
}

.wrap--narrow { max-width: 760px; }

.section { padding-block: var(--stack); }
.section--tight { padding-block: calc(var(--stack) * 0.55); }

/* alternating stock: a lift so faint it reads as a change of light */
.section--panel { background: var(--panel); }

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* a hairline that catches the light in the middle, like trim */
.rule--chrome {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 12%,
    var(--silver) 50%,
    rgba(255, 255, 255, 0.06) 88%,
    transparent 100%);
  opacity: 0.55;
}

/* ---------------------------------------------------------
   Type
   --------------------------------------------------------- */

.eyebrow {
  font-family: var(--sans);
  font-size: clamp(9.5px, 2.6vw, 11px);
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 1.6em;
  line-height: 1.6;
}

.eyebrow--ink { color: var(--silver); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.004em;
  line-height: 1.12;
  margin: 0 0 0.6em;
  color: var(--white);
  text-wrap: balance;
}

h1 { font-size: clamp(34px, 9vw, 68px); }
h2 { font-size: clamp(27px, 6.8vw, 46px); }
h3 { font-size: clamp(17px, 4.4vw, 23px); }

p { margin: 0 0 1.4em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(17px, 4.6vw, 23px);
  line-height: 1.62;
  letter-spacing: 0;
  color: var(--text);
}

.dim   { color: var(--text-soft); }
.faint { color: var(--text-faint); }

/* the accent formerly known as gold */
.gold,
.silver { color: var(--silver); }

.caps {
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* polished type — use sparingly, it only works at size */
.chrome {
  background-image: var(--chrome);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.numeral {
  font-family: var(--display);
  font-style: italic;
  color: var(--silver);
  border-bottom: 0;
  padding-bottom: 0;
}

/* ---------------------------------------------------------
   The mark. The stacked C is cut on black, so it only ever
   sits on black — never on a panel, never on a photograph.
   --------------------------------------------------------- */

.mark {
  display: block;
  width: var(--mark-w, 34px);
  height: auto;
  flex: none;
}

/* the corner signature: a small mark, set into the rule of a section */
.corner-mark {
  position: absolute;
  top: clamp(18px, 4vw, 34px);
  right: var(--gut);
  width: clamp(26px, 5vw, 38px);
  height: auto;
  opacity: 0.55;
  pointer-events: none;
}

/* ---------------------------------------------------------
   Header / navigation
   --------------------------------------------------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--rule);
}

.site-head__bar {
  height: var(--head-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72em;
  text-decoration: none;
}

.brand .mark { --mark-w: 32px; }

.brand__full {
  font-family: var(--display);
  color: var(--white);
  font-size: 12.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}

@media (max-width: 460px) { .brand__full { display: none; } }

.nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 34px); }

.nav a {
  text-decoration: none;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.nav a:hover { color: var(--white); }
.nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--silver); }

.nav__toggle {
  display: none;
  appearance: none;
  background: none;
  border: 1px solid var(--rule-strong);
  color: var(--text);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding: 9px 13px;
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav__toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--head-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--black);
    border-bottom: 1px solid var(--rule);
    padding: 8px var(--gut) 26px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav[data-open="true"] { opacity: 1; transform: none; pointer-events: auto; }
  .nav a {
    font-size: 13px;
    letter-spacing: 0.24em;
    padding-block: 19px;
    border-bottom: 1px solid var(--rule);
  }
  .nav a:last-child { border-bottom: 0; }
  .nav a[aria-current="page"] { border-bottom-color: var(--rule); }
  .nav a[aria-current="page"]::before { content: "— "; color: var(--silver); }
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  background: transparent;
  border: 1px solid var(--rule-strong);
  padding: 17px 30px;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
  min-height: 50px;
}

.btn:hover { background: var(--white); color: var(--black); border-color: var(--white); }

/* the one that catches the light */
.btn--solid {
  background: var(--chrome);
  background-size: 100% 220%;
  background-position: 50% 34%;
  color: #0a0a0a;
  border-color: transparent;
  font-weight: 500;
  transition: background-position 0.4s ease, color 0.22s ease;
}
.btn--solid:hover { background-position: 50% 70%; color: #000; }

.btn--ghost { border-color: var(--rule); color: var(--text-soft); }
.btn--ghost:hover { border-color: var(--white); background: transparent; color: var(--white); }

.btn--block { width: 100%; }

/* ---------------------------------------------------------
   Newsprint clipping — retired from the site, still the house
   device inside the magazine. Left intact so the printed pages
   keep working; see assets/js/site.js for the scissor line.
   --------------------------------------------------------- */

.clip {
  display: inline-block;
  filter:
    drop-shadow(0 1px 1px rgba(0, 0, 0, 0.5))
    drop-shadow(0 8px 14px rgba(0, 0, 0, 0.4));
  transform: rotate(var(--rot, 0deg));
  transform-origin: 50% 50%;
}

.clip__paper {
  display: block;
  position: relative;
  background-color: #f7f4ec;
  background-image:
    linear-gradient(178deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 235, 223, 0) 42%),
    linear-gradient(2deg, rgba(203, 195, 178, 0.42) 0%, rgba(240, 235, 223, 0) 30%),
    var(--grain);
  background-size: auto, auto, 180px 180px;
  padding: 0.42em 0.62em 0.5em;
  font-family: var(--type);
  color: #17130f;
  line-height: 1.06;
  white-space: nowrap;
  letter-spacing: 0.005em;
}

.clip__paper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grain);
  opacity: 0.5;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.clip--wrap .clip__paper { white-space: normal; }

.clip--news .clip__paper {
  background-color: #f1eee5;
  color: #12100d;
}

/* ---------------------------------------------------------
   Imagery. Photography arrives already cut onto black, so it
   joins the page instead of sitting in a box on it.
   --------------------------------------------------------- */

.crop-top {
  position: relative;
  overflow: hidden;
}

.crop-top > img,
.crop-top > picture > img {
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 6%, #000 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 6%, #000 100%);
}

.bleed {
  width: 100vw;
  max-width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.site-foot {
  border-top: 1px solid var(--rule);
  padding-block: clamp(48px, 9vw, 84px);
  margin-top: var(--stack);
  background: var(--black);
}

.site-foot__grid {
  display: grid;
  gap: 38px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .site-foot__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 52px; }
}

.site-foot__brand .mark { --mark-w: 46px; margin-bottom: 18px; }

.site-foot h3 {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.8em;
  font-weight: 400;
}

/* the house name in the footer is set, not labelled */
.site-foot__name {
  font-family: var(--display);
  font-size: clamp(15px, 4vw, 19px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
}

.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 0.85em; font-size: 13.5px; }
.site-foot a { text-decoration: none; color: var(--text-soft); transition: color 0.18s ease; }
.site-foot a:hover { color: var(--white); }

.colophon {
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 11px;
  line-height: 1.9;
  color: var(--text-faint);
  letter-spacing: 0.08em;
}

.colophon p { max-width: none; margin: 0; }

/* ---------------------------------------------------------
   Utilities
   --------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js [data-reveal="in"] { opacity: 1; transform: none; }

.stack-sm > * + * { margin-top: 14px; }
.center { text-align: center; }
.center p { margin-inline: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
