/* ==========================================================================
   Artistka — portfolio
   ========================================================================== */

:root {
  --color-bg: #0a0a0a;
  --color-surface: #121212;
  --color-surface-raised: #1a1a1a;
  --color-text: #f4f3f0;
  --color-text-muted: #9c9c97;
  --color-line: #262624;
  --color-accent: #9eb4dc;

  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", system-ui, sans-serif;

  --color-header-bg: #f8f8f6;
  --color-header-text: #0a0a0a;
  --color-header-muted: #5c5c58;
  --color-header-line: #e4e4e0;

  --text-xs: 0.75rem;
  --text-sm: clamp(0.9375rem, 1.1vw, 1rem);
  --text-base: clamp(1.0625rem, 1.25vw, 1.1875rem);
  --text-lg: clamp(1.1875rem, 1.5vw, 1.375rem);
  --text-xl: clamp(1.375rem, 2vw, 1.625rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: clamp(4rem, 10vw, 6rem);

  --container: 72rem;
  --container-narrow: 38rem;
  --header-height: 3.25rem;
  --gutter: clamp(1.25rem, 4.5vw, 2.5rem);
  --line: 1px solid var(--color-line);
  --ease: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--space-2));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

h1, h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
}

p {
  margin: 0 0 var(--space-2);
}

p:last-child {
  margin-bottom: 0;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Hero logo: white on dark background */
.hero-logo {
  filter: brightness(0) invert(1) drop-shadow(0 4px 24px rgba(0, 0, 0, 0.6));
}

.logo img {
  filter: none;
}

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-6);
}

.section--alt {
  background: var(--color-surface);
}

.section-header {
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: var(--line);
}

.section-header h2 + .label {
  margin-top: var(--space-2);
}

.label {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.prose {
  max-width: 42rem;
}

.prose p {
  font-size: var(--text-lg);
  line-height: 1.75;
  color: var(--color-text-muted);
}

.prose p + p {
  margin-top: var(--space-3);
}

.prose p:first-child {
  font-size: var(--text-xl);
  color: var(--color-text);
  line-height: 1.6;
}

.about-subtitle {
  margin-top: var(--space-2);
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--color-text-muted);
}

.about-blocks {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-5);
  max-width: 42rem;
}

.about-block {
  padding-top: var(--space-4);
  border-top: var(--line);
}

.about-block__title {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 var(--space-2);
  color: var(--color-text);
}

.about-block p {
  font-size: var(--text-lg);
  line-height: 1.75;
  color: var(--color-text-muted);
  margin: 0;
}

.about-block p + p {
  margin-top: var(--space-2);
}

/* Entry list */

.entry-list {
  max-width: var(--container-narrow);
}

@media (min-width: 960px) {
  .info-grid .entry-list {
    max-width: none;
  }
}

.entry-list > li {
  display: grid;
  gap: 0.4rem;
  padding-block: var(--space-3);
  border-bottom: var(--line);
}

.entry-list > :first-child {
  border-top: var(--line);
}

.entry-list__title {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  font-weight: 400;
  line-height: 1.3;
}

.entry-list__detail {
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  color: var(--color-text-muted);
  line-height: 1.55;
}

.entry-list__detail a {
  color: var(--color-text);
  transition: color var(--ease);
}

@media (hover: hover) {
  .entry-list__detail a:hover {
    color: var(--color-accent);
  }
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  height: var(--header-height);
  padding-inline: env(safe-area-inset-right) env(safe-area-inset-left);
  background: var(--color-header-bg);
  border-bottom: 1px solid var(--color-header-line);
  transition: box-shadow var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--color-header-line), 0 4px 20px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-2);
}

.header-end {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.25rem);
  min-width: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: stretch;
  flex-shrink: 0;
  border: 1px solid var(--color-header-line);
  border-radius: 2px;
  overflow: hidden;
}

.lang-switch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2rem;
  padding-inline: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-header-muted);
  background: transparent;
  transition: background var(--ease), color var(--ease);
}

.lang-switch__btn.is-active {
  color: var(--color-header-bg);
  background: var(--color-header-text);
}

@media (hover: hover) {
  .lang-switch__btn:not(.is-active):hover {
    color: var(--color-header-text);
    background: rgba(10, 10, 10, 0.05);
  }
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: clamp(2rem, 5.5vw, 2.875rem);
  width: auto;
  max-width: min(11rem, 48vw);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  border: none;
  padding: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--ease);
}

.nav-overlay:not([hidden]) {
  display: block;
  opacity: 1;
}

.nav-overlay[hidden] {
  display: none;
  opacity: 0;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: clamp(0.6875rem, 1.2vw, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-header-muted);
  transition: color var(--ease);
}

@media (hover: hover) {
  .site-nav a:hover {
    color: var(--color-header-text);
  }
}

.nav-toggle {
  display: none;
  position: relative;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 210;
}

.nav-toggle span {
  position: absolute;
  display: block;
  width: 1.25rem;
  height: 1px;
  background: var(--color-header-text);
  transition: transform var(--ease);
}

.nav-toggle span:first-child {
  transform: translateY(-3px);
}

.nav-toggle span:last-child {
  transform: translateY(3px);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}

/* Hero */

.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(var(--header-height) + clamp(0.5rem, 2vh, 1rem)) var(--gutter) var(--space-4);
  background: var(--color-bg);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 50% at 50% 40%, rgba(10, 10, 10, 0.5) 0%, rgba(10, 10, 10, 0.1) 65%),
    linear-gradient(to bottom, rgba(10, 10, 10, 0.15) 0%, rgba(10, 10, 10, 0.25) 55%, rgba(10, 10, 10, 0.65) 100%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.62) saturate(0.9);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(96vw, 52rem);
  margin-inline: auto;
  flex-shrink: 0;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.hero-logo {
  width: clamp(17rem, 62vw, 34rem);
  height: auto;
  margin-inline: auto;
  margin-bottom: clamp(0.5rem, 1.5vh, 1rem);
  object-fit: contain;
  object-position: center;
}

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

.hero-byline {
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 4.5vw, 2.25rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.8);
}

.hero-lead {
  margin-top: clamp(0.5rem, 1.5vh, 0.875rem);
  font-family: var(--font-serif);
  font-size: clamp(0.9375rem, 2.2vw, 1.1875rem);
  font-style: italic;
  font-weight: 400;
  color: rgba(244, 243, 240, 0.88);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.75);
}

.hero-tagline {
  margin-top: clamp(0.35rem, 1vh, 0.625rem);
  font-family: var(--font-sans);
  font-size: clamp(0.75rem, 1.6vw, 0.875rem);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: rgba(244, 243, 240, 0.65);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
}

.hero-credit {
  position: absolute;
  z-index: 1;
  right: var(--gutter);
  bottom: var(--space-3);
  margin: 0;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: rgba(244, 243, 240, 0.45);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: clamp(1.5rem, 4vh, 2.5rem);
  width: 100%;
}

.hero-actions .btn {
  min-width: 10rem;
  min-height: 3rem;
  font-size: clamp(0.6875rem, 1.5vw, 0.8125rem);
  background: rgba(10, 10, 10, 0.35);
  color: var(--color-text);
  border-color: rgba(244, 243, 240, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

@media (hover: hover) {
  .hero-actions .btn:hover {
    background: rgba(244, 243, 240, 0.14);
    color: var(--color-text);
    border-color: rgba(244, 243, 240, 0.85);
    opacity: 1;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.875rem;
  padding-inline: var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: rgba(244, 243, 240, 0.45);
}

.btn-solid {
  background: var(--color-text);
  color: var(--color-bg);
}

@media (hover: hover) {
  .btn-outline:hover {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
  }

  .btn-solid:hover {
    background: var(--color-accent);
    color: var(--color-text);
  }
}

/* Gallery */

.gallery-section .section-header {
  margin-bottom: var(--space-4);
}

.gallery {
  columns: 1;
  column-gap: var(--space-3);
}

.gallery-item {
  position: relative;
  break-inside: avoid;
  margin-bottom: var(--space-3);
  background: var(--color-line);
  line-height: 0;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  transition: transform 0.6s var(--ease), opacity var(--ease);
  cursor: zoom-in;
}

.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: var(--space-3) var(--space-2);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  background: linear-gradient(to top, rgba(10, 10, 10, 0.85), transparent);
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity var(--ease), transform var(--ease);
}

@media (hover: hover) {
  .gallery-item:hover img {
    transform: scale(1.03);
  }

  .gallery-item:hover figcaption {
    opacity: 1;
    transform: translateY(0);
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  background: rgba(0, 0, 0, 0.94);
  cursor: zoom-out;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__img {
  max-width: min(96vw, 100%);
  max-height: 92dvh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}

body.lightbox-open {
  overflow: hidden;
}

/* Info */

.info-section .section-header {
  margin-bottom: var(--space-4);
}

.stockists-intro {
  margin: calc(var(--space-2) * -1) 0 var(--space-4);
  max-width: var(--container-narrow);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.stockists-lead {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.section-header .stockists-lead + h2 {
  margin-top: var(--space-2);
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  color: var(--color-text-muted);
}

.info-grid {
  display: grid;
  gap: var(--space-5);
}

.contact-block {
  display: grid;
  gap: var(--space-4);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  padding-top: var(--space-3);
  border-top: var(--line);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--ease);
}

.link-arrow::after {
  content: " →";
  transition: transform var(--ease);
}

@media (hover: hover) {
  .link-arrow:hover {
    color: var(--color-accent);
  }

  .link-arrow:hover::after {
    transform: translateX(3px);
  }
}

/* Footer */

.site-footer {
  padding-block: var(--space-4);
  padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  border-top: var(--line);
  background: var(--color-surface);
}

.footer-inner p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
}

/* Responsive */

@media (max-width: 959px) {
  .section {
    padding-block: clamp(3rem, 9vw, 4rem);
  }

  .section-header {
    margin-bottom: var(--space-4);
  }

  .prose p {
    font-size: var(--text-base);
  }

  .prose p:first-child {
    font-size: var(--text-lg);
  }

  .nav-toggle {
    display: flex;
  }

  .header-end {
    gap: 0.5rem;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: auto;
    width: min(17rem, 78vw);
    z-index: 160;
    background: var(--color-header-bg);
    padding-block: var(--space-1);
    border-left: 1px solid var(--color-header-line);
    box-shadow: -8px 8px 32px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform var(--ease);
    overflow: hidden;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav li + li {
    border-top: 1px solid var(--color-header-line);
  }

  .site-nav a {
    width: 100%;
    padding-inline: var(--space-4);
    font-size: var(--text-sm);
    color: var(--color-header-text);
    justify-content: flex-start;
  }

  .hero-logo {
    width: clamp(16rem, 84vw, 26rem);
  }

  .hero-actions {
    margin-top: clamp(2.75rem, 9vh, 4.5rem);
  }

  .gallery {
    column-gap: var(--space-2);
  }

  .gallery-item {
    margin-bottom: var(--space-2);
  }

  .gallery-item figcaption {
    opacity: 1;
    transform: none;
    position: static;
    padding: var(--space-2);
    background: var(--color-surface);
    font-size: 0.625rem;
  }
}

@media (max-width: 479px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (min-width: 480px) {
  .gallery {
    columns: 2;
    column-gap: var(--space-3);
  }
}

@media (min-width: 960px) {
  .hero-logo {
    width: clamp(22rem, 44vw, 36rem);
  }

  .hero-byline {
    font-size: clamp(1.625rem, 2.8vw, 2.5rem);
  }

  .info-grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .gallery {
    columns: 3;
    column-gap: var(--space-4);
  }

  .gallery-item {
    margin-bottom: var(--space-4);
  }
}

@media (min-width: 1280px) {
  :root {
    --header-height: 3.5rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .gallery-item img,
  .gallery-item figcaption {
    transition: none;
  }
}
