@font-face {
  font-family: 'Russo One';
  src: url('/assets/fonts/RussoOne-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  background-image: url('data:image/svg+xml;utf8,<svg width="4" height="4" xmlns="http://www.w3.org/2000/svg"><rect width="4" height="4" fill="%230a0a0c"/><rect width="1" height="1" fill="%23151515"/></svg>');
  margin: 0;
  font-family: 'Rajdhani', 'Courier New', Courier, monospace;
  background-color: #0a0a0c;
  color: #f0f0f0;
  line-height: 1.6;
}

.hero-banner h2, h1, h2 { 
  font-family: 'Russo One', sans-serif; 
  font-weight: 400; 
  letter-spacing: 1px; 
  text-transform: uppercase; 
}

h3, h4 { 
  font-family: 'Rajdhani', 'Courier New', monospace; 
  font-weight: 700; 
  text-transform: uppercase; 
  color: #ff5500; 
  margin-top: 2rem; 
  border-bottom: 1px solid #333; 
  padding-bottom: 4px; 
}

h1 {
  font-size: 2.2rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.6rem;
  border-bottom: 1px solid #333333;
  padding-bottom: 0.3rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.2rem;
  margin-top: 1.8rem;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-style: italic;
  color: #888;
  margin-bottom: 2rem;
}

nav {
  background: #111111;
  border-bottom: 1px solid #333333;
  padding: 0.75rem 2rem;
  display: flex;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav a {
  color: #aaa;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

nav a:hover,
nav a.active {
  color: #fff;
}

.hero-banner {
  background-color: #111;
  color: #fff;
  padding: 2.5rem 1rem;
  text-align: center;
  border-bottom: 3px solid #222;
}

.hero-banner h2 {
  font-size: 2.5rem;
  margin: 0 0 0.5rem 0;
}

.hero-banner p {
  font-size: 1.15rem;
  color: #888;
  margin: 0;
}

.hero-logo {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.layout-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  max-width: 95vw;
  margin: 2.5rem auto;
  padding: 0 2rem;
  box-sizing: border-box;
}

.sidebar-rail {
  width: 230px;
  flex-shrink: 0;
  position: sticky;
  top: 4.5rem;
  align-self: flex-start;
  height: fit-content;
  background: #131317; 
  padding: 1rem 0.75rem;
  border-radius: 10px;
  border-top: 1px solid #363644;
  border-left: 1px solid #22222a;
  border-right: 1px solid #0d0d12;
  border-bottom: 2px solid #050508;
  box-shadow: 
    8px 12px 28px rgba(0, 0, 0, 0.9),
    0 2px 4px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-sizing: border-box;
}

#left-rail {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

#right-rail {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.sidebar-rail .card-item,
.sidebar-rail .card-item:hover {
  transform: none !important;
  transition: none !important;
  overflow: visible !important;
  background: #050507;
  padding: 6px;
  border-radius: 6px;
  border-top: 2px solid #000000;
  border-left: 2px solid #08080a;
  border-right: 1px solid #262632;
  border-bottom: 2px solid #454556;
  box-shadow: inset 3px 4px 8px rgba(0, 0, 0, 1);
  box-sizing: border-box;
}

.sidebar-rail .card-item img {
  display: block;
  width: 100%;
  border-radius: 3px;
  position: relative;
  z-index: 2;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.2s ease;
}

.sidebar-rail .card-item:hover img {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.95);
  z-index: 10;
  cursor: pointer;
}

.content-area {
  flex: 1;
  max-width: 850px;
  min-width: 0;
}

.content-area.wide {
  max-width: 1100px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

.card-item {
  background: #111111;
  border-radius: 0px;
  overflow: hidden;
  box-shadow: none; 
  border: 1px solid #333;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  cursor: pointer;
}

.card-item:hover {
  transform: translate(-4px, -4px);
  box-shadow: 6px 6px 0px #ff5500;
  border-color: #ff5500;
}

.card-item img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 5 / 7;
  object-fit: cover;
  background: #111;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
  backdrop-filter: blur(5px);
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 0px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
  transform: scale(0.95);
  transition: transform 0.2s ease-in-out;
}

.modal.open img {
  transform: scale(1);
}

.indented-section {
  margin-left: 1.5rem;
}

.text-list p {
  margin: 0.2rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  background-color: #121215;
}

th, td {
  border: 1px solid #333333;
  padding: 10px 14px;
  text-align: left;
}

th {
  background-color: #111111;
  color: #fff;
}

.cta-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: #ff5500;
  color: #fff;
  text-decoration: none;
  border-radius: 0px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.cta-btn:hover {
  background: #cc4400;
}

.site-footer {
  border-top: 1px solid #1f1f24;
  padding: 1.5rem 2rem;
  margin-top: 4rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  color: #666;
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0;
}

.tm {
  font-size: 0.6em;
  vertical-align: super;
  margin-left: 1px;
}

#status-message {
  color: #888;
  font-style: italic;
}

@media (max-width: 1200px) {
  .sidebar-rail,
  #left-rail,
  #right-rail {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .layout-wrapper {
    display: block !important;
    max-width: 1000px;
    margin: 1.5rem auto !important;
    padding: 0 1.25rem !important;
  }

  .content-area,
  .content-area.wide {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 800px) {
  nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 0.9rem;
    font-size: 0.9rem;
    flex-shrink: 0;
    background: #16161b;
    border: 1px solid #2b2b36;
    border-radius: 4px;
  }

  nav a:active,
  nav a.active {
    border-color: #ff5500;
    color: #fff;
    background: #24242e;
  }

  .hero-banner {
    padding: 1.5rem 1rem;
  }

  .hero-banner {
    padding: 1.5rem 1rem;
  }

  .hero-logo {
    max-width: 260px;
  }

  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .syndicate-grid {
    gap: 4rem !important;
    margin-top: 3rem !important;
  }
  
  .syndicate-card:nth-child(even) {
    align-self: flex-start !important;
    text-align: left !important;
  }

  .syndicate-card h3 {
    font-size: clamp(2.2rem, 8vw, 3rem) !important; 
  }

  .syndicate-card h3 .syn-tag,
  .syndicate-card:nth-child(even) h3 .syn-tag {
    left: 0 !important;
    right: auto !important;
    font-size: 5.5rem !important;
    transform: translateY(-50%) rotate(-4deg) !important;
    color: rgba(255, 85, 0, 0.18) !important;
  }

  .syndicate-card:nth-child(even) h3 .syn-tag {
    color: rgba(52, 211, 153, 0.18) !important;
  }

  .syn-type,
  .syndicate-card:nth-child(even) .syn-type {
    position: relative !important;
    writing-mode: horizontal-tb !important;
    transform: none !important;
    display: inline-block !important;
    border: none !important;
    border-bottom: 2px solid #ff5500 !important;
    padding: 0 0 4px 0 !important;
    margin-bottom: 0.75rem !important;
    left: auto !important; 
    right: auto !important; 
    bottom: auto !important;
    letter-spacing: 2px !important;
  }

  .syndicate-card:nth-child(even) .syn-type {
    border-bottom: 2px solid #34d399 !important;
  }

  .syndicate-card p,
  .syndicate-card:nth-child(even) p {
    margin: 0 !important;
    padding: 0 0 0 1rem !important;
    border-right: none !important;
    border-left: 3px solid #333 !important;
    font-size: 1.05rem !important;
    max-width: 100% !important;
  }

  .zine-cta-wrapper {
    margin: 4rem auto 2rem auto !important;
  }

  .zine-watermark {
    display: none !important;
  }

  .zine-text-block {
    padding: 1.25rem 1rem !important;
  }

  .zine-link {
    display: inline-block !important;
    white-space: normal !important;
    margin-top: 0.4rem !important;
    margin-bottom: 0.4rem !important;
    font-size: 0.95rem !important;
  }

  .zine-huge {
    font-size: 1.5rem !important; 
    padding: 0.5rem 1rem !important;
    line-height: 1.2 !important;
  }

  .cta-bg-shadow {
    display: none !important;
  }
}

@media (max-width: 600px) and (orientation: portrait) {
  .layout-wrapper {
    padding: 0 0.75rem !important;
    margin: 1rem auto !important;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  z-index: 99999;
  justify-content: center;
  align-items: center;
}
.modal-overlay.open {
  display: flex !important;
}

#suggestion-modal {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  z-index: 99999;
}

#suggestion-modal .modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  box-shadow: 0 0 30px rgba(52, 211, 153, 0.2), 0 0 0 1px #34d399;
}

.card-item.is-new-card {
  position: relative;
}

.card-item.is-new-card img {
  outline: 2px solid #34d399;
  outline-offset: 2px;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.4);
}

.new-card-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #34d399;
  color: #000;
  font-family: 'Russo One', sans-serif;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 3px;
  z-index: 2;
  letter-spacing: 0.05em;
  box-shadow: 1px 1px 0px #000;
  pointer-events: none;
}