@font-face {
  font-family: 'Modern Sans';
  src: url('../assets/fonts/ModernSans-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f1ebe1;
  --fg: #3a2b1f;
  --grey: #8c7a68;
  --line: rgba(58,43,31,0.18);
  --font-display: 'Modern Sans', sans-serif;
  --font-mono: 'Modern Sans', sans-serif;
  --font-body: 'Modern Sans', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
img { max-width: 100%; display: block; }

/* ---------- Page transitions ---------- */

body {
  opacity: 1;
  transition: opacity 0.22s ease;
}

body.page-enter,
body.page-leaving { opacity: 0; }

body.page-leaving { pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  body { transition: none; }
}


/* ---------- Page shell ---------- */

.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 40px 150px;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

a.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 27px;
  letter-spacing: -0.01em;
  color: var(--fg);
}
a.wordmark:hover { opacity: 0.7; }

nav.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
}

nav.main-nav li a {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--grey);
  transition: color 0.15s ease;
}

nav.main-nav li a:hover,
nav.main-nav li a.active {
  color: var(--fg);
}

.socials {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 20px 0;
  background: linear-gradient(0deg, var(--bg) 60%, transparent);
  z-index: 5;
}

.socials a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--grey);
  transition: color 0.15s ease;
}
.socials a:hover { color: var(--fg); }

/* ---------- Home page ---------- */

.home-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-nav {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 920px;
}

.icon-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.icon-nav .icon-frame {
  width: 122px;
  height: 122px;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.icon-nav a:hover .icon-frame {
  transform: translateY(-3px);
  border-color: var(--fg);
}

.icon-nav .icon-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.1);
}

.icon-nav .icon-label {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--fg);
}

.icon-nav a:hover .icon-label { opacity: 0.7; }

/* ---------- Simple content pages (about, contact, press-kit) ---------- */

.content-panel {
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
  padding-top: 12px;
}

.content-panel.wide { max-width: 920px; }

.content-panel h1 {
  font-family: var(--font-display);
  font-size: 38px;
  margin: 0 0 24px;
  font-weight: 500;
}

.content-panel p {
  font-size: 18px;
  line-height: 1.65;
  color: inherit;
}

a.inline-link {
  border-bottom: 1px solid currentColor;
}
a.inline-link:hover { opacity: 0.6; }

.content-panel a.inline-link {
  border-bottom: 1px solid currentColor;
}
.content-panel a.inline-link:hover { opacity: 0.6; }

.about-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  max-width: 920px;
  margin: 0 auto;
  align-items: start;
}

.about-portrait {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 3px;
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.2); }

.press-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 920px;
  margin: 32px auto 0;
}

.press-photo { display: flex; flex-direction: column; gap: 10px; }
.press-photo .frame { aspect-ratio: 4/5; overflow: hidden; border-radius: 3px; }
.press-photo .frame img { width: 100%; height: 100%; object-fit: cover; }
.press-photo a.inline-link { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.02em; }

/* ---------- Release sub-nav ---------- */

.release-subnav {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-bottom: 40px;
}

.release-subnav a {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--grey);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

.release-subnav a.active,
.release-subnav a:hover {
  color: var(--fg);
  border-color: var(--fg);
}

/* ---------- Release pages ---------- */

.release-layout {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 64px;
  max-width: 1040px;
  margin: 0 auto;
  width: 100%;
}

.release-art {
  width: 420px;
  height: 420px;
  flex: none;
  border-radius: 3px;
  overflow: hidden;
}

.release-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.release-info {
  width: 380px;
  flex: none;
  padding-top: 4px;
}

.release-info h1 {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 500;
  margin: 0 0 16px;
}

.release-info .meta {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--grey);
  margin-bottom: 3px;
}

.tracklist {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.track {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: transparent;
}

.track button.play {
  width: 42px;
  height: 42px;
  flex: none;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.track .title {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  padding-right: 18px;
}

.track .time {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--grey);
  padding-right: 18px;
  min-width: 36px;
  text-align: right;
}

.track.playing { border-color: var(--fg); }

/* ---------- Singles page ---------- */

.singles-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 8px;
}

.singles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
  gap: 28px;
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
}

.single-col {
  display: flex;
  flex-direction: column;
}

.single-col .name { font-family: var(--font-mono); font-size: 15px; letter-spacing: 0.01em; margin-bottom: 2px; }
.single-col .year { font-family: var(--font-mono); font-size: 13px; color: var(--grey); margin-bottom: 16px; }

.single-col .cover {
  aspect-ratio: 1;
  width: 100%;
  overflow: hidden;
  margin-bottom: 16px;
  border-radius: 3px;
}
.single-col .cover img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Projects & Appearances lists ---------- */

.stack {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.stack-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 30px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.stack-row:last-child { border-bottom: 1px solid var(--line); }

.stack-row h2 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  margin: 0;
}

.stack-row p {
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 10px;
  color: inherit;
}

.stack-row .links a {
  margin-right: 16px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--grey);
  border-bottom: 1px solid transparent;
}
.stack-row .links a:hover { color: var(--fg); border-color: var(--fg); }

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

@media (max-width: 980px) {
  .release-layout { flex-direction: column; align-items: center; gap: 32px; }
  .release-art { width: 100%; max-width: 380px; height: auto; aspect-ratio: 1; }
  .release-info { width: 100%; max-width: 380px; }
  .about-layout { grid-template-columns: 1fr; }
  .about-portrait { max-width: 320px; margin: 0 auto; }
}

@media (max-width: 720px) {
  .page { padding: 0 20px 130px; }
  .top-bar { flex-wrap: wrap; gap: 12px; padding: 20px 0; margin-bottom: 28px; }
  nav.main-nav ul { gap: 8px 16px; flex-wrap: wrap; }
  .home-content { padding: 40px 0; }
  .icon-nav { gap: 18px; }
  .icon-nav .icon-frame { width: 84px; height: 84px; }
  .content-panel h1 { font-size: 30px; }
  .content-panel p { font-size: 16px; }
  .about-layout { gap: 28px; }
  .press-photos { grid-template-columns: 1fr; }
  .release-info h1 { font-size: 32px; }
  .singles-title { font-size: 26px; }
  .singles-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .stack-row { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .socials { flex-wrap: wrap; gap: 10px 16px; padding: 14px 12px; }
}

@media (max-width: 480px) {
  .singles-grid { grid-template-columns: 1fr; }
  a.wordmark { font-size: 22px; }
  nav.main-nav li a { font-size: 13px; }
}
