/* =========================================================
   CSL – Crafting Series Lifestyle
   Minimal · premium · earthy
   ========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --brown: #3b241c;
  --brown-2: #6b4a38;
  --bg: #f8f6f1;
  --line: rgba(59, 36, 28, 0.12);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(20px, 5vw, 80px);
  --radius: 1.5rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--brown);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

img,
video {
  display: block;
  max-width: 100%;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--brown);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  z-index: 10;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

/* ---------------------------------------------------------
   NAVBAR – logo locked to the exact horizontal centre
   --------------------------------------------------------- */
.navbar {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(76px, 9vw, 112px);
  padding: env(safe-area-inset-top) var(--gutter) 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brown);
  text-decoration: none;
}

.logo img {
  height: clamp(70px, 5.6vw, 88px);
  width: auto;
  max-width: 60vw;
  object-fit: contain;
}

.logo-text {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4.2vw, 46px);
  letter-spacing: 0.34em;
  padding-left: 0.34em; /* cancels trailing letter-spacing → true optical centre */
  line-height: 1;
}



/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  height: 100vh;
  background: var(--brown-2); /* shown until the banner loads */
  overflow: hidden;
}

.hero picture,
.hero img {
  width: 100%;
  height: 100%;
}

.hero img {
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
}

/* ---------------------------------------------------------
   VIDEO SHOWCASE
   --------------------------------------------------------- */

.showcase {
  padding: clamp(72px, 5vw, 140px) var(--gutter) clamp(80px, 11vw, 160px);
  text-align: center;
  isolation: isolate;
  position: relative;
}

.showcase::before {
  content: "";
  position: absolute;
  inset: 0; /* Fills the entire container (top, right, bottom, left: 0) */
  background: url("assets/bg-transp.jpg"), url(assets/bg-temp-w.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.1; /* Adjust transparency (0.0 to 1.0) */
  z-index: -1; /* Places the image behind your text */
}

.showcase h2 {
  /* margin: 0 auto; */
  text-align: start;
  max-width: 30em;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(3em, 6vw, 8rem);
  line-height: 1;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.showcase .lead {
  margin: 1em 0 0;
  /* max-width: 34em; */
  text-align: start;
  font-size: clamp(0.99em, 1.35vw, 1.44em);
  color: var(--brown-2);
  text-wrap: balance;
  line-height: 1.55;
}

.videos {
  list-style: none;
  margin: clamp(44px, 6vw, 88px) auto 0;
  padding: 0;
  max-width: 1240px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 3.5vw, 36px);
}

.video-card {
  position: relative;
  display: block;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  background: var(--brown);
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  transition: opacity 0.35s ease;
}

.video-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none; /* the whole card acts as the link */
}

footer {
  text-align: center;
  width: 100%;
  background: var(--brown);
}

footer p {
  font-size: clamp(0.99em, 1.5rem, 0.8em);
  color: var(--bg);
}

@media (hover: hover) {
  .video-card:hover {
    opacity: 0.92;
  }
}

.video-card:focus-visible {
  outline: 2px solid var(--brown-2);
  outline-offset: 4px;
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

/* Large desktop */
@media (min-width: 1600px) {
  .hero {
    aspect-ratio: 24 / 9;
  }
}

/* Tablet */
@media (max-width: 900px) {
  .hero {
    aspect-ratio: 16 / 9;
    max-height: none;
  }
  .videos {
    gap: 14px;
  }
}

/* Mobile – stacked, centred, no horizontal overflow */
@media (max-width: 640px) {
  .hero {
    aspect-ratio: 4 / 5;
    min-height: 0;
    max-height: 75vh;
  }
  .videos {
    grid-template-columns: 1fr;
    max-width: 420px;
    gap: 20px;
  }
}

/* Very small phones */
@media (max-width: 360px) {
  .logo-text {
    letter-spacing: 0.26em;
    padding-left: 0.26em;
  }
}

/* Short landscape phones */
@media (max-height: 480px) and (orientation: landscape) {
  .navbar {
    height: 64px;
  }
  .hero {
    max-height: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .video-card {
    transition: none;
  }
}
