:root {
  --bg: #252423;
  --panel: #252423;
  --accent: #f17814;
  --accent-2: #f17814;
  --text: #edf3ff;
  --muted: #8496ab;
  --card: #252423;
  --radius: 15px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'PT Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 100dvh;
}

h3 {
  font-size: 45px;
}

a {
  color: #f17814;
  text-decoration: none;
}

aside {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100dvh;
  overflow: auto;
  background-color: var(--bg);
  padding: 28px 20px;
  z-index: 1000;
  isolation: isolate;
  /*border-top: 2px solid #f17814;*/
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  justify-content: center;
}

.brand .logo {
  width: 32px;
  text-align: center;
}

.brand h1 {
  font-size: 16px;
  margin: 0;
  letter-spacing: 0.4px;
}

.details {
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

.subtle {
  color: var(--muted);
  font-size: 12px;
  margin: 2px 0 0;
}

.search-wrap {
  position: relative;
  margin: 18px 0 12px;
}

.search-wrap input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  background: #333;
  color: var(--text);
  outline: none;
  /*box-shadow: var(--shadow);*/
}

.nav-section {
  margin: 18px 0 10px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.year-list {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.year-list button {
  width: 100%;
  text-align: left;
  padding: 8px 12px 8px 20px;
  border-top-right-radius: 25px;
  border-bottom-right-radius: 25px;
  border: 0 solid rgba(255, 255, 255, 0.08);
  background: #373737;
  color: var(--text);
  cursor: pointer;
  transition: 0.2s transform, 0.2s background, 0.2s border-color;
}

.year-list button:hover {
  transform: translateX(2px);
  border-color: rgba(255, 255, 255, 0.22);
}

.year-list button[aria-current="true"] {
  background-color: #212020;
  color: #f17814;
  border-left: 3px solid #f17814;
}

.year-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: #333;
  border: 1px solid #333;
  color: var(--text);
  display: none;
  position: relative;
  z-index: 2000;
}

main {
  padding: 28px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  justify-content: space-between;
}

.item-count {
  background-color: #333;
  border-radius: 25px;
  padding: 0 20px 4px 20px;
}

.tag {
  font-size: 12px;
  color: var(--muted);
}

.pill {
  font-size: 12px;
  color: var(--muted);
}

.contact {
  height: 25px;
  margin-top: 5px;
  color: #f17814;
  text-align: center;
}

.contact>* {
  margin-right: 10px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.card {
  grid-column: span 6;
  /*border: 1px solid rgba(255, 255, 255, 0.08);*/
  overflow: hidden;
  /*box-shadow: var(--shadow);*/
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.card.large {
  grid-column: span 12;
}

.media {
  position: relative;
  aspect-ratio: 16/9;
  width: 100%;
  overflow: hidden;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0 solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(2px);
}

.carousel-btn[disabled] {
  opacity: 0.4;
  cursor: default;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0 solid rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.3);
}

.dot[aria-current="true"] {
  background: var(--accent);
  border-color: var(--accent);
}

.card-body {
  padding: 20px 20px 25px 20px;
  display: flex;
  gap: 12px;
  background-color: #212020;
}

.year-badge {
  flex: 0 0 auto;
  align-self: flex-start;
  background: #404040;
  border-radius: 10px;
  padding: 6px 8px;
  font-size: 12px;
  color: var(#252423);
}

.title {
  margin: 0;
  font-size: 18px;
}

.meta {
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.desc {
  margin: 0;
  line-height: 1.5;
  color: #eeeeee;
  font-size: 14px;
  margin-bottom: 30px;
}

.chipset {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.chip {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #919191;
}


footer {
  margin-top: 26px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 980px) {
  body {
    grid-template-columns: 1fr;
  }

  aside {
    position: relative;
    height: auto;
  }

  .card {
    grid-column: span 12;
  }

  .year-list {
    display: none;
  }

  .year-select {
    display: block;
  }
}

.grid.masonry {
  display: block;
  column-count: 3;
  column-gap: 18px;
}

@media (max-width: 1200px) {
  .grid.masonry {
    column-count: 2;
  }
}

@media (max-width: 640px) {
  .grid.masonry {
    column-count: 1;
  }
}

.grid.masonry .card {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin: 0 0 18px;
  grid-column: auto;
}

/* ABOUT OVERLAY */
.about-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;

  /* FADE ANIMATION */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  /* controls fade speed */
}

.about-overlay.active {
  opacity: 1;
  pointer-events: auto;
}


.about-content {
  padding: 40px;
  max-width: 600px;
  width: 90%;
  position: relative;
  color: #fff;

  /* CONTENT FADE */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.about-overlay.active .about-content {
  opacity: 1;
  transform: translateY(0);
}


.about-content h2 {
  margin-top: 0;
  color: #f17814;
}

.about-close {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 26px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

/* On mobile, let main/grid sit above or at the same level */
@media (max-width: 980px) {
  main {
    position: relative;
    z-index: 0;
    margin-top: 250px;
  }
}
