html {
  color-scheme: dark light;
}

:root,
html[data-theme="dark"] {
  --ink: #f2f0f7;
  --ink-soft: #a9a5b8;
  --paper: #121218;
  --paper-alt: #1b1b23;
  --night: #0e0e12;
  --line: #2e2e3a;
  --accent: #7b9cff;
  --album-text: #f2f0f7;
  --button-bg: var(--accent);
  --button-text: #0e0e12;
  --card-shadow: 0 12px 28px rgb(0 0 0 / 0.35);
  --measure: 42rem;
  --wide: 72rem;
}

html[data-theme="light"] {
  color-scheme: light;
  --ink: #121212;
  --ink-soft: #5c5f66;
  --paper: #ffffff;
  --paper-alt: #f3f3f3;
  --night: #242833;
  --line: #e3e3e3;
  --accent: #334fb4;
  --album-text: #f2f0f7;
  --button-bg: var(--ink);
  --button-text: var(--paper);
  --card-shadow: 0 12px 28px rgb(18 18 18 / 0.1);
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Assistant, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img,
iframe { max-width: 100%; }

img { height: auto; }

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.125rem); font-weight: 700; }
h3 { font-size: 1.1875rem; font-weight: 600; }

/* Header */
.album-bar {
  display: block;
  padding: 0.6rem 1rem;
  background: var(--night);
  color: var(--album-text);
  text-align: center;
  font-size: 0.9375rem;
  text-decoration: none;
}

.album-bar:hover {
  background: var(--accent);
  color: #0e0e12;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.site-logo {
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-left: auto;
}

.site-nav a {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--ink); }

.nav-toggle-label { display: none; }

/* Layout */
.site-main {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.section { margin-bottom: 4rem; }

.section:last-child { margin-bottom: 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-head h2 { margin: 0; }

.section-head a {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.hero {
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 3rem;
}

.hero p {
  color: var(--ink-soft);
  font-size: 1.1875rem;
  max-width: var(--measure);
}

.lede {
  color: var(--ink-soft);
  max-width: var(--measure);
  margin-top: -0.25rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}

.button {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.75rem 1.5rem;
  background: var(--button-bg);
  color: var(--button-text);
  font-weight: 600;
  text-decoration: none;
  border-radius: 2rem;
}

.button:hover {
  background: var(--accent);
  color: #0e0e12;
}

/* Media */
.video {
  position: relative;
  padding-bottom: 56.25%;
  background: var(--paper-alt);
  border-radius: 12px;
  overflow: hidden;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.watch-featured {
  margin-bottom: 2.5rem;
}

.watch-featured h2 {
  margin: 0.85rem 0 0;
  font-size: 1.25rem;
}

.watch-grid {
  display: grid;
  gap: 2rem 1.5rem;
}

.watch-item h2 {
  margin: 0.75rem 0 0;
  font-size: 1.0625rem;
  font-weight: 600;
}

@media (min-width: 52rem) {
  .prose:has(.watch-grid) { max-width: var(--wide); }

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

.product-video {
  aspect-ratio: 9 / 16;
  max-width: 24rem;
  margin: 0 auto;
  padding-bottom: 0;
  width: 100%;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}

.card-grid-4 {
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.card-body { padding: 1.125rem 1.25rem 1.5rem; }

.card-body time {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

.card-body h3 { margin-bottom: 0.4rem; }

.card-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* Long-form content */
.prose {
  max-width: var(--measure);
  margin: 0 auto;
}

.prose img,
.prose iframe { border-radius: 10px; }

.prose figure { margin: 2rem 0; }

.prose blockquote {
  margin: 1.75rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 4px solid var(--ink);
  border-left-color: var(--ink);
  font-style: italic;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 3rem 0 1.5rem;
}

.about-hero {
  margin: 0 0 1.75rem;
}

.about-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 60%;
}

.about-photo {
  margin: 1.5rem 0 0;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.about-photo figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.about-lede {
  font-size: 1.125rem;
  margin: 0 0 1.25rem;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
}

.about-links .button {
  margin-top: 0;
  text-decoration: none;
}

.about h2 {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 1.0625rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.about a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.about .button {
  color: var(--button-text);
}

.about-discog {
  display: grid;
  gap: 1.5rem;
  margin: 0;
}

.about-discog div { margin: 0; }

.about-discog dt {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.about-discog dd {
  margin: 0;
  color: var(--ink-soft);
}

.about-source {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-soft);
}

@media (min-width: 40rem) {
  .about-discog {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 2rem;
  }
}

/* GRIDI hub */
.prose:has(.gridi) { max-width: var(--wide); }

.gridi-kicker {
  margin: -0.35rem 0 1.25rem;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.gridi-hero,
.gridi-photo {
  margin: 0 0 0.5rem;
}

.gridi-hero img,
.gridi-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gridi-hero figcaption,
.gridi-photo figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.gridi-dots {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 0.4rem;
  margin: 1.25rem 0 1.75rem;
}

.gridi-dots span {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--line);
  animation: gridi-scan 1.8s linear infinite;
  animation-delay: calc(var(--i) * 0.11s);
}

.gridi-dots span:nth-child(3n) { background: #4d7dff; }
.gridi-dots span:nth-child(4n) { background: #e08a3c; }
.gridi-dots span:nth-child(5n) { background: #8b74ff; }

@keyframes gridi-scan {
  0%, 70%, 100% { opacity: 0.35; transform: scale(0.85); }
  12% { opacity: 1; transform: scale(1.15); }
}

.gridi-lede {
  font-size: 1.2rem;
  line-height: 1.5;
  margin: 0 0 1.15rem;
}

.gridi-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.gridi-specs li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--ink-soft);
  background: var(--paper-alt);
}

.gridi-specs strong {
  color: var(--ink);
  font-weight: 600;
}

.gridi-swatch {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
}

.gridi-swatch-drum { background: #4d7dff; }
.gridi-swatch-bass { background: #e08a3c; }
.gridi-swatch-melody { background: #8b74ff; }

.gridi h2 {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 1.0625rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.gridi a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.gridi-featured {
  margin: 0 0 1.75rem;
}

.gridi-featured h3,
.gridi-videos h3 {
  margin: 0.75rem 0 0;
  font-size: 1.0625rem;
  font-weight: 600;
}

.gridi-videos {
  display: grid;
  gap: 1.75rem 1.25rem;
}

.gridi-tour {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gridi-tour li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.gridi-tour time {
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.gridi-tour strong { display: block; }

.gridi-tour span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.gridi-press {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gridi-press li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1.25rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.gridi-press span {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.gridi-team {
  display: grid;
  gap: 0.75rem 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gridi-team li { margin: 0; }

.gridi-team strong { display: block; }

.gridi-team span {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

@media (min-width: 40rem) {
  .gridi-team { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 52rem) {
  .gridi-videos {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gridi-dots span { animation: none; opacity: 0.7; }
}

.post-meta {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  margin-top: -0.25rem;
}

.post-hero {
  width: 100%;
  border-radius: 12px;
  margin: 1.5rem 0 2rem;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.9375rem;
}

/* Products */
.product {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 52rem) {
  .product { grid-template-columns: 1fr 1fr; align-items: start; }
}

.product-image {
  width: 100%;
  border-radius: 12px;
  background: var(--paper-alt);
}

.product-media {
  display: grid;
  gap: 0.75rem;
}

.product-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, 5.5rem);
  gap: 0.75rem;
}

.product-thumbs img {
  width: 5.5rem;
  aspect-ratio: 1;
  /* Contain, not cover: several of these are notation that crops badly. */
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-alt);
}

.product-body { margin: 0; }

.product-price {
  font-weight: 600;
  color: var(--accent);
}

.notice {
  padding: 1rem 1.25rem;
  background: var(--paper-alt);
  border-radius: 10px;
  font-size: 0.9375rem;
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1.5rem;
}

.contact-form label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 0.75rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: var(--paper);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.contact-form .button {
  align-self: flex-start;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

/* Instagram grid — replaces the Shopify Instafeed app section */
.instagram h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.instagram h2 a { text-decoration: none; }

.instagram h2 a:hover { color: var(--accent); }

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.instagram-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 6px;
  background: var(--paper-alt);
}

.instagram-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.2s ease;
}

.instagram-tile:hover img {
  transform: scale(1.04);
  opacity: 0.9;
}

.instagram-badge {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
}

.instagram-follow {
  text-align: center;
  margin: 0;
}

.button-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.button-outline:hover {
  background: var(--button-bg);
  color: var(--button-text);
}

@media (max-width: 48rem) {
  .instagram-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Newsletter */
.newsletter {
  max-width: var(--measure);
  margin: 0 auto 3rem;
  text-align: center;
}

.newsletter p {
  color: var(--ink);
  margin: 0 0 1.25rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1 1 16rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: var(--paper);
  color: inherit;
  font: inherit;
}

.newsletter-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.newsletter-form .button {
  margin-top: 0;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-alt);
  padding: 3rem 1.5rem 2rem;
}

.footer-inner {
  display: grid;
  gap: 2rem;
  max-width: var(--wide);
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.footer-title { font-weight: 700; margin: 0; }

.footer-tagline {
  color: var(--ink);
  margin: 0.25rem 0 0;
  font-size: 0.9375rem;
}

.footer-nav,
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9375rem;
}

.footer-nav a,
.footer-social a {
  color: var(--ink);
  text-decoration: none;
}

.footer-nav a:hover,
.footer-social a:hover { color: var(--ink); }

.footer-theme {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-start;
}

.footer-theme-label {
  margin: 0;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.85rem 0.35rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  line-height: 1;
}

.theme-toggle-text { white-space: nowrap; }

.footer-legal {
  max-width: var(--wide);
  margin: 2.5rem auto 0;
  color: var(--ink);
  font-size: 0.8125rem;
}

@media (max-width: 48rem) {
  .nav-toggle-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-left: auto;
    cursor: pointer;
    padding: 0.5rem;
  }

  .nav-toggle-label span {
    width: 22px;
    height: 2px;
    background: var(--ink);
  }

  .site-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-left: 0;
  }

  .nav-toggle:checked ~ .site-nav { display: flex; }
}
