/* Don Rickles archive: shared styles for every page */

:root {
  --ink: #141312;
  --black: #111110;
  --paper: #faf8f4;
  --white: #ffffff;
  --muted: #6b665e;
  --muted-on-dark: #a8a39a;
  --text-on-dark: #e6e1d8;
  --body-soft: #3d3933;
  --line: #e4dfd5;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Newsreader", Georgia, serif;

  --max: 1280px;
  --gutter: 48px;
  --section-y: 88px;
}

@media (max-width: 900px) { :root { --gutter: 32px; --section-y: 64px; } }
@media (max-width: 560px) { :root { --gutter: 20px; --section-y: 48px; } }

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
ul[role="list"] { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .75; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #d9a441; outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--paper); color: var(--ink); padding: 12px 16px;
  font-family: var(--font-display); letter-spacing: .12em;
}
.skip-link:focus { top: 12px; }

.container { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); width: 100%; }
.underline { text-decoration: underline; }

/* Header + navigation */
.site-header { background: var(--black); color: var(--paper); position: relative; z-index: 50; }
.site-header__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.site-logo { font-family: var(--font-display); font-size: 24px; font-weight: 500; letter-spacing: .14em; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; font-family: var(--font-display); font-size: 15px; letter-spacing: .16em; }
.site-nav a { display: inline-block; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a[aria-current="page"] { border-bottom-color: var(--paper); }

.nav-toggle {
  display: none; background: none; border: 1px solid #6b665e; padding: 0 14px; min-height: 44px;
  align-items: center; gap: 10px; cursor: pointer;
  font-family: var(--font-display); font-size: 14px; letter-spacing: .16em;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 760px) {
  .site-header__inner { flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
  .site-logo { font-size: 20px; }
  .js .nav-toggle { display: inline-flex; }
  .site-nav { width: 100%; }
  .site-nav ul { flex-direction: column; gap: 0; font-size: 18px; padding: 8px 0 12px; }
  .site-nav li + li { border-top: 1px solid #2a2927; }
  .site-nav a { display: flex; align-items: center; min-height: 52px; padding: 0; border-bottom: none; }
  .site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
  .js .site-nav:not(.is-open) { display: none; }
}

/* Type helpers */
.section-head h2, .licensing h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 5vw, 48px); letter-spacing: .04em; line-height: 1.1; }
.eyebrow { font-family: var(--font-display); font-size: 14px; letter-spacing: .3em; color: var(--muted-on-dark); }
.text-link { font-family: var(--font-display); font-size: 15px; letter-spacing: .16em; display: inline-flex; align-items: center; min-height: 44px; }
.text-link--underline { border-bottom: 2px solid var(--ink); min-height: 0; padding-bottom: 2px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 16px 30px; font-family: var(--font-display); font-size: 15px; letter-spacing: .16em; text-align: center;
}
.button--light { background: var(--paper); color: var(--ink); }
.button--dark { background: var(--ink); color: var(--paper); }

/* Home hero */
.hero { background: var(--black); color: var(--paper); }
.hero__inner { padding-top: 40px; display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-end; justify-content: space-between; }
.hero__text { flex: 1 1 480px; display: flex; flex-direction: column; gap: 24px; padding-bottom: 72px; }
.hero__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(64px, 11vw, 150px); line-height: 1; letter-spacing: -.01em; padding-bottom: 16px; }
.hero__lede { font-size: 21px; line-height: 1.55; max-width: 600px; color: var(--text-on-dark); text-wrap: pretty; }
.hero__image { width: 380px; max-width: 100%; height: auto; border: 8px solid var(--paper); border-bottom: none; }

@media (max-width: 1020px) {
  .hero__inner { gap: 32px; padding-top: 32px; }
  .hero__text { padding-bottom: 0; flex-basis: 100%; }
  .hero__lede { font-size: 19px; }
  .hero__image { margin: 0 auto; width: min(380px, 100%); }
}

/* Sections */
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); display: flex; flex-direction: column; gap: 40px; }
.section--flush-top { padding-top: 0; }
.section-head { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.section-head__rule { flex: 1; min-width: 40px; height: 2px; background: var(--ink); }
@media (max-width: 560px) {
  .section { gap: 28px; }
  .section-head__rule { display: none; }
  .section-head { justify-content: space-between; }
}

/* Video cards */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 24px; }
.video-card { display: flex; flex-direction: column; height: 100%; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.video-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); display: block; }
.video-card__media img { width: 100%; height: 100%; object-fit: cover; }
.video-card__media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--ink); }
.video-card__body { padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.video-card__text { display: flex; flex-direction: column; gap: 2px; }
.video-card__title { font-family: var(--font-display); font-size: 19px; letter-spacing: .04em; }
.video-card__meta { font-size: 15px; font-style: italic; color: var(--muted); }
.play-icon { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.play-icon::before { content: ""; border-left: 12px solid var(--paper); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }

/* Photo grid (home preview + gallery) */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.photo-tile { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #000; }
.photo-tile img { width: 100%; height: 100%; object-fit: contain; }
.photo-tile:hover { opacity: .85; }
@media (max-width: 560px) { .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }

/* Memorabilia */
.memorabilia { display: flex; flex-direction: column; gap: 24px; scroll-margin-top: 16px; }
.promo { padding: 56px; background: var(--ink); color: var(--paper); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; align-items: center; }
.promo__text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 12px; }
.promo__title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); font-weight: 500; line-height: 1.15; }
.promo__body { font-size: 19px; line-height: 1.5; color: var(--text-on-dark); max-width: 640px; }
.app-strip { padding: 32px 56px; border: 2px solid var(--ink); display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.app-strip__text { font-size: 22px; font-style: italic; line-height: 1.4; }
@media (max-width: 760px) {
  .promo { padding: 32px 24px; gap: 28px; }
  .promo__text { flex-basis: 100%; }
  .promo .button { width: 100%; }
  .app-strip { padding: 24px; }
  .app-strip__text { font-size: 19px; }
}

/* Licensing */
.licensing { flex-direction: row; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-end; scroll-margin-top: 16px; }
.licensing__text { flex: 1 1 480px; display: flex; flex-direction: column; gap: 16px; }
.licensing__text p { font-size: 20px; line-height: 1.55; color: var(--body-soft); max-width: 620px; }
@media (max-width: 560px) { .licensing .button { width: 100%; } .licensing__text p { font-size: 18px; } }

/* Inner page hero (gallery and future pages) */
.page-hero { background: var(--black); color: var(--paper); }
.page-hero__inner { padding-top: 48px; padding-bottom: 64px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; }
.page-hero__title-wrap { display: flex; flex-direction: column; gap: 16px; }
.page-hero__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(48px, 8vw, 104px); line-height: 1; letter-spacing: -.01em; }
.page-hero__lede { font-size: 20px; line-height: 1.5; color: var(--text-on-dark); max-width: 440px; }
.back-link { font-family: var(--font-display); font-size: 14px; letter-spacing: .2em; color: var(--muted-on-dark); display: inline-flex; min-height: 44px; align-items: center; }
@media (max-width: 560px) { .page-hero__inner { padding-top: 24px; padding-bottom: 40px; } .page-hero__lede { font-size: 18px; } }

.gallery { padding-top: 48px; padding-bottom: 48px; }
@media (max-width: 560px) { .gallery { padding-top: 24px; padding-bottom: 32px; } }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0;
  padding: 24px 32px; background: rgba(10, 10, 9, .96); color: var(--paper);
}
.lightbox[open] { display: flex; flex-direction: column; gap: 16px; }
.lightbox::backdrop { background: rgba(10, 10, 9, .96); }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-display); font-size: 14px; letter-spacing: .2em; color: var(--muted-on-dark); }
.lightbox__close, .lightbox__nav {
  background: none; cursor: pointer; color: var(--paper); border: 1px solid #6b665e;
  font-family: var(--font-display); letter-spacing: .2em;
}
.lightbox__close { padding: 0 14px; min-height: 44px; font-size: 14px; }
.lightbox__stage { flex: 1; min-height: 0; display: flex; align-items: center; gap: 24px; }
.lightbox__image { flex: 1; min-width: 0; width: 100%; height: 100%; object-fit: contain; }
.lightbox__nav { width: 56px; height: 56px; flex: none; font-size: 24px; letter-spacing: 0; display: flex; align-items: center; justify-content: center; }
.lightbox__close:hover, .lightbox__nav:hover { border-color: var(--paper); }
@media (max-width: 760px) {
  .lightbox { padding: 16px; }
  .lightbox__stage { flex-wrap: wrap; justify-content: center; align-content: center; gap: 16px; }
  .lightbox__image { order: -1; flex-basis: 100%; height: calc(100% - 72px); }
}

/* Footer */
.site-footer { background: var(--black); color: var(--text-on-dark); }
.site-footer__inner { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-family: var(--font-display); font-size: 14px; letter-spacing: .12em; line-height: 1.6; }
