/* Issue #98 Preview-only V4 shell for non-landing public surfaces. */
:root {
  --v4-night: #11110f;
  --v4-paper: #faf8f3;
  --v4-cream: #f3efe7;
  --v4-ink: #161512;
  --v4-muted: #706c63;
  --v4-line: #d8d1c5;
  --v4-accent: #7088b7;
  --v4-font: "Onest", "Segoe UI", Arial, ui-sans-serif, system-ui, sans-serif;
  --v4-header-height: 78px;
}

body.v4-surface {
  margin: 0;
  background: var(--v4-cream);
  color: var(--v4-ink);
  font-family: var(--v4-font);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body.v4-surface * { box-sizing: border-box; }
body.v4-surface a { color: inherit; }

.v4-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  padding: 8px 11px;
  background: #fff;
  color: #000;
  transform: translateY(-160%);
}
.v4-skip:focus { transform: none; }

.v4-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(17,17,15,.97);
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.v4-nav {
  width: min(1320px, calc(100% - 56px));
  min-height: var(--v4-header-height);
  margin: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.v4-nav > a:first-child { justify-self: start; }
.v4-nav img { display: block; width: 84px; filter: invert(1); }

.v4-primary-nav {
  display: flex;
  justify-self: center;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.v4-primary-nav a {
  position: relative;
  padding: 9px 0;
  color: rgba(255,255,255,.62);
  font-size: 10px;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease;
}

.v4-primary-nav a:hover,
.v4-primary-nav a[aria-current="page"] { color: #fff; }

.v4-primary-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--v4-accent);
}

.v4-nav-cta,
.v4-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--v4-accent);
  border-radius: 999px;
  background: var(--v4-accent);
  color: var(--v4-night);
  font-weight: 740;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.v4-nav-cta {
  justify-self: end;
  min-height: 44px;
  padding: 0 18px;
  font-size: 11px;
  white-space: nowrap;
}

.v4-action {
  min-height: 48px;
  padding: 0 20px;
  font-size: 12px;
}

.v4-nav-cta:hover,
.v4-action:hover {
  border-color: #fff;
  background: #fff;
}

.v4-main { min-height: 55vh; }

.records-v4-hero {
  width: min(1180px, calc(100% - 48px));
  margin: auto;
  padding: 74px 0 52px;
}

.v4-label {
  margin: 0 0 17px;
  color: var(--v4-accent);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .075em;
  line-height: 1.35;
  text-transform: uppercase;
}

.records-v4-hero h1 {
  max-width: 900px;
  margin: 0 0 20px;
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 480;
  line-height: .94;
  letter-spacing: -.055em;
}

.records-v4-hero p:last-child {
  max-width: 790px;
  margin: 0;
  color: var(--v4-muted);
  font-size: 18px;
  line-height: 1.62;
}

.records-v4-section {
  background: var(--v4-paper);
  border-top: 1px solid var(--v4-line);
  border-bottom: 1px solid var(--v4-line);
}

.records-v4-inner {
  width: min(1180px, calc(100% - 48px));
  margin: auto;
  padding: 62px 0 72px;
}

.records-v4-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.records-v4-head h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.045em;
}

.records-v4-head p {
  max-width: 360px;
  margin: 0;
  color: var(--v4-muted);
  font-size: 13px;
  line-height: 1.55;
}

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

.record-v4-card {
  display: grid;
  grid-template-rows: minmax(310px, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--v4-line);
  border-radius: 18px;
  background: #fff;
  color: var(--v4-ink);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.record-v4-card:hover {
  transform: translateY(-3px);
  border-color: #b9b0a2;
  box-shadow: 0 18px 42px rgba(22,21,18,.08);
}

.record-v4-visual {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border-bottom: 1px solid var(--v4-line);
  background: #e9e3d9;
}

.record-v4-comic .record-v4-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
}

.record-v4-cv .record-v4-page {
  position: absolute;
  display: block;
  height: auto;
  border: 1px solid rgba(22,21,18,.18);
  background: #fff;
  box-shadow: 0 14px 28px rgba(22,21,18,.14);
}

.record-v4-cv .record-v4-page-primary {
  z-index: 2;
  width: 64%;
  left: 9%;
  top: 24px;
}

.record-v4-cv .record-v4-page-secondary {
  z-index: 1;
  width: 55%;
  right: 1%;
  top: 64px;
  opacity: .82;
}

.record-v4-content {
  display: grid;
  gap: 24px;
  padding: 26px;
}

.record-v4-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--v4-muted);
  font-size: 9px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.record-v4-content h3 {
  margin: 0 0 11px;
  font-size: 30px;
  font-weight: 530;
  line-height: 1.02;
  letter-spacing: -.038em;
}

.record-v4-content p {
  margin: 0;
  color: var(--v4-muted);
  font-size: 13px;
  line-height: 1.58;
}

.record-v4-open {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  font-size: 11px;
  font-weight: 750;
}

.records-v4-note {
  max-width: 780px;
  margin: 22px 0 0;
  color: var(--v4-muted);
  font-size: 11px;
  line-height: 1.55;
}

.v4-footer {
  background: var(--v4-night);
  color: rgba(255,255,255,.62);
}

.v4-footer-inner {
  width: min(1180px, calc(100% - 48px));
  margin: auto;
  padding: 46px 0 84px;
  border-top: 1px solid rgba(255,255,255,.14);
}

.v4-footer-main {
  display: grid;
  grid-template-columns: minmax(240px,1.15fr) minmax(430px,1.85fr);
  gap: clamp(54px,8vw,110px);
}

.v4-footer-brand img {
  display: block;
  width: 82px;
  margin-bottom: 22px;
  filter: invert(1);
}

.v4-footer-brand p {
  max-width: 360px;
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.6;
}

.v4-footer-brand .footer-boundary { color: rgba(255,255,255,.42); }

.v4-footer-links {
  display: grid;
  grid-template-columns: 1.35fr .8fr .8fr;
  gap: 34px;
}

.v4-footer .footer-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.v4-footer .footer-heading {
  margin: 0 0 7px;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.v4-footer .footer-group a {
  color: rgba(255,255,255,.58);
  font-size: 11px;
  text-decoration: none;
}

.v4-footer .footer-group a:hover { color: #fff; }

.v4-footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.4);
  font-size: 9px;
  line-height: 1.6;
}

.v4-footer-legal p { margin: 0; }
.v4-footer-legal a { color: rgba(255,255,255,.68); text-decoration: none; }
.v4-footer-legal a:hover { color: #fff; }

body.v4-surface a:focus-visible {
  outline: 3px solid var(--v4-accent);
  outline-offset: 4px;
}

@media (max-width: 1050px) {
  .v4-nav { width: min(100% - 36px, 1320px); }
  .v4-primary-nav { gap: 13px; }
  .v4-primary-nav a { font-size: 9px; }
  .v4-nav-cta { padding: 0 12px; }
  .v4-footer-main { grid-template-columns: 1fr; gap: 44px; }
  .v4-footer-links { max-width: 720px; }
}

@media (max-width: 820px) {
  :root { --v4-header-height: 108px; }
  .v4-nav {
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
    padding: 10px 0 9px;
  }
  .v4-nav img { width: 80px; }
  .v4-nav-cta {
    grid-column: 2;
    grid-row: 1;
    min-height: 40px;
    padding: 0 14px;
    font-size: 10px;
  }
  .v4-primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    justify-self: stretch;
    width: 100%;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,.12);
  }
  .v4-primary-nav a {
    min-width: 0;
    padding: 9px 2px 10px;
    font-size: 10px;
    line-height: 1.16;
    text-align: center;
  }
  .v4-primary-nav a[href$="artist.html"],
  .v4-primary-nav a[href$="records.html"] { font-size: 0; }
  .v4-primary-nav a[href$="artist.html"]::before,
  .v4-primary-nav a[href$="records.html"]::before {
    font-size: 10px;
    content: "";
  }
  .v4-primary-nav a[href$="artist.html"]::before { content: "Creative"; }
  .v4-primary-nav a[href$="records.html"]::before { content: "Records"; }
  .v4-primary-nav a[aria-current="page"]::after {
    left: 6px;
    right: 6px;
    bottom: -1px;
    height: 2px;
  }
  .records-v4-hero { padding: 54px 0 40px; }
  .records-v4-inner { padding: 50px 0 58px; }
  .records-v4-head { display: block; }
  .records-v4-head p { margin-top: 14px; }
  .records-v4-grid { grid-template-columns: 1fr; }
  .v4-footer-inner { width: min(100% - 28px,1180px); padding: 40px 0 78px; }
  .v4-footer-legal { flex-direction: column; gap: 10px; }
}

@media (max-width: 600px) {
  .v4-nav { width: min(100% - 28px,1320px); }
  .records-v4-hero,
  .records-v4-inner { width: min(100% - 28px,1180px); }
  .records-v4-hero { padding: 46px 0 36px; }
  .records-v4-hero h1 { font-size: clamp(44px,14vw,58px); }
  .records-v4-hero p:last-child { font-size: 16px; }
  .records-v4-inner { padding: 44px 0 50px; }
  .records-v4-head h2 { font-size: 38px; }
  .record-v4-card { grid-template-rows: minmax(270px,1fr) auto; }
  .record-v4-visual,
  .record-v4-comic .record-v4-visual img { min-height: 270px; }
  .record-v4-content { padding: 22px; gap: 20px; }
  .record-v4-content h3 { font-size: 27px; }
  .v4-footer-links { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; max-width: none; }
  .v4-footer .footer-group { gap: 7px; }
  .v4-footer .footer-heading { font-size: 10px; }
  .v4-footer .footer-group a { font-size: 11px; line-height: 1.35; }
}

@media (prefers-reduced-motion: reduce) {
  .v4-primary-nav a,
  .v4-nav-cta,
  .v4-action,
  .record-v4-card { transition: none; }
  .record-v4-card:hover { transform: none; }
}
