:root {
  --ink: #f8f2ea;
  --muted: #d8cec3;
  --paper: #f8f5ef;
  --panel: rgba(17, 16, 15, 0.76);
  --brick: #8be45c;
  --brick-dark: #61bd37;
  --jade: #9d62d3;
  --gold: #d5a43c;
  --line: rgba(255, 252, 245, 0.2);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.86) 0%, rgba(5, 5, 5, 0.5) 48%, rgba(5, 5, 5, 0.84) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.16) 0%, rgba(5, 5, 5, 0.78) 100%),
    url("assets/hero-backdrop.jpg") center 58% / cover fixed no-repeat;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-shell {
  min-height: 100vh;
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(340px, 1.14fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 42px 0;
}

.hero__copy {
  max-width: 520px;
}

.brand-logo {
  display: block;
  width: min(300px, 100%);
  margin: 0 0 18px;
  border: 1px solid rgba(255, 252, 245, 0.24);
  border-radius: 8px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
}

.eyebrow,
.showcase__topline p,
.slide__label {
  margin: 0;
  color: var(--brick);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 11ch;
  margin: 12px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6vw, 4.9rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}

.intro {
  max-width: 35rem;
  margin: 0;
  color: #eee4db;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.55;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.72);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.button:hover,
.button:focus-visible,
.icon-button:hover,
.icon-button:focus-visible,
.thumb:hover,
.thumb:focus-visible {
  transform: translateY(-2px);
}

.button--primary {
  color: #10100f;
  background: var(--brick);
  border-color: rgba(139, 228, 92, 0.7);
  box-shadow: 0 12px 30px rgba(139, 228, 92, 0.2);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--brick-dark);
}

.button--secondary {
  color: #fffdfa;
  background: rgba(255, 253, 250, 0.12);
  backdrop-filter: blur(12px);
}

.showcase {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.showcase__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 16px 12px;
}

.showcase__controls {
  display: flex;
  gap: 8px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #fffdfa;
  background: rgba(255, 253, 250, 0.1);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.icon-button span {
  display: block;
  margin-top: -2px;
  font-size: 1.7rem;
  line-height: 1;
}

.slide {
  display: grid;
  grid-template-rows: minmax(310px, 52vh) auto;
  min-height: 560px;
  color: inherit;
  text-decoration: none;
}

.slide img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background:
    linear-gradient(135deg, rgba(139, 228, 92, 0.18), transparent 42%),
    #151412;
}

.slide__details {
  display: grid;
  gap: 9px;
  padding: 18px 20px 22px;
}

.slide__details h2 {
  margin: 0;
  color: #fffdfa;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.slide__details p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.45;
}

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(88px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding: 0 16px 16px;
  scrollbar-width: thin;
}

.thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 7px;
  background: #151412;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.thumb[aria-current="true"] {
  border-color: var(--brick);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    align-content: start;
    min-height: auto;
    padding: 30px 0 24px;
  }

  .hero__copy {
    max-width: 680px;
  }

  h1 {
    max-width: 8ch;
  }

  .brand-logo {
    width: min(310px, 86vw);
  }

  .showcase {
    margin-bottom: 24px;
  }
}

@media (max-width: 520px) {
  .hero {
    width: min(100% - 28px, 1180px);
    gap: 24px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.3rem);
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .slide {
    grid-template-rows: 330px auto;
    min-height: 510px;
  }

  .rail {
    grid-auto-columns: 82px;
  }
}
