/* ============================================================
   Stephanie Sheley — Portfolio
   Palette pulled from the paintings: charcoal ground, oxblood,
   weathered gold, and aged paper cream.
   ============================================================ */

:root {
  --ink:      #17140f;   /* near-black charcoal ground */
  --ink-soft: #241f19;   /* slightly lifted charcoal, for cards on dark */
  --umber:    #3a2c22;   /* warm dark brown, borders on dark surfaces */
  --paper:    #ece3ce;   /* aged paper cream, light ground */
  --paper-dim:#ddd1b3;   /* deeper cream for hairlines on light ground */
  --oxblood:  #7c2a26;   /* deep red accent, from the striped painting */
  --oxblood-dim: #5c211f;
  --gold:     #b6893f;   /* weathered gold accent */
  --gold-soft:#cfa965;
  --ash:      #9a9184;   /* muted secondary text on dark */
  --ash-dark: #6b6154;   /* muted secondary text on light */

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Newsreader", Georgia, serif;

  --edge: 1px solid rgba(182, 137, 63, 0.35);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- focus & motion ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
}

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

/* ---------- nav ---------- */
.site-nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 30px 32px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.site-nav .mark {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--paper);
}

.site-nav .mark em {
  font-style: italic;
  color: var(--gold-soft);
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  font-size: 16px;
}

.site-nav a {
  position: relative;
  padding-bottom: 3px;
  color: var(--ash);
  transition: color 0.2s ease;
}

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

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: var(--gold);
}

/* nav variant when sitting on light ground (gallery header) */
.site-nav.on-paper .mark { color: var(--ink); }
.site-nav.on-paper a { color: var(--ash-dark); }
.site-nav.on-paper a:hover,
.site-nav.on-paper a[aria-current="page"] { color: var(--oxblood); }
.site-nav.on-paper a[aria-current="page"]::after { background: var(--oxblood); }

/* ============================================================
   HOME — hero
   ============================================================ */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}

.hero-image {
  position: absolute;
  inset: 0;
  background-image: url("images/painting-02.jpg");
  background-size: cover;
  background-position: center 20%;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(15,12,9,0.94) 0%, rgba(15,12,9,0.55) 42%, rgba(15,12,9,0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 32px 76px;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--body);
  font-style: italic;
  font-size: 17px;
  color: var(--gold-soft);
  margin: 0 0 14px;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 340;
  font-size: clamp(52px, 9vw, 118px);
  line-height: 0.98;
  margin: 0 0 22px;
  color: var(--paper);
  max-width: 14ch;
}

.hero p {
  font-size: 19px;
  max-width: 46ch;
  color: #d9cfbc;
  margin: 0 0 6px;
}

/* ---------- artist statement ---------- */

.statement {
  background: var(--paper);
  color: var(--ink);
  padding: 108px 0 100px;
}

.statement-grid {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 72px;
  align-items: start;
}

.statement-figure {
  position: sticky;
  top: 40px;
}

.statement-figure img {
  border: var(--edge);
  filter: sepia(6%);
}

.statement-figure figcaption {
  margin-top: 14px;
  font-size: 14px;
  font-style: italic;
  color: var(--ash-dark);
}

.statement-body h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 440;
  font-size: 40px;
  margin: 0 0 30px;
  color: var(--oxblood);
}

.statement-body p {
  font-size: 19px;
  max-width: 62ch;
  margin: 0 0 22px;
  color: #2c2620;
}

.placeholder {
  color: var(--ash-dark);
}

.statement-note {
  margin-top: 36px;
  padding: 16px 20px;
  border: 1px dashed var(--ash-dark);
  font-family: var(--body);
  font-size: 14.5px;
  font-style: italic;
  color: var(--ash-dark);
  max-width: 56ch;
}

/* ---------- selected works strip ---------- */

.selected {
  background: var(--ink);
  padding: 96px 0 108px;
}

.selected-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
}

.selected-head h2 {
  font-family: var(--display);
  font-weight: 360;
  font-size: 38px;
  margin: 0;
  color: var(--paper);
}

.selected-head .view-all {
  font-size: 16px;
  color: var(--gold-soft);
  white-space: nowrap;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

.selected-head .view-all:hover { color: var(--paper); border-color: var(--paper); }

.selected-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.selected-grid a {
  display: block;
  overflow: hidden;
  border: var(--edge);
}

.selected-grid img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.selected-grid a:hover img { transform: scale(1.045); }

/* ============================================================
   GALLERY page
   ============================================================ */

.gallery-header {
  background: var(--paper);
  color: var(--ink);
  padding: 8px 0 70px;
}

.gallery-header h1 {
  font-family: var(--display);
  font-weight: 360;
  font-size: clamp(44px, 6vw, 68px);
  margin: 30px 0 20px;
}

.gallery-header p {
  font-size: 19px;
  max-width: 58ch;
  color: #3a332a;
}

.gallery-grid-section {
  background: var(--paper);
  padding: 0 0 120px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 28px;
}

.gallery-item {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.gallery-figure {
  overflow: hidden;
  border: 1px solid rgba(58, 44, 34, 0.28);
  background: var(--ink-soft);
}

.gallery-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery-item:hover .gallery-figure img,
.gallery-item:focus-visible .gallery-figure img {
  transform: scale(1.04);
}

.gallery-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--paper-dim);
}

.gallery-plate {
  font-size: 13px;
  color: var(--ash-dark);
  letter-spacing: 0.02em;
}

.gallery-title {
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  color: var(--oxblood);
}

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

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 8, 6, 0.92);
  padding: 40px 24px;
}

.lightbox.is-open { display: flex; }

.lightbox-frame {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.7fr);
  gap: 0;
  max-width: 1080px;
  width: 100%;
  max-height: 88vh;
  background: var(--ink-soft);
  border: 1px solid rgba(182, 137, 63, 0.4);
}

.lightbox-image {
  background: #0d0b09;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-height: 88vh;
}

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

.lightbox-info {
  padding: 40px 38px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.lightbox-plate {
  font-size: 14px;
  color: var(--gold-soft);
  margin: 0 0 10px;
}

.lightbox-info h3 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 460;
  font-size: 30px;
  margin: 0 0 20px;
  color: var(--paper);
}

.lightbox-info p {
  font-size: 16.5px;
  color: #cfc4ae;
  margin: 0;
}

.lightbox-close,
.lightbox-nav button {
  position: absolute;
  background: rgba(23, 20, 15, 0.7);
  border: 1px solid rgba(182, 137, 63, 0.5);
  color: var(--paper);
  width: 42px;
  height: 42px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav button:hover {
  background: var(--oxblood);
  color: var(--paper);
}

.lightbox-close {
  top: -20px;
  right: -20px;
  border-radius: 50%;
}

.lightbox-nav .prev { left: -21px; top: 50%; transform: translateY(-50%); border-radius: 50%; }
.lightbox-nav .next { right: -21px; top: 50%; transform: translateY(-50%); border-radius: 50%; }

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

footer {
  background: var(--ink);
  border-top: 1px solid rgba(182, 137, 63, 0.25);
  padding: 40px 0;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

footer p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ash);
}

.statement + footer,
.gallery-grid-section + footer {
  background: var(--ink);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 880px) {
  .statement-grid { grid-template-columns: 1fr; gap: 40px; }
  .statement-figure { position: static; max-width: 340px; }
  .selected-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox-frame { grid-template-columns: 1fr; overflow-y: auto; max-height: 92vh; }
  .lightbox-image { max-height: 46vh; }
  .lightbox-image img { max-height: 46vh; }
  .lightbox-close { top: 10px; right: 10px; }
  .lightbox-nav .prev { left: 10px; top: 22vh; }
  .lightbox-nav .next { right: 10px; top: 22vh; }
}

@media (max-width: 560px) {
  .site-nav { padding: 22px 20px 18px; }
  .wrap { padding: 0 20px; }
  .hero-content { padding: 0 20px 52px; }
  .selected-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .selected-head { flex-direction: column; align-items: flex-start; gap: 10px; }
}
