:root {
  --background: #040608;
  --surface: rgba(10, 15, 22, 0.85);
  --surface-raised: rgba(11, 17, 26, 0.95);
  --text: #f6f3eb;
  --muted: rgba(246, 243, 235, 0.65);
  --accent: #f4b860;
  --accent-strong: #ff7752;
  --border: rgba(246, 243, 235, 0.12);
  --gradient: radial-gradient(circle at 20% 20%, rgba(255, 194, 125, 0.4), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(255, 118, 82, 0.3), transparent 55%),
    radial-gradient(circle at 50% 80%, rgba(98, 142, 222, 0.3), transparent 60%);
  font-family: 'Work Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.65;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  padding: 8px 16px;
  background: var(--accent);
  color: #0c0c0c;
  border-radius: 999px;
  text-decoration: none;
  transition: top 0.2s ease;
  z-index: 10;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px clamp(16px, 5vw, 72px);
  background: rgba(4, 6, 8, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

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

.logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f4b860, #ff7752);
  color: #040608;
  font-weight: 600;
  display: grid;
  place-items: center;
  letter-spacing: 0.15em;
}

.logo-title {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  margin: 0;
  font-size: 1.1rem;
}

.logo-subtitle {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--text);
  border-color: var(--accent);
}

main {
  padding: 0 clamp(16px, 5vw, 72px) 80px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 6vw, 72px);
  padding: 80px 0 96px;
  border-bottom: 1px solid var(--border);
}

.hero-text h1 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.hero-sketch {
  position: relative;
  padding: 28px 28px 20px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(248, 245, 236, 0.08), rgba(248, 245, 236, 0.02));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.hero-sketch::before {
  content: '';
  position: absolute;
  inset: 16px;
  border-radius: 16px;
  border: 1px dashed rgba(248, 245, 236, 0.08);
  pointer-events: none;
}

.hero-sketch svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

.hero-sketch .sketch-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-sketch .sketch-line--bold {
  stroke-width: 2.4;
}

.hero-sketch .sketch-line--wing {
  stroke-width: 1.6;
}

.hero-sketch .sketch-line--shade {
  stroke-width: 1.2;
  stroke-dasharray: 6 10;
  opacity: 0.55;
}

.hero-sketch figcaption {
  margin-top: 16px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 245, 236, 0.65);
}

.hero-cover {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-cover__frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: radial-gradient(circle at 30% 20%, rgba(244, 184, 96, 0.15), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(98, 142, 222, 0.18), transparent 50%),
    #0b1018;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.hero-cover figcaption {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.section-header {
  max-width: 720px;
  margin-bottom: 40px;
}

.section h2 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 8px 0 16px;
}

.eyebrow {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--muted);
}

.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 12px 24px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #0f0f0f;
  border-color: transparent;
  transition: transform 0.2s ease;
}

.primary:hover,
.primary:focus {
  transform: translateY(-2px);
}

.secondary {
  color: var(--text);
  border-color: var(--border);
  background: transparent;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
}

.featured-grid img {
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 80px rgba(5, 8, 12, 0.45);
}

.featured-details {
  background: var(--surface);
  padding: 32px;
  border-radius: 28px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.featured-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.filter-button {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.filter-button.is-active {
  background: rgba(244, 184, 96, 0.15);
  color: var(--text);
  border-color: rgba(244, 184, 96, 0.35);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  justify-content: center;
  gap: 24px;
}

.art-card {
  border: 0;
  padding: 0;
  text-align: left;
  background: var(--surface);
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: transform 0.25s ease, border-color 0.2s ease;
  color: inherit;
}

.art-card:hover,
.art-card:focus {
  transform: translateY(-6px);
  border-color: rgba(244, 184, 96, 0.5);
}

.art-card figure {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

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

.art-card__body {
  padding: 18px 20px 24px;
}

.art-card__title {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.art-card__meta {
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer {
  padding: 48px clamp(16px, 5vw, 72px);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
}

.artwork-dialog {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 0;
  max-width: min(720px, 90vw);
  background: var(--surface-raised);
  color: var(--text);
}

.artwork-dialog::backdrop {
  background: rgba(2, 4, 7, 0.85);
}

.artwork-dialog img {
  width: 100%;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}

.dialog-body {
  padding: 24px;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
}

@media (max-width: 720px) {
  .site-nav {
    display: none;
  }

  .hero {
    padding-top: 40px;
  }

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

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
