/* Layout for the Alan Meyerson site — built on tokens.css */

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }
@media (max-width: 540px) {
  .wrap { padding: 0 1.25rem; }
}

/* ---- Nav ---- */
header.site-nav {
  border-bottom: 1px solid var(--rule);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem 2rem 1.6rem 0.75rem;
}
@media (max-width: 540px) {
  .site-nav .wrap { padding: 1.2rem 1.25rem 1.2rem 0.6rem; }
}
.site-nav .nav-links {
  display: flex;
  justify-content: center;
  flex: 1;
  gap: 2.75rem;
}
.site-nav a { color: var(--ink-3); padding-bottom: 0.35rem; }
.site-nav a.active,
.site-nav a:hover {
  color: var(--ink);
  border-bottom: 2px solid var(--brass);
}
.site-nav .brand {
  padding-bottom: 0;
  white-space: nowrap;
}
.site-nav .brand:hover { border-bottom: none; color: inherit; }
@media (max-width: 860px) {
  .site-nav .wrap { flex-wrap: wrap; justify-content: center; }
  .site-nav .nav-links { flex: none; width: 100%; flex-wrap: wrap; justify-content: center; gap: 1.25rem 1.75rem; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  align-items: stretch;
  min-height: 460px;
  overflow: hidden;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding: 3rem 3rem 3rem 2rem;
}
.hero-copy p.lead {
  font-size: clamp(1.15rem, 3.4vw + 0.6rem, 1.5rem);
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
  max-width: 20ch;
}
.hero-image { position: relative; background: var(--ink); }
.hero-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-image { min-height: 320px; }
  .hero-copy { padding: 2.25rem 1.5rem; }
}
@media (max-width: 540px) {
  .hero-image { min-height: 240px; }
  .hero-copy { padding: 2rem 1.25rem; }
}

/* ---- Name / section intro ---- */
.name-block {
  padding: 3.5rem 0 2rem;
}
@media (max-width: 540px) {
  .name-block { padding: 2.25rem 0 1.5rem; }
}
.name-block h1 {
  font-size: clamp(2.25rem, 9vw, 5.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-transform: none;
}
.name-block h1 em { font-weight: 500; }
.name-block .role {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.6rem;
  color: var(--ink);
}
.name-block .role .dash { width: 2rem; height: 1px; background: var(--brass-deep); }

/* ---- Section grid ---- */
.section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-bottom: 4rem;
}
@media (max-width: 860px) {
  .section-grid { grid-template-columns: 1fr; }
}
.card {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}
.card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.card .card-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(23,20,15,0) 0%, rgba(23,20,15,0.86) 55%);
}
.card h3 {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1rem;
  color: var(--paper);
  margin-bottom: 0.4rem;
}
.card p {
  font-family: var(--font-label);
  font-size: 0.85rem;
  color: #d8d0bd;
  margin: 0 0 0.8rem;
  line-height: 1.4;
}
.card .arrow { color: var(--paper); font-family: var(--font-label); }

/* ---- Quote panel ---- */
.quote-panel {
  background: var(--panel-dark);
  color: var(--panel-dark-text);
}
.quote-panel blockquote {
  margin: 0;
  padding: 4rem 0;
  max-width: 34ch;
  font-size: clamp(1.3rem, 4.5vw + 0.5rem, 1.9rem);
  line-height: 1.4;
  font-style: normal;
}
@media (max-width: 540px) {
  .quote-panel blockquote { padding: 2.5rem 0; }
}
.quote-panel cite {
  display: block;
  margin-top: 1.4rem;
  font-style: normal;
  font-family: var(--font-label);
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--panel-dark-text);
}

/* ---- Simple inner pages ---- */
.page-header {
  padding: 3.5rem 0 1.5rem;
}
@media (max-width: 540px) {
  .page-header { padding: 2.25rem 0 1.25rem; }
}
.page-header .eyebrow { color: var(--ink); margin-bottom: 0.8rem; }
.page-header h1 {
  font-size: clamp(2rem, 6.5vw, 3.4rem);
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.015em;
  line-height: 1.08;
}
.page-intro {
  padding-bottom: 2.5rem;
  max-width: 62ch;
  font-size: clamp(1rem, 2vw + 0.6rem, 1.15rem);
  color: var(--ink-2);
}
.placeholder-note {
  padding: 2.5rem 0 5rem;
  color: var(--ink-3);
  max-width: 60ch;
}

/* ---- Credit list (Films / Soundtracks / Video Games) ---- */
.credit-list { padding-bottom: 4rem; }
.credit-list .credit-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--ink-2);
  color: var(--ink-3);
}
.credit-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
/* Soundtracks rows have a third (Listen) column — give title the room and
   keep Listen/Year as fixed-width trailing columns. */
.credit-list .credit-head:has(span:nth-child(3)),
.credit-row:has(.credit-listen) {
  display: grid;
  grid-template-columns: 1fr 5.5rem 4rem;
  align-items: baseline;
  gap: 1rem;
}
.credit-row:has(.credit-listen) .credit-year,
.credit-list .credit-head:has(span:nth-child(3)) span:last-child {
  text-align: right;
}
.credit-row .credit-listen { text-align: right; }
.credit-row .credit-title {
  font-size: 1.3rem;
  color: var(--ink);
}
.credit-row .credit-title .credit-composer {
  font-size: 0.95rem;
  color: var(--ink-3);
  font-style: normal;
}
.credit-row .credit-year {
  font-family: var(--font-mono);
  color: var(--ink-3);
  white-space: nowrap;
}
.credit-row .credit-listen {
  font-family: var(--font-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
}
.credit-row .credit-listen:hover {
  color: var(--ink);
  border-bottom: 1px solid var(--brass);
}

@media (max-width: 640px) {
  .credit-row,
  .credit-row:has(.credit-listen) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
  .credit-row .credit-title { font-size: 1.1rem; }
  .credit-row .credit-year,
  .credit-row .credit-listen {
    text-align: left;
    white-space: normal;
  }
  .credit-list .credit-head:has(span:nth-child(3)) {
    grid-template-columns: 1fr 4.5rem 3.25rem;
    gap: 0.6rem;
  }
}

/* ---- Composer search (Soundtracks) ---- */
.composer-search {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 0 2rem;
  padding: 0.7em 1em;
  font-family: var(--font-label);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: #000 !important;
  -webkit-text-stroke: 0 transparent;
  text-shadow: none;
  background: rgba(244,239,228,0.96);
  border: 1px solid var(--ink-2);
}
.composer-search::placeholder {
  color: #000;
  opacity: 0.55;
}
.credit-row[hidden] { display: none; }
.credit-empty {
  padding: 1.5rem 0;
  color: var(--ink-3);
}

/* ---- Bio (About) ---- */
.bio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.bio p { margin: 0 0 1.1rem; max-width: 46ch; }
@media (max-width: 860px) {
  .bio { grid-template-columns: 1fr; }
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 3rem;
}
.stat-row .stat {
  padding: 1.4rem 1.5rem;
  border-left: 1px solid var(--rule);
}
.stat-row .stat:first-child { border-left: none; }
.stat .stat-value { font-size: 1.8rem; color: var(--ink); }
.stat .stat-label { color: var(--ink-3); margin-top: 0.3rem; }
@media (max-width: 860px) {
  .stat-row { grid-template-columns: 1fr; }
  .stat-row .stat { border-left: none; border-top: 1px solid var(--rule); }
  .stat-row .stat:first-child { border-top: none; }
}

/* ---- Link list (Videos / About external links) ---- */
.link-list { padding-bottom: 4rem; }
.link-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink);
}
.link-list a:hover { color: var(--ink); }
.link-list .link-title { font-size: 1.2rem; }
.link-list .link-meta {
  font-family: var(--font-label);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
}
@media (max-width: 540px) {
  .link-list a { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
}

footer.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.5rem 0 2.5rem;
  color: var(--ink-4);
}
footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
}

/* ---- Filmography (Films — ranked by worldwide box office) ---- */
.filmo-list { padding-bottom: 4rem; }
.filmo-list .filmo-head,
.filmo-row {
  display: grid;
  grid-template-columns: 3.25rem 1fr 4.5rem 8rem;
  align-items: baseline;
  gap: 1rem;
}
.filmo-list .filmo-head {
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--ink-2);
  color: var(--ink-3);
}
.filmo-list .filmo-head span:last-child,
.filmo-row .filmo-gross {
  text-align: right;
}
.filmo-row {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
.filmo-row .filmo-rank {
  font-family: var(--font-mono);
  color: var(--ink-3);
}
.filmo-row .filmo-title {
  font-size: 1.1rem;
  color: var(--ink);
}
.filmo-row .filmo-year {
  font-family: var(--font-mono);
  color: var(--ink-3);
  white-space: nowrap;
}
.filmo-row .filmo-gross {
  font-family: var(--font-mono);
  color: var(--ink-3);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .filmo-list .filmo-head { display: none; }
  .filmo-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.9rem 0;
  }
  .filmo-row .filmo-rank {
    order: -1;
    font-size: 0.75rem;
  }
  .filmo-row .filmo-title { font-size: 1.05rem; }
  .filmo-row .filmo-year,
  .filmo-row .filmo-gross {
    text-align: left;
  }
}

/* ---- Blog ---- */
.blog-list { padding-bottom: 4rem; display: flex; flex-direction: column; }
.blog-row {
  display: block;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
.blog-row:first-child { border-top: 1px solid var(--rule-soft); }
.blog-row-date { color: var(--ink-3); margin-bottom: 0.5rem; }
.blog-row-title { font-size: 1.4rem; margin-bottom: 0.5rem; }
.blog-row-excerpt {
  font-family: var(--font-display);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 62ch;
  margin: 0;
}
.blog-row:hover .blog-row-title { color: var(--brass); }

.blog-post { padding-bottom: 5rem; }
.blog-post-date { margin-top: 0.5rem; color: var(--ink-3); }
.blog-post-cover {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  margin-bottom: 2rem;
}
.blog-post-body {
  max-width: 68ch;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-2);
}
.blog-post-body p { margin: 0 0 1.4rem; }
.blog-post-body h2, .blog-post-body h3 { margin: 2rem 0 1rem; }
.blog-post-body img { margin: 1.5rem 0; }
.blog-post-body a { color: var(--brass); text-decoration: underline; }
.blog-post-body blockquote {
  margin: 1.5rem 0;
  padding-left: 1.2rem;
  border-left: 2px solid var(--brass);
  color: var(--ink-3);
}

/* ---- Video grid (Videos page) ---- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.5rem;
  padding-bottom: 3.5rem;
}
@media (max-width: 960px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .video-grid { grid-template-columns: 1fr; }
}
.video-card { display: flex; flex-direction: column; }
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  overflow: hidden;
}
.video-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-title {
  margin-top: 0.8rem;
  font-size: 1rem;
  line-height: 1.3;
}
.video-source { margin-top: 0.3rem; color: var(--ink-3); }

footer.site-footer .footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  padding-bottom: 1.5rem;
}
footer.site-footer .footer-brand {
  flex: 0 0 auto;
}
footer.site-footer .footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
footer.site-footer .footer-links a {
  color: var(--ink-4);
}
footer.site-footer .footer-links a:hover,
footer.site-footer .footer-links a.active {
  color: var(--ink);
}
footer.site-footer .footer-newsletter {
  flex: 0 1 320px;
  min-width: 240px;
}
footer.site-footer .footer-newsletter label {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--ink-4);
}
.footer-newsletter-row {
  display: flex;
  gap: 0.6rem;
}
.footer-newsletter-row input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.6rem 0.75rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--font-label);
  font-size: 0.9rem;
}
.footer-newsletter-row input[type="email"]:focus {
  outline: none;
  border-color: var(--brass);
}
.footer-newsletter-row .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}
.footer-newsletter-status {
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: var(--ink-4);
}
.footer-newsletter-status.footer-newsletter-error {
  color: var(--brass-deep);
}
footer.site-footer .footer-bottom {
  border-top: 1px solid var(--rule-soft);
  padding-top: 1.2rem;
}
@media (max-width: 640px) {
  footer.site-footer .footer-top { flex-direction: column; }
  footer.site-footer .footer-newsletter { flex: 1 1 auto; width: 100%; }
}

/* ---- Contact page form ---- */
.contact-form {
  max-width: 540px;
  padding-bottom: 4rem;
}
.contact-field {
  margin-bottom: 1.4rem;
}
.contact-field label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--ink-4);
}
.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 0.75rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--font-label);
  font-size: 0.95rem;
  resize: vertical;
}
.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--brass);
}
.contact-form .btn {
  margin-top: 0.2rem;
}
.contact-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--ink-4);
}
