/* giuliettaspider1958.com: one stylesheet, no scripts. */

:root {
  --bg: #1b1b1b;          /* the old site's background */
  --panel: #232323;
  --line: #363636;
  --text: #d5d3ce;
  --strong: #f4f2ed;
  --muted: #9c9a95;
  --celeste: #a3c1d7;     /* sampled from the car's paint, Celeste AR 301 */

  --serif: "Bodoni 72", "Bodoni MT", Didot, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --typewriter: "American Typewriter", "Courier New", ui-monospace, monospace;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --wide: 60rem;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--celeste); text-underline-offset: 0.2em; }
a:hover { color: var(--strong); }
:focus-visible { outline: 2px solid var(--celeste); outline-offset: 3px; }

.skip {
  position: absolute; left: -999px; top: 1rem;
  background: var(--strong); color: var(--bg);
  padding: 0.5rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; }

/* Small label above each section */
.label {
  font: 600 0.78rem/1.2 var(--sans);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--celeste);
  margin: 0 0 2rem;
}

/* ---------- Top bar ---------- */

.topbar {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: baseline;
  gap: 0.5rem 1.5rem;
  padding: 1.1rem var(--gutter);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--strong);
  text-decoration: none;
}
.topbar nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; }
.topbar nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.topbar nav a:hover { color: var(--strong); }

/* ---------- Title ---------- */

.hero {
  text-align: center;
  padding: clamp(3.5rem, 11vw, 7.5rem) var(--gutter) clamp(2.5rem, 7vw, 4.5rem);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.7rem, 8.5vw, 6rem);
  line-height: 1;
  color: var(--strong);
  margin: 0;
}
.hero h1 .make {
  display: block;
  font: 600 0.8rem/1 var(--sans);
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--celeste);
  margin-bottom: 1.6rem;
}
.hero h1 .year { display: block; color: var(--celeste); }
.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  margin: 1.6rem 0 0;
}

/* Full-width panoramic photos */
.bleed { margin: 0; }
.bleed img { width: 100%; max-height: 80vh; object-fit: cover; }

/* ---------- Sections ---------- */

.section { padding: clamp(4rem, 10vw, 7rem) var(--gutter); }
.inner { max-width: var(--wide); margin: 0 auto; }

/* Specifications */
.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  column-gap: 3.5rem;
  margin: 0;
}
.specs div,
.register div {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.specs dt,
.register dt {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.specs dd { margin: 0; color: var(--strong); text-align: right; }
.swatch {
  display: inline-block;
  width: 0.8em; height: 0.8em;
  border-radius: 50%;
  background: var(--celeste);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
  margin-right: 0.55em;
  vertical-align: -0.05em;
}
.note {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  line-height: 1.45;
  color: var(--strong);
  max-width: 38rem;
  margin: 3rem 0 0;
}

/* Provenance */
.provenance {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.lead {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.45;
  color: var(--strong);
  margin: 0 0 2.5rem;
}
.register {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--celeste);
  padding: 1.6rem 1.8rem 1rem;
}
.register-title {
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--strong);
  margin: 0 0 0.6rem;
}
.register dl { margin: 0; }
.register div:last-child { border-bottom: 0; }
.register dd { margin: 0; text-align: right; font-family: var(--typewriter); color: var(--strong); }
.ad { margin: 0; }
.ad img { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); }
.ad figcaption {
  margin-top: 1.5rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--strong);
}

/* ---------- Restoration timeline ---------- */

.restoration .inner { max-width: 56rem; }
.restoration h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 6.5vw, 4rem);
  line-height: 1.1;
  color: var(--strong);
  margin: 0 0 3rem;
}
.timeline { list-style: none; margin: 0; padding: 0; }
.step {
  position: relative;
  padding: 0 0 clamp(3rem, 7vw, 4.5rem) clamp(1.25rem, 3vw, 2.25rem);
  border-left: 1px solid var(--line);
}
.step::before {
  content: "";
  position: absolute; left: -5px; top: 0.6rem;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--celeste);
}
.step h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.25;
  color: var(--strong);
  margin: 0 0 1.25rem;
}

/* Photos sit in rows of equal height, so nothing gets cropped.
   Each photo's --ar (width ÷ height) sets its share of the row. */
.row { display: flex; gap: 0.75rem; }
.row + .row { margin-top: 0.75rem; }
.row figure { flex: var(--ar) 1 0; min-width: 0; margin: 0; }
.row.single figure { flex: none; width: min(100%, calc(var(--ar) * 78vh)); }
.row a { display: block; cursor: zoom-in; }
.row img { width: 100%; transition: opacity 0.2s; }
.row a:hover img { opacity: 0.88; }

.continued {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.9rem, 5vw, 3rem);
  color: var(--strong);
  text-align: center;
  margin: 1rem 0 0;
}

/* ---------- Contact & footer ---------- */

.contact { text-align: center; border-top: 1px solid var(--line); }
.contact .label { margin-bottom: 1.25rem; }
.contact p { margin: 0.4rem 0; font-size: 1.15rem; }

.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem var(--gutter) 3rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.75;
  text-align: center;
}
.footer p { max-width: 46rem; margin: 0 auto; }

/* ---------- Page not found ---------- */

.not-found main {
  min-height: 100vh;
  display: grid; place-content: center;
  text-align: center;
  padding: var(--gutter);
}
.not-found h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3.25rem);
  color: var(--strong);
  margin: 0 0 1.5rem;
}

/* ---------- Phones ---------- */

@media (max-width: 760px) {
  .provenance { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .row { flex-direction: column; }
  .row figure,
  .row.single figure { flex: none; width: 100%; }
  .specs dt { white-space: normal; }
}
