/* ---- Debbie Gray Art — styles ---- */

:root {
  --bg:        oklch(98% 0.012 85);
  --surface:   #fff;
  --ink:       oklch(28% 0.02 60);
  --ink-soft:  oklch(38% 0.02 60);
  --ink-mute:  oklch(45% 0.015 60);
  --line:      oklch(90% 0.015 85);
  --link:      oklch(45% 0.06 245);
  --link-dark: oklch(38% 0.07 245);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Lato', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-dark); text-decoration: underline; }
::selection { background: oklch(90% 0.04 150); }

img { max-width: 100%; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; text-decoration: none; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: oklch(98% 0.012 85 / 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
}
.brand {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 26px;
  letter-spacing: 0.3px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }

.site-nav { display: flex; align-items: center; gap: 40px; }
.site-nav a[data-page] {
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  color: var(--ink-mute);
}
.site-nav a[data-page]:hover { text-decoration: none; color: var(--ink); }
.site-nav a[data-page].active {
  color: var(--ink);
  border-bottom-color: var(--link);
}
.ig-link { display: flex; align-items: center; color: var(--ink); }
.ig-link:hover { color: var(--link); }

/* ---- Main / pages ---- */
main { flex: 1; }
.page[hidden] { display: none; }

/* ---- Home hero ---- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 48px 96px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 52px;
  line-height: 1.15;
  margin: 0 0 12px;
}
.byline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--ink-mute);
  margin: 0 0 24px;
}
.tagline {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 44ch;
  margin: 0 0 32px;
}
.hero-actions { display: flex; gap: 20px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 14px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.btn:hover { text-decoration: none; }
.btn-outline { border: 1px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-link { color: var(--link); padding-left: 0; }

.hero-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px oklch(30% 0.02 60 / 0.35);
  padding: 14px;
  background: var(--surface);
}
.hero-image img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

/* ---- Section heads ---- */
.featured, .gallery-wrap { max-width: 1200px; margin: 0 auto; }
.featured { padding: 0 48px 80px; }
.gallery-wrap { max-width: 1280px; padding: 64px 48px 96px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 30px;
  margin: 0;
}
.see-all {
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--link);
}

.gallery-wrap h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 40px;
  margin: 0 0 12px;
}
.lede {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 44px;
  line-height: 1.7;
}

/* ---- Grid + figures ---- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.featured .grid-3 { gap: 24px; }

figure {
  margin: 0;
  background: var(--surface);
  padding: 10px 10px 16px;
  box-shadow: 0 8px 24px -12px oklch(30% 0.02 60 / 0.22);
}
figure.zoom { cursor: zoom-in; }
figure.zoom:hover { box-shadow: 0 14px 32px -12px oklch(30% 0.02 60 / 0.32); }
figure img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}
.featured figure img { height: 260px; }
figure.square img { height: auto; aspect-ratio: 1 / 1; }

/* Illustrations are already framed in the artwork — drop the white mat/shadow */
#illustration-grid figure {
  background: none;
  padding: 0;
  box-shadow: none;
}
figcaption {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 16px;
  text-align: center;
  margin-top: 12px;
  color: oklch(35% 0.02 60);
}

/* ---- About ---- */
.about {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 48px 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2fr;
  gap: 64px;
  align-items: start;
}
.about-portrait {
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 24px 60px -20px oklch(30% 0.02 60 / 0.35);
}
.about-copy h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 40px;
  margin: 0 0 28px;
}
.about-copy p {
  font-size: 18px;
  line-height: 1.8;
  color: oklch(35% 0.02 60);
  margin: 0 0 22px;
}
.ig-follow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 8px;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: oklch(50% 0.02 60);
}
.site-footer .ig-link { color: oklch(50% 0.02 60); }

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: oklch(15% 0.01 60 / 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px;
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 90vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  box-shadow: 0 30px 80px -20px oklch(0% 0 0 / 0.5);
}
.lightbox-caption {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 18px;
  color: oklch(96% 0.01 85);
  margin-top: 20px;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  padding: 0 8px;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .site-header { padding: 18px 24px; }
  .site-nav { gap: 22px; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 48px 24px 64px; }
  .hero h1 { font-size: 40px; }
  .hero-image img { height: auto; }
  .about { grid-template-columns: 1fr; gap: 32px; padding: 48px 24px 64px; }
  .about-portrait { max-width: 320px; }
  .featured, .gallery-wrap { padding-left: 24px; padding-right: 24px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .site-header { flex-direction: column; gap: 14px; }
  .site-nav { gap: 18px; flex-wrap: wrap; justify-content: center; }
  .hero h1 { font-size: 34px; }
  .byline { white-space: normal; }
  .grid-3 { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; gap: 14px; }
}
