
/* GLOBAL STYLES */
body {
  margin: 0;
  background-color: #f2f2f2;
  color: #000;
  font-family: 'IBM Plex Mono', monospace;
  min-height: 100vh;
  padding: 0;
}

h1, h2, h3 {
  font-family: 'Corben', serif;
  font-weight: 700;
}

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

a:hover {
  text-decoration: underline;
}

/* LANDING PAGE */
.landing-container {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.landing-container h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.links a {
  margin: 0 0.5rem;
}

/* MENU TOGGLE DEFAULT HIDDEN */
.menu-toggle {
  display: none;
}

/* ALBUM LISTING PAGE */
.album-directory {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
  text-align: left;
}

.album-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.album-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.album-entry img.thumb {
  width: 100%;
  max-width: 250px;
  height: auto;
  object-fit: cover;
  border: 1px solid #ccc;
}

.album-title {
  font-family: 'Corben', serif;
  font-size: 1.2rem;
  margin-top: 0.5rem;
}

.band-name {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1rem;
  color: #444;
}

.album-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

img.album-gif {
  width: 100px;
  height: auto;
}

/* WRITING DIRECTORY */
.writing-directory {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

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

.writing-entry img.thumb {
  width: 100%;
  max-width: 250px;
  height: auto;
  object-fit: cover;
  border: 1px solid #ccc;
}

.writing-title {
  font-family: 'Corben', serif;
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.writing-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9rem;
  color: #666;
}

.single-writing-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 1rem;
  gap: 2rem;
}

.writing-left {
  flex: 1;
  max-width: 300px;
}

.writing-left img {
  width: 100%;
  height: auto;
  border: 1px solid #ccc;
}

.writing-right {
  flex: 2;
  min-width: 300px;
}

/* ABOUT AND LINKS PAGES */
.page-container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.page-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.page-header-image {
  width: 60px;
  height: auto;
}

/* LINK GRID (applies globally now) */
/* Main grid container */
.link-grid {
  columns: 1; /* 1 column by default (mobile first) */
  column-gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Upgrade to 3 columns on bigger screens */
@media (min-width: 768px) {
  .link-grid {
    columns: 3;
  }
}

/* Each card inside the masonry layout */
.link-card {
  display: inline-block; /* Needed for columns layout */
  width: 100%;           /* Stretch inside the column */
  max-width: 300px;       /* Optional: don't let cards get huge */
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid #ccc;
  padding: 1rem;
  background-color: #f2f2f2;
  box-sizing: border-box;
  margin: 0 auto 2rem; /* Center the card and add vertical spacing */
}

/* Inside the card: links, text, icons */
.link-card a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  font-weight: normal;
  color: #000;
  width: 100%;
  height: 100%;
}

.link-card p {
  font-weight: normal;
  font-size: 0.9rem;
  color: #444;
  margin-top: 0.5rem;
  text-align: center;
}

.link-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0.5rem;
}

/* SINGLE ALBUM PAGE */
.single-album-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 1rem;
  gap: 2rem;
}

.album-left {
  flex: 1;
  max-width: 400px;
}

.album-left img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 1px solid #ccc;
  margin-bottom: 1rem;
}

.album-links a {
  display: block;
  margin-bottom: 0.5rem;
  color: #000;
  text-decoration: none;
}

.album-links a:hover {
  text-decoration: underline;
}

.album-right {
  flex: 2;
  min-width: 300px;
}

.album-right h1 {
  font-family: 'Corben', serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.album-right h2 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #666;
}

.notes,
.tracklist {
  margin-top: 1rem;
  line-height: 1.6;
}

.notes p {
  margin-bottom: 1rem;
}

/* SITE HEADER */
.site-header {
  background-color: #f2f2f2;
  border-bottom: 1px solid #000;
  padding: 0.25rem 0;
}

.nav-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 3rem;
}

.site-title {
  font-family: 'Corben', serif;
  font-weight: 700;
  font-size: 1.2rem;
}

.site-nav a {
  font-size: 0.9rem;
  margin-left: 1rem;
  text-decoration: none;
  color: #000;
}

.site-nav a:hover {
  text-decoration: underline;
}

.site-title a {
  text-decoration: none;
  color: inherit;
}

/* TILE GRID */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(5, 40px);
  grid-template-rows: repeat(5, 40px);
  gap: 5px;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  width: max-content;
}

.tile {
  width: 40px;
  height: 40px;
  background-color: #f2f2f2;
  transition: background-color 0.2s ease-in-out;
}

.tile.active {
  background-color: #000;
}

/* MANAGE CONTENT TABLE */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

table th, table td {
  border: 1px solid #ccc;
  padding: 0.5rem 1rem;
  text-align: left;
  vertical-align: top;
  font-family: 'IBM Plex Mono', monospace;
}

table th {
  background-color: #f2f2f2;
  font-family: 'Corben', serif;
  font-weight: 700;
}

/* QUOTE */
.quote-block {
  max-width: 600px;
  margin: 0 auto 2rem auto;
  padding: 0 1rem;
  text-align: center;
}

.quote-line {
  font-style: italic;
  margin-bottom: 0.5em;
}

.quote-author {
  font-weight: normal;
}

/* RESPONSIVE: PHONE PORTRAIT */
@media (max-width: 480px) {
  body {
    font-size: 0.95rem;
    padding: 0 1rem;
  }

  h1 {
    font-size: 1.3rem;
  }

  .site-title {
    font-size: 1.2rem;
    flex: 1;
  }
  
  .landing-container {
  margin-top: 2rem; /* was 4rem in default styles */
}

.landing-container h1 {
  font-size: 1.3rem;
  text-align: center;
}

  .site-nav {
    display: none;
    flex-direction: column;
    background-color: #f2f2f2;
    position: absolute;
    top: 60px;
    right: 1rem;
    border: 1px solid #ccc;
    padding: 1rem;
    width: 60%;
    text-align: right;
  }

  .site-nav.show {
    display: flex;
  }

  .site-nav a {
    padding: 0.5rem 0;
    font-size: 1rem;
  }

  .nav-wrapper {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
  }

  .menu-toggle {
    display: flex;
    background-color: #000;
    border: none;
    padding: 0.4rem;
    margin-left: auto;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 34px;
    width: 34px;
  }

  .menu-toggle .bar {
    width: 22px;
    height: 2px;
    background-color: #f2f2f2;
    margin: 3px 0;
    transition: all 0.3s ease;
  }

  .menu-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }

  .menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
  }

  .album-list,
  .writing-list {
    grid-template-columns: 1fr;
    padding: 1rem 0;
  }

  .album-entry img.thumb,
  .writing-entry img.thumb {
    max-width: 100%;
  }

  .single-album-container,
  .single-writing-container {
    flex-direction: column;
  }

  .album-left,
  .album-right,
  .writing-left,
  .writing-right {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .album-right h1 {
    font-size: 1.6rem;
    word-break: break-word;
  }

  .tile-grid {
    transform: scale(0.9);
  }

.quote-block p {
  font-size: 0.85rem;
  padding: 0 0.5rem;
}

.link-grid {
  grid-template-columns: 1fr; /* Force 1 column on very small screens */
}

.link-card a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
}

.link-card p {
  font-weight: normal;
  text-decoration: none;
}

}





/*Links*/

.shuffle-button {
  margin-left: auto;
  padding: 0.5rem 1rem;
  font-family: 'IBM Plex Mono', monospace;
  background-color: #000;
  color: #f2f2f2;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}

.shuffle-button:hover {
  background-color: #444;
}
