/* ============================================================
   SARVIA HASAN — Global Design System

   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Cormorant+SC:wght@300;400;500&family=DM+Mono:wght@300;400&display=swap');

/* ── Design Tokens ── */
:root {
  /* Backgrounds */
  --bg-primary:       #FAFAF9;
  --bg-secondary:     #F5F3F0;
  --bg-dark:          #1A1714;

  /* Typography */
  --ink:              #1A1714;
  --ink-muted:        #8A847A;
  --ink-light:        #B8B2AC;

  /* Accent */
  --gold:             #C9A84C;
  --gold-light:       #E8D9A8;
  --cream:            #F5F0E8;

  /* Dividers */
  --rule:             #D4CEC6;
  --rule-light:       #E8E4DE;

  /* Series Colors */
  --lutu-blue:        #4A7FA5;
  --princess-gold:    #C9A84C;
  --lampin-purple:    #6C3483;

  /* Typography Scale */
  --font-display:     'Cormorant SC', 'Cormorant Garamond', Georgia, serif;
  --font-body:        'Cormorant Garamond', Georgia, serif;
  --font-mono:        'DM Mono', 'Courier New', monospace;

  /* Spacing */
  --space-xs:         0.5rem;
  --space-sm:         1rem;
  --space-md:         2rem;
  --space-lg:         4rem;
  --space-xl:         8rem;
  --space-xxl:        12rem;

  /* Max widths */
  --max-content:      1200px;
  --max-text:         680px;
  --max-narrow:       480px;

  /* Transitions */
  --ease-gallery:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration-slow:    0.8s;
  --duration-med:     0.4s;
  --duration-fast:    0.2s;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg-primary);
}

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

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

ul, ol {
  list-style: none;
}

/* ── Accessibility ── */
.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;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

/* Display — hero name */
.type-display {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  line-height: 1;
}

/* Section heading */
.type-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Subheading / label */
.type-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Body text */
.type-body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.8;
}

/* Caption — under artwork */
.type-caption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Gold accent text */
.type-gold {
  color: var(--gold);
}

/* Italic body */
.type-italic {
  font-style: italic;
  font-weight: 300;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

.container {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--max-text);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

.section--lg {
  padding: var(--space-xxl) 0;
}

.section--sm {
  padding: var(--space-lg) 0;
}

/* Horizontal rule */
.rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: var(--space-lg) 0;
}

.rule--gold {
  border-top-color: var(--gold);
  width: 40px;
  margin: var(--space-md) 0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-primary);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-med) var(--ease-gallery),
              background var(--duration-med) var(--ease-gallery);
  padding: 1.5rem 2rem;
}

.nav.scrolled {
  border-bottom-color: var(--rule);
  background: rgba(250, 250, 249, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: color var(--duration-fast);
}

.nav__logo:hover {
  color: var(--gold);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color var(--duration-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--duration-med) var(--ease-gallery);
}

.nav__link:hover {
  color: var(--ink);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link--active {
  color: var(--ink);
}

.nav__link--active::after {
  width: 100%;
}

.nav__link--inquiry {
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 0.5rem 1.25rem;
  transition: border-color var(--duration-fast),
              color var(--duration-fast),
              background var(--duration-fast);
}

.nav__link--inquiry::after {
  display: none;
}

.nav__link--inquiry:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
}

/* Mobile hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1100;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--ink);
  transition: all var(--duration-med) var(--ease-gallery);
}

.nav__hamburger.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile nav overlay */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 1050;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  opacity: 0;
  transition: opacity var(--duration-med) var(--ease-gallery);
}

.nav__mobile.active {
  display: flex;
  opacity: 1;
}

.nav__mobile .nav__link {
  font-size: 0.85rem;
  letter-spacing: 0.3em;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--bg-dark);
  color: var(--ink-light);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bg-primary);
  margin-bottom: var(--space-sm);
  display: inline-block;
}

.footer__tagline {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink-light);
  line-height: 1.6;
  max-width: 300px;
  margin-bottom: var(--space-md);
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-light);
  transition: color var(--duration-fast);
}

.footer__social a:hover {
  color: var(--gold);
}

.footer__col-heading {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg-primary);
  margin-bottom: 1.25rem;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__col ul li a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-light);
  transition: color var(--duration-fast);
}

.footer__col ul li a:hover {
  color: var(--gold);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  opacity: 0.6;
}

.footer__verify a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  opacity: 0.6;
  transition: opacity var(--duration-fast);
}

.footer__verify a:hover {
  opacity: 1;
  color: var(--gold);
}

/* ============================================================
   SCROLL REVEAL ANIMATION
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease-gallery),
              transform var(--duration-slow) var(--ease-gallery);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }
.reveal--delay-5 { transition-delay: 0.5s; }

/* Image reveal — slightly different — scale from 0.97 */
.reveal-image {
  opacity: 0;
  transform: scale(0.97);
  transition: opacity var(--duration-slow) var(--ease-gallery),
              transform var(--duration-slow) var(--ease-gallery);
}

.reveal-image.revealed {
  opacity: 1;
  transform: scale(1);
}

/* ============================================================
   ARTWORK CARD — shared across series.html and homepage
   ============================================================ */

.artwork-card {
  display: block;
  position: relative;
  overflow: hidden;
}

.artwork-card__image-wrap {
  overflow: hidden;
  background: var(--bg-secondary);
  aspect-ratio: 3/4;
}

.artwork-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-gallery);
}

.artwork-card:hover .artwork-card__image-wrap img {
  transform: scale(1.03);
}

.artwork-card__meta {
  padding: 1.25rem 0 0;
}

.artwork-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.artwork-card__details {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1.8;
}

.artwork-card__status {
  display: inline-block;
  margin-top: 0.75rem;
}

/* Status — Available */
.status-available {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 0.4rem 0.9rem;
  transition: border-color var(--duration-fast),
              color var(--duration-fast);
  cursor: pointer;
  background: none;
  text-decoration: none;
  display: inline-block;
}

.status-available:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Status — Exhibiting */
.status-exhibiting {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lutu-blue);
}

/* Status — NFS */
.status-nfs {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-light);
}

/* Status — Price on request */
.status-inquiry {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 0.4rem 0.9rem;
  transition: border-color var(--duration-fast),
              color var(--duration-fast);
  text-decoration: none;
  display: inline-block;
}

.status-inquiry:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================================
   CREDENTIALS STRIP
   ============================================================ */

.credentials-strip {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 1.75rem 0;
  overflow: hidden;
}

.credentials-strip__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.credentials-strip__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: center;
  flex: 1;
  min-width: 140px;
}

.credentials-strip__org {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.credentials-strip__award {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ink);
}

.credentials-strip__sep {
  width: 1px;
  height: 40px;
  background: var(--rule);
  flex-shrink: 0;
}

/* ============================================================
   FORMS — Sarvia's Circle
   ============================================================ */

.form-field {
  margin-bottom: 1.75rem;
}

.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.6rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 0.75rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color var(--duration-med);
  -webkit-appearance: none;
  border-radius: 0;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-bottom-color: var(--gold);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--ink-light);
  font-style: italic;
}

.form-field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238A847A' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  padding-right: 2rem;
}

.form-field textarea {
  resize: none;
  min-height: 100px;
  line-height: 1.7;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* Submit button */
.btn-submit {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bg-primary);
  background: var(--ink);
  border: 1px solid var(--ink);
  padding: 1rem 2.5rem;
  cursor: pointer;
  transition: background var(--duration-fast),
              color var(--duration-fast),
              border-color var(--duration-fast);
}

.btn-submit:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg-primary);
}

/* ============================================================
   PAGE HEADER — interior pages
   ============================================================ */

.page-header {
  padding: calc(var(--space-xl) + 80px) 0 var(--space-lg);
  border-bottom: 1px solid var(--rule);
}

.page-header__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
  display: block;
}

.page-header__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
}

/* ============================================================
   SERIES COLOR ACCENTS
   ============================================================ */

.series--lutu .series__color-bar  { background: var(--lutu-blue); }
.series--princess .series__color-bar { background: var(--princess-gold); }
.series--lampin .series__color-bar { background: var(--lampin-purple); }

.series__color-bar {
  width: 32px;
  height: 2px;
  margin-bottom: 1.5rem;
}

/* ============================================================
   CV PAGE
   ============================================================ */

.cv-section {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--rule-light);
}

.cv-section:last-child {
  border-bottom: none;
}

.cv-section__heading {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule-light);
}

.cv-entry {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: baseline;
}

.cv-entry__year {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

.cv-entry__content {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.6;
}

.cv-entry__sub {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ink-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  :root {
    --space-xl: 5rem;
    --space-xxl: 7rem;
  }

  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .footer__top > *:first-child {
    grid-column: 1 / -1;
  }

  .credentials-strip__sep {
    display: none;
  }

  .credentials-strip__inner {
    gap: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cv-entry {
    grid-template-columns: 80px 1fr;
  }
}

@media (max-width: 600px) {
  :root {
    --space-lg:  3rem;
    --space-xl:  4rem;
    --space-xxl: 5rem;
  }

  .nav {
    padding: 1.25rem 1.25rem;
  }

  .container {
    padding: 0 1.25rem;
  }

  .container--narrow {
    padding: 0 1.25rem;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .credentials-strip__inner {
    justify-content: flex-start;
    gap: 1.25rem;
  }

  .credentials-strip__item {
    text-align: left;
    min-width: 0;
    flex: none;
    width: calc(50% - 0.625rem);
  }

  .cv-entry {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

/* ============================================================
   SHARED NAV SCRIPT HOOK — injected via nav.js or inline
   ============================================================ */

/* Utility: no scroll when mobile nav open */
body.nav-open {
  overflow: hidden;
}
