/* ==========================================================================
   BLOOMTOY — CENTRAL SITE STYLESHEET
   ========================================================================== */

/* 1. Global Variables & Color Palette */
:root {
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --font-mono: "Courier New", Courier, monospace;
  --font-sans: Arial, Helvetica, sans-serif;

  --bg-page: #0c0c0d;
  --bg-canvas: #edeae3;
  --bg-box: #e4e0d7;
  --bg-card: #f6f4ee;
  --bg-hover: #eeebe2;
  
  --text-main: #111111;
  --text-muted: #555555;
  --border-color: #111111;
  --accent: #e94f9a;
}

/* 2. Reset & Base Layout */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  /* 1. Path to your background image */
  background-image: url('images/bg_01.png');
  background-size: cover;
  
  /* Shifts the background horizontally centered, but 120px down from the top */
  background-position: center -500px;
  
  background-repeat: no-repeat;
  background-attachment: fixed;

  /* 2. Crisp pixel rendering (no smooth/blurry bilinear filtering) */
  image-rendering: pixelated;            /* Modern standard for pixel crispness */
  image-rendering: crisp-edges;         /* Fallback for Firefox/older browsers */

  /* 3. Fallback color while image loads */
  background-color: #0c0c0d; 

  color: #e5e5e5;
  font-family: var(--font-mono);
  line-height: 1.4;
  padding: 30px 10px 80px;
  -webkit-font-smoothing: antialiased;
}

/* 3. The Main Viewport Box */
.viewport {
  max-width: 1120px;
  margin: 0 auto;
  background-color: var(--bg-canvas);
  color: var(--text-main);
  border: 2px solid var(--border-color);
  padding: 42px;
  box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.6);
  font-size: 1.15rem;
}

/* 4. Global Header & Navigation */
header {
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 20px;
  margin-bottom: 36px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: bold;
  letter-spacing: -0.03em;
  line-height: 0.9;
  text-transform: lowercase;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
}

nav {
  display: flex;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

nav a {
  color: var(--text-main);
  text-decoration: underline;
  padding: 0;
}

nav a:hover {
  color: var(--accent);
  background: none;
}

nav a.active {
  font-weight: bold;
  text-decoration: none;
  border-bottom: 2px solid var(--border-color);
}

/* 5. Content Layout Blocks */
.hero-box {
  border: 1px solid var(--border-color);
  background: var(--bg-box);
  padding: 24px;
  margin-bottom: 36px;
}

.hero-box p {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  line-height: 1.3;
  color: var(--text-main);
}

.main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.section-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 4px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
}

/* 6. Cards & Media Placeholders */
.card {
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  padding: 14px;
}

.featured-ph {
  width: 100%;
  height: 300px;
  background: #1a1a1a;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #888888;
  font-size: 0.85rem;
  gap: 8px;
}

.featured-ph .ph-title {
  color: var(--accent);
  font-weight: bold;
  font-size: 1.1rem;
}

.card-info {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  border-top: 1px dashed #aaaaaa;
  padding-top: 10px;
}

.card-title {
  font-weight: bold;
}

/* 7. Side Modules (Currently Listening) */
.now-playing-box {
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  padding: 14px;
}

.art-ph {
  width: 100%;
  aspect-ratio: 1;
  background: #111111;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666666;
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.track-name {
  font-weight: bold;
  font-size: 0.95rem;
}

.track-artist {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.listen-link {
  font-size: 0.85rem;
  color: var(--text-main);
  text-decoration: underline;
}

.listen-link:hover {
  color: var(--accent);
}

/* 8. Data Tables / Index Catalog */
.index-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  font-size: 0.9rem;
}

.index-table th {
  background: var(--bg-box);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 12px;
  text-align: left;
  font-weight: bold;
  font-size: 0.8rem;
}

.index-table td {
  padding: 10px 12px;
  border-bottom: 1px dashed #cccccc;
}

.index-table tr:last-child td {
  border-bottom: none;
}

.index-table tr:hover td {
  background: var(--bg-hover);
}

.tag-id {
  color: var(--accent);
  font-weight: bold;
}

/* 9. Global Footer */
footer {
  margin-top: 36px;
  padding-top: 14px;
  border-top: 2px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 10. Responsive Tweaks */
@media (max-width: 800px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
  .viewport {
    padding: 20px;
  }
}