/* Kristian Craig Robinson / Capitol K
   Soft techno · refined industrial · silver archive */

:root {
  --bg: #ececee;
  --bg-soft: #e2e2e5;
  --surface: #f7f7f8;
  --ink: #121214;
  --ink-soft: #3d3d42;
  --muted: #7a7a82;
  --line: rgba(18, 18, 20, 0.12);
  --line-strong: rgba(18, 18, 20, 0.22);
  --silver: #b8b8c0;
  --platinum: #dddde2;
  --steel: #5a6a78;
  --accent: #3a4a56;
  --near-black: #0e0e10;
  --font: "Montserrat", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: 100ms ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--bg);
  /* almost invisible metal grain */
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(255,255,255,0.45) 0%, transparent 55%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color var(--ease), opacity var(--ease), border-color var(--ease);
}

a:hover {
  opacity: 0.6;
}

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

/* —— Layout —— */
.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 28px;
}

/* —— Header / console bar —— */
header {
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 248, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}

.logo {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.logo span {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-top: 3px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  justify-content: flex-end;
}

nav a {
  font-size: 0.88rem;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

nav a:hover,
nav a.active {
  color: var(--ink);
  opacity: 1;
}

nav a.active {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
}

/* —— Main —— */
main {
  flex: 1;
  padding: 48px 0 88px;
}

h1 {
  font-size: clamp(1.65rem, 3.8vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: 0.85rem;
}

h2 {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  color: var(--ink);
}

h3 {
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.lead {
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 36rem;
  margin-bottom: 2.25rem;
  line-height: 1.6;
}

.muted {
  color: var(--muted);
  font-size: 0.88rem;
}

/* —— Home —— */
.hero {
  margin-bottom: 2.75rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.hero p {
  max-width: 34rem;
  color: var(--ink-soft);
}

.paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 0 0 3rem;
}

.path-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 20px 22px;
  border-radius: 0;
  transition: border-color var(--ease), background var(--ease);
}

.path-card:hover {
  border-color: var(--line-strong);
  opacity: 1;
  background: #fafafb;
}

.path-card strong {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  margin-bottom: 5px;
}

.path-card span {
  font-size: 0.85rem;
  color: var(--muted);
}

.selected {
  margin-top: 0.5rem;
}

.selected > .selected-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.selected-item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--ease);
}

.selected-item:hover {
  border-color: var(--line-strong);
  opacity: 1;
}

.selected-art {
  aspect-ratio: 1;
  background: linear-gradient(160deg, var(--platinum), var(--bg-soft));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.selected-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* cool desat so covers sit in silver world */
  filter: saturate(0.82) contrast(1.02);
  transition: filter 0.25s ease;
}

.selected-item:hover .selected-art img {
  filter: saturate(0.92) contrast(1.03);
}

.selected-body {
  padding: 14px 16px 16px;
}

.selected-item .tags {
  margin-top: 10px;
}

/* hover detail line */
.selected-item::after {
  content: attr(data-hover);
  display: block;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
  padding: 0 16px 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.22s ease, opacity 0.18s ease, padding 0.18s ease;
}

@media (hover: hover) and (min-width: 769px) {
  .selected-item:hover::after {
    max-height: 5em;
    opacity: 1;
    padding: 0 16px 14px;
  }
}

/* —— Tags (console chips) —— */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line-strong);
  padding: 2px 7px;
  border-radius: 0;
}

.tag-key {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.tag-key strong {
  color: var(--ink-soft);
  font-weight: 500;
}

/* —— Work filters / desk —— */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0.85rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.filter-btn {
  font-family: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  padding: 7px 12px;
  cursor: pointer;
  border-radius: 0;
  transition: color var(--ease), border-color var(--ease), background var(--ease), box-shadow var(--ease);
}

.filter-btn:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.filter-btn.active {
  background: var(--near-black);
  color: var(--surface);
  border-color: var(--near-black);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.status-strip {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.status-strip span {
  color: var(--ink-soft);
}

/* —— Credit list —— */
.credit-list {
  border-top: 1px solid var(--line-strong);
}

.credit {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: background var(--ease);
}
.credit:has(.credit-year) {
  grid-template-columns: auto 1fr auto;
}

.credit:hover {
  background: rgba(255,255,255,0.35);
}

.credit-year {
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  min-width: 2.75rem;
  padding-top: 2px;
}

.credit-title {
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.015em;
}

.credit-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

.credit .tags {
  justify-content: flex-end;
  align-self: start;
  padding-top: 2px;
}

.credit.hidden {
  display: none;
}

/* —— Music —— */
.music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.music-card {
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color var(--ease);
}

.music-card:hover {
  border-color: var(--line-strong);
  opacity: 1;
}

.music-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: saturate(0.85);
}

.music-card .body {
  padding: 14px 16px 16px;
}

.bands-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.bands-list a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  font-weight: 500;
  font-size: 0.9rem;
}

.bands-list a:hover {
  border-bottom-color: var(--ink);
  opacity: 1;
}

/* —— Studio —— */
.studio-block ul.studio-list {
  list-style: none;
  margin: 1.25rem 0 1.75rem;
}

.studio-block ul.studio-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.studio-block ul.studio-list li strong {
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-block;
  min-width: 6.5rem;
  color: var(--ink-soft);
}


/* —— Contact —— */
.contact-block {
  max-width: 28rem;
}
.contact-block .lead {
  margin-bottom: 2rem;
}
.contact-email {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.contact-email:hover {
  opacity: 1;
  border-bottom-color: var(--ink);
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}
.contact-links a {
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  width: fit-content;
}
.contact-links a:hover {
  color: var(--ink);
  opacity: 1;
  border-bottom-color: var(--ink);
}

/* —— Releases (music) —— */
.release {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color var(--ease);
}
.release:hover {
  border-color: var(--line-strong);
  opacity: 1;
}
.release-art {
  aspect-ratio: 1;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.release h3 {
  padding: 12px 14px 0;
  font-size: 0.9rem;
}
.release .year {
  padding: 4px 14px 14px;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

/* —— Footer —— */
footer {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  background: var(--surface);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
}

/* —— Links in body —— */
main a[href^="http"],
main a[href^="mailto"] {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}

main a[href^="http"]:hover,
main a[href^="mailto"]:hover {
  border-bottom-color: var(--steel);
  color: var(--accent);
  opacity: 1;
}

/* cool accent for interactive chrome only */
.filter-btn.active {
  background: var(--near-black);
}

/* —— Responsive —— */
@media (max-width: 768px) {
  .wrap {
    padding: 0 18px;
  }

  .nav-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
  }

  nav {
    justify-content: flex-start;
    gap: 8px 14px;
  }

  main {
    padding: 36px 0 64px;
  }

  .credit {
    grid-template-columns: auto 1fr;
    gap: 6px 12px;
  }

  .credit .tags {
    grid-column: 2;
    justify-content: flex-start;
  }

  .credit-year {
    min-width: 2.4rem;
  }

  .selected-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }
}


@media (max-width: 480px) {
  .wrap {
    padding: 0 14px;
  }
  .nav-bar {
    padding: 14px 0;
    gap: 10px;
  }
  .logo {
    font-size: 0.85rem;
    white-space: normal;
  }
  nav {
    width: 100%;
    gap: 8px 12px;
  }
  nav a {
    font-size: 0.8rem;
  }
  main {
    padding: 28px 0 56px;
  }
  h1 {
    font-size: 1.5rem;
  }
  .lead {
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
  }
  .filters {
    gap: 6px;
  }
  .filter-btn {
    font-size: 0.72rem;
    padding: 6px 10px;
  }
  .credit {
    grid-template-columns: 2.2rem 1fr;
    gap: 4px 10px;
    padding: 12px 0;
  }
  .credit .tags {
    grid-column: 2;
    justify-content: flex-start;
  }
  .credit-title {
    font-size: 0.9rem;
  }
  .credit-meta {
    font-size: 0.78rem;
  }
  .selected-grid,
  .music-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .paths {
    grid-template-columns: 1fr;
  }
  .contact-email {
    font-size: 1.1rem;
    margin-bottom: 2.75rem;
  }
  .footer-inner {
    flex-direction: column;
    gap: 6px;
  }
}

/* —— Studio book / TRC story —— */
.studio-rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}
.studio-block h2 {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.book-block {
  margin-top: 1.75rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}
.book-layout {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem 1.5rem;
  align-items: start;
  margin-bottom: 1.5rem;
}
.book-cover {
  display: block;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  aspect-ratio: 2 / 3;
  overflow: hidden;
}
.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88);
}
.book-cover.no-img {
  min-height: 160px;
  background: linear-gradient(160deg, var(--platinum), var(--bg-soft));
}
.book-title {
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}
.book-sub {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}
.book-meta {
  font-size: 0.8rem;
}
.quote-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.25rem 0 1.5rem;
}
.quote-stack blockquote {
  margin: 0;
  padding: 1rem 1.15rem;
  border-left: 2px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}
.excerpt-details {
  border: 1px solid var(--line);
  background: var(--surface);
}
.excerpt-details summary {
  cursor: pointer;
  padding: 0.9rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  list-style: none;
}
.excerpt-details summary::-webkit-details-marker { display: none; }
.excerpt-details summary::after {
  content: " +";
  color: var(--muted);
}
.excerpt-details[open] summary::after {
  content: " −";
}
.excerpt-body {
  padding: 0 1.15rem 1.25rem;
  border-top: 1px solid var(--line);
}
.excerpt-body p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 0.9rem;
  line-height: 1.6;
}
.excerpt-attr {
  font-size: 0.8rem !important;
  color: var(--muted) !important;
  margin-top: 1.25rem !important;
}
@media (max-width: 480px) {
  .book-layout {
    grid-template-columns: 90px 1fr;
    gap: 1rem;
  }
  .quote-stack blockquote {
    font-size: 0.9rem;
    padding: 0.85rem 1rem;
  }
}

.session-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.session-links a {
  font-size: 0.9rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.session-links a:hover {
  border-bottom-color: var(--ink);
  opacity: 1;
}

.release .role-line {
  padding-top: 0;
  margin-top: -6px;
  line-height: 1.4;
  color: var(--ink-soft);
  font-size: 0.78rem;
}
