/* Marty Ivy — martyivy.art
   Dark only: the music is club music and the screenshots are dark. */

:root {
  --bg: #0b0d0c;
  --bg-2: #121614;
  --line: #232a26;
  --text: #ecf1ed;
  --muted: #93a098;
  --ivy: #b6ff3b;        /* acid ivy — the name, the music */
  --ivy-ink: #0b0d0c;
  --violet: #9b6bff;     /* the tunnel — lessons */
  --amber: #ffb547;      /* art, later */
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ivy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; margin: 2rem 0 0.9rem; letter-spacing: 0.02em; }
:focus-visible { outline: 2px solid var(--ivy); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ivy); color: var(--ivy-ink); padding: 8px 14px; border-radius: 8px; }

.eyebrow {
  font: 600 0.75rem/1 var(--body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivy);
  margin: 0 0 1.1rem;
}
.muted { color: var(--muted); }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px var(--gutter);
  background: linear-gradient(var(--bg) 0%, rgba(11, 13, 12, 0.7) 70%, transparent);
  backdrop-filter: blur(6px);
}
.nav__logo { font: 900 1.05rem/1 var(--display); text-decoration: none; letter-spacing: 0.04em; }
.logo__marty { color: var(--text); }
.logo__ivy { color: var(--ivy); margin-left: 0.3em; }
.nav__links { display: flex; gap: clamp(12px, 3vw, 32px); list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.nav__links a:hover { color: var(--text); }
@media (max-width: 520px) {
  .nav__links li:nth-child(3) { display: none; }
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font: 600 0.95rem/1 var(--body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn--primary { background: var(--ivy); color: var(--ivy-ink); }
.btn--violet { background: var(--violet); color: #fff; margin-top: 2rem; }
.btn--ghost { color: var(--text); border-color: var(--line); background: transparent; }
.btn--ghost:hover { border-color: var(--muted); }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px var(--gutter) 96px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 85% 20%, rgba(155, 107, 255, 0.22), transparent 70%),
    radial-gradient(50% 60% at 10% 90%, rgba(182, 255, 59, 0.12), transparent 70%);
}
.hero__viz { position: absolute; inset: auto 0 0 0; width: 100%; height: 55%; z-index: -1; opacity: 0.9; }
.hero__inner { max-width: var(--max); margin: 0 auto; width: 100%; }
.hero__title {
  font-size: clamp(4rem, 17vw, 14rem);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.04em;
  display: flex; flex-wrap: wrap; column-gap: 0.18em;
}
.hero__ivy { color: var(--ivy); }
.hero__lede { max-width: 36rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); margin: 2rem 0 2.2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid var(--line); border-radius: 13px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--ivy); border-radius: 2px; animation: drop 1.6s ease-in-out infinite;
}
@keyframes drop { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ── Work index ──────────────────────────────────────────────────────── */
.works {
  max-width: var(--max); margin: -40px auto 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px;
  position: relative; z-index: 2;
}
.work {
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px 24px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line);
  color: var(--text); text-decoration: none;
  border-top: 3px solid var(--hue);
  transition: transform .2s ease, border-color .2s ease;
}
.work:hover { transform: translateY(-3px); text-decoration: none; }
.work__kind { font: 600 0.72rem/1 var(--body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--hue); }
.work__title { font: 700 1.15rem/1.2 var(--display); margin-top: 6px; }
.work__meta { color: var(--muted); font-size: 0.9rem; }
.work--soon { opacity: 0.75; }

/* ── Sections ────────────────────────────────────────────────────────── */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vw, 140px) var(--gutter) 0; }
.section__head { max-width: 46rem; margin-bottom: 3rem; }
.section__lede { color: var(--muted); font-size: 1.1rem; margin: 1.4rem 0 0; }

/* ── Album + player ──────────────────────────────────────────────────── */
.album { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
@media (max-width: 880px) { .album { grid-template-columns: 1fr; } }
.album__cover { margin: 0; position: sticky; top: 90px; }
@media (max-width: 880px) { .album__cover { position: static; } }
.album__cover img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(155, 107, 255, 0.45); }
.album__cover figcaption { color: var(--muted); font-size: 0.85rem; margin-top: 10px; }

.player { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.player__now { display: flex; align-items: center; gap: 14px; }
.player__toggle {
  flex: none; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ivy); color: var(--ivy-ink); display: grid; place-items: center;
}
.player__toggle svg { width: 24px; height: 24px; fill: currentColor; }
.player__toggle .i-pause, .is-playing .player__toggle .i-play { display: none; }
.is-playing .player__toggle .i-pause { display: block; }
.player__info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.player__title { font: 700 1.1rem/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__sub { color: var(--muted); font-size: 0.85rem; }
.player__time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 0.9rem; }

.player__seek {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px; margin: 18px 0 10px;
  background: linear-gradient(var(--ivy), var(--ivy)) 0 / var(--p, 0%) 100% no-repeat, var(--line);
  border-radius: 2px; cursor: pointer;
}
.player__seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--text); }
.player__seek::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--text); }

.tracks { list-style: none; margin: 0; padding: 0; }
.track {
  width: 100%; display: grid; grid-template-columns: 2.2rem 1fr auto auto; gap: 4px 14px; align-items: center;
  padding: 14px 10px; border: 0; border-top: 1px solid var(--line); background: none;
  color: var(--text); text-align: left; font: inherit; cursor: pointer; border-radius: 8px;
}
.tracks li:first-child .track { border-top: 0; }
.track:hover { background: rgba(255, 255, 255, 0.03); }
.track__n { font: 500 0.85rem/1 var(--display); color: var(--muted); }
.track__body { display: flex; flex-direction: column; min-width: 0; }
.track__name { font-weight: 600; }
.track__note { color: var(--muted); font-size: 0.85rem; line-height: 1.45; }
.track__tag { font-size: 0.75rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.track__dur { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 0.85rem; }
.track.is-current .track__n, .track.is-current .track__name { color: var(--ivy); }
@media (max-width: 560px) {
  .track { grid-template-columns: 1.8rem 1fr auto; }
  .track__tag { display: none; }
}

.game {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center;
  margin-top: clamp(48px, 8vw, 96px);
}
@media (max-width: 880px) { .game { grid-template-columns: 1fr; } }
.game img { border-radius: var(--radius); border: 1px solid var(--line); }
.game h3 { font-size: 1.6rem; margin-top: 0; }
.game p { color: var(--muted); }
.game__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }

/* ── Lessons ─────────────────────────────────────────────────────────── */
.section--lessons .eyebrow { color: var(--violet); }
.section--lessons .section__lede a { color: var(--violet); }
.lessons { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 880px) { .lessons { grid-template-columns: 1fr; } }
.lessons__shots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lessons__shots img { border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 30px 70px -35px rgba(155, 107, 255, 0.6); }
.lessons__shots img:nth-child(2) { margin-top: 48px; }
.lessons__body h3:first-child { margin-top: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { padding: 7px 13px; border-radius: 999px; background: rgba(155, 107, 255, 0.12); border: 1px solid rgba(155, 107, 255, 0.3); font-size: 0.88rem; }

.styles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
@media (max-width: 560px) { .styles { grid-template-columns: 1fr; } }
.styles li { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
.styles strong { display: block; color: var(--text); font-weight: 600; }

/* ── Art + contact ───────────────────────────────────────────────────── */
.soon {
  padding: clamp(36px, 6vw, 72px); border-radius: calc(var(--radius) * 1.5);
  border: 1px dashed rgba(255, 181, 71, 0.45);
  background: radial-gradient(80% 120% at 100% 0%, rgba(255, 181, 71, 0.12), transparent 60%);
}
.soon .eyebrow { color: var(--amber); }
.soon p:last-child { color: var(--muted); max-width: 34rem; margin: 1.2rem 0 0; font-size: 1.1rem; }

.section--contact { text-align: center; padding-bottom: clamp(80px, 12vw, 140px); }
.section--contact .section__lede { margin-inline: auto; max-width: 30rem; }
.mail {
  display: inline-block; margin-top: 2rem;
  font: 700 clamp(1.3rem, 5vw, 3rem)/1.1 var(--display); color: var(--ivy);
  text-decoration: none; overflow-wrap: anywhere;
}
.mail:hover { text-decoration: underline; }

.footer {
  max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 40px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--line);
}
.footer a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
