/* Chelsea Wright — chelseawright.art
   Static site, no build step. Shared across all pages. */

:root {
  --bg: #f0eee7;
  --bg-panel: #e9e6dc;
  --ink: #211f1a;
  --muted: #6f6a5e;
  --line: #cdc8ba;
  --serif: "Cormorant Garamond", "Garamond", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---- type utilities ---- */

.label {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
}

.arrow-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.35em;
  transition: gap 0.2s ease;
}
.arrow-link:hover { gap: 1em; }
.arrow-link::after { content: "\2192"; font-size: 1.1em; }

/* ---- header ---- */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.6rem clamp(1.2rem, 4vw, 3.5rem);
}

.site-header .wordmark {
  font-size: 20px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.6rem);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }

/* ---- hero (home) ---- */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: 72% center;
  color: #f4f1e8;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(38, 40, 30, 0.78) 0%,
    rgba(38, 40, 30, 0.55) 32%,
    rgba(38, 40, 30, 0.05) 62%);
}

.hero-inner {
  position: relative;
  max-width: 420px;
  margin-left: clamp(1.2rem, 7vw, 6.5rem);
  padding: 4rem 1rem 4rem 0;
}

.hero h1 {
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 1.4rem;
}

.hero .rule {
  width: 34px;
  border: 0;
  border-top: 1px solid rgba(244, 241, 232, 0.85);
  margin: 0 0 1.6rem;
}

.hero p {
  font-size: 19px;
  max-width: 210px;
  margin: 0 0 2.2rem;
}

.hero .arrow-link {
  border-bottom-color: rgba(244, 241, 232, 0.85);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* ---- sections ---- */

.section {
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.2rem, 4vw, 3.5rem);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.section-head .arrow-link {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* ---- work grid ---- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(1.2rem, 3vw, 2.4rem);
}

/* home page: exactly four across like the mockup */
@media (min-width: 761px) {
  .work-grid.four-up { grid-template-columns: repeat(4, 1fr); }
}

.work-card { cursor: pointer; }

.work-card .frame,
.store-card .frame {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-panel);
}

.work-card .frame img,
.store-card .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work-card:hover .frame img { transform: scale(1.03); }

.work-card figcaption { padding-top: 1rem; }

.work-card .title {
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.work-card .meta {
  color: var(--muted);
  font-size: 16px;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

/* ---- quote band (home) ---- */

.quote-band {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.2rem, 4vw, 3.5rem);
}

.quote-band .detail {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.quote-band .detail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* zoomed crops of full photos; tune per-image via --zoom / --origin */
  transform: scale(var(--zoom, 1));
  transform-origin: var(--origin, center);
}

.quote-band blockquote {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.4;
}

.quote-band blockquote::before {
  content: "";
  display: block;
  width: 34px;
  border-top: 1px solid var(--ink);
  margin-bottom: 1.6rem;
}

.quote-band .arrow-link {
  margin-top: 2rem;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* ---- generic page intro ---- */

.page-intro {
  max-width: 640px;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.2rem, 4vw, 3.5rem) 0;
}

.page-intro h1 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.3;
  margin: 0 0 1.2rem;
}

.page-intro p { color: var(--muted); margin: 0; }

/* ---- about page ---- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.about-grid .portrait { position: sticky; top: 2rem; }

.about-text p { margin: 0 0 1.3em; }

/* ---- exhibitions ---- */

.exh-list { max-width: 720px; }

.exh-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}

.exh-item .year { letter-spacing: 0.1em; color: var(--muted); }
.exh-item .venue { color: var(--muted); font-size: 17px; }

.empty-note {
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 1.6rem 1.8rem;
  max-width: 560px;
  font-size: 17px;
}

/* ---- store ---- */

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.8rem);
}

.store-card .body { padding-top: 1.1rem; }

.store-card .title {
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.store-card .meta {
  color: var(--muted);
  font-size: 16px;
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
}

.store-card .arrow-link {
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.store-card .sold {
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- contact ---- */

.contact-block { max-width: 560px; }

.contact-block dl { margin: 2.2rem 0 0; }

.contact-block dt {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.contact-block dd {
  margin: 0 0 1.8rem;
  font-size: 21px;
}

.contact-block dd a { border-bottom: 1px solid var(--ink); padding-bottom: 2px; }

/* ---- lightbox ---- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(33, 31, 26, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  z-index: 50;
}

.lightbox.open { display: flex; }

.lightbox figure {
  margin: 0;
  max-width: min(920px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox img {
  max-height: 74vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.lightbox figcaption {
  color: #e8e4d8;
  padding-top: 1.1rem;
  text-align: center;
  font-size: 16px;
  letter-spacing: 0.08em;
}

.lightbox .lb-title {
  display: block;
  font-size: 13px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: #e8e4d8;
  font-family: var(--serif);
  font-size: 30px;
  cursor: pointer;
  padding: 0.5rem 1rem;
}

.lightbox .lb-close { top: 0.8rem; right: 1rem; }
.lightbox .lb-prev { left: 0.4rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 0.4rem; top: 50%; transform: translateY(-50%); }

/* ---- footer ---- */

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding: 2.2rem clamp(1.2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
  margin-top: clamp(2rem, 5vw, 4rem);
}

.site-footer span {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- mobile (~380px pass) ---- */

@media (max-width: 760px) {
  .site-header { flex-direction: column; gap: 1rem; padding-top: 1.3rem; }
  .site-nav { justify-content: center; gap: 1rem 1.2rem; }

  .hero { min-height: 66vh; }
  .hero::before {
    background: linear-gradient(100deg,
      rgba(38, 40, 30, 0.82) 0%,
      rgba(38, 40, 30, 0.62) 55%,
      rgba(38, 40, 30, 0.18) 95%);
  }
  .hero-inner { margin-left: 1.4rem; margin-right: 1.4rem; }
  .hero p { max-width: 260px; }

  .quote-band { grid-template-columns: 1fr; }
  .quote-band .detail.secondary { display: none; }

  .about-grid { grid-template-columns: 1fr; }
  .about-grid .portrait { position: static; }

  .exh-item { grid-template-columns: 64px 1fr; gap: 1rem; }

  .site-footer { justify-content: center; text-align: center; }
}
