/* ─── Design tokens ─── */
:root {
  --bg: #f7f4ec;
  --bg-dark: #231a12;
  --text: #231a12;
  --text-secondary: #5c4e3e;
  --text-body: #4a3c2e;
  --blue: #2447e0;
  --red: #e8362b;
  --text-dark: #f7f4ec;
  --label-dark: #c9bfaf;
  --footer-dark: #8a7c6c;
  --card-bg: #f2eee3;
  --card-bg-dark: #e7e1d2;
  --wash: linear-gradient(to right, rgba(36, 71, 224, 0.14), rgba(232, 54, 43, 0.14));
  --font-display: "Jost", sans-serif;
  --font-heading: Futura, "Jost", sans-serif;
  --font-body: "Work Sans", sans-serif;
  --radius-card: 16px;
  --radius-pill: 100px;
  --header-height: 78px;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-body);
  min-height: 100vh;
}

a {
  color: var(--blue);
}

a:hover {
  color: var(--red);
}

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

.section,
#top {
  scroll-margin-top: var(--header-height);
}

/* ─── Nav ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 236, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(20px, 5vw, 56px);
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(35, 26, 18, 0.08);
}

.logo {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 2rem;
  text-decoration: none;
  color: var(--text);
}

.logo:hover {
  color: var(--text);
}

.site-nav {
  display: flex;
  gap: clamp(14px, 3vw, 32px);
  flex-wrap: wrap;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.2rem;
}

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

.site-nav a:hover {
  color: var(--red);
}

.site-header .logo {
  order: 1;
}

.site-header .site-nav {
  order: 2;
}

.site-header .btn-cta {
  order: 3;
}

.burger {
  display: none;
  order: 4;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Buttons ─── */
.btn {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  display: inline-block;
}

.btn-cta {
  background: var(--red);
  color: var(--text-dark);
}

.btn-cta:hover {
  background: var(--blue);
  color: var(--text-dark);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
  padding: 8px 20px;
}

.btn-outline:hover {
  background: var(--blue);
  color: var(--text-dark);
}

.section-more {
  text-align: center;
  margin: 40px 0 0 0;
}

/* ─── Hero ─── */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 100px) clamp(20px, 5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.98;
  margin: 0 0 20px 0;
  color: var(--text);
}

.hero-tagline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-secondary);
  margin: 0 0 28px 0;
}

.hero-intro {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 480px;
  margin: 0;
}

.hero-media {
  position: relative;
}

.hero-block {
  position: absolute;
  border-radius: 18px;
}

.hero-block-blue {
  inset: 14px -14px -14px 14px;
  background: var(--blue);
}

.hero-block-red {
  inset: -14px 14px 14px -14px;
  background: var(--red);
}

.hero-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  padding: 24px;
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center 30%;
  transform: translateY(-20px);
}

/* ─── Dividers ─── */
.divider {
  display: flex;
  height: 6px;
}

.divider span {
  flex: 1;
}

.divider-blue-red span:first-child {
  background: var(--blue);
}

.divider-blue-red span:last-child {
  background: var(--red);
}

.divider-red-blue span:first-child {
  background: var(--red);
}

.divider-red-blue span:last-child {
  background: var(--blue);
}

/* ─── Sections ─── */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(60px, 8vw, 110px) clamp(20px, 5vw, 56px);
}

.section-wash {
  max-width: none;
  background: var(--wash);
  border-top: 1px solid rgba(35, 26, 18, 0.08);
  border-bottom: 1px solid rgba(35, 26, 18, 0.08);
}

.section-wash > .section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.44rem, 2.4vw, 2.08rem);
  margin: 0 0 6px 0;
  color: var(--text);
}

.accent-bar {
  width: 60px;
  height: 5px;
  border-radius: 4px;
  margin: 0 0 26px 0;
}

.accent-blue {
  background: var(--blue);
}

.accent-red {
  background: var(--red);
}

.section-intro {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-body);
  max-width: 700px;
  margin: 0 0 46px 0;
}

/* ─── About ─── */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: clamp(30px, 5vw, 70px);
}

.about-lead {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 22px 0;
}

.about-grid p:not(.about-lead) {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-body);
  margin: 0 0 18px 0;
}

.about-grid p:last-of-type {
  margin-bottom: 0;
}

.tag-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.tag {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
}

.tag-blue {
  background: rgba(36, 71, 224, 0.1);
  color: var(--blue);
}

.tag-red {
  background: rgba(232, 54, 43, 0.1);
  color: var(--red);
}

.placeholder-slot {
  width: 100%;
  border-radius: var(--radius-card);
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a7c6c;
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
}

.portrait-slot {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.portrait-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── Card grid (Code) ─── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.card-image {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--card-bg);
}

.bordered-image {
  border: 6px solid #000;
  border-radius: 14px;
}

.shrink-image {
  width: 82%;
  margin: 0 auto;
  display: block;
}

.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0 0 8px 0;
  color: var(--text);
}

.card p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-body);
  margin: 0;
}

.card a {
  text-decoration: none;
  color: inherit;
}

.card-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background: var(--card-bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a7c6c;
  font-size: 0.85rem;
  text-align: center;
  padding: 14px;
  margin-bottom: 16px;
}

.card-playable {
  background: var(--wash);
  color: var(--blue);
  font-family: var(--font-display);
  font-weight: 500;
}

/* ─── Art ─── */
.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 36px;
}

.art-image {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--card-bg);
}

.media-caption {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
}

#art .media-caption {
  text-align: center;
}

.media-caption-spaced {
  margin-top: 14px;
}

.square-slot {
  aspect-ratio: 1;
}

/* ─── Music ─── */
.release-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-bottom: 36px;
}

.release-image {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
}

.release-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0 0 6px 0;
  color: var(--text);
}

.release-meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 0 10px 0;
}

.release-links {
  display: flex;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  flex-wrap: wrap;
  align-items: center;
}

.release-links a {
  text-decoration: none;
}

.video-slot {
  width: 100%;
  height: 340px;
  border-radius: 14px;
  background: var(--card-bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a7c6c;
  font-size: 0.9rem;
}

.video-embed {
  width: 100%;
  max-height: 600px;
  border-radius: 14px;
  background: #000;
}

.video-embed-spaced {
  margin-top: 36px;
}

/* ─── Clothing ─── */
.clothing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.clothing-grid img {
  width: 100%;
  border-radius: 14px;
  background: var(--card-bg);
}

.clothing-video-slot {
  height: 320px;
  background: var(--card-bg);
}

/* ─── Links / footer ─── */
.links-section {
  background: var(--bg-dark);
  color: var(--text-dark);
  padding: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 56px);
  max-width: none;
}

.links-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.links-section h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.44rem, 2.4vw, 2.08rem);
  margin: 0 0 30px 0;
  color: var(--text-dark);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}

.links-col h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--label-dark);
  margin: 0 0 14px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.links-col-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1.05rem;
}

.links-col-list a {
  color: var(--text-dark);
  text-decoration: none;
}

.links-col-list a:hover {
  color: var(--label-dark);
}

.copyright {
  margin: 60px 0 0 0;
  font-size: 0.85rem;
  color: var(--footer-dark);
}

/* ─── Subpages (Music full page, Love & Hate) ─── */
.subpage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(20px, 5vw, 56px);
  border-bottom: 1px solid rgba(35, 26, 18, 0.08);
  flex-wrap: wrap;
}

.back-link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--text-secondary);
}

.back-link:hover {
  color: var(--red);
}

.subpage-main {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 80px) clamp(20px, 5vw, 56px);
}

.subpage-main h1 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.44rem, 2.4vw, 2.08rem);
  margin: 0 0 6px 0;
  color: var(--text);
}

.subpage-intro {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-body);
  margin: 0 0 46px 0;
}

/* ─── Music player (full page) ─── */
.player-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  padding: 14px 0;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(35, 26, 18, 0.08);
}

#visualiser {
  display: block;
  margin: 0 auto 10px auto;
  border-radius: 14px;
  max-width: 100%;
}

#audio-player {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto 8px auto;
}

#now-playing {
  white-space: nowrap;
  overflow: hidden;
  max-width: 420px;
  margin: 0 auto;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

#now-playing span {
  display: inline-block;
  animation: ticker 40s linear infinite;
  animation-play-state: paused;
}

@keyframes ticker {
  0% {
    transform: translateX(50vw);
  }
  100% {
    transform: translateX(-100vw);
  }
}

.release-card-full {
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(35, 26, 18, 0.08);
}

.release-card-full:last-of-type {
  border-bottom: none;
}

.play-sample {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--text);
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  cursor: pointer;
}

.play-sample:hover {
  background: var(--red);
}

.newsletter-form {
  margin: 60px 0;
  padding: 30px clamp(20px, 5vw, 40px);
  background: var(--card-bg);
  border-radius: var(--radius-card);
  text-align: center;
}

.newsletter-form label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 14px;
  color: var(--text);
}

.newsletter-form input[type="email"] {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(35, 26, 18, 0.2);
  margin-right: 10px;
  width: 240px;
  max-width: 60%;
}

.newsletter-form input[type="submit"] {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--blue);
  border: none;
  border-radius: var(--radius-pill);
  padding: 11px 24px;
  cursor: pointer;
}

.newsletter-form input[type="submit"]:hover {
  background: var(--red);
}

/* ─── Blog ─── */
#blog-container {
  margin-top: 40px;
}

#blog-container > div {
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(35, 26, 18, 0.08);
}

#blog-container > div:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

#blog-container h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.6rem;
  margin: 0 0 6px 0;
  color: var(--text);
}

#blog-container h3 + p {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 0 22px 0;
}

#blog-container p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-body);
  margin: 0 0 18px 0;
}

#blog-container p:last-child {
  margin-bottom: 0;
}

/* ─── Links (linktree-style bio page) ─── */
.linktree-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(48px, 10vw, 80px) 24px;
  text-align: center;
}

.linktree-tagline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 10px 0 40px 0;
}

.linktree-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 360px;
}

.btn-block {
  width: 100%;
  text-align: center;
  padding: 14px 22px;
  font-size: 1.05rem;
}

.linktree-note {
  margin: 26px 0 0 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 360px;
}

.linktree-contact {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 40px 0 0 0;
  font-family: var(--font-display);
  font-size: 0.9rem;
}

.linktree-contact a {
  color: var(--text-secondary);
  text-decoration: none;
}

.linktree-contact a:hover {
  color: var(--red);
}

.linktree-site-link {
  margin-top: 50px;
}

/* ─── Love and Hate game page ─── */
.game-wrap {
  text-align: center;
}

#myCanvas {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-text {
    text-align: center;
  }

  .hero-intro {
    margin: 0 auto;
  }

  .hero-media {
    order: -1;
    width: 85%;
    margin: 0 auto;
  }

  .hero h1 {
    margin-top: 10px;
    font-size: clamp(1.9rem, 8.5vw, 2.34rem);
    white-space: nowrap;
  }

  .hero-break {
    display: none;
  }

  .site-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 24px 0;
    background: var(--bg);
    border-bottom: 1px solid rgba(35, 26, 18, 0.08);
    z-index: 49;
  }

  .site-nav.open {
    display: flex;
  }

  .burger {
    display: flex;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .portrait-slot {
    aspect-ratio: 16 / 9;
  }

  .newsletter-form input[type="email"] {
    width: 100%;
    max-width: 100%;
    margin: 0 0 10px 0;
    display: block;
  }
}
