/* Adrenaline Addict — brand palette pulled from the original artwork:
   navy #2b3357 (tees/labels), steel blue-gray, khaki accent, signal yellow. */

:root {
  --bg: #10131f;
  --bg-raised: #181d2e;
  --ink: #e8ebf4;
  --ink-dim: #9aa3bd;
  --navy: #2b3357;
  --steel: #6b7794;
  --accent: #f2d21f;
  --line: #2a3049;
  --max: 72rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ink); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem clamp(1rem, 4vw, 2.5rem);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  text-decoration: none;
}

.brand .mark {
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.05em;
}

.brand .wordmark {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.8rem;
  color: var(--ink-dim);
}

.site-nav {
  display: flex;
  gap: clamp(0.8rem, 2.5vw, 1.6rem);
}

.site-nav a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: var(--ink-dim);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

@media (max-width: 40rem) {
  .site-header { justify-content: center; flex-wrap: wrap; row-gap: 0.2rem; }
  .brand .wordmark { display: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1rem;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

/* The swirl colorway sheet, blurred and crushed to pure texture. */
.hero::before {
  content: "";
  position: absolute;
  inset: -3rem; /* hide the blur's soft edges */
  z-index: -1;
  background: url("../../images/bg_swirl.jpg") center / cover no-repeat;
  filter: blur(22px) brightness(0.55) saturate(1.4);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 110%, rgba(43, 51, 87, 0.5), transparent 60%),
    linear-gradient(rgba(16, 19, 31, 0.88), rgba(16, 19, 31, 0.97));
}

.hero-mark {
  margin: 0;
  font-weight: 900;
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--ink);
  text-shadow: 0 2px 0 #000, 0 0 60px rgba(107, 119, 148, 0.45);
}

.hero h1 {
  margin: 1rem 0 0;
  font-size: clamp(0.85rem, 3.4vw, 1.9rem);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: clamp(0.18em, 1.2vw, 0.75em);
  text-indent: clamp(0.18em, 1.2vw, 0.75em); /* balances the letter-spacing tail */
  white-space: nowrap;
}

.tagline {
  margin: 1.4rem 0 0.4rem;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-style: italic;
  color: var(--accent);
}

.est {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.hero-cta {
  display: inline-block;
  margin-top: 2.4rem;
  padding: 0.75rem 1.6rem;
  border: 1px solid var(--steel);
  border-radius: 2px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--ink);
  transition: background 0.2s, border-color 0.2s;
}

.hero-cta:hover { background: var(--navy); border-color: var(--navy); }

/* ---------- sections ---------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 2.5rem);
}

.section.alt {
  max-width: none;
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section.alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }

.section h2 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 300;
}

.section h2::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 3px;
  margin-top: 0.8rem;
  background: var(--accent);
}

.section-intro {
  color: var(--ink-dim);
  max-width: 46rem;
  margin: 1.2rem auto 0 0;
}

/* ---------- galleries ---------- */

.grid {
  display: grid;
  gap: 1.4rem;
  margin-top: 2.4rem;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}

.grid figure {
  margin: 0;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.section.alt .grid figure { background: var(--bg); }

.grid figure:hover { transform: translateY(-3px); border-color: var(--steel); }

.grid a { display: block; background: #fff; }

.grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  padding: 0.6rem;
}

.grid.marks img { aspect-ratio: 3 / 2; }

.grid figcaption {
  padding: 0.9rem 1rem 1rem;
  border-top: 1px solid var(--line);
}

.grid figcaption strong {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.grid figcaption span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--ink-dim);
}

/* ---------- history ---------- */

.history {
  display: grid;
  gap: 2.5rem;
  margin-top: 2.4rem;
  grid-template-columns: 1.2fr 1fr;
  align-items: start;
}

@media (max-width: 46rem) {
  .history { grid-template-columns: 1fr; }
}

.history-text p { margin: 0 0 1.2em; color: var(--ink-dim); }
.history-text strong, .history-text em { color: var(--ink); }

.history-photos { display: grid; gap: 1.4rem; }

.history-photos figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.history-photos figcaption {
  padding: 0.6rem 0.9rem;
  font-size: 0.8rem;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

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

.site-footer {
  text-align: center;
  padding: 3rem 1rem 3.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-dim);
  font-size: 0.85rem;
}

.foot-mark {
  margin: 0 0 0.8rem;
  font-weight: 900;
  font-size: 2rem;
  color: var(--steel);
}

.site-footer a { color: var(--ink-dim); }
.site-footer a:hover { color: var(--ink); }

/* ---------- lightbox ---------- */

#lightbox {
  border: none;
  border-radius: 4px;
  padding: 0;
  background: #fff;
  max-width: min(92vw, 64rem);
  max-height: 92vh;
}

#lightbox::backdrop { background: rgba(5, 7, 14, 0.85); backdrop-filter: blur(3px); }

#lightbox img {
  max-width: min(92vw, 64rem);
  max-height: 92vh;
  object-fit: contain;
}

#lightbox-close {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 2.2rem;
  height: 2.2rem;
  border: none;
  border-radius: 50%;
  background: rgba(16, 19, 31, 0.75);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
