/* The Witcher Visual Album — global/base styles.
   Existing selector order is preserved to avoid changing the page's appearance. */

:root {
  --ink: #e9edf0;
  --muted: #b5c0c7;
  --bg: #10171b;
  --panel: #182328;
  --panel2: #202d33;
  --teal: #6fc1c5;
  --silver: #cbd3d7;
  --line: #33454c;
  --gold: #c7a76c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(ellipse at top, #1d343b 0, #10171b 45%, #0b1013 100%);
  color: var(--ink);
  font: 16px/1.55 "Segoe UI", Arial, sans-serif;
}

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

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

.hero {
  padding: 64px 24px 42px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(12, 20, 24, .72), rgba(28, 55, 61, .48)),
    url("../assets/baner.webp") center/cover no-repeat;
}

.kicker {
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
  margin: 12px 0;
  color: #f5f6f7;
  letter-spacing: .04em;
}

.subtitle {
  max-width: 780px;
  margin: 16px auto 0;
  color: #e0e6e9;
  font-size: 18px;
  font-style: italic;
}

.hero-note {
  max-width: 780px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 14px;
}

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(12, 18, 21, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

nav {
  max-width: 1400px;
  margin: auto;
  padding: 8px 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  overflow: visible;
  white-space: normal;
}

nav a {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--silver);
  white-space: nowrap;
}

nav a:hover {
  border-color: var(--teal);
  color: white;
}

main {
  max-width: 1400px;
  margin: auto;
  padding: 20px 22px 70px;
}

.album-section {
  padding-top: 20px;
  margin-top: 25px;
  scroll-margin-top: 110px;
}

main>.album-section:first-child {
  margin-top: -40px;
}

.category-anchor,
[id] {
  scroll-margin-top: 110px;
}

.section-heading {
  display: flex;
  align-items: end;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.section-heading h2 {
  font-size: clamp(21px, 2.4vw, 25px);
  margin: 0;
  flex: 1;
  color: #f3f6f7;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 18px;
}

.card {
  overflow: hidden;
  background: linear-gradient(180deg, #1c292e, #151e22);
  border: 1px solid #31444a;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
  transition: transform .18s, border-color .18s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #5b9298;
}

.image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 270px;
  background: transparent;
  overflow: hidden;
  text-decoration: none;
}

.image-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 10px;
  display: block;
  background: transparent;
}

.fallback {
  display: none;
  position: absolute;
  inset: 0;
  place-content: center;
  text-align: center;
  color: #a7b8be;
  letter-spacing: .08em;
  font-size: 12px;
  background: repeating-linear-gradient(135deg, #172126, #172126 12px, #1c292e 12px, #1c292e 24px);
}

.card-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tag {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;

  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: #10171b;
  background: var(--teal);
  padding: 5px 7px;
  border-radius: 2px;
  margin-bottom: 10px;
}

h3 {
  font-size: 17px;
  line-height: 1.3;
  margin: 0 0 9px;
  color: #f3f5f6;
}

.card p {
  font-size: 14px;
  color: #c0cbd0;
  margin: 0 0 14px;
  flex: 1;
}

.source {
  font-size: 11px;
  line-height: 1.5;
  color: #9aabb1;
  border-top: 1px solid #2d3d43;
  padding-top: 9px;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.more {
  display: block;
  border-top: 1px solid #2d3d43;
  padding-top: 8px;
  font-size: 13px;
  text-decoration: none;
  margin-top: 5px;
  font-weight: 700;
}

.more:hover {
  text-decoration: underline;
}

.important-info,
.release-date {
  font-size: 12px;
  color: #b9c6cb;
  line-height: 1.45;
  margin: 0;
  padding: 8px 0 4px;
  border-top: 1px solid #2d3d43;
}

.release-date strong {
  color: var(--gold);
  font-weight: 700;
}

.important-info strong {
  color: #60a884;
  font-weight: 700;
}

.todo-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 9px;
  border: 1px solid #8f774b;
  border-radius: 3px;
  background: rgba(197, 166, 109, 0.12);
  color: #c5a66d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.series-heading {
  margin: 22px 0 12px;
  padding: 12px 16px 10px;
  border-left: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(28, 41, 46, .65);
  border-radius: 6px;
}

.series-heading h3 {
  font-size: 16px;
  letter-spacing: .06em;
  margin: 0 0 6px;
  color: #d7f0ef;
}

.series-heading p {
  font-size: 13px;
  line-height: 1.6;
  color: #b5c5ca;
  margin: 0 0 2px;
  max-width: none;
}

.section-intro {
  color: var(--muted);
  font-size: 14px;
  max-width: 900px;
  margin: -4px 0 22px;
  line-height: 1.65;
}

footer {
  border-top: 1px solid var(--line);
  padding: 25px;
  text-align: center;
  color: #9aabb1;
  font-size: 13px;
}

/* Wide cinematic artwork should read as a video thumbnail, not a book cover. */
#game-trailers .image-link {
  height: auto;
  aspect-ratio: 16 / 9;
}

#game-trailers .image-link img {
  object-fit: cover;
  padding: 0;
}

/* Soundtrack artwork is usually square; preserve the full image without cropping. */
#music .image-link {
  height: auto;
  aspect-ratio: 1 / 1;
  max-height: 270px;
}

#music .image-link img {
  object-fit: contain;
  padding: 10px;
}

@media (max-width: 760px) {
  main {
    padding: 16px 14px 55px;
  }

  .section-heading {
    align-items: start;
    flex-wrap: wrap;
    gap: 6px 12px;
  }

  .section-heading h2 {
    flex-basis: 100%;
    order: 2;
  }

  .section-heading .eyebrow {
    order: 1;
  }

  .section-heading .count {
    order: 3;
    margin-left: auto;
  }

  .album-section {
    scroll-margin-top: 130px;
  }

  .grid {
    gap: 14px;
  }

  .card-body {
    padding: 13px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 42px 18px;
  }

  .subtitle {
    font-size: 16px;
  }

  .hero-note {
    font-size: 14px;
  }

  nav {
    justify-content: flex-start;
    padding: 7px 10px;
    gap: 5px;
  }

  nav a {
    font-size: 11px;
    padding: 5px 7px;
  }

  main {
    padding: 12px;
  }

  .image-link {
    height: 230px;
  }

  #game-trailers .image-link {
    height: auto;
  }

  #music .image-link {
    height: auto;
  }

  .tag {
    font-size: 10px;
  }

  .source {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card {
    transition: none;
  }

  .card:hover {
    transform: none;
  }
}

@media print {
  .nav-wrap {
    position: static;
  }

  .card {
    break-inside: avoid;
  }
}

/* v22: mobile navigation hides while scrolling down and reappears while scrolling up */
.nav-wrap {
  transition: transform .22s ease;
  will-change: transform;
}

@media (max-width: 760px) {
  .nav-wrap.nav-hidden {
    transform: translateY(-110%);
  }
}

/* Featured primary-source quotation in the interviews section */
.featured-quote {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--accent, #b5a06a);
  background: rgba(127, 127, 127, 0.08);
  border-radius: 0 0.5rem 0.5rem 0;
  font-size: 0.94rem;
  line-height: 1.65;
}

.featured-quote p {
  margin: 0;
}

.featured-quote .quote-note {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.82rem;
  opacity: 0.78;
}

/* Witcher Discoveries: teaser cards and long-form articles */
.discoveries-grid {
  margin-bottom: 30px;
}

.discovery-article-list {
  max-width: 920px;
  margin: 0 auto;
}

.discovery-article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .02);
  margin-top: 12px;
  overflow: hidden;
}

.discovery-article>summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

.discovery-article>summary::-webkit-details-marker {
  display: none;
}

.discovery-article[open]>summary {
  border-bottom: 1px solid var(--line);
}

.article-toggle {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .04em;
  white-space: nowrap;
}

.discovery-article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 26px 30px;
}

.discovery-article-body p {
  line-height: 1.8;
}

.discovery-article-body h4 {
  margin: 28px 0 8px;
  color: var(--gold);
  font-size: 16px;
}

.discovery-article-body .article-lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
}

.article-draft-note {
  color: var(--muted);
  font-size: 12px;
  font-style: italic;
}

.polish-editions-heading {
  margin-top: 36px !important;
  margin-bottom: 18px;
  padding-top: 13px;
}

.polish-editions-grid {
  margin-bottom: 34px;
}

.polish-exclusive-heading {
  margin-top: 34px;
}

@media (max-width: 600px) {
  .discovery-article>summary {
    padding: 14px 12px;
    font-size: 10px;
  }

  .discovery-article-body {
    padding: 18px 15px 24px;
  }

  .discovery-article-body .article-lead {
    font-size: 16px;
  }

  .article-toggle {
    font-size: 10px;
  }
}


/* International editions */
.international-editions {
  margin-top: 34px;
}

.international-editions-grid {
  margin-top: 20px;
}

.international-edition-card .card-image {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.international-edition-card .card-content {
  padding: 18px;
}

.international-edition-card h4 {
  margin: 8px 0;
}

.international-edition-card p {
  line-height: 1.65;
}

/* Discovery articles: full-width panels, readable text measure */
.discovery-article-list {
  max-width: none;
  width: 100%;
  margin: 0;
}

.discovery-article {
  width: 100%;
}

.discovery-article-body {
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px clamp(20px, 4vw, 56px) 38px;
}

.discovery-article-body>* {
  max-width: 820px;
}

.discovery-article-body>.article-wide,
.discovery-article-body>.article-links {
  max-width: none;
}

.discovery-article-body .article-lead {
  max-width: 900px;
}

.discovery-video-links {
  display: grid;
  gap: 10px;
  margin: 14px 0 24px;
  padding: 0;
  list-style: none;
}

.discovery-video-links a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

/* The Witcher Visual Album — subtle petrol scrollbar */

html {
  scrollbar-color: #33454C #111719;
  scrollbar-width: auto;
}

::-webkit-scrollbar {
  width: 15px;
  height: 15px;
}

@media (max-width: 760px) {
  html {
    scrollbar-width: thin;
  }

  ::-webkit-scrollbar {
    width: 9px;
    height: 9px;
  }
}

::-webkit-scrollbar-track {
  background: #111719;
}

::-webkit-scrollbar-thumb {
  background: #33454C;
  border: 2px solid #111719;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #435960;
}

::-webkit-scrollbar-corner {
  background: #111719;
}