/*
  hanyong.art — Living Sketchbook Stylesheet
  All styling derived from tokens.css custom properties.
  Strictly zero hex, rgb(), hsl() colours and zero font-family definitions in this file.
*/

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

html {
  font-size: 16px;
  background-color: var(--color-ground);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--space-4));
  overflow-x: hidden;
  max-width: 100vw;
  transition: background-color 0.25s ease, color 0.25s ease;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100vw;
  background-color: var(--color-ground);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-weight: 300;
  transition: background-color 0.25s ease, color 0.25s ease;
}

::selection {
  background-color: var(--color-accent);
  color: var(--color-text-on-dark);
}

:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 3px;
}

a {
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-accent);
}

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

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

/* Layout Utilities */
.site-wrapper {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--space-4);
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .site-wrapper {
    padding: 0 var(--space-6);
  }
}

@media (min-width: 1024px) {
  .site-wrapper {
    padding: 0 var(--space-8);
  }
}

.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;
}

.anchor-target {
  display: block;
  position: relative;
  top: calc(-1 * var(--header-height));
  visibility: hidden;
  height: 0;
}

/* Notes and Annotations in Helvetica Light */
.handwritten-note {
  font-family: var(--font-hand);
  font-size: var(--size-2);
  font-weight: 300;
  color: var(--color-accent);
  display: inline-block;
  line-height: 1.35;
}

.artwork-num {
  font-family: var(--font-body);
  font-size: var(--size-1);
  font-weight: 300;
  color: var(--color-subtle);
  font-variant-numeric: tabular-nums;
  display: inline-block;
}

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--color-ground);
  border-bottom: 1px solid var(--color-rule);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: var(--header-height);
  flex-wrap: wrap;
}

.brand-link {
  font-family: var(--font-display);
  font-size: var(--size-4);
  font-weight: 400;
  text-decoration: none;
  color: var(--color-ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-domain {
  font-weight: 300;
  color: var(--color-accent);
}

.header-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-3) var(--space-4);
  list-style: none;
  flex-wrap: wrap;
}

.nav-link {
  font-size: var(--size-2);
  font-weight: 300;
  text-decoration: none;
  color: var(--color-subtle);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-btn);
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-ink);
}

.nav-link.active {
  color: var(--color-ink);
  font-weight: 400;
  background-color: var(--color-surface);
}

.nav-link-external {
  color: var(--color-ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Mood Toggle Button (Rounded edge black text on grey) */
.mood-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-4);
  background-color: var(--color-btn-bg);
  color: var(--color-btn-text);
  border: none;
  border-radius: var(--radius-btn);
  font-size: var(--size-2);
  font-weight: 400;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.mood-toggle-btn:hover {
  background-color: var(--color-btn-bg-hover);
  color: var(--color-btn-text);
}

.mood-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.mood-sun {
  display: block;
}

.mood-moon {
  display: none;
}

[data-theme="night"] .mood-sun {
  display: none;
}

[data-theme="night"] .mood-moon {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="day"]) .mood-sun {
    display: none;
  }
  :root:not([data-theme="day"]) .mood-moon {
    display: block;
  }
}

.mood-error-banner {
  background-color: var(--color-surface);
  color: var(--color-accent-warm);
  padding: var(--space-2) var(--space-4);
  font-size: var(--size-2);
  margin-top: var(--space-2);
  border-radius: var(--radius-btn);
}

/* Buttons (Rounded edge black text on grey) */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--space-5);
  background-color: var(--color-btn-bg);
  color: var(--color-btn-text);
  border: none;
  border-radius: var(--radius-btn);
  text-decoration: none;
  font-size: var(--size-2);
  font-weight: 400;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn-primary:hover,
.btn-secondary:hover {
  background-color: var(--color-btn-bg-hover);
  color: var(--color-btn-text);
}

.btn-primary:active,
.btn-secondary:active {
  background-color: var(--color-btn-bg-active);
  transform: scale(0.98);
}

.text-link {
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: var(--size-2);
}

.text-link:hover {
  color: var(--color-accent);
}

/* Hero Section */
.hero-section {
  padding-top: var(--space-6);
  padding-bottom: var(--space-8);
  overflow: hidden;
}

.hero-editorial-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: center;
}

@media (min-width: 960px) {
  .hero-editorial-layout {
    grid-template-columns: 1.05fr 1.25fr;
    gap: var(--space-8);
  }
}

.hero-text-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--size-hero);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--color-ink);
  text-wrap: balance;
}

.hero-intro {
  font-size: var(--size-3);
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-subtle);
  max-width: 520px;
  text-wrap: pretty;
}

/* Animated Ink Line */
.hero-ink-line-wrap {
  width: 220px;
  height: 24px;
  color: var(--color-accent);
  margin-top: calc(-1 * var(--space-2));
}

.ink-path {
  stroke-dasharray: 230;
  stroke-dashoffset: 230;
  animation: drawInkLine 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.3s forwards;
}

@keyframes drawInkLine {
  to {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ink-path {
    stroke-dashoffset: 0;
    animation: none;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.hero-note-wrap {
  margin-top: var(--space-1);
}

/* Hero Desk Composition (One main artwork + two overlapping sketches) */
.hero-desk-composition {
  position: relative;
  width: 100%;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 640px) {
  .hero-desk-composition {
    min-height: 480px;
  }
}

@media (min-width: 960px) {
  .hero-desk-composition {
    min-height: 520px;
  }
}

.hero-art-main {
  position: relative;
  width: 82%;
  max-width: 560px;
  z-index: 2;
  background-color: var(--color-surface);
  transition: transform 0.25s ease;
}

.hero-art-figure {
  position: relative;
  margin: 0;
}

.hero-main-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.hero-art-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  background-color: var(--color-overlay);
  font-size: var(--size-1);
  color: var(--color-subtle);
}

.artwork-desk-title {
  font-family: var(--font-hand);
  font-size: var(--size-1);
  font-weight: 300;
  color: var(--color-ink);
}

/* Overlapping Sketchbook Elements */
.hero-art-overlap {
  position: absolute;
  background-color: var(--color-surface);
  z-index: 3;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-overlap-one {
  width: 38%;
  max-width: 220px;
  top: 4%;
  right: 2%;
  transform: rotate(3deg);
}

.hero-overlap-two {
  width: 36%;
  max-width: 210px;
  bottom: 2%;
  left: 2%;
  transform: rotate(-4deg);
}

.hero-overlap-img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-art-main {
    animation: heroFadeIn 0.8s ease-out forwards;
  }
  .hero-overlap-one {
    animation: heroFadeSlideOne 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both;
  }
  .hero-overlap-two {
    animation: heroFadeSlideTwo 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s both;
  }
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFadeSlideOne {
  from {
    opacity: 0;
    transform: translate(16px, -12px) rotate(0deg);
  }
  to {
    opacity: 1;
    transform: translate(0, 0) rotate(3deg);
  }
}

@keyframes heroFadeSlideTwo {
  from {
    opacity: 0;
    transform: translate(-16px, 12px) rotate(0deg);
  }
  to {
    opacity: 1;
    transform: translate(0, 0) rotate(-4deg);
  }
}

/* Gallery Section */
.gallery-section {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--color-rule);
}

.section-intro-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
  .section-intro-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.section-heading-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--size-5);
  font-weight: 300;
  letter-spacing: -0.015em;
  color: var(--color-ink);
  line-height: 1.15;
}

.section-subtitle {
  font-size: var(--size-2);
  font-weight: 300;
  color: var(--color-subtle);
  max-width: 600px;
  line-height: 1.5;
}

.instagram-aside-link {
  flex-shrink: 0;
}

/* Gallery Toolbar */
.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  margin-bottom: var(--space-7);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.filter-btn {
  min-height: 44px;
  padding: 0 var(--space-4);
  background-color: var(--color-btn-bg);
  border: none;
  border-radius: var(--radius-btn);
  color: var(--color-btn-text);
  font-size: var(--size-2);
  font-weight: 400;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

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

.filter-btn.active,
.filter-btn[aria-selected="true"] {
  background-color: var(--color-btn-bg-active);
  color: var(--color-btn-text);
  font-weight: 500;
}

.filter-hint {
  display: flex;
  align-items: center;
}

/* Editorial Asymmetric Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  transition: opacity 0.2s ease;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-8) var(--space-6);
  }

  .gallery-item.span-12 {
    grid-column: span 12;
  }

  .gallery-item.span-7 {
    grid-column: span 7;
  }

  .gallery-item.span-5 {
    grid-column: span 5;
  }

  .gallery-item.span-6 {
    grid-column: span 6;
  }

  .gallery-item.span-8 {
    grid-column: span 8;
  }

  .gallery-item.span-4 {
    grid-column: span 4;
  }
}

/* Gallery Item / Card */
.gallery-item {
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: transparent;
}

.sketch-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sketch-figure {
  position: relative;
  overflow: hidden;
  background-color: var(--color-surface);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  cursor: pointer;
}

.sketch-card-img {
  width: 100%;
  height: auto;
  max-height: 520px;
  display: block;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.sketch-figure:hover .sketch-card-img {
  transform: scale(1.02);
}

.sketch-figure-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: var(--space-3);
  background-color: color-mix(in oklch, var(--color-ground) 20%, transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.sketch-figure:hover .sketch-figure-overlay,
.sketch-figure:focus-visible .sketch-figure-overlay {
  opacity: 1;
}

.overlay-chip {
  background-color: var(--color-btn-bg);
  color: var(--color-btn-text);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-btn);
  font-size: var(--size-1);
  font-weight: 400;
}

.sketch-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.sketch-meta-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.sketch-card-title {
  font-family: var(--font-display);
  font-size: var(--size-3);
  font-weight: 400;
  color: var(--color-ink);
  letter-spacing: -0.01em;
  margin: 0;
}

.sketch-card-medium {
  font-family: var(--font-hand);
  font-size: var(--size-1);
  font-weight: 300;
  color: var(--color-accent);
  line-height: 1.3;
}

.sketch-card-caption {
  font-size: var(--size-2);
  font-weight: 300;
  color: var(--color-subtle);
  line-height: 1.45;
}

.sketch-card-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-1);
  flex-wrap: wrap;
}

/* View sketch trigger button */
.btn-view-sketch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--space-4);
  background-color: var(--color-btn-bg);
  color: var(--color-btn-text);
  border: none;
  border-radius: var(--radius-btn);
  font-size: var(--size-1);
  font-weight: 400;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-view-sketch:hover {
  background-color: var(--color-btn-bg-hover);
  color: var(--color-btn-text);
}

/* About Section */
.about-section {
  padding: var(--space-9) 0;
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-rule);
}

.about-editorial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: center;
}

@media (min-width: 860px) {
  .about-editorial-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-8);
  }
}

.about-bio-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--size-2);
  font-weight: 300;
  color: var(--color-subtle);
  line-height: 1.65;
  max-width: 580px;
}

.about-signature-block {
  margin-top: var(--space-2);
  display: inline-flex;
  flex-direction: column;
  gap: var(--space-1);
}

.about-manifesto-line {
  font-family: var(--font-hand);
  font-size: var(--size-3);
  font-weight: 300;
  color: var(--color-accent);
  line-height: 1.3;
}

.about-underline-stroke {
  color: var(--color-accent-warm);
}

.about-path {
  stroke-dasharray: 250;
  stroke-dashoffset: 250;
  transition: stroke-dashoffset 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.about-section.in-view .about-path {
  stroke-dashoffset: 0;
}

@media (prefers-reduced-motion: reduce) {
  .about-path {
    stroke-dashoffset: 0;
  }
}

.about-portrait-column {
  display: flex;
  justify-content: center;
}

.about-portrait-card {
  width: 100%;
  max-width: 380px;
  background-color: var(--color-ground);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.about-image-wrapper {
  background-color: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-img {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  display: block;
}

.about-caption {
  text-align: right;
}

/* Commission Section */
.commission-section {
  padding: var(--space-9) 0;
  border-top: 1px solid var(--color-rule);
}

.commission-editorial-card {
  max-width: 720px;
  margin: 0 auto;
  background-color: var(--color-surface);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .commission-editorial-card {
    padding: var(--space-8);
  }
}

.commission-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.commission-headline {
  font-family: var(--font-display);
  font-size: var(--size-5);
  font-weight: 300;
  letter-spacing: -0.015em;
  color: var(--color-ink);
  line-height: 1.15;
}

.commission-sub {
  font-size: var(--size-2);
  font-weight: 300;
  color: var(--color-subtle);
  line-height: 1.55;
}

/* Reference Sketch Banner */
.reference-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background-color: var(--color-ground);
  border-radius: var(--radius-btn);
  flex-wrap: wrap;
}

.reference-banner-content {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  font-size: var(--size-2);
}

.reference-label {
  color: var(--color-subtle);
  font-weight: 300;
}

.reference-title {
  color: var(--color-accent);
  font-weight: 400;
}

.btn-clear-ref {
  background: none;
  border: none;
  font-size: var(--size-1);
  font-weight: 300;
  color: var(--color-subtle);
  cursor: pointer;
  text-decoration: underline;
  padding: var(--space-1) var(--space-2);
}

.btn-clear-ref:hover {
  color: var(--color-accent-warm);
}

/* Choice Radiogroup */
.enquiry-builder {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.builder-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.builder-group-label {
  font-size: var(--size-2);
  font-weight: 400;
  color: var(--color-ink);
}

.choice-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.choice-chip {
  min-height: 44px;
  padding: 0 var(--space-4);
  background-color: var(--color-btn-bg);
  border: none;
  border-radius: var(--radius-btn);
  color: var(--color-btn-text);
  font-size: var(--size-2);
  font-weight: 400;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.choice-chip:hover {
  background-color: var(--color-btn-bg-hover);
  color: var(--color-btn-text);
}

.choice-chip.active,
.choice-chip[aria-checked="true"] {
  background-color: var(--color-btn-bg-active);
  color: var(--color-btn-text);
  font-weight: 500;
}

.brief-textarea,
.preview-textarea {
  width: 100%;
  padding: var(--space-3);
  background-color: var(--color-ground);
  color: var(--color-ink);
  border: 1px solid var(--color-rule);
  border-radius: 0;
  font-size: var(--size-2);
  font-weight: 300;
  line-height: 1.5;
  resize: vertical;
}

.brief-textarea:focus,
.preview-textarea:focus {
  outline: 2px solid var(--color-ink);
  outline-offset: 1px;
}

.preview-label {
  font-size: var(--size-1);
  font-weight: 400;
  color: var(--color-subtle);
  margin-bottom: var(--space-1);
  display: block;
}

.generated-preview-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.preview-textarea {
  background-color: var(--color-surface-subtle);
  font-family: inherit;
}

/* Action Row */
.enquiry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.btn-copy-enquiry,
.btn-open-instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-5);
  background-color: var(--color-btn-bg);
  color: var(--color-btn-text);
  border: none;
  border-radius: var(--radius-btn);
  font-size: var(--size-2);
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn-copy-enquiry:hover,
.btn-open-instagram:hover {
  background-color: var(--color-btn-bg-hover);
  color: var(--color-btn-text);
}

.btn-copy-enquiry:active,
.btn-open-instagram:active {
  background-color: var(--color-btn-bg-active);
  transform: scale(0.98);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.copy-feedback-message {
  padding: var(--space-2) var(--space-4);
  background-color: var(--color-ground);
  color: var(--color-accent);
  font-size: var(--size-2);
  font-weight: 400;
  border-radius: var(--radius-btn);
}

.enquiry-instructions {
  font-size: var(--size-1);
  font-weight: 300;
  color: var(--color-subtle);
  line-height: 1.5;
}

/* Full-Screen Immersive Artwork Viewer Modal */
.artwork-viewer {
  border: none;
  padding: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  background-color: var(--color-ground);
  color: var(--color-ink);
  overflow: hidden;
}

.artwork-viewer::backdrop {
  background-color: var(--color-backdrop);
}

.viewer-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.viewer-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-rule);
  flex-shrink: 0;
  gap: var(--space-2);
}

@media (min-width: 768px) {
  .viewer-top-bar {
    padding: var(--space-3) var(--space-6);
  }
}

.viewer-meta-left {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--size-2);
}

.viewer-position {
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  color: var(--color-ink);
}

.viewer-separator {
  color: var(--color-subtle);
}

.viewer-category-tag {
  font-family: var(--font-hand);
  font-weight: 300;
  color: var(--color-accent);
}

.viewer-controls-group {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.zoom-controls {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  background-color: var(--color-btn-bg);
  border-radius: var(--radius-btn);
  padding: 2px;
}

.viewer-tool-btn {
  background: transparent;
  border: none;
  color: var(--color-btn-text);
  min-width: 36px;
  height: 36px;
  border-radius: var(--radius-btn);
  font-size: var(--size-2);
  font-weight: 400;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-2);
  transition: background-color 0.15s ease;
}

.viewer-tool-btn:hover {
  background-color: var(--color-btn-bg-hover);
}

.zoom-level-btn {
  font-size: var(--size-1);
  min-width: 48px;
}

.viewer-close-btn {
  background-color: var(--color-btn-bg);
  border: none;
  border-radius: var(--radius-btn);
  color: var(--color-btn-text);
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--size-4);
  line-height: 1;
  transition: background-color 0.15s ease;
}

.viewer-close-btn:hover {
  background-color: var(--color-btn-bg-hover);
}

/* Viewer Middle Stage */
.viewer-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--space-4);
  background-color: var(--color-ground);
  touch-action: pan-y;
}

.viewer-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: 1100px;
  max-height: 80vh;
  transition: transform 0.2s ease-out;
  transform-origin: center center;
}

.viewer-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
}

.viewer-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--color-btn-bg);
  border: none;
  border-radius: var(--radius-btn);
  color: var(--color-btn-text);
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.viewer-nav-btn:hover {
  background-color: var(--color-btn-bg-hover);
  transform: translateY(-50%) scale(1.05);
}

.viewer-nav-prev {
  left: var(--space-3);
}

.viewer-nav-next {
  right: var(--space-3);
}

/* Viewer Bottom Bar */
.viewer-bottom-bar {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-rule);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .viewer-bottom-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-6);
  }
}

.viewer-caption-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  max-width: 720px;
}

.viewer-title {
  font-family: var(--font-display);
  font-size: var(--size-3);
  font-weight: 400;
  color: var(--color-ink);
}

.viewer-medium {
  font-family: var(--font-hand);
  font-size: var(--size-1);
  font-weight: 300;
  color: var(--color-accent);
}

.viewer-description {
  font-size: var(--size-2);
  font-weight: 300;
  color: var(--color-subtle);
  line-height: 1.45;
}

.viewer-action-block {
  flex-shrink: 0;
}

.btn-viewer-enquire {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--space-4);
  background-color: var(--color-btn-bg);
  color: var(--color-btn-text);
  border: none;
  border-radius: var(--radius-btn);
  font-size: var(--size-2);
  font-weight: 400;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.btn-viewer-enquire:hover {
  background-color: var(--color-btn-bg-hover);
  color: var(--color-btn-text);
}

/* Site Footer */
.site-footer {
  margin-top: auto;
  padding: var(--space-8) 0 var(--space-6);
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-rule);
}

.footer-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

@media (min-width: 640px) {
  .footer-layout {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
  }
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.footer-brand-title {
  font-family: var(--font-display);
  font-size: var(--size-4);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

.footer-brand-tagline {
  font-size: var(--size-2);
  font-weight: 300;
  color: var(--color-subtle);
}

.footer-links {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  list-style: none;
}

.footer-link {
  font-size: var(--size-2);
  font-weight: 300;
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-link:hover {
  color: var(--color-accent);
}

.footer-bottom-row {
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-rule);
}

.footer-signoff {
  font-family: var(--font-hand);
  font-size: var(--size-2);
  font-weight: 300;
  color: var(--color-subtle);
}
