:root {
  --bg: #f7f4ef;
  --paper: #fffdf9;
  --ink: #111111;
  --muted: #6f6a63;
  --line: #e5e0d8;
  --accent: #6f7b68;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--bg);
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body:not(.is-loaded) .site-shell {
  opacity: 0;
}

body.is-loaded .site-shell {
  opacity: 1;
  transition: opacity 220ms ease;
}

html:not(.assets-ready) [data-priority-image] {
  opacity: 0;
}

html.assets-ready [data-priority-image] {
  opacity: 1;
  transition: opacity 180ms ease;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.header,
.footer {
  border-bottom: 1px solid var(--line);
  background: rgba(247, 244, 239, 0.86);
  backdrop-filter: blur(18px);
}

.header {
  position: relative;
  z-index: 1000;
  overflow: visible;
}

.footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  margin-top: auto;
}

.footer-tagline {
  line-height: 1.35;
}

.nav,
.footer-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav {
  position: relative;
  z-index: 1001;
  overflow: visible;
}

.brand {
  font-weight: 650;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.mobile-nav-actions {
  display: none;
  position: relative;
  z-index: 1002;
}

.mobile-menu {
  position: relative;
}

.mobile-menu summary {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.58);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  list-style: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu summary span {
  width: 14px;
  height: 1.5px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.mobile-menu[open] summary {
  background: var(--paper);
  border-color: color-mix(in srgb, var(--ink), var(--line) 55%);
}

.mobile-menu[open] summary span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.mobile-menu[open] summary span:nth-child(2) {
  opacity: 0;
}

.mobile-menu[open] summary span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.mobile-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 1003;
  min-width: 176px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 249, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 46px rgba(17, 17, 17, 0.12);
}

.mobile-menu-panel a {
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
}

.mobile-menu-panel a:hover {
  background: #f2eee7;
}

.icon-link {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: rgba(255, 253, 249, 0.58);
  flex: 0 0 auto;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.icon-link:hover {
  border-color: color-mix(in srgb, var(--ink), var(--line) 55%);
  background: var(--paper);
  transform: translateY(-1px);
}

.instagram-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.main {
  flex: 1;
}

.hero {
  min-height: calc(100vh - 152px);
  display: grid;
  align-items: center;
  padding: 72px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 18px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(48px, 8vw, 98px);
  line-height: 0.95;
  letter-spacing: 0;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

.lead {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  max-width: 680px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button,
button.button {
  border: 1px solid var(--line);
  background: var(--ink);
  color: white;
  border-radius: 999px;
  padding: 12px 18px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0;
}

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

.release-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-height: 402px;
}

.release-card {
  min-height: 74px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  padding: 10px 12px;
  transition: border-color 160ms ease, background 160ms ease;
}

.release-card:hover {
  border-color: color-mix(in srgb, var(--accent), var(--line) 60%);
  background: #ffffff;
}

.release-card h3 {
  margin: 0 0 3px;
  font-size: 16px;
  line-height: 1.15;
}

.release-card p {
  margin-bottom: 2px;
}

.release-cover {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 5px;
  background: #eee7dc;
}

.small {
  font-size: 13px;
}

.artist-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.artist-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent), var(--line) 55%);
}

.art-frame,
.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
  background: #eee7dc;
}

.hero-art {
  border-radius: 10px;
}

.art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-card h3 {
  margin: 16px 0 2px;
  font-size: 22px;
}

.card-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.card-title-row span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.muted {
  color: var(--muted);
}

.bio {
  line-height: 1.65;
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.about-section {
  padding: 64px 0;
}

.about-section h2,
.about-section p {
  margin: 0;
}

.contact-form,
.admin-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.honeypot {
  position: absolute;
  left: -10000px;
}

.artist-profile {
  width: min(620px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 72px;
  text-align: center;
}

.profile-image {
  width: min(260px, 72vw);
  height: min(260px, 72vw);
  object-fit: cover;
  aspect-ratio: 1 / 1;
  margin: 0 auto 26px;
  border-radius: 18px;
  box-shadow: 0 22px 70px rgba(17, 17, 17, 0.12);
}

.link-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.artist-link {
  min-height: 58px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--accent), var(--line) 55%);
  background: color-mix(in srgb, var(--accent), white 88%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  font-weight: 600;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  background: #f7f4ef;
}

.admin-sidebar {
  border-right: 1px solid var(--line);
  padding: 26px;
  background: #ebe6dc;
  position: sticky;
  top: 0;
  height: 100vh;
}

.admin-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.admin-nav {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.admin-nav a,
.admin-nav button {
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  color: var(--muted);
  cursor: pointer;
}

.admin-nav a:hover,
.admin-nav button:hover {
  background: rgba(255, 253, 249, 0.58);
  border-color: var(--line);
  color: var(--ink);
}

.admin-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 22px;
  margin-bottom: 26px;
}

.admin-page-head h1 {
  font-size: clamp(36px, 5vw, 62px);
  margin-bottom: 10px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-stat,
.admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 18px;
}

.admin-stat {
  display: grid;
  gap: 6px;
}

.admin-stat span {
  font-size: 30px;
  line-height: 1;
  font-weight: 750;
}

.admin-stat strong {
  font-size: 15px;
}

.admin-stat em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.35;
}

.admin-card {
  display: grid;
  gap: 16px;
  margin-bottom: 14px;
}

.admin-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.admin-card h2,
.admin-card h3 {
  margin-bottom: 0;
}

.admin-editor {
  display: block;
}

.admin-action-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-savebar {
  position: sticky;
  bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-top: 14px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 46px rgba(17, 17, 17, 0.08);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 12px;
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #f2eee7;
}

.table code {
  font-size: 12px;
  color: var(--muted);
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 18px;
}

.editor-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.editor-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 18px;
  display: grid;
  gap: 14px;
}

.preview-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: #eee7dc;
  border: 1px solid var(--line);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.full {
  grid-column: 1 / -1;
}

.link-row {
  display: grid;
  grid-template-columns: 1.1fr 1.8fr 0.8fr 0.45fr 0.5fr;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #fbf8f3;
  border-radius: 8px;
  margin-bottom: 8px;
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .hero-grid,
  .split,
  .editor-shell,
  .form-grid,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .footer-inner,
  .admin-page-head,
  .admin-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-main {
    width: min(100% - 28px, 1180px);
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 34px 0 44px;
  }

  .nav {
    min-height: auto;
    padding: 16px 0;
    gap: 14px;
    flex-direction: row;
    align-items: center;
  }

  .nav-desktop {
    display: none;
  }

  .mobile-nav-actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-nav-actions .icon-link,
  .mobile-menu summary {
    width: 38px;
    height: 38px;
  }

  .instagram-link svg {
    width: 17px;
    height: 17px;
  }

  .eyebrow {
    font-size: 11px;
    line-height: 1.35;
    margin-bottom: 14px;
  }

  h1 {
    font-size: 40px;
    line-height: 0.98;
    margin-bottom: 16px;
  }

  h2 {
    font-size: 30px;
  }

  .lead {
    font-size: 16px;
    line-height: 1.5;
  }

  .actions {
    margin-top: 22px;
  }

  .button,
  button.button {
    min-height: 42px;
    padding: 10px 15px;
    font-size: 13px;
  }

  .section {
    padding: 48px 0;
  }

  .section-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
  }

  .section-head .button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 14px;
    transform: none;
    margin-top: 0;
  }

  .about-section {
    padding: 48px 0;
  }

  .about-section .split {
    gap: 22px;
  }

  .grid {
    gap: 12px;
  }

  .home-artists-grid .artist-card:nth-child(n + 5) {
    display: none;
  }

  .artist-card {
    padding: 10px;
  }

  .artist-card h3 {
    font-size: 18px;
    margin-top: 12px;
  }

  .hero-art,
  .art-frame {
    border-radius: 8px;
  }

  .release-grid {
    min-height: 0;
  }

  .release-card {
    min-height: 64px;
    grid-template-columns: 46px minmax(0, 1fr) 16px;
    gap: 11px;
    padding: 8px 10px;
  }

  .release-cover {
    width: 46px;
    height: 46px;
  }

  .release-card h3 {
    font-size: 14px;
  }

  .release-card p,
  .small {
    font-size: 12px;
  }

  .footer-inner {
    min-height: auto;
    padding: 18px 0;
    gap: 12px;
  }

  .footer-tagline {
    font-size: 12px;
    line-height: 1.25;
    white-space: nowrap;
  }

  .link-row {
    grid-template-columns: 1fr;
  }
}
