:root {
  --ink: #111111;
  --red: #c8102e;
  --paper: #ffffff;
  --soft: #f5f5f5;
  --line: #e5e5e5;
  --muted: #737373;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.site-header, .site-footer { display: flex; align-items: center; justify-content: space-between; padding: 10px clamp(20px, 4vw, 64px); border-bottom: 1px solid var(--line); }
.wordmark { display: block; width: 108px; line-height: 0; text-decoration: none; }
.wordmark img { display: block; width: 100%; height: auto; }
.archive-label, .site-footer, .eyebrow, .card-copy p, .archive-status { font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.archive-label { color: var(--muted); }

.hero { padding: clamp(60px, 7vw, 100px) clamp(20px, 8vw, 128px) clamp(52px, 5vw, 76px); border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 15px; color: var(--red); }
h1 { max-width: 880px; margin: 0; font-size: clamp(50px, 7vw, 96px); font-weight: 800; letter-spacing: -.075em; line-height: .82; }

.archive { max-width: 1500px; margin: 0 auto; padding: 48px clamp(20px, 4vw, 64px) 100px; }
.archive-tools { display: flex; align-items: center; }
.search-field { display: flex; align-items: center; width: min(370px, 100%); border-bottom: 1px solid var(--ink); }
.search-field input { width: 100%; padding: 12px 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-field input::placeholder { color: #999; }
.search-field span:last-child { font-size: 24px; transform: rotate(-20deg); }
.archive-status { display: flex; justify-content: space-between; margin: 42px 0 20px; color: var(--muted); }
.archive-status p { margin: 0; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 20px; }
.video-card { min-width: 0; }
.video-button { width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; }
.thumbnail-wrap { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); }
.thumbnail-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(0,0,0,.18), transparent 55%); opacity: .3; transition: opacity .2s ease; }
.thumbnail-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.video-button:hover img, .video-button:focus-visible img { transform: scale(1.04); }
.video-button:hover .thumbnail-wrap::after, .video-button:focus-visible .thumbnail-wrap::after { opacity: .85; }
.play-icon { position: absolute; z-index: 1; left: 20px; bottom: 18px; display: grid; place-items: center; width: 39px; height: 39px; border-radius: 50%; background: var(--red); color: white; font-size: 12px; padding-left: 2px; }
.video-number { position: absolute; z-index: 1; right: 16px; top: 13px; color: white; font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.card-copy { padding-top: 13px; }
.card-copy h2 { margin: 0; font-size: clamp(15px, 1.4vw, 20px); font-weight: 700; letter-spacing: -.02em; }
.empty-state { padding: 40px 0; color: var(--muted); text-align: center; }

.site-footer { border-top: 1px solid var(--line); border-bottom: 0; color: var(--muted); }
.video-modal { width: min(1100px, calc(100vw - 32px)); padding: 0; border: 0; background: transparent; color: var(--ink); }
.video-modal::backdrop { background: rgba(0,0,0,.78); }
.modal-shell { position: relative; padding: 18px; background: var(--paper); }
.close-button { position: absolute; z-index: 2; right: 0; top: -45px; width: 35px; height: 35px; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; background: transparent; color: white; font-size: 26px; line-height: 1; }
.player-container { aspect-ratio: 16 / 9; background: #000; }
.player-container iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal-copy { display: flex; gap: 24px; justify-content: space-between; align-items: end; padding: 20px 4px 4px; }
.modal-copy .eyebrow { margin-bottom: 7px; }
.modal-copy h2 { margin: 0; font-size: clamp(17px, 2.5vw, 26px); }
.youtube-link { flex: none; color: var(--red); font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.youtube-link:hover { text-decoration: underline; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 760px) {
  .site-header { padding-block: 8px; }
  .wordmark { width: 88px; }
  .archive-label { font-size: 8px; }
  .archive { padding-top: 32px; }
  .search-field { width: 100%; }
  .archive-status { margin-top: 32px; }
  .archive-status p:last-child { display: none; }
  .video-grid { grid-template-columns: 1fr; gap: 30px; }
  .modal-shell { padding: 10px; }
  .modal-copy { display: block; padding: 16px 4px 6px; }
  .youtube-link { display: inline-block; margin-top: 14px; }
}

@media (min-width: 761px) and (max-width: 1040px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
