/* ============================================================
   NOVA METAPHOR — DESIGN TOKENS
   ============================================================ */
:root {
  /* Colour — pulled from the artwork itself: tea-stained paper,
     iron-gall ink, the watercolour wash, the brass of a dip pen. */
  --paper:        #F4EEDF;
  --paper-warm:   #EDE2C9;
  --ink:          #1C1812;
  --ink-soft:     #3A342A;
  --sienna:       #A8552F;
  --sienna-deep:  #8A3F20;
  --slate:        #3C5B6B;
  --brass:        #9C7A3F;
  --line:         rgba(28, 24, 18, 0.14);
  --shadow:       rgba(28, 24, 18, 0.22);

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script:  "Mrs Saint Delafield", cursive;

  --container: 1180px;
}

/* ============================================================
   RESET
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

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

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sienna-deep);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 20px;
}

.section-lede {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 46ch;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn-primary:hover { background: var(--sienna-deep); border-color: var(--sienna-deep); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.btn-small {
  padding: 9px 20px;
  font-size: 13px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background: var(--paper);
}
.btn-small:hover { background: var(--ink); color: var(--paper); }

.btn-disabled {
  opacity: 0.35;
  pointer-events: none;
  border-color: var(--ink-soft);
  color: var(--ink-soft);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 238, 223, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-family: var(--font-script);
  font-size: 34px;
  color: var(--ink);
  line-height: 1;
}
.site-nav {
  display: flex;
  gap: 36px;
}
.nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--sienna);
  transition: right 0.25s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { right: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 76px 0 100px;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(46px, 6.4vw, 78px);
  line-height: 1.03;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  color: var(--ink);
}
.hero-tagline {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 42ch;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-art {
  position: relative;
}
.art-frame {
  position: relative;
  background: var(--ink);
  padding: 14px;
  box-shadow: 0 22px 46px -18px var(--shadow);
}
.art-frame img {
  width: 100%;
  height: auto;
  display: block;
}
.art-frame--float { transform: rotate(2.2deg); }
.art-frame--tilt { transform: rotate(-2deg); }

.ink-blot {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.5;
  z-index: -1;
}
.ink-blot--one {
  width: 190px; height: 190px;
  background: radial-gradient(circle at 35% 35%, var(--sienna), transparent 70%);
  top: -40px; right: -50px;
  opacity: 0.35;
}
.ink-blot--two {
  width: 140px; height: 140px;
  background: radial-gradient(circle at 60% 40%, var(--slate), transparent 70%);
  bottom: -30px; left: -40px;
  opacity: 0.3;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: 90px 0;
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-inner { max-width: 760px; }
.about-art {
  display: flex;
  justify-content: center;
  margin-bottom: 44px;
}
.about-art .art-frame {
  max-width: 560px;
  width: 100%;
}
.about-text {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.75;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { padding: 100px 0; }
.gallery-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 46px 38px;
}
.gallery-empty {
  margin-top: 48px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
}

.art-card { display: flex; flex-direction: column; }
.art-card-frame {
  background: var(--ink);
  padding: 10px;
  box-shadow: 0 16px 30px -14px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.art-card-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.art-card--rot-1 .art-card-frame { transform: rotate(-1.4deg); }
.art-card--rot-2 .art-card-frame { transform: rotate(1.6deg); }
.art-card--rot-3 .art-card-frame { transform: rotate(-0.8deg); }
.art-card--rot-4 .art-card-frame { transform: rotate(1.1deg); }

.art-card:hover .art-card-frame {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 26px 40px -16px var(--shadow);
}

.art-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}
.art-card-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--ink);
}

/* ============================================================
   STYLE & FINISH
   ============================================================ */
.finish {
  padding: 90px 0;
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.finish-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.finish-item {
  background: var(--paper-warm);
  padding: 34px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.finish-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  color: var(--ink);
}
.finish-detail {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sienna-deep);
  font-weight: 600;
}

/* ============================================================
   CUSTOM
   ============================================================ */
.custom {
  padding: 100px 0;
  background: var(--ink);
  color: var(--paper);
}
.custom-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.custom .eyebrow { color: #C67D53; } /* lighter tint of --sienna for AA contrast on dark bg */
.custom .section-title { color: var(--paper); }
.custom-text {
  font-size: 17px;
  color: rgba(244, 238, 223, 0.78);
  max-width: 48ch;
  margin-bottom: 32px;
  line-height: 1.75;
}
.custom .btn-primary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.custom .btn-primary:hover {
  background: var(--sienna);
  border-color: var(--sienna);
  color: var(--paper);
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how { padding: 100px 0; }
.how-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}
.how-step {
  padding-top: 22px;
  border-top: 2px solid var(--ink);
}
.how-index {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--sienna-deep);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.how-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 10px;
}
.how-text {
  font-size: 15px;
  color: var(--ink-soft);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 100px 0 110px;
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
}
.contact-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact .section-lede { margin: 0 auto 36px; }
.contact-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 56px 0 42px;
  background: var(--ink);
  color: rgba(244, 238, 223, 0.7);
}
.footer-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer-word {
  font-family: var(--font-script);
  font-size: 30px;
  color: var(--paper);
}
.footer-tagline { font-size: 14px; margin-bottom: 8px; }
.footer-contact { font-size: 14px; display: flex; gap: 10px; }
.footer-contact a:hover { color: var(--paper); }
.footer-copy { font-size: 12.5px; margin-top: 18px; color: rgba(244, 238, 223, 0.45); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(28, 24, 18, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: min(94vw, 1200px);
  max-height: 88vh;
  width: auto;
  height: auto;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6);
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 26px;
  background: none;
  border: none;
  color: var(--paper);
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 10px;
}
.lightbox-close:hover { color: var(--sienna); }

.art-card-frame,
.art-frame {
  cursor: zoom-in;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { order: -1; max-width: 420px; margin: 0 auto; }
  .custom-inner { grid-template-columns: 1fr; gap: 40px; }
  .custom-art { max-width: 420px; margin: 0 auto; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .finish-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .site-nav {
    position: fixed;
    top: 66px;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 32px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }
  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }

  .hero { padding: 52px 0 72px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  .about, .gallery, .finish, .custom, .how, .contact { padding: 64px 0; }
  .gallery-grid { grid-template-columns: 1fr; gap: 40px; }
  .how-grid { grid-template-columns: 1fr; gap: 32px; }
  .finish-grid { grid-template-columns: 1fr; }

  .contact-actions { flex-direction: column; width: 100%; }
  .contact-actions .btn { width: 100%; }

  .section-inner { padding: 0 22px; }
  .header-inner { padding: 14px 22px; }
}
