:root {
  --ink: #111111;
  --paper: #f4f1ea;
  --white: #fffefa;
  --blue: #3040d8;
  --pink: #f14c6b;
  --line: rgba(17, 17, 17, 0.18);
  --max: 1480px;
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 14px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 241, 234, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  width: 39px;
  height: auto;
}

.brand-wordmark {
  width: 184px;
  height: auto;
}

.brand-rule {
  width: 1px;
  height: 29px;
  flex: none;
  background: currentColor;
  opacity: 0.34;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 38px);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(15px, 2vw, 32px);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.main-nav a {
  text-decoration: none;
}

.main-nav a:not(.nav-external)::after {
  content: "";
  display: block;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-external {
  padding: 9px 13px;
  border: 1px solid var(--ink);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.34);
}

.language-switcher button {
  width: 34px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.language-switcher button:hover,
.language-switcher button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  min-height: calc(100svh - 74px);
  background: var(--ink);
  color: var(--white);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 6vw, 92px) clamp(24px, 5vw, 76px);
}

.eyebrow {
  margin: 0 0 26px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-dark {
  color: var(--blue);
}

h1,
h2 {
  font-family: "Iowan Old Style", Baskerville, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.96;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.2rem, 3.7vw, 3.75rem);
  line-height: 1;
}

.hero-intro {
  max-width: 650px;
  margin: clamp(28px, 4vw, 48px) 0 0;
  color: rgba(255, 254, 250, 0.76);
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-light {
  background: var(--white);
  color: var(--ink);
}

.button-light:hover {
  background: var(--pink);
  color: var(--white);
}

.button-dark {
  background: var(--ink);
  color: var(--white);
}

.button-dark:hover {
  background: var(--blue);
}

.text-link {
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-underline-offset: 5px;
  text-transform: uppercase;
}

.text-link-light {
  color: rgba(255, 254, 250, 0.9);
}

.edition-note {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: auto;
  padding-top: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-art {
  position: relative;
  min-height: 620px;
  margin: 0;
  overflow: hidden;
  background: #dbd6c9;
}

.hero-art::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.58));
  pointer-events: none;
}

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

.hero-art figcaption {
  position: absolute;
  right: clamp(20px, 4vw, 48px);
  bottom: 28px;
  left: clamp(20px, 4vw, 48px);
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.signal-strip {
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
  background: var(--pink);
  color: var(--ink);
  white-space: nowrap;
}

.signal-strip > div {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 28px;
  padding: 13px 0;
  animation: marquee 28s linear infinite;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signal-strip b {
  font-size: 0.45rem;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.works-section,
.contact-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(88px, 10vw, 154px) clamp(20px, 4vw, 64px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 0.7fr);
  justify-content: space-between;
  gap: 80px;
  align-items: end;
}

.section-heading h2,
.profile-copy h2,
.contact-section h2 {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 3.55rem);
  line-height: 1;
}

.section-intro {
  max-width: 600px;
  margin: 0 0 8px;
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  line-height: 1.65;
}

.filters-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 60px 0 32px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.filter-button:hover,
.filter-button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.result-count {
  flex: none;
  margin: 0;
  color: rgba(17, 17, 17, 0.58);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 34px 16px;
}

.art-card {
  grid-column: auto;
  min-width: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.art-card.is-visible {
  opacity: 1;
  transform: none;
}

.art-card.is-wide {
  grid-column: auto;
}

.art-card[hidden] {
  display: none;
}

.art-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  text-align: left;
}

.art-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #dfdbd3;
}

.is-wide .art-media {
  aspect-ratio: 4 / 5;
}

.art-media::after {
  position: absolute;
  inset: 0;
  border: 0 solid var(--pink);
  content: "";
  pointer-events: none;
  transition: border-width 180ms ease;
}

.art-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.art-card[data-slug="art-vladi-batman"] .art-media img {
  object-position: 50% 45%;
}

.art-button:hover .art-media img {
  transform: scale(1.025);
}

.art-button:hover .art-media::after {
  border-width: 5px;
}

.art-info {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding-top: 11px;
}

.art-artist,
.art-title,
.art-meta {
  margin: 0;
}

.art-artist {
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.art-title {
  margin-top: 3px;
  font-family: "Iowan Old Style", Baskerville, "Times New Roman", serif;
  font-size: clamp(1rem, 1.15vw, 1.18rem);
  line-height: 1.15;
}

.art-meta {
  color: rgba(17, 17, 17, 0.62);
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: right;
  white-space: pre-line;
}

.load-error {
  margin-top: 40px;
  padding: 24px;
  border: 1px solid var(--line);
}

.profile-section {
  display: grid;
  grid-template-columns: 0.52fr 1.25fr 0.9fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
  padding: clamp(88px, 10vw, 160px) max(clamp(20px, 4vw, 64px), calc((100vw - var(--max)) / 2 + 64px));
  background: var(--blue);
  color: var(--white);
}

.artist-focus {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(78px, 9vw, 136px) clamp(20px, 4vw, 64px);
}

.artist-focus-banksy {
  border-top: 1px solid rgba(17, 17, 17, 0.2);
}

.artist-focus-header {
  max-width: 840px;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.2);
}

.artist-focus h2 {
  margin: 0;
  font-family: "Iowan Old Style", Baskerville, "Times New Roman", serif;
  font-size: clamp(2.2rem, 3.5vw, 3.65rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}

.artist-life {
  margin: 18px 0 0;
  color: rgba(17, 17, 17, 0.62);
  font-size: 0.9rem;
  line-height: 1.5;
}

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

.artist-focus-grid article {
  padding: 38px 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.2);
}

.artist-focus-grid h3 {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.77rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.artist-focus-grid p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.72;
}

.artist-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 28px;
  font-size: 0.78rem;
}

.artist-sources span {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.artist-sources a {
  text-underline-offset: 4px;
}

.profile-mark img {
  width: min(160px, 100%);
  height: auto;
}

.profile-copy h2 {
  max-width: 820px;
}

.profile-copy > p:last-child {
  max-width: 720px;
  margin: 42px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.65;
}

.method {
  margin: 0;
  padding: 0;
  list-style: none;
}

.method li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 2px 12px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.method li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.method span {
  grid-row: span 2;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.7rem;
}

.method strong {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.method small {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.82rem;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 0.8fr);
  gap: 80px;
  align-items: start;
}

.contact-details {
  padding-top: 42px;
}

.contact-details p {
  max-width: 520px;
  margin: 0 0 30px;
  font-size: 1.05rem;
  line-height: 1.65;
}

.contact-email,
.contact-phone {
  display: block;
  width: fit-content;
  margin: 0 0 8px;
  font-family: "Iowan Old Style", Baskerville, "Times New Roman", serif;
  font-size: clamp(1.2rem, 1.8vw, 1.78rem);
  line-height: 1.2;
  text-underline-offset: 5px;
}

.contact-details .button {
  margin-top: 32px;
}

.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 54px clamp(20px, 4vw, 64px);
  background: var(--ink);
  color: var(--white);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img:first-of-type {
  width: 56px;
  height: auto;
}

.footer-brand img:nth-of-type(2) {
  width: min(220px, 48vw);
  height: auto;
}

.footer-brand .brand-rule {
  background: var(--white);
}

.footer-meta {
  display: flex;
  gap: 26px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.art-dialog {
  width: min(1080px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  padding: 0;
  border: 0;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
}

.art-dialog::backdrop {
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(4px);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.dialog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  min-height: min(760px, calc(100svh - 32px));
}

.dialog-image-wrap {
  display: grid;
  min-height: 480px;
  padding: 28px;
  place-items: center;
  background: #e7e3db;
}

.dialog-image-wrap img {
  max-width: 100%;
  max-height: calc(100svh - 88px);
  object-fit: contain;
}

.dialog-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 72px);
}

.dialog-artist {
  margin: 0 0 20px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dialog-content h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.dialog-content dl {
  margin: 36px 0;
}

.dialog-content dl > div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.dialog-content dt {
  color: rgba(17, 17, 17, 0.55);
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.dialog-content dd {
  margin: 0;
  font-size: 0.9rem;
}

.dialog-note {
  margin: -14px 0 28px;
  color: rgba(17, 17, 17, 0.6);
  font-size: 0.8rem;
}

.dialog-artist-context {
  margin: -4px 0 26px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dialog-artist-label {
  margin: 0 0 7px;
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dialog-artist-summary {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
}

.dialog-artist-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
}

.dialog-artist-links a {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-underline-offset: 4px;
  text-transform: uppercase;
}

.dialog-content .button {
  align-self: flex-start;
}

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr 0.78fr;
  }

  .hero-copy {
    padding-right: 44px;
    padding-left: 40px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .art-card,
  .art-card.is-wide {
    grid-column: auto;
  }

  .gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .profile-section {
    grid-template-columns: 130px 1fr;
  }

  .method {
    grid-column: 2;
  }

  .dialog-layout {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    min-height: auto;
    flex-direction: column;
    gap: 14px;
  }

  .brand {
    flex-basis: auto;
  }

  .brand-mark {
    width: 34px;
  }

  .brand-wordmark {
    width: 166px;
  }

  .header-actions {
    width: 100%;
    min-width: 0;
    gap: 12px;
  }

  .main-nav {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-external {
    margin-left: auto;
  }

  .language-switcher {
    flex: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    min-height: 630px;
    padding: 76px 24px 34px;
  }

  h1 {
    font-size: clamp(2.1rem, 8.5vw, 3rem);
  }

  .artist-focus-grid {
    grid-template-columns: 1fr;
  }

  .artist-focus-grid article {
    padding: 30px 0;
  }

  .hero-art {
    min-height: 70svh;
  }

  .section-heading,
  .contact-section {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .section-intro {
    max-width: none;
  }

  .filters-wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .art-card,
  .art-card.is-wide {
    grid-column: auto;
  }

  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 12px;
  }

  .is-wide .art-media,
  .art-media {
    aspect-ratio: 4 / 5;
  }

  .art-info {
    display: block;
  }

  .art-meta {
    margin-top: 6px;
    text-align: left;
  }

  .profile-section {
    grid-template-columns: 1fr;
    padding-right: 24px;
    padding-left: 24px;
  }

  .profile-mark img {
    width: 94px;
  }

  .method {
    grid-column: auto;
  }

  .contact-details {
    padding-top: 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .dialog-layout {
    grid-template-columns: 1fr;
  }

  .dialog-image-wrap {
    min-height: 52svh;
    padding: 20px;
  }

  .dialog-image-wrap img {
    max-height: 50svh;
  }

  .dialog-content {
    padding: 34px 24px 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .art-card {
    opacity: 1;
    transform: none;
  }
}
