/* ============================================================
   WAYNE PEARCE PAINTING — content pages
   Shares the palette and type of the gallery homepage, but
   trades the infinite canvas for a readable column.
   ============================================================ */

:root {
  --ivory:      #F4F1E9;
  --ivory-deep: #ECE8DC;
  --ink:        #2A2723;
  --ink-soft:   #6B665C;
  --taxi:       #E3A61B;
  --hudson:     #37455C;
  --line:       rgba(42, 39, 35, 0.12);
  --serif:  "Cormorant Garamond", Georgia, serif;
  --sans:   "Archivo", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

::selection { background: var(--taxi); color: var(--ink); }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--ivory); padding: 12px 18px;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 30px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(236, 232, 220, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__brand { text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: 0.06em; }
.nav__brand span {
  display: block; font-size: 8px; font-weight: 500;
  letter-spacing: 0.42em; color: var(--ink-soft); margin-top: 1px;
}
.nav__links { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.nav__links a {
  text-decoration: none;
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.08em;
  color: var(--ink-soft); padding-bottom: 2px;
  background: linear-gradient(var(--taxi), var(--taxi)) bottom left / 0 2px no-repeat;
  transition: color 200ms ease, background-size 260ms ease;
}
.nav__links a:hover, .nav__links a[aria-current] { color: var(--ink); background-size: 100% 2px; }

/* ---------- collections dropdown ---------- */

.has-sub { position: relative; }
.has-sub__toggle {
  display: flex; align-items: center; gap: 5px;
  font: inherit; background: none; border: 0; cursor: pointer; padding: 0 0 2px;
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.08em;
  color: var(--ink-soft);
  background: linear-gradient(var(--taxi), var(--taxi)) bottom left / 0 2px no-repeat;
  transition: color 200ms ease, background-size 260ms ease;
}
.has-sub__toggle:hover,
.has-sub.is-open .has-sub__toggle,
.has-sub.is-section .has-sub__toggle {
  color: var(--ink); background-size: 100% 2px;
}
.has-sub__caret { font-size: 9px; transition: transform 220ms ease; }
.has-sub.is-open .has-sub__caret { transform: rotate(180deg); }

.sub {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translate(-50%, -6px);
  min-width: 210px; padding: 8px;
  background: var(--ivory);
  border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 20px 46px -20px rgba(42, 39, 35, 0.45);
  opacity: 0; visibility: hidden;
  transition: opacity 200ms ease, transform 200ms ease, visibility 0s 200ms;
  z-index: 50;
}
.has-sub.is-open .sub {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
  transition: opacity 200ms ease, transform 200ms ease;
}
.sub a {
  display: block; padding: 9px 12px; border-radius: 4px;
  font-size: 13px; letter-spacing: 0.03em; color: var(--ink);
  background: none; text-decoration: none;
}
.sub a:hover { background: var(--ivory-deep); color: var(--hudson); }
.sub a[aria-current] { color: var(--hudson); font-weight: 600; }

/* ---------- work grids ---------- */

.works-grid {
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  margin: 26px 0 10px;
}
.work { margin: 0; display: flex; flex-direction: column; }
.work img {
  width: 100%; border-radius: 5px;
  /* one ratio across the grid keeps the rows and captions aligned even
     though the canvases themselves are a mix of portrait and landscape */
  aspect-ratio: 4 / 3; object-fit: cover; object-position: center;
  background: var(--ivory-deep);
  box-shadow: 0 14px 34px -16px rgba(42, 39, 35, 0.42);
  transition: transform 260ms ease, box-shadow 260ms ease;
}
.work:hover img {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -18px rgba(42, 39, 35, 0.5);
}
.work figcaption { padding: 12px 2px 0; }
.work a { text-decoration: none; display: block; }
.work__title {
  display: block;
  font-family: var(--serif); font-size: 20px; font-weight: 500; line-height: 1.25;
}
.work__title a { color: var(--ink); transition: color 200ms ease; }
.work:hover .work__title a { color: var(--hudson); }
.work__buy {
  display: block; margin-top: 6px;
  font-size: 9.5px; letter-spacing: 0.16em; font-weight: 600;
  color: var(--taxi);
  opacity: 0; transform: translateY(-3px);
  transition: opacity 220ms ease, transform 220ms ease;
}
.work:hover .work__buy, .work:focus-within .work__buy {
  opacity: 1; transform: none;
}
.work__loc {
  display: block; margin-top: 3px;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft);
}
.work__live { color: var(--taxi); font-weight: 600; }

/* ---------- hero ---------- */

.hero {
  padding: clamp(56px, 11vw, 120px) clamp(20px, 5vw, 40px) clamp(28px, 5vw, 52px);
  text-align: center;
  border-bottom: 1px dotted rgba(42, 39, 35, 0.3);
  max-width: 1100px; margin: 0 auto;
}
.hero__eyebrow {
  font-size: 10.5px; letter-spacing: 0.34em; color: var(--ink-soft);
  text-transform: uppercase;
}
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(40px, 7vw, 76px); line-height: 1.04;
  margin: 16px 0 0; letter-spacing: 0.01em;
}
.hero__lede {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(19px, 2.4vw, 25px); line-height: 1.45;
  color: var(--ink-soft);
  max-width: 620px; margin: 20px auto 0;
}
.hero__date { font-size: 11px; letter-spacing: 0.2em; color: var(--ink-soft); margin-top: 20px; }

/* ---------- body column ---------- */

main { max-width: 680px; margin: 0 auto; padding: clamp(40px, 7vw, 72px) 22px 40px; }
main.is-wide { max-width: 1040px; }

main h2 {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 48px 0 16px;
}
main h2:first-child { margin-top: 0; }
main h3 { font-family: var(--serif); font-size: 26px; font-weight: 500; margin: 34px 0 10px; }
main p { font-size: 16px; line-height: 1.78; color: #47433B; margin-bottom: 18px; }
main ul { margin: 0 0 20px 20px; }
main li { font-size: 16px; line-height: 1.7; color: #47433B; margin-bottom: 7px; }
main strong { font-weight: 600; color: var(--ink); }
main a { color: var(--hudson); text-decoration-thickness: 1px; text-underline-offset: 3px; }
main hr { border: 0; border-top: 1px dotted rgba(42,39,35,0.3); margin: 48px 0; }

.pull {
  font-family: var(--serif); font-size: clamp(22px, 3vw, 30px);
  line-height: 1.35; color: var(--ink);
  border-left: 2px solid var(--taxi);
  padding: 4px 0 4px 22px; margin: 36px 0;
}

table { width: 100%; border-collapse: collapse; margin: 8px 0 26px; font-size: 15px; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); }
th { font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.16em;
     text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
td { color: #47433B; }
.table-scroll { overflow-x: auto; }

/* ---------- call to action ---------- */

.cta {
  display: inline-block; margin-top: 8px;
  padding: 13px 24px; text-decoration: none;
  border: 1px solid var(--ink); border-radius: 4px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  transition: background 200ms ease, color 200ms ease;
}
.cta:hover { background: var(--ink); color: var(--ivory); }
.cta--solid { background: var(--ink); color: var(--ivory); }
.cta--solid:hover { background: var(--hudson); border-color: var(--hudson); }

.panel-note {
  background: var(--ivory-deep); border: 1px solid var(--line);
  border-radius: 6px; padding: 26px 28px; margin: 36px 0;
}
.panel-note h2 { margin-top: 0; }
.panel-note p:last-child { margin-bottom: 0; }

/* ---------- card grids ---------- */

.grid {
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  margin: 8px 0 20px;
}
.card {
  background: var(--ivory-deep); border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 240ms ease, box-shadow 240ms ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(42,39,35,.4); }
.card__body { padding: 20px 22px 24px; }
.card__date { font-size: 10px; letter-spacing: 0.2em; color: var(--ink-soft); text-transform: uppercase; }
.card__title {
  font-family: var(--serif); font-size: 23px; font-weight: 500;
  line-height: 1.22; margin: 8px 0 10px;
}
.card__title a { text-decoration: none; }
.card__title a:hover { color: var(--hudson); }
.card__excerpt { font-size: 14px; line-height: 1.65; color: #57534A; margin: 0; }
.card__more {
  display: inline-block; margin-top: 14px; text-decoration: none;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; color: var(--hudson);
}

/* featured post */
.featured {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--ivory-deep); overflow: hidden; margin-bottom: 40px;
}
.featured__body { padding: clamp(26px, 4vw, 40px); }
.featured__tag {
  font-size: 10px; letter-spacing: 0.24em; color: var(--taxi); font-weight: 600;
  text-transform: uppercase;
}
.featured h2 {
  font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); font-weight: 500;
  letter-spacing: 0; text-transform: none; line-height: 1.14; margin: 10px 0 12px;
}
.featured h2 a { text-decoration: none; }
.featured h2 a:hover { color: var(--hudson); }

/* ---------- video embeds ---------- */

.videos { display: grid; gap: 30px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.video {
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  background: var(--ivory-deep);
}
.video__frame { position: relative; padding-top: 56.25%; background: #1c1a17; }
.video__frame.is-vertical { padding-top: 177.78%; }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__cap { padding: 13px 16px; font-size: 12px; letter-spacing: 0.06em; color: var(--ink-soft); }

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

.foot {
  border-top: 1px solid var(--line);
  background: var(--ivory-deep);
  padding: clamp(40px, 6vw, 64px) clamp(20px, 5vw, 40px) 32px;
  margin-top: 60px;
}
.foot__grid {
  max-width: 1040px; margin: 0 auto;
  display: grid; gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.foot h3 {
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 14px; font-weight: 600;
}
.foot a { color: var(--ink); text-decoration: none; font-size: 14px; display: block; margin-bottom: 8px; }
.foot a:hover { color: var(--hudson); }
.foot p { font-size: 14px; color: #57534A; margin-bottom: 6px; }
.foot__base {
  max-width: 1040px; margin: 40px auto 0; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 10px; letter-spacing: 0.18em; color: var(--ink-soft); text-transform: uppercase;
}

@media (max-width: 720px) {
  .nav { gap: 14px; padding: 12px 16px; }
  .nav__links { gap: 14px; width: 100%; margin-left: 0; }
  .nav__links a { font-size: 11px; letter-spacing: 0.06em; }
}
