/* Define CSS variables */

:root {
  --color-light-text: #92969e;
  /* Light Gray */
  --color-dark-bg: #191919;
  /* Dark Black for the site background */
  --color-darker-gray: #202020;
  /* Darker than dark-bg, lighter than dark-gray */
  --color-dark-gray: #1f2937;
  /* Charcoal */
  --color-gray: #b0b8c1;
  /* Muted Gray */
  --color-bright-white: #f9fafb;
  /* Off-White */
  --color-bright-blue: #3b82f6;
  /* Bright Blue */
  --color-medium-gray: #374151;
  /* Slate Gray */
  --color-footer-text: #f9fafb;
  /* Muted Gray */
  --color-card-bg: #222222;
  /* Darker Gray */
  --color-bright-red: #ef4444;
  /* Bright Red */
  --color-bold-red: #ff0000;

}

/* Font faces */
@font-face {
  font-family: 'Detroit 05 Base';
  src: url('https://static.kdzu.org/fonts/Detroit05Base.woff2') format('woff2'),
    url('https://static.kdzu.org/fonts/Detroit05Base.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

/* Base styles */
body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-light-text);
  background-color: var(--color-dark-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1 {
  font-size: 5rem;
  font-weight: 900;
  color: var(--color-bright-white);
  margin: 0 0 1rem;
  grid-column: 1 / -1;
}

h2 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-bright-white);
  margin: 0 0 1rem;
}

h3 {
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--color-bright-white);
  margin: 0 0 1rem;
  line-height: 1.2;
}

h4 {
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--color-bright-white);
  margin: 0 0 0.75rem;
}

p {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-light-text);
  margin: 0 0 1.5rem;
}

.text-red {
  color: var(--color-bright-red);
}

a {
  color: var(--color-bright-blue);
  font-weight: 500;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.block-quote {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--color-gray);
  border-left: 4px solid var(--color-bright-blue);
  padding-left: 1rem;
  margin: 1.5rem 0;
  line-height: 1.8;
}

.block-quote strong {
  color: var(--color-bright-white);
  font-weight: bold;
}

/* Layout styles */
main {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 2rem 44px;
  box-sizing: border-box;
}

.main-content {
  text-align: left;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Hot New Tracks Table Layout */
.tracks-table {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.track-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--color-dark-gray);
  padding: 1rem;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.track-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

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

.track-data {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.track-data p {
  margin: 0.25rem 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Tracks grid styles */
.tracks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.tracks-grid .track-card {
  background: var(--color-card-bg);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tracks-grid .track-card:hover {
  transform: translateY(-4px);
}

.track-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

.track-card .track-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  display: block;
  flex-shrink: 0;
}

.track-card .track-info {
  padding: .5rem 1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.track-card .track-info h3 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.track-card .track-info .artist {
  color: var(--color-bright-white);
  font-size: 0.9rem;
  font-weight: 300;
  opacity: 0.9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-card .track-info .label {
  color: var(--color-gray);
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-card .track-info .markdown {
  color: var(--color-light-text);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 0.75rem;
  flex: 1;
  min-height: 0;
}

.track-card .track-info .markdown p {
  margin: 0 0 0.75rem;
}

.track-card .track-info .markdown p:last-child {
  margin-bottom: 0;
}

.track-links {
  display: flex;
  flex-direction: row;
  gap: 1.4rem;
  padding: 0 1rem 1rem 1rem;
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
  margin-top: auto;
  flex-shrink: 0;
}

.link-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  max-width: 64px;
}

.track-links a {
  color: var(--color-bright-white);
  text-decoration: none;
  font-size: 0.64rem;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease-in-out;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  box-sizing: border-box;
  border-radius: 4px;
  width: 100%;
  justify-content: center;
}

.track-links a:hover {
  color: var(--color-bright-white);
  border-color: var(--color-medium-gray);
  background-color: var(--color-medium-gray);
}

.track-links .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  order: -1;
  display: inline-block;
}

.youtube .icon {
  color: #ff0000;
}

.bandcamp .icon {
  color: #629aa9;
}

.spotify .icon {
  color: #1db954;
}

/* Calendar styles */
.calendar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .calendar {
    grid-template-columns: repeat(2, 1fr);
  }
}

.calendar li {
  display: flex;
  flex-direction: column;
  background-color: var(--color-dark-bg);
  border: 1px solid var(--color-dark-gray);
  padding: 1rem;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}

.calendar li:hover {
  background-color: var(--color-dark-bg);
  transform: none;
}

.calendar .date-time {
  display: flex;
  justify-content: space-between;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-bright-white);
  margin-bottom: 1rem;
}

.calendar .event-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-bright-white);
  margin: 0;
}

.calendar .subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-gray);
}

.calendar .subtitle a {
  color: var(--color-bright-blue);
  text-decoration: none;
}

.calendar .subtitle a:hover {
  color: var(--color-bright-blue);
  text-decoration: underline;
}

.calendar .location {
  display: block;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-gray);
  margin-top: auto;
  margin-bottom: 0.25rem;
  padding-top: 1rem;
}

.calendar .address {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-gray);
}

.calendar .address-link {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-bright-blue);
  width: 100%;
}

.calendar .address-link:hover {
  text-decoration: underline;
}

.calendar .address-link .map-pin {
  color: var(--color-bright-white);
  flex-shrink: 0;
  margin-top: 0.4rem;
}

.calendar .address-lines {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.calendar .address-line {
  line-height: 1.2;
}

.calendar .address a {
  color: var(--color-bright-blue);
  text-decoration: none;
}

.calendar .address a:hover {
  color: var(--color-bright-blue);
  text-decoration: underline;
}

.calendar .map-pin {
  color: var(--color-gray);
  flex-shrink: 0;
  margin-top: 0.24rem;
}

.calendar .event-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-height: 0;
}

.calendar .event-footer {
  margin-top: auto;
  padding-top: 1rem;
}

.calendar li .markdown {
  color: var(--color-light-text);
  line-height: 1.6;
  font-weight: 400;
  flex: 1;
  min-height: 0;
}

@media (max-width: 1440px) {

  .calendar li .markdown,
  .calendar li .markdown p {
    font-size: 1.375rem;
  }
}

@media (max-width: 1024px) {

  .calendar li .markdown,
  .calendar li .markdown p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {

  .calendar li .markdown,
  .calendar li .markdown p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {

  .calendar li .markdown,
  .calendar li .markdown p {
    font-size: 0.9rem;
  }

  .calendar .date-time {
    font-size: 1rem;
  }

  .calendar .address,
  .calendar .address-link,
  .calendar .address-line {
    font-size: 0.9rem;
  }

  .calendar {
    gap: 2rem;
  }

  .calendar li {
    margin-bottom: 0;
  }
}

/* Header styles */
header {
  width: 100vw;
  text-align: left;
  padding: 0;
  margin: 0;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
}

.header-content {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  position: relative;
}

.header-image-wrapper {
  width: 100%;
  height: 70vh;
  overflow: hidden;
  position: relative;
}

.header-image-wrapper .header-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: -2rem;
}

.site-title {
  padding: 0;
  margin: 0;
  font-family: "Detroit 05 Base", sans-serif;
  font-size: 20rem;
  font-weight: 900;
  color: var(--color-bold-red);
  opacity: 0.9;
  text-align: center;
  width: 100%;
  line-height: 1;
  margin-bottom: -4rem;
}

.site-subtitle {
  padding: 0;
  margin: 0;
  font-family: "Detroit 05 Base", sans-serif;
  font-size: 4.8rem;
  font-weight: 700;
  color: var(--color-bright-white);
  opacity: 0.9;
  line-height: 1;
  text-align: center;
  width: 100%;
  max-width: 800px;
}

/* Top Navigation styles */
.top-nav {
  margin-bottom: 0;
  height: 60px;
  display: flex;
  align-items: center;
}

.top-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 2rem;
}

.top-nav a {
  color: var(--color-light-text);
  text-decoration: none;
  font-size: 1.25rem;
  transition: color 0.2s ease;
}

.top-nav a:hover {
  color: var(--color-bright-white);
}

@media (max-width: 1440px) {
  .header-content h1 {
    padding: 2rem 2rem 0;
  }

  .header-content p {
    padding: 0 2rem 2rem;
  }

  main {
    padding: 2rem 2rem;
  }
}

@media (max-width: 1024px) {
  .header-content {
    width: auto;
  }

  .header-content h1 {
    padding: 2rem 2rem 0;
  }

  .header-content p {
    padding: 0 2rem 2rem;
  }

  main {
    padding: 1rem 2rem;
  }
}

@media (max-width: 768px) {
  .header-content h1 {
    padding: 1rem 1rem 0;
  }

  .header-content p {
    padding: 0 1rem 1rem;
  }

  main {
    padding: 1rem 1rem;
  }
}

@media (max-width: 480px) {
  .header-image-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    overflow: hidden;
    height: 33vh;
  }

  .header-image-wrapper .header-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .header-content h1 {
    padding: 1rem 1rem 0;
  }

  .header-content p {
    padding: 0 1rem 1rem;
  }

  main {
    padding: 1rem 1rem;
  }

  body {
    padding: 0 1rem;
  }

  .top-nav {
    height: auto;
  }

  main {
    display: flex;
    flex-direction: column;
    padding: 1rem 1rem;
    gap: 1rem;
  }

  .right-column {
    grid-column: auto;
    max-width: 100%;
    width: 100%;
    padding: 0;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  h4 {
    font-size: 0.9rem;
  }

  p {
    font-size: 0.9rem;
  }

  button {
    padding: 0.4rem 0.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    justify-content: start;
  }

  .footer-grid>div {
    max-width: 250px;
  }

  .tracks-grid {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
}

footer {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  text-align: left;
  padding: 1rem 44px;
  border-top: 1px solid var(--color-dark-gray);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-footer-text);
  margin-top: auto;
  box-sizing: border-box;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-grid>div {
  max-width: 300px;
}

.footer-grid h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.footer-grid ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-grid ul li {
  margin: 0.15rem 0;
}

.footer-grid p {
  font-size: 1rem;
  margin: 0.15rem 0;
  color: var(--color-bright-white);
}

.footer-grid a {
  font-size: 1rem;
  color: var(--color-bright-blue);
  text-decoration: none;
}

.footer-grid a:hover {
  text-decoration: underline;
}

footer p {
  font-size: 1rem;
  margin: 0.25rem 0;
  color: var(--color-bright-white);
}

/* Media queries */
@media (max-width: 1440px) {
  main {
    grid-template-columns: 1fr 320px;
    padding: 2rem 2rem;
  }

  .right-column {
    max-width: 320px;
  }

  h1 {
    font-size: 4.5rem;
  }

  h2 {
    font-size: 2.75rem;
  }

  h3 {
    font-size: 2rem;
  }

  h4 {
    font-size: 1.5rem;
  }

  p {
    font-size: 1.375rem;
  }

  .site-title {
    font-size: 16rem;
    margin-bottom: -3rem;
  }

  .site-subtitle {
    font-size: 4rem;
  }

  .header-image-wrapper {
    height: 60vh;
  }
}

@media (max-width: 1024px) {
  main {
    grid-template-columns: 1fr 320px;
    padding: 1rem 2rem;
  }

  .right-column {
    max-width: 320px;
  }

  header {
    padding-left: 0;
  }

  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  h3 {
    font-size: 1.75rem;
  }

  h4 {
    font-size: 1.25rem;
  }

  p {
    font-size: 1.25rem;
  }

  .site-title {
    font-size: 12rem;
    margin-bottom: -2rem;
  }

  .site-subtitle {
    font-size: 3.2rem;
  }
}

@media (max-width: 768px) {
  main {
    grid-template-columns: 1fr 320px;
    padding: 1rem 1rem;
  }

  .right-column {
    max-width: 320px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  h4 {
    font-size: 1rem;
  }

  p {
    font-size: 1rem;
  }

  button {
    padding: 0.5rem 1rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
  }

  .footer-grid>div {
    max-width: 250px;
  }

  .tracks-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .site-title {
    font-size: 12rem;
    margin-bottom: -1.5rem;
  }

  .site-subtitle {
    font-size: 3.6rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0 1rem;
  }

  main {
    display: flex;
    flex-direction: column;
    padding: 1rem 1rem;
    gap: 1rem;
  }

  .right-column {
    grid-column: auto;
    max-width: 100%;
    width: 100%;
    padding: 0;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  h4 {
    font-size: 1rem;
  }

  p {
    font-size: 1rem;
  }

  button {
    padding: 0.4rem 0.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    justify-content: start;
  }

  .footer-grid>div {
    max-width: 250px;
    margin: 0;
  }

  .tracks-grid {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .site-title {
    font-size: 7rem;
    margin-bottom: -1rem;
  }

  .site-subtitle {
    font-size: 2.1rem;
  }
}

/* Ensure the tracks-grid always appears underneath the h1 */
.tracks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem;
  margin-top: 0;
}

.blog-grid {
  grid-column: 1 / -1;
}

@media (max-width: 768px) {
  .tracks-grid {
    grid-template-columns: 1fr;
  }
}

/* Override grid layout for tracks-we-love page */
body .tracks-we-love main,
.tracks-we-love main {
  display: block !important;
  grid-template-columns: none;
  gap: 0;
}

.tracks-we-love .tracks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem;
}

@media (max-width: 768px) {
  .tracks-we-love .tracks-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .tracks-we-love .tracks-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
  }
}

/* Welcome component styles */
.welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  text-align: center;
}

.welcome h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.welcome p {
  font-size: 1.5rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

.welcome .button {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--color-bright-blue);
  color: var(--color-bright-white);
  text-decoration: none;
  border-radius: 4px;
  font-size: 1.25rem;
  transition: background-color 0.2s ease-in-out;
}

.welcome .button:hover {
  background-color: var(--color-medium-gray);
}

/* Main page styles */
.main-content {
  text-align: left;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.right-column {
  grid-column: 2;
  padding: 1rem;
  border-radius: 4px;
}

.right-column h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-bright-white);
  margin-bottom: 1rem;
}

.right-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.right-column ul li {
  margin-bottom: 1rem;
  font-weight: 400;
  color: var(--color-gray);
}

/* Hero image styles */
.hero-image {
  width: 300px;
  height: auto;
  display: block;
  margin-bottom: 1rem;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Tracks list layout (for sidebar) */
.tracks-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.tracks-list .track-card {
  width: 100%;
}

.tracks-list .track-image {
  width: 100%;
  aspect-ratio: 1;
}

/* Override for artist links */
.track-card .artist a {
  display: inline;
  flex: none;
  font-weight: inherit;
}

/* Override grid layout for privacy policy page */
body.privacy-policy main {
  display: block !important;
  grid-template-columns: 1fr !important;
}

body.privacy-policy .main-content {
  max-width: 800px;
  margin: 0 auto;
}

.subtitle {
  font-size: 2rem;
  color: var(--color-light-text);
  margin: -1rem 0 2rem;
  font-weight: 500;
}

@media (max-width: 1440px) {
  .subtitle {
    font-size: 1.75rem;
  }
}

@media (max-width: 1024px) {
  .subtitle {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .subtitle {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .subtitle {
    font-size: 1rem;
    margin-top: 0.125rem;
  }
}