/* ── Web font ────────────────────────────────────── */
@font-face {
  font-family: myFont;
  src: url('https://www.richarddeanetaylor.com/_fonts/test.woff') format('woff');
  font-display: swap;
}

/*
 * Richard Deane Taylor (1925–2014)
 * Shared stylesheet — all era pages
 * Copyright 2014–2026 www.richarddeanetaylor.com
 */

/* ── Reset ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:      #ffffff;
  --offwhite:   #f8f8f8;
  --light-grey: #f0f0f0;
  --mid-grey:   #c0c0c0;
  --border:     #aaaaaa;
  --dark-grey:  #333333;
  --black:      #000000;
  --red:        #990000;
  --gap:        3rem;
}

html { scroll-behavior: smooth; font-size: 18px; }

body {
  background: var(--mid-grey);
  color: var(--dark-grey);
  font-family: myFont, Georgia, 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
}

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

a { color: var(--red); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .75; text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: myFont, Georgia, serif; font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(1.6rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.2rem, 2.5vw, 1.9rem); color: var(--red); letter-spacing: .06em; text-transform: uppercase; }
h3 { font-size: clamp(1rem, 1.8vw, 1.25rem); font-style: italic; font-weight: 400; }
p  { font-size: clamp(.95rem, 1.4vw, 1.05rem); max-width: 70ch; margin-bottom: 1.1rem; }

/* ── Skip link ───────────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--red); color: var(--white);
  padding: .5rem 1rem; font-weight: 700; z-index: 9999;
  border-radius: 0 0 4px 4px;
}
.skip-link:focus { top: 0; }

/* ── Navigation ──────────────────────────────────── */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--mid-grey);
  border-bottom: 3px solid var(--red);
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  display: flex; align-items: center;
  justify-content: space-between;
  height: 52px;
  transition: transform .35s ease;
}
#site-nav.nav-hidden { transform: translateY(-100%); }

#site-nav .nav-logo { display: flex; align-items: center; flex-shrink: 0; }
#site-nav .nav-logo img { height: 32px; width: auto; }

#site-nav ul {
  list-style: none; display: flex;
  align-items: center; gap: 0;
  /* Links hidden at all widths — hamburger always used */
  position: fixed; top: 52px; left: 0; right: 0;
  background: var(--mid-grey);
  flex-direction: column; align-items: center;
  padding: .6rem 1.5rem; gap: 0;
  transform: translateY(-110%); opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
  pointer-events: none;
  border-bottom: 3px solid var(--red);
}
#site-nav ul li a {
  display: block;
  padding: .3rem .6rem;
  font-size: .76rem; letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dark-grey);
  transition: color .2s;
  white-space: nowrap;
  text-decoration: none;
}
#site-nav ul li a:hover,
#site-nav ul li a.active { color: var(--red); opacity: 1; }

/* Links & Tributes trigger button — dark, same hover as other links */
#site-nav ul li.nav-cta a {
  border: none;
  color: var(--black);
  padding: .55rem 0;
  margin-left: 0;
  transition: color .2s;
  cursor: pointer;
}
#site-nav ul li.nav-cta a:hover {
  color: var(--red); opacity: 1;
  text-decoration: none; background: none;
}

#nav-toggle {
  display: block; background: none; border: none;
  cursor: pointer; padding: .5rem; color: var(--dark-grey);
}
#nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: currentColor; margin: 5px 0;
  transition: transform .3s, opacity .3s;
}

/* Nav always uses hamburger — open state */
#site-nav ul.open { transform: translateY(0); opacity: 1; pointer-events: all; }
#site-nav ul li a { font-size: .95rem; padding: .3rem 0; }
#site-nav ul li.nav-cta a { border: none; padding: .3rem 0; margin-left: 0; }

/* ── Page body wrapper ───────────────────────────── */
main { padding-top: 52px; }

/* ── Combined era header + intro (single unified block) ── */
.era-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Background image set inline on section-intro, shared via the merged block */
}

/* Matching gradient in title area — 65% top to 15% bottom */
.era-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.65) 0%,
    rgba(255,255,255,0.15) 100%
  );
  z-index: 0;
}

.era-hero__title {
  position: relative; z-index: 2;
  padding: 1.5rem clamp(1.5rem, 5vw, 5rem) .75rem;
}
.era-hero__eyebrow {
  font-size: .76rem; letter-spacing: .35em;
  text-transform: uppercase; color: var(--red);
  margin-bottom: .35rem;
}
.era-hero__h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--black); font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  white-space: nowrap;
}

/* ── Section intro — merged into era-hero ── */
.section-intro {
  padding: 0.875rem clamp(1.5rem, 6vw, 5.5rem) 2.5rem;
  background-color: transparent;
  background-image: linear-gradient(
    to bottom,
    rgba(255,255,255,0.65) 0%,
    rgba(255,255,255,0.15) 100%
  );
  position: relative; z-index: 2;
}
.section-intro__text { position: relative; z-index: 1; }

/* Unified wrapper that holds era-hero + section-intro together */
.era-intro-wrap {
  position: relative;
  overflow: hidden;
  background-color: var(--white);
  background-size: cover;
  background-position: center top;
  background-blend-mode: luminosity;
  border-bottom: 1px solid var(--mid-grey);
}
.section-intro__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem 3rem;
}
@media (max-width: 860px) {
  .section-intro__grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
.section-intro p { color: var(--dark-grey); }
.section-intro p:last-child { margin-bottom: 0; }

/* ── Photo strip ─────────────────────────────────── */
.photo-strip-wrap {
  padding: 1.75rem clamp(1.5rem, 6vw, 5.5rem) 0;
  background: var(--white);
}
.section-label {
  font-size: .65rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--red);
  margin-bottom: 1.25rem; padding-bottom: .6rem;
  border-bottom: 2px solid var(--red);
  font-weight: 700;
  white-space: nowrap;
}
.photo-strip {
  display: flex; gap: .5rem;
  overflow-x: auto; scrollbar-width: thin;
  scrollbar-color: var(--red) transparent;
  padding-bottom: .75rem;
}
.photo-strip::-webkit-scrollbar { height: 4px; }
.photo-strip::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }
.photo-strip figure { flex: 0 0 auto; width: clamp(110px, 16vw, 190px); cursor: pointer; }
.photo-strip figure img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top;
  filter: sepia(12%) contrast(1.05);
  transition: filter .3s, transform .3s;
  border: 1px solid var(--border);
}
.photo-strip figure:hover img { filter: sepia(0%) contrast(1.1); transform: scale(1.03); }
.photo-strip figcaption {
  font-size: .68rem; color: var(--border);
  margin-top: .35rem; line-height: 1.3;
}

/* ── Artwork grid ────────────────────────────────── */
.artwork-wrap {
  padding: 2rem clamp(1.5rem, 6vw, 5.5rem) 3rem;
  background: var(--white);
}
.artwork-wrap .artwork-grid:last-of-type { margin-bottom: 2rem; }
.artwork-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 1.5rem 1.5rem;
}
.artwork-card { cursor: pointer; }
.artwork-card__img-wrap {
  overflow: hidden; background: var(--light-grey);
  border: 1px solid var(--border);
}
.artwork-card__img-wrap img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: top;
  transition: transform .5s ease;
}
.artwork-card:hover .artwork-card__img-wrap img { transform: scale(1.04); }
.artwork-card__caption { padding: .6rem 0 0; }
.artwork-card__title {
  font-size: .98rem; font-weight: 700;
  color: var(--black); margin-bottom: .15rem;
  font-style: italic;
}
.artwork-card__meta {
  font-size: .76rem; color: var(--red);
  font-weight: 700; margin-bottom: .35rem;
}
.artwork-card__desc {
  font-size: .84rem; color: var(--dark-grey);
  line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.artwork-card__variants {
  display: flex; gap: .3rem; margin-top: .5rem; flex-wrap: wrap;
}
.artwork-card__variants img {
  width: 54px; height: 54px; object-fit: cover;
  border: 1px solid var(--border); opacity: .75;
  transition: opacity .2s; cursor: pointer;
}
.artwork-card__variants img:hover { opacity: 1; }

/* Sub-section label (e.g. "Hiram Walker Campaign") */
.sub-section-label {
  font-size: .65rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--dark-grey);
  font-weight: 700; margin: 2rem 0 1.25rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--mid-grey);
}

/* ── Prev/Next pagination ────────────────────────── */
.era-pagination {
  display: flex; justify-content: space-between;
  padding: 1.5rem clamp(1.5rem, 6vw, 5.5rem);
  border-top: 1px solid var(--mid-grey);
  background: var(--light-grey);
  gap: 1rem;
}
.era-pagination a {
  display: flex; flex-direction: column;
  font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--dark-grey);
  text-decoration: none; gap: .05rem;
  max-width: 45%;
  line-height: 1.2;
}
.era-pagination a:hover { color: var(--red); text-decoration: none; opacity: 1; }
.era-pagination a strong { font-size: .95rem; font-weight: 700; text-transform: none; letter-spacing: 0; }
.era-pagination .prev { align-items: flex-start; }
.era-pagination .next { align-items: flex-end; text-align: right; }

/* ── Links & Tributes overlay ────────────────────── */
#links-overlay {
  display: none;
  position: fixed; inset: 0;
  z-index: 8000;
  background: rgba(0,0,0,.65);
  align-items: center; justify-content: center;
  padding: 1.5rem;
}
#links-overlay.open { display: flex; }

#links-panel {
  background: var(--white);
  border-top: 5px solid var(--red);
  width: min(680px, 95vw);
  max-height: 82vh;
  overflow-y: auto;
  position: relative;
  padding: 2rem 2.5rem 2rem;
}

#links-panel-close {
  position: absolute; top: .75rem; right: 1rem;
  background: none; border: none;
  font-size: 1.6rem; line-height: 1;
  color: var(--dark-grey); cursor: pointer;
  opacity: .5; transition: opacity .2s;
}
#links-panel-close:hover { opacity: 1; }

#links-panel h2 {
  font-size: .62rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--red);
  margin-bottom: 1.5rem; padding-bottom: .6rem;
  border-bottom: 1px solid var(--mid-grey);
}

.links-list { list-style: none; }
.links-list li {
  border-bottom: 1px solid var(--light-grey);
  padding: .8rem 0;
}
.links-list li:first-child { border-top: 1px solid var(--light-grey); }
.links-list li a {
  font-style: italic; font-size: 1rem;
  color: var(--red); display: block;
  margin-bottom: .2rem;
}
.links-list li a:hover { color: #660000; text-decoration: underline; opacity: 1; }
.links-list li p {
  font-size: .8rem; color: #999; margin: 0; max-width: none;
}

/* ── Lightbox ────────────────────────────────────── */
#lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.93);
  z-index: 9000; align-items: center; justify-content: center;
  padding: 1rem;
}
#lightbox.open { display: flex; }
#lightbox-inner {
  position: relative; max-width: min(920px, 95vw);
  max-height: 92vh;
  display: flex; flex-direction: column; gap: .75rem;
}
#lightbox-img {
  max-height: 80vh; width: auto; max-width: 100%;
  object-fit: contain; margin: 0 auto;
  border: 3px solid var(--white);
}
#lightbox-caption {
  text-align: center; font-style: italic;
  color: rgba(255,255,255,.75); font-size: .88rem;
  width: 100%;
  align-self: center;
  padding: 0;
}
#lightbox-inner {
  align-items: center;
}
#lightbox-close {
  position: absolute; top: -2.4rem; right: 0;
  background: none; border: none; color: var(--white);
  font-size: 1.75rem; cursor: pointer;
  line-height: 1; opacity: .65; transition: opacity .2s;
  user-select: none; -webkit-user-select: none;
  outline: none; -webkit-tap-highlight-color: transparent;
}
#lightbox-close:hover { opacity: 1; }

/* ── Footer ──────────────────────────────────────── */
footer {
  background: var(--mid-grey);
  border-top: 5px solid var(--red);
  padding: .85rem clamp(1.5rem, 6vw, 5.5rem);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
footer img.footer-sig { height: 28px; width: auto; }
footer a.footer-logo { display: flex; align-items: center; text-decoration: none; cursor: pointer; }
footer a.footer-logo img { pointer-events: none; height: 20px; width: auto; }
footer .footer-copy {
  font-size: .72rem; color: var(--dark-grey);
  text-align: right; white-space: nowrap;
}

@media (max-width: 640px) {
  footer { flex-direction: column; text-align: center; }
  footer .footer-copy { text-align: center; }
}

/* ── Index era cards ─────────────────────────────── */
.era-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: 1fr;
}
.era-card {
  position: relative; overflow: hidden;
  min-height: 340px;
  display: flex; align-items: flex-end;
  text-decoration: none; color: var(--white);
}
.era-card__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .6s ease;
}
.era-card:hover .era-card__bg { transform: scale(1.05); }
.era-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,.88) 0%, rgba(0,0,0,.3) 60%, rgba(0,0,0,.05) 100%);
  transition: background .4s;
}
.era-card:hover .era-card__overlay {
  background: linear-gradient(to top,
    rgba(153,0,0,.85) 0%, rgba(0,0,0,.4) 60%, rgba(0,0,0,.05) 100%);
}
.era-card__body { position: relative; z-index: 2; padding: 1.5rem 1.75rem; }
.era-card__num {
  font-size: .62rem; letter-spacing: .3em;
  text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: .3rem;
}
.era-card__title {
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .25rem;
}
.era-card__years { font-size: .8rem; color: rgba(255,255,255,.6); }
.era-card__cta {
  display: inline-block; margin-top: .75rem;
  font-size: .7rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--white); border-bottom: 1px solid rgba(255,255,255,.4);
  padding-bottom: 1px; transition: border-color .2s;
}
.era-card:hover .era-card__cta { border-color: var(--white); }

/* ── Animations ──────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0; transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: .08s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: .24s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: .32s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: .40s; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: .48s; }
.reveal-stagger.visible > *:nth-child(n+8) { transition-delay: .55s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}
@media print {
  #site-nav, #links-overlay { display: none; }
  body { background: white; color: black; }
}
