/* --- Global Variables & Base Setup --- */
:root {
  --bg-desk: #E3DDD3;
  --paper: #FDFBF7;
  --text-main: #36322E;
  --text-muted: #8C8275;
  --border-light: #ECE4D8;
  --accent: #C4B9A6;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-desk);
  background-image: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noise"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100" height="100" filter="url(%23noise)" opacity="0.04"/%3E%3C/svg%3E');
  font-family: 'Lora', serif;
  color: var(--text-main);
  line-height: 1.7;
  padding: 0 20px 80px 20px;
}

/* --- Navigation --- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(227, 221, 211, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 15px 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.3s;
}

nav a:hover, nav a.active {
  color: var(--text-main);
}

/* --- Main Container / Canvas --- */
.paper-canvas {
  max-width: 900px;
  margin: 80px auto 0;
  background-color: var(--paper);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.05), 0 5px 15px rgba(0, 0, 0, 0.03);
  padding: 70px;
  position: relative;
  border-radius: 2px;
}

.paper-canvas::before {
  content: '';
  position: absolute;
  top: 12px; left: 12px; right: 12px; bottom: 12px;
  border: 1px solid var(--border-light);
  pointer-events: none;
}

/* --- Typography & Headers --- */
h1 {
  font-size: 2.8rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 5px;
}

h1.title {
  font-size: 3.5rem;
  letter-spacing: -1px;
}

.subtitle {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 50px;
}

.social-link {
  display: block;
  text-align: center;
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 60px;
}

.social-link:hover {
  color: var(--text-main);
}

.section-title {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
  margin-bottom: 30px;
  margin-top: 60px;
}

/* --- Music Section --- */
.tracklist {
  margin-bottom: 30px;
}

.track {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 12px;
  border-bottom: 1px solid #F0EADF;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.track:hover {
  background-color: #F7F4EE;
}

.track-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.track-number {
  color: var(--accent);
  font-size: 0.85rem;
}

.track-title {
  font-weight: 500;
}

.track-duration {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.eq {
  display: none;
  gap: 2px;
  height: 12px;
  align-items: flex-end;
}

.eq span {
  display: block;
  width: 3px;
  background: var(--text-main);
  animation: bounce 0.5s infinite alternate;
}

.eq span:nth-child(2) { animation-delay: 0.2s; }
.eq span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  from { height: 3px; }
  to { height: 12px; }
}

.track.playing .eq { display: flex; }
.track.playing .track-number { display: none; }

/* --- Album Artworks --- */
.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.album-card {
  position: relative;
  aspect-ratio: 1;
  cursor: pointer;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.album-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-overlay {
  position: absolute;
  inset: 0;
  background: rgba(54, 50, 46, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  color: var(--paper);
  font-size: 1.1rem;
  text-align: center;
  padding: 10px;
  font-style: italic;
}

.album-card:hover { z-index: 10; }
.album-card:hover .album-overlay { opacity: 1; }

/* --- Interactive Nature Gallery --- */
.gallery-wrapper {
  margin: 70px -30px;
  position: relative;
}

.interactive-gallery {
  width: 100%;
  height: 400px;
  position: relative;
  overflow: hidden;
  cursor: ew-resize;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.1);
}

.gallery-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
}

.gallery-layer.active { opacity: 1; }

.cursive-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Great Vibes', cursive;
  font-size: 5.5rem;
  color: #F4EFE6;
  text-shadow: 0 4px 20px rgba(0,0,0,0.4);
  pointer-events: none;
  white-space: nowrap;
}

/* --- Polaroid Gallery --- */
.polaroid-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 40px;
}

.polaroid {
  background: #fff;
  padding: 12px 12px 40px 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  cursor: pointer;
}

.polaroid img { width: 180px; height: 180px; object-fit: cover; }
.polaroid:hover { box-shadow: 0 15px 30px rgba(0,0,0,0.15); z-index: 5; }

/* --- Casual Thoughts --- */
.thoughts-feed {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.thought-bubble {
  padding: 20px 25px;
  background: #F7F4EE;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  position: relative;
}

.thought-text { font-size: 1rem; color: var(--text-main); margin-bottom: 8px; }
.thought-meta { font-family: 'Caveat', cursive; color: var(--text-muted); font-size: 1.1rem; }

/* --- Newsletter / Callout Boxes --- */
.newsletter-section, .epk-section, .empty-state-box {
  text-align: center;
  padding: 40px;
  background: #FAF7F2;
  border: 1px dashed var(--accent);
}

.empty-state-box {
  margin-top: 20px;
}

.empty-state-box p {
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 15px;
}

.empty-state-box span {
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  color: var(--text-muted);
  display: block;
}

.newsletter-section { margin-top: 80px; }
.newsletter-section p { margin-bottom: 20px; font-style: italic; color: var(--text-muted); }

.input-group {
  display: flex;
  justify-content: center;
  gap: 10px;
}

input[type="email"] {
  padding: 12px 20px;
  width: 250px;
  border: 1px solid var(--border-light);
  background: transparent;
  font-family: 'Lora', serif;
  outline: none;
}

input[type="email"]:focus { border-color: var(--text-main); }

button, .download-btn {
  padding: 12px 25px;
  background: var(--text-main);
  color: var(--paper);
  border: none;
  cursor: pointer;
  font-family: 'Lora', serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  transition: background 0.3s;
  text-decoration: none;
  display: inline-block;
}

button:hover, .download-btn:hover { background: #5a534c; }

/* Fake Email Modal */
.fake-email-modal {
  display: none;
  background: #fff;
  padding: 30px;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  text-align: left;
  margin-top: 20px;
}

.email-header { border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 15px; }
.email-header span { display: block; font-size: 0.85rem; color: #888; font-family: sans-serif; }
.email-body { font-family: 'Caveat', cursive; font-size: 1.4rem; color: var(--text-main); line-height: 1.4; }

/* Scroll Animations */
.fade-in {
  opacity: 0;
}

.fade-in.visible {
  opacity: 1;
}

/* --- About Page Layout --- */
.bio-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 60px;
}

.portrait-card {
  background: #fff;
  padding: 15px 15px 45px 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.portrait-card img {
  width: 100%;
  height: auto;
  display: block;
  filter: sepia(0.2);
}

.caption {
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 15px;
}

.bio-text p {
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.gear-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.gear-item {
  background: #FAF7F2;
  padding: 20px;
  border: 1px solid var(--border-light);
}

.gear-item h3 {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 5px;
}

.gear-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- Contact Page Layout --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.contact-box h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.contact-box p { font-size: 1rem; color: var(--text-main); }

/* --- Responsive Media Queries --- */
@media (max-width: 768px) {
  .paper-canvas { padding: 50px 30px; margin-top: 60px; }
  nav { gap: 15px; }
  nav a { font-size: 0.75rem; }
  h1.title { font-size: 2.5rem; }
  .cursive-overlay { font-size: 4rem; }
  .gallery-wrapper { margin: 50px -15px; }
  .input-group { flex-direction: column; align-items: center; }
  .bio-layout { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .contact-grid { grid-template-columns: 1fr; }
  .paper-canvas { padding: 40px 20px; }
}