/* ===========================================================
   buruusu.com — style.css
   Palette: warm graphite, bottle green, muted burgundy.
   Quiet by design — nothing here should shout.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,400&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  color-scheme: light;
  --paper:      #F7F5F0;   /* page background — bright, warm off-white */
  --paper-alt:  #EDEAE2;   /* card / section background */
  --ink:        #2A2926;   /* primary text — warm near-black */
  --ink-soft:   #58554F;   /* secondary text */
  --forest:     #2F5643;   /* deep bottle green — headings, nav, signature bar */
  --burgundy:   #7C2E3D;   /* muted wine — accent, links, hover */
  --line:       #C9C4B8;   /* hairline rule */
  --line-soft:  #DAD6CC;

  --font-display: 'Newsreader', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-width: 720px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: var(--burgundy);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--forest); }

/* ---------- Layout ---------- */

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

header.site-header {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding: 70px 0 60px;
  overflow: hidden;
  isolation: isolate;
}

header.site-header::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  background-image:
    url('../images/banner.jpg'),
    linear-gradient(180deg, #bfe0ee 0%, #8fc4dc 30%, #4f9dbd 55%, #2c7a9a 75%, #1c5e78 100%);
  background-size: cover;
  background-position: center;
  filter: blur(0px);
}

header.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(237, 235, 230, 0.2);
}

header.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}

.site-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-tagline {
  font-family: var(--font-body);
  font-size: 14px;
  font-style: italic;
  color: var(--ink-soft);
  margin-left: 10px;
}

nav.site-nav {
  display: flex;
  gap: 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

nav.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
nav.site-nav a:hover,
nav.site-nav a.active {
  color: var(--burgundy);
  border-bottom-color: var(--burgundy);
}

main { padding: 48px 0 80px; }

footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--forest);
  font-weight: 500;
  margin: 0 0 0.4em;
}

h1 { font-size: 16px; line-height: 1.15; }
h2 { font-size: 15px; }
h3 { font-size: 19px; }

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--burgundy);
  display: block;
  margin-bottom: 10px;
}

/* ---------- Bio / hero ---------- */

.hero {
  display: flex;
  align-items: flex-start;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.hero-photo {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  flex-shrink: 0;
  margin-right: 48px;
}

.hero-text { flex: 1; min-width: 240px; }

.hero-text p { color: var(--ink-soft); }

/* ---------- Sections ---------- */

.section {
  margin-bottom: 56px;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 56px 0;
}

/* Photo gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: var(--paper-alt);
}

/* Quotes */
.quote-list { list-style: none; margin: 0; padding: 0; }
.quote-list li {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  color: var(--ink);
  border-left: 2px solid var(--burgundy);
  padding: 4px 0 4px 18px;
  margin-bottom: 20px;
}
.quote-list li cite {
  display: block;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 6px;
}

/* Songs */
.song-list { list-style: none; margin: 0; padding: 0; }
.song-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
}
.song-list li:last-child { border-bottom: none; }
.song-title { color: var(--ink); font-weight: 500; }
.song-artist { color: var(--ink-soft); }

/* ---------- Blog / posts ---------- */

.post {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.post:last-child { border-bottom: none; }

.post-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.post-content { margin-top: 12px; white-space: pre-wrap; }

/* Comments */

.comments-toggle {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.comments-toggle:hover { color: var(--burgundy); }

.comments-block { margin-top: 20px; display: none; }
.comments-block.open { display: block; }

.comment {
  background: var(--paper-alt);
  border-radius: 4px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.comment-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.comment-name { color: var(--forest); font-weight: 500; }

.comment-form { margin-top: 18px; }
.comment-form input,
.comment-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  margin-bottom: 10px;
}
.comment-form textarea { min-height: 80px; resize: vertical; }

/* Honeypot field — hidden from real visitors, visible to bots */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; }

button.btn {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--forest);
  color: var(--paper);
  border: none;
  padding: 10px 18px;
  border-radius: 3px;
  cursor: pointer;
}
button.btn:hover { background: var(--burgundy); }
button.btn:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
.comments-toggle:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 2px;
}

.form-message {
  font-family: var(--font-mono);
  font-size: 13px;
  margin-top: 6px;
}
.form-message.error { color: var(--burgundy); }
.form-message.success { color: var(--forest); }

/* ---------- Admin ---------- */

.admin-box {
  max-width: 420px;
  margin: 80px auto;
  padding: 32px;
  background: var(--paper-alt);
  border-radius: 6px;
}

.admin-comment {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  background: var(--paper-alt);
  border-radius: 4px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.admin-comment.hidden-comment { opacity: 0.5; }
.admin-comment-actions { display: flex; gap: 8px; flex-shrink: 0; }
.admin-comment-actions button {
  font-family: var(--font-mono);
  font-size: 11px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 4px 8px;
  cursor: pointer;
  color: var(--ink-soft);
}
.admin-comment-actions button:hover { border-color: var(--burgundy); color: var(--burgundy); }

/* ---------- Music player ---------- */

.now-playing {
  background: var(--paper-alt);
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 32px;
}
.now-playing-title { font-family: var(--font-display); font-size: 20px; color: var(--forest); }
.now-playing-artist { color: var(--ink-soft); font-size: 14px; margin-bottom: 12px; }
.now-playing audio { width: 100%; }

.track-list { list-style: none; margin: 0; padding: 0; }
.track-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line-soft);
  padding: 14px 4px;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
}
.track-row:last-child { border-bottom: none; }
.track-row:hover { background: var(--paper-alt); }
.track-row.active .track-title { color: var(--burgundy); }
.track-number {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  width: 20px;
  flex-shrink: 0;
}
.track-title { font-weight: 500; }
.track-artist { color: var(--ink-soft); margin-left: auto; font-size: 14px; }

/* ---------- Gallery page ---------- */

.gallery-full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.gallery-full img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: var(--paper-alt);
  cursor: pointer;
}

.see-more-link {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 19, 17, 0.92);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 4px;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--paper);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

.post-tags { margin-top: 10px; }
.post-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2px 9px;
  margin-right: 6px;
  margin-bottom: 6px;
  background: none;
  cursor: pointer;
}
.post-tag:hover { border-color: var(--burgundy); color: var(--burgundy); }

/* ---------- Video page ---------- */

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 32px;
}
.category-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 7px 14px;
  cursor: pointer;
  color: var(--ink-soft);
}
.category-chip:hover { border-color: var(--burgundy); color: var(--burgundy); }
.category-chip.active {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--paper);
}

.now-watching {
  background: var(--paper-alt);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 28px;
  display: none;
}
.now-watching.open { display: block; }
.now-watching video { width: 100%; border-radius: 4px; display: block; }
.now-watching-title { font-family: var(--font-display); font-size: 18px; color: var(--forest); margin-top: 10px; }
.now-watching-category { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; color: var(--ink-soft); }

.video-list { list-style: none; margin: 0; padding: 0; }
.video-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line-soft);
  padding: 14px 4px;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
}
.video-row:hover { background: var(--paper-alt); }
.video-row.active .video-title { color: var(--burgundy); }
.video-title { font-weight: 500; }
.video-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2px 9px;
  margin-left: auto;
  flex-shrink: 0;
}

/* ---------- Responsive ---------- */

/* Touch targets: comfortable tap area on any touchscreen, regardless of OS */
nav.site-nav a,
.comments-toggle,
.see-more-link {
  padding-top: 4px;
  padding-bottom: 4px;
}
button.btn {
  min-height: 44px;
  padding: 10px 20px;
}
.track-row,
.comments-toggle {
  min-height: 44px;
}

/* Tablet */
@media (max-width: 900px) and (min-width: 561px) {
  .wrap { max-width: 640px; }
  .gallery-full { grid-template-columns: repeat(3, 1fr); }
}

/* Phone */
@media (max-width: 560px) {
  header.site-header { padding: 24px 0 18px; }
  nav.site-nav { gap: 14px; }
  .hero { flex-direction: column; }
  .hero-photo { width: 100px; height: 100px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-full { grid-template-columns: repeat(2, 1fr); }
  .admin-comment { flex-direction: column; align-items: stretch; }
  .admin-comment-actions { justify-content: flex-end; }
}

/* Small phones */
@media (max-width: 380px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  nav.site-nav { gap: 10px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
