/* Renault Master camper — plain CSS, no external fonts or CDNs.
   Light page tinted toward the van's own Australia Post red. */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell,
    "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #241a1b;
  background: #fbeae8;
}

a {
  color: #9e0d17;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: #74090f;
}

a:focus-visible {
  outline: 2px solid #d5121f;
  outline-offset: 2px;
}

.wrap {
  max-width: 58rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

/* ---- header ---- */

header.site-header {
  position: relative;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  text-align: center;
}

/* The rule runs the full width of the window, not just the text column. */
header.site-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100vw;
  height: 3px;
  margin-left: -50vw;
  background: #d5121f;
}

header.site-header h1 {
  margin: 0 0 0.35rem;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

header.site-header .tagline {
  margin: 0 auto;
  max-width: 36rem;
  color: #6b585a;
  font-size: 0.95rem;
}

nav.site-nav {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  justify-content: center;
  font-size: 0.9rem;
}

/* ---- text ---- */

main h2 {
  margin: 2.75rem 0 0.85rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #8e0c15;
}

/* No rule or bar above headings: the short bars read as stray lines rather
   than as section markers, so the headings carry themselves on colour. */

main h3 {
  margin: 1.9rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
}

main p,
main li {
  max-width: 40rem;
}

main p {
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.05rem;
}

.meta {
  color: #6b585a;
  font-size: 0.9rem;
}

ul {
  padding-left: 1.15rem;
}

li {
  margin-bottom: 0.35rem;
}

/* ---- video ---- */

.stage {
  max-width: 46rem;
  margin: 0 0 1rem;
  background: #241a1b;
  border: 1px solid #c58f8b;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(213, 18, 31, 0.18),
    0 3px 10px rgba(60, 12, 16, 0.18),
    0 18px 40px rgba(60, 12, 16, 0.22);
}

.stage video {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- specification table ---- */

.specs {
  width: 100%;
  max-width: 40rem;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 0 0 1rem;
}

.specs th,
.specs td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 0.75rem 0.5rem 0;
  border-bottom: 1px solid #eecfcc;
}

.specs th {
  width: 12rem;
  font-weight: 600;
  color: #6b585a;
  white-space: nowrap;
}

/* ---- photographs ---- */

/* Two even columns on wide screens so groups of two and four land square,
   one column on narrow. Fixed tracks rather than auto-fit: the groups vary
   in size and auto-fit was stranding a single tile on its own row. */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

/* Three-up for the finished exterior shots. */
.gallery.wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 640px) {
  .gallery,
  .gallery.wide {
    grid-template-columns: 1fr;
  }
}

figure.shot {
  margin: 0;
}

figure.shot a {
  display: block;
  border: 1px solid #e0bcb8;
  border-radius: 4px;
  overflow: hidden;
  background: #fff7f6;
  line-height: 0;
}

figure.shot a:hover {
  border-color: #d5121f;
}

/* 3:2 matches the camera the photographs came off, so the tile frame crops
   almost nothing. A 4:3 frame sliced captions that are burnt into some of
   the originals, cutting them mid-word. */
figure.shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

figure.shot figcaption {
  margin-top: 0.4rem;
  color: #6b585a;
  font-size: 0.85rem;
  line-height: 1.45;
}

/* ---- footer ---- */

footer.site-footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eecfcc;
  color: #6b585a;
  font-size: 0.85rem;
}

footer.site-footer p {
  margin: 0 0 0.4rem;
}

@media (max-width: 480px) {
  .wrap {
    padding: 1rem 0.9rem 2.5rem;
  }

  header.site-header h1 {
    font-size: 1.4rem;
  }

  .specs th {
    width: 7.5rem;
    white-space: normal;
  }
}
