/* ===========================================================
   Zayvion the Artist — site styles
   Palette comes straight from the brand guide:
   Color Code Guide/Logo Color Guide.pdf
   Change the values below to re-theme the whole site.
=========================================================== */

:root {
  --teal: #5cbaaa;
  --lavender: #daa1ed;
  --coral: #ff9179;
  --forest: #365347;
  --forest-dark: #223a30;
  --cream: #f1f1f1;

  --bg: var(--forest);
  --bg-alt: var(--forest-dark);
  --text: var(--cream);
  --text-muted: #c7d6cf;
  --accent-1: var(--teal);
  --accent-2: var(--lavender);
  --accent-3: var(--coral);

  --font-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Poppins", "Segoe UI", system-ui, sans-serif;

  --radius: 18px;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(92, 186, 170, 0.18), transparent 40%),
    radial-gradient(circle at 88% 15%, rgba(218, 161, 237, 0.16), transparent 42%),
    radial-gradient(circle at 50% 95%, rgba(255, 145, 121, 0.14), transparent 45%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 200;
  letter-spacing: 0.02em;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

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

/* ---------- Header banner + nav bar ---------- */

.site-header {
  padding: 36px 0 24px;
  text-align: center;
}

.banner {
  display: inline-block;
  line-height: 0;
}

.banner-logo {
  height: 150px;
  width: auto;
  margin: 0 auto;
}

.site-nav {
  background: rgba(241, 241, 241, 0.06);
  border-top: 1px solid rgba(241, 241, 241, 0.1);
  border-bottom: 1px solid rgba(241, 241, 241, 0.1);
}

.nav-inner {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 48px;
}

.nav-inner a {
  display: block;
  padding: 16px 4px;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-inner a:hover,
.nav-inner a.active {
  color: var(--text);
  border-color: var(--accent-3);
}

@media (max-width: 600px) {
  .nav-inner {
    flex-direction: column;
    gap: 0;
  }

  .nav-inner a {
    width: 100%;
    text-align: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(241, 241, 241, 0.08);
  }

  .nav-inner a:hover,
  .nav-inner a.active {
    border-bottom-color: var(--accent-3);
    background: rgba(241, 241, 241, 0.05);
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: 48px 0 40px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 0.3em;
}

.hero .tagline {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 46ch;
  margin: 0 auto 1.8em;
}

.hero-accent {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 1.6em;
}

.hero-accent span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.hero-accent span:nth-child(1) { background: var(--accent-1); }
.hero-accent span:nth-child(2) { background: var(--accent-2); }
.hero-accent span:nth-child(3) { background: var(--accent-3); }

.btn-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 400;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent-3);
  color: var(--forest-dark);
  box-shadow: 0 6px 20px rgba(255, 145, 121, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--accent-1);
}

/* ---------- Section headers ---------- */

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

.section-head p {
  color: var(--text-muted);
  max-width: 50ch;
  margin: 0 auto;
}

/* ---------- Gallery grid ---------- */

.gallery-filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.gallery-filters button {
  background: rgba(241, 241, 241, 0.08);
  border: 1px solid rgba(241, 241, 241, 0.2);
  color: var(--text);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.gallery-filters button:hover {
  border-color: var(--accent-2);
}

.gallery-filters button.active {
  background: var(--accent-2);
  color: var(--forest-dark);
  border-color: var(--accent-2);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  padding-bottom: 60px;
}

.gallery-card {
  background: rgba(241, 241, 241, 0.05);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(241, 241, 241, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-1);
}

.gallery-card .thumb {
  aspect-ratio: 4 / 5;
  width: 100%;
  overflow: hidden;
  background: var(--bg-alt);
}

.gallery-card .thumb img,
.gallery-card .thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card .thumb .play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.gallery-card .thumb {
  position: relative;
}

.gallery-card .thumb .play-badge i {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(34, 58, 48, 0.7);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.gallery-card .meta {
  padding: 16px 18px 20px;
}

.gallery-card .meta h3 {
  font-size: 1.05rem;
  margin-bottom: 0.2em;
}

.gallery-card .meta .sub {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 999px;
  margin-top: 8px;
  background: rgba(92, 186, 170, 0.18);
  color: var(--accent-1);
}

/* ---------- Lightbox ---------- */

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 32, 27, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
  overflow-y: auto;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  max-width: 900px;
  width: 100%;
  display: grid;
  gap: 20px;
  margin: auto;
}

.lightbox-inner img,
.lightbox-inner video {
  border-radius: var(--radius);
  max-height: 65vh;
  width: 100%;
  object-fit: contain;
  background: var(--bg-alt);
}

.lightbox-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Journal / blog list ---------- */

.journal-list {
  display: grid;
  gap: 28px;
  padding-bottom: 60px;
}

.journal-entry {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: rgba(241, 241, 241, 0.05);
  border: 1px solid rgba(241, 241, 241, 0.08);
  border-radius: var(--radius);
  padding: 28px 32px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.journal-entry:hover {
  border-color: var(--accent-3);
  transform: translateX(4px);
}

.journal-entry .date {
  color: var(--accent-1);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6em;
  display: block;
}

.journal-entry h3 {
  font-size: 1.4rem;
  margin-bottom: 0.4em;
}

.journal-entry .excerpt {
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Favorites ---------- */

#favorites-list {
  padding-bottom: 40px;
}

.favorites-group {
  margin-bottom: 44px;
}

.favorites-group h3 {
  color: var(--accent-2);
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.favorite-item {
  background: rgba(241, 241, 241, 0.05);
  border: 1px solid rgba(241, 241, 241, 0.08);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.favorite-item h4 {
  font-size: 1.05rem;
  margin-bottom: 0.4em;
  font-weight: 400;
}

.favorite-item h4 a {
  color: var(--accent-1);
  text-decoration: none;
}

.favorite-item h4 a:hover {
  text-decoration: underline;
}

.favorite-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* ---------- Single post ---------- */

.post-header {
  text-align: center;
  padding: 40px 0 20px;
}

.post-header .date {
  color: var(--accent-1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}

.post-header h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  margin: 0.3em 0;
}

.post-tags {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1em;
}

.post-body {
  max-width: 70ch;
  margin: 0 auto;
  padding-bottom: 80px;
  font-size: 1.05rem;
}

.post-body h2 {
  margin-top: 1.6em;
  color: var(--accent-2);
  font-size: 1.4rem;
}

.post-body img {
  border-radius: var(--radius);
  margin: 1.5em 0;
}

.post-body blockquote {
  border-left: 3px solid var(--accent-3);
  margin: 1.5em 0;
  padding-left: 1.2em;
  color: var(--text-muted);
  font-style: italic;
}

.back-link {
  display: inline-block;
  margin-bottom: 2em;
  color: var(--accent-1);
  text-decoration: none;
  font-size: 0.9rem;
}

.back-link:hover {
  text-decoration: underline;
}

/* ---------- About block ---------- */

.about {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: center;
  padding: 60px 0;
}

.about .portrait {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2) 55%, var(--accent-3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--forest-dark);
  overflow: hidden;
  padding: 6px;
}

.about .portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

@media (max-width: 700px) {
  .about {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about .portrait {
    width: 140px;
    margin: 0 auto;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid rgba(241, 241, 241, 0.1);
  padding: 32px 0 48px;
  margin-top: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer .socials {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-bottom: 12px;
}

.site-footer a {
  text-decoration: none;
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--accent-3);
}

/* ---------- Empty states ---------- */

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
