/* Fairway Fine Art — preview site */

:root {
  --forest: #02341d;
  --forest-soft: #0d4a2e;
  --paper: #f5f4f1;
  --paper-2: #ece8e2;
  --ink: #1a1c1a;
  --muted: #5a615c;
  --line: #d6d1c9;
  --chartreuse: #c5d15c;
  --header-h: 4.5rem;
  --font-serif: "Cormorant Garamond", "Palatino Linotype", Palatino, "Book Antiqua", serif;
  --font-sans: "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --shadow-art: 0 20px 50px rgba(16, 24, 20, 0.10), 0 2px 8px rgba(16, 24, 20, 0.05);
  --wide: 72rem;
  --gutter: clamp(1.25rem, 4.5vw, 3.75rem);
  --ease: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--forest);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--forest-soft);
}

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

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 1000;
  background: var(--forest);
  color: var(--paper);
  padding: 0.5rem 0.9rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
  color: var(--paper);
}

/* Header
   ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 244, 241, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  max-width: 90rem;
  margin: 0 auto;
  padding: 0.6rem var(--gutter);
}

.logo-link {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}

.logo {
  width: clamp(8.5rem, 22vw, 11.5rem);
  height: auto;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--forest);
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.25rem;
  height: 1.5px;
  background: currentColor;
  position: relative;
  transition: transform var(--ease), opacity var(--ease);
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

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

.site-nav a {
  text-decoration: none;
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav a:hover {
  color: var(--ink);
}

/* Mobile nav drawer */
@media (max-width: 749px) {
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.25rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

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

  .site-nav a {
    display: block;
    padding: 0.9rem 0;
  }
}

@media (min-width: 750px) {
  .nav-toggle {
    display: none;
  }

  .site-nav ul {
    display: flex;
    gap: 1.1rem;
  }
}

/* Hero
   ------------------------------------------------------------------ */

.hero {
  padding: 1.25rem var(--gutter) 3.5rem;
  text-align: center;
}

.hero-art {
  margin: 0 auto 2.25rem;
  max-width: 36rem;
}

.hero-art .work-shot {
  display: block;
  box-shadow: var(--shadow-art);
}

.hero-art img {
  width: 100%;
  max-height: min(78vh, 52rem);
  object-fit: contain;
  background: #f5f5f5;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--forest);
  margin: 0 0 0.5rem;
}

.hero-secondary {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  color: var(--muted);
  margin: 0 0 1.15rem;
}

.hero-artists {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 500;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 700px) {
  .hero-artists {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    max-width: none;
  }
}

.hero-artists .x {
  text-transform: lowercase;
  font-style: normal;
}

.hero-artists .dot {
  margin: 0 0.4rem;
  letter-spacing: 0;
}

/* Shared section chrome
   ------------------------------------------------------------------ */

.section-label {
  margin: 0 0 0.65rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--forest);
}

.section-label::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 2px;
  background: var(--chartreuse);
  margin: 0.7rem 0 0;
}

.section-head {
  max-width: 40rem;
  margin: 0 0 2.75rem;
}

.section-head h2,
.intro-copy h2,
.commissions h2,
.work-meta h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--forest);
  letter-spacing: 0.01em;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  margin: 0 0 0.75rem;
}

.section-lede {
  margin: 0;
  color: var(--muted);
}

.section-head .section-label::after,
.intro-copy .section-label::after,
.commissions .section-label::after {
  margin-left: 0;
}

/* Intro
   ------------------------------------------------------------------ */

.intro,
.collection,
.behind,
.in-the-home,
.about,
.contact {
  padding: 4.5rem var(--gutter);
}

.intro {
  border-top: 1px solid var(--line);
}

.intro-grid {
  max-width: var(--wide);
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.intro-copy h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  margin: 0 0 1rem;
}

.intro-copy p {
  margin: 0;
  max-width: 34rem;
  color: var(--ink);
}

.intro-figure {
  margin: 0;
  max-width: 28rem;
}

.intro-figure .work-shot {
  display: block;
  box-shadow: var(--shadow-art);
}

@media (min-width: 840px) {
  .intro-grid {
    grid-template-columns: 1fr 0.9fr;
    gap: 4.5rem;
  }
}

/* Collection
   ------------------------------------------------------------------ */

.collection {
  background: #f9f8f5;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.collection .section-head {
  max-width: var(--wide);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
}

.work--feature {
  max-width: var(--wide);
  margin: 0 auto 4.5rem;
  display: grid;
  gap: 1.75rem;
  align-items: end;
}

.work-visual .work-shot:first-child {
  box-shadow: var(--shadow-art);
}

.work-visual img {
  width: 100%;
}

.work-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.work-thumbs:has(.work-shot:nth-child(2):last-child) {
  grid-template-columns: repeat(2, 1fr);
}

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

.work-thumbs .work-shot {
  display: block;
  box-shadow: none;
  outline-offset: 2px;
}

.work-thumbs img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
}

.work-meta h3 {
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  margin: 0 0 0.25rem;
}

.work-medium {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.work-facts {
  margin: 0;
  display: grid;
  gap: 0.65rem 2rem;
  grid-template-columns: auto auto;
  justify-content: start;
}

.work-facts dt {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 0.15rem;
}

.work-facts dd {
  margin: 0;
}

.sold {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--forest);
}

.work-note {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 22rem;
}

.work-note a {
  color: var(--forest);
}

.confirm-note {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.work-grid {
  max-width: var(--wide);
  margin: 0 auto;
  display: grid;
  gap: 3.5rem;
}

@media (min-width: 900px) {
  .work--feature {
    grid-template-columns: minmax(0, 0.72fr) minmax(16rem, 1fr);
    gap: 3.5rem;
    align-items: center;
  }

  .work--feature .work-visual {
    max-width: 28rem;
  }

  .work-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem 2.5rem;
    align-items: start;
  }
}

/* Behind the work
   ------------------------------------------------------------------ */

.behind {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.behind .section-head {
  max-width: var(--wide);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
}

.behind-grid {
  max-width: var(--wide);
  margin: 0 auto;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr 1fr;
}

.behind-card {
  margin: 0;
}

.behind-card .work-shot {
  display: block;
  background: #ebe7e0;
}

.behind-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center center;
}

@media (min-width: 900px) {
  .behind-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }
}

/* In the home
   ------------------------------------------------------------------ */

.in-the-home {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.in-the-home .section-head {
  max-width: var(--wide);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
}

.interior-grid {
  max-width: var(--wide);
  margin: 0 auto;
  display: grid;
  gap: 1.75rem 1.15rem;
}

.interior-card {
  margin: 0;
}

.interior-card .work-shot {
  display: block;
  box-shadow: var(--shadow-art);
  background: #ebe7e0;
}

.interior-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center center;
}

.interior-card figcaption {
  margin-top: 0.8rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--forest);
  letter-spacing: 0.01em;
}

.interior-card .interior-size {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (min-width: 640px) {
  .interior-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }
}

@media (min-width: 1000px) {
  .interior-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2.25rem 1.75rem;
  }
}

/* About
   ------------------------------------------------------------------ */

.about .section-head,
.contact .section-head {
  max-width: var(--wide);
  margin-left: auto;
  margin-right: auto;
}

.about-body {
  max-width: var(--wide);
  margin: 0 auto;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.about-body p {
  max-width: 42rem;
  margin: 0;
  line-height: 1.75;
}

/* Placeholders — visibly marked for easy replacement
   ------------------------------------------------------------------ */

.placeholder {
  margin: 0;
  padding: 1rem 1rem 1rem 1.05rem;
  border: 1px dashed #b7b1a6;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
}

.placeholder-flag {
  display: inline-block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  margin: 0 0 0.45rem;
}

.placeholder .placeholder-flag {
  display: block;
}

h3 .placeholder-flag {
  margin: 0 0 0 0.2rem;
  font-size: 0.62rem;
  vertical-align: middle;
}

/* Commissions
   ------------------------------------------------------------------ */

.commissions {
  padding: 5rem var(--gutter);
  background: var(--forest);
  color: #f3efe8;
  text-align: center;
}

.commissions .section-label {
  color: #e8e2d6;
}

.commissions .section-label::after {
  margin-left: auto;
  margin-right: auto;
  background: var(--chartreuse);
}

.commissions h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1.2;
  color: #f6f3ee;
  max-width: 22ch;
  margin: 0 auto 1.25rem;
}

.commissions p {
  max-width: 34rem;
  margin: 0 auto 1.5rem;
  color: #d9d4cb;
}

.commissions a {
  color: #f6f3ee;
}

.commissions .btn {
  color: var(--forest);
  background: #f6f3ee;
}

.commissions .btn:hover {
  background: #fff;
  color: var(--forest);
}

/* Buttons & form
   ------------------------------------------------------------------ */

.btn {
  display: inline-block;
  border: 1px solid var(--forest);
  background: var(--forest);
  color: #f6f3ee;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.6rem;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.btn:hover {
  background: var(--forest-soft);
  color: #f6f3ee;
}

.contact-grid {
  max-width: var(--wide);
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
}

.contact-aside p {
  margin: 0 0 1rem;
}

.ig-link {
  font-weight: 500;
}

.inquiry-form {
  display: grid;
  gap: 1rem;
}

.inquiry-form label {
  display: grid;
  gap: 0.4rem;
}

.inquiry-form label span {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--forest);
}

.inquiry-form input,
.inquiry-form textarea {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.7rem 0.8rem;
  width: 100%;
  border-radius: 0;
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
  border-color: var(--forest);
  outline: 2px solid var(--forest);
  outline-offset: 0;
}

.inquiry-form textarea {
  resize: vertical;
  min-height: 8rem;
}

.form-note,
.form-status {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.form-status.is-visible {
  display: block;
}

.inquiry-form .btn {
  justify-self: start;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: 4.5rem;
    align-items: start;
  }
}

/* Footer
   ------------------------------------------------------------------ */

.site-footer {
  padding: 3.5rem var(--gutter) 3rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-logo {
  display: inline-block;
  margin: 0 auto 1.25rem;
}

.footer-logo .logo {
  width: 10.5rem;
  margin: 0 auto;
}

.footer-artists,
.site-footer .copyright {
  margin: 0.35rem 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0.35rem 0;
}

/* Lightbox
   ------------------------------------------------------------------ */

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 16, 13, 0.94);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  padding: 3.5rem 0.5rem 1.5rem;
  gap: 0.25rem;
}

.lightbox-figure {
  margin: 0;
  max-width: min(92vw, 1200px);
  max-height: 100%;
  text-align: center;
}

.lightbox-figure img {
  max-height: calc(100vh - 8rem);
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.lightbox-figure figcaption {
  color: #d8d4cc;
  font-size: 0.88rem;
  margin-top: 0.85rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  background: transparent;
  border: 0;
  color: #f6f3ee;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  padding: 0.4rem 0.7rem;
  font-family: var(--font-sans);
}

.lightbox-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  font-size: 2.2rem;
}

.lightbox-prev,
.lightbox-next {
  font-size: 2.6rem;
  padding: 1rem 0.6rem;
}

.lightbox-prev:disabled,
.lightbox-next:disabled {
  opacity: 0.3;
  cursor: default;
}

/* Reduced motion
   ------------------------------------------------------------------ */

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
