/*
Theme Name: LEGS — neuralartistry.art
Theme URI: https://neuralartistry.art/
Author: Veronika / neuralartistry.art
Description: Editable LEGS collection landing page with 170 artworks, Trait filters, process, mint schedule, and FAQ sections.
Version: 1.3.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: legs
*/

:root {
  --ink: #121212;
  --muted: #606060;
  --line: #dedede;
  --paper: #fff;
  --soft: #f7f7f4;
  --violet: #A07AF1;
  --coral: #f17a7f;
  --blue: #7aaaf1;
  --green: #9dd767;
  --yellow: #efc241;
  --max: 1380px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; font-size: 17px; line-height: 1.62; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.container { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.site-main section { scroll-margin-top: 96px; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.site-brand { font-size: 21px; font-weight: 800; letter-spacing: -.03em; text-decoration: none; }
.site-brand span { color: #6547a7; }
.primary-menu, .fallback-menu { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.primary-menu a, .fallback-menu a { text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.primary-menu a:hover, .fallback-menu a:hover { color: #6547a7; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--ink); background: var(--paper); border-radius: 50%; cursor: pointer; place-items: center; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ''; display: block; width: 19px; height: 2px; background: currentColor; transition: .25s ease; }
.menu-toggle span { margin: 4px 0; }
.menu-toggle[aria-expanded="true"] span { opacity: 0; }
.menu-toggle[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

.hero { padding: clamp(70px,10vw,150px) 0 76px; overflow: hidden; }
.eyebrow { margin: 0 0 18px; color: #594487; font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(90px,20vw,280px); font-weight: 900; line-height: .72; letter-spacing: -.085em; }
.hero-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 520px); gap: 40px; align-items: end; margin-top: 54px; }
.hero-lead { margin: 0; max-width: 760px; font-size: clamp(24px,3.3vw,52px); line-height: 1.08; letter-spacing: -.045em; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.pill { border: 1px solid var(--ink); border-radius: 99px; padding: 8px 13px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }

.video-section { padding-bottom: clamp(80px,10vw,150px); }
.video-frame { position: relative; aspect-ratio: 16/9; background: var(--ink); border-radius: var(--radius); overflow: hidden; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-frame .wp-video, .video-frame .mejs-container { width: 100% !important; height: 100% !important; }
.video-placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #fff; padding: 30px; }
.video-placeholder span { display: block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #d9d9d9; }
.video-placeholder strong { display: block; margin-top: 8px; font-size: clamp(25px,4vw,58px); line-height: 1; }

.section { padding: clamp(80px,10vw,150px) 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 210px 1fr; gap: 30px; align-items: start; margin-bottom: clamp(46px,7vw,90px); }
.section-kicker { margin: 0; color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.section-title { margin: 0; max-width: 1000px; font-size: clamp(42px,7vw,100px); line-height: .94; letter-spacing: -.06em; }
.copy-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px 70px; margin-left: min(16vw,210px); }
.copy-grid h3 { margin: 0 0 16px; font-size: clamp(24px,3vw,42px); line-height: 1.08; letter-spacing: -.035em; }
.copy-grid p { margin: 0 0 1.2em; }
.copy-grid .wide { grid-column: 1/-1; max-width: 1000px; }
.statement { margin: 70px 0 0 min(16vw,210px); max-width: 1000px; padding: clamp(28px,5vw,64px); background: #171717; color: white; border-radius: var(--radius); font-size: clamp(28px,4.2vw,60px); line-height: 1.08; letter-spacing: -.04em; }
.about-film-copy { margin-top: 70px; }

.editorial-gallery { display: grid; grid-template-columns: 1.25fr .75fr .75fr; grid-template-rows: repeat(2, minmax(240px, 34vw)); gap: 14px; margin-top: 70px; }
.editorial-gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--soft); }
.editorial-gallery figure:first-child { grid-row: 1/-1; }
.editorial-gallery img { width: 100%; height: 100%; object-fit: cover; }
.media-placeholder { width: 100%; height: 100%; min-height: 260px; display: grid; place-items: center; padding: 24px; border: 1px dashed #a7a7a7; color: var(--muted); background: var(--soft); text-align: center; }

.process-media { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-bottom: 72px; }
.process-media figure { position: relative; margin: 0; aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.process-media img { width: 100%; height: 100%; object-fit: cover; }
.process-media figcaption { position: absolute; left: 16px; bottom: 16px; max-width: calc(100% - 32px); padding: 9px 12px; border-radius: 99px; background: rgba(255,255,255,.92); color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.process-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--ink); }
.process-step { min-height: 210px; padding: 26px 24px 28px 0; border-bottom: 1px solid var(--line); }
.process-step:not(:nth-child(3n+1)) { padding-left: 24px; border-left: 1px solid var(--line); }
.process-step b { display: block; margin-bottom: 45px; color: #6547a7; font-size: 13px; }
.process-step h3 { margin: 0; font-size: clamp(20px,2.2vw,31px); line-height: 1.05; letter-spacing: -.035em; }

.traits-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.trait-card { min-height: 330px; display: flex; flex-direction: column; padding: clamp(22px,3vw,36px); border: 1px solid var(--ink); border-radius: var(--radius); background: white; }
.trait-icon { width: 76px; height: 76px; margin-bottom: 55px; color: var(--ink); }
.trait-icon svg { width: 100%; height: 100%; }
.trait-card:nth-child(1) .trait-icon { color: #694bb0; }
.trait-card:nth-child(2) .trait-icon { color: #b7464c; }
.trait-card:nth-child(3) .trait-icon { color: #315f9d; }
.trait-card:nth-child(4) .trait-icon { color: #517c25; }
.trait-card h3 { margin: auto 0 8px; font-size: 27px; line-height: 1; }
.trait-card p { margin: 0; color: #3d3d3d; font-size: 15px; }

.interpretation-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.interpretation-copy h3 { margin: 0 0 24px; font-size: clamp(32px,4vw,62px); line-height: 1; letter-spacing: -.045em; }
.interpretation-copy p { max-width: 680px; }
.interpretation-copy + .interpretation-copy { margin-top: 100px; }
.interpretation-media { display: grid; gap: 18px; position: sticky; top: 110px; }
.interpretation-media figure { margin: 0; aspect-ratio: 1/1; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.interpretation-media img { width: 100%; height: 100%; object-fit: cover; }

.collection-toolbar { position: sticky; top: 76px; z-index: 20; display: grid; grid-template-columns: 1.4fr repeat(3,1fr) auto; gap: 10px; padding: 14px; margin-bottom: 34px; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(12px); }
.filter-field label { display: block; margin: 0 0 5px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.filter-field input, .filter-field select { width: 100%; height: 44px; padding: 0 13px; color: var(--ink); background: white; border: 1px solid #a8a8a8; border-radius: 8px; }
.filter-count { align-self: end; min-width: 110px; height: 44px; display: grid; place-items: center; border-radius: 8px; background: var(--ink); color: white; font-size: 13px; font-weight: 800; }
.artworks-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 42px 16px; }
.artwork-card { min-width: 0; }
.artwork-image { display: block; aspect-ratio: 1/1; overflow: hidden; border-radius: 12px; background: var(--soft); }
.artwork-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.artwork-image:hover img { transform: scale(1.025); }
.artwork-card h3 { margin: 15px 0 10px; font-size: 20px; line-height: 1.1; }
.traits-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin: 0; }
.traits-list div { padding: 8px; background: var(--soft); border-radius: 7px; }
.traits-list dt { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.traits-list dd { margin: 2px 0 0; font-size: 13px; font-weight: 800; }
.artist-note { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); color: #333; font-size: 14px; line-height: 1.4; }
.artist-note b { display: block; margin-bottom: 2px; color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.no-results { grid-column: 1/-1; padding: 60px 20px; text-align: center; background: var(--soft); border-radius: var(--radius); }

.schedule-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.schedule-card { min-height: 340px; padding: clamp(28px,4vw,54px); border-radius: var(--radius); border: 1px solid var(--ink); }
.schedule-card:first-child { background: var(--violet); }
.schedule-card:last-child { background: var(--yellow); }
.schedule-label { display: inline-block; padding: 7px 11px; border-radius: 99px; color: white; background: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.schedule-card h3 { margin: 60px 0 18px; font-size: clamp(40px,5vw,74px); line-height: .92; letter-spacing: -.05em; }
.schedule-card p { margin: 0; max-width: 560px; font-weight: 600; }

.faq-list { max-width: 1000px; margin-left: auto; }
.faq-item { border-top: 1px solid var(--ink); }
.faq-item:last-child { border-bottom: 1px solid var(--ink); }
.faq-item summary { position: relative; padding: 25px 56px 25px 0; cursor: pointer; list-style: none; font-size: clamp(19px,2.1vw,28px); font-weight: 700; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 5px; top: 50%; transform: translateY(-50%); font-size: 30px; font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-answer { padding: 0 80px 28px 0; color: #383838; }
.faq-answer p:first-child { margin-top: 0; }

.site-footer { padding: 48px 0; background: var(--ink); color: white; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-inner a { color: white; }

@media (max-width: 1100px) {
  .traits-grid { grid-template-columns: repeat(2,1fr); }
  .artworks-grid { grid-template-columns: repeat(3,1fr); }
  .collection-toolbar { grid-template-columns: repeat(2,1fr); }
  .filter-count { grid-column: 1/-1; }
}

@media (max-width: 820px) {
  .container { width: min(calc(100% - 30px), var(--max)); }
  .menu-toggle { display: grid; z-index: 102; }
  .site-nav { position: fixed; inset: 0; z-index: 101; display: flex; align-items: center; justify-content: center; padding: 90px 28px 40px; background: white; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s; }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .primary-menu, .fallback-menu { flex-direction: column; align-items: flex-start; gap: 16px; }
  .primary-menu a, .fallback-menu a { font-size: clamp(25px,7vw,42px); line-height: 1.1; letter-spacing: -.03em; text-transform: none; }
  .hero-bottom, .section-head, .interpretation-layout { grid-template-columns: 1fr; }
  .hero-meta { justify-content: flex-start; }
  .copy-grid { margin-left: 0; grid-template-columns: 1fr; }
  .copy-grid .wide { grid-column: auto; }
  .statement { margin-left: 0; }
  .editorial-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(390px,90vw) repeat(2,minmax(180px,45vw)); }
  .editorial-gallery figure:first-child { grid-column: 1/-1; grid-row: auto; }
  .process-steps { grid-template-columns: repeat(2,1fr); }
  .process-step:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .process-step:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .interpretation-media { position: static; grid-template-columns: 1fr 1fr; }
  .artworks-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .header-inner { min-height: 66px; }
  .hero { padding-top: 66px; }
  .hero h1 { font-size: 29vw; }
  .process-media, .process-steps, .traits-grid, .schedule-grid, .collection-toolbar { grid-template-columns: 1fr; }
  .process-step:nth-child(even) { padding-left: 0; border-left: 0; }
  .process-media figure { aspect-ratio: 1/1; }
  .editorial-gallery { display: grid; grid-template-columns: 1fr; grid-template-rows: none; }
  .editorial-gallery figure, .editorial-gallery figure:first-child { grid-column: auto; aspect-ratio: 1/1; }
  .interpretation-media { grid-template-columns: 1fr; }
  .collection-toolbar { position: relative; top: auto; }
  .artworks-grid { grid-template-columns: 1fr; row-gap: 38px; }
  .artwork-card h3 { font-size: 22px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
