/* ========================================
   Sekou Andrews — Media + One Sheets
   Layers on css/styles-v18.css (tokens, header, footer).
   ======================================== */

/* ---- Shared page hero ---- */
.page-hero {
  padding: clamp(130px, 16vh, 180px) var(--pad) clamp(34px, 4vh, 52px);
  background: var(--black);
  text-align: center;
}
.page-hero__sub {
  font-family: var(--body);
  font-size: clamp(.72rem, 1.1vw, .85rem);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}
.page-hero h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.1rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.page-hero__desc {
  max-width: 660px;
  margin: 26px auto 0;
  color: var(--grey);
  font-size: clamp(.98rem, 1.4vw, 1.12rem);
  line-height: 1.7;
}

/* ---- Generic dark section ---- */
.page-section { padding: clamp(44px, 6vh, 72px) var(--pad); background: var(--black); }
/* consecutive sections share one gap instead of stacking two */
.page-section + .page-section { padding-top: 0; }
.page-section__inner { max-width: var(--max); margin: 0 auto; }
.page-section__title {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: -.01em;
  margin-bottom: 10px;
}
.page-section__note { color: var(--grey); font-size: .98rem; line-height: 1.7; max-width: 700px; }

/* ========================================
   MEDIA PAGE — resource tiles
   ======================================== */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 34px;
}
.media-tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 34px 30px 30px;
  background: var(--dark);
  border: 1px solid rgba(255, 255, 255, .07);
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.media-tile:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
  background: #1b1b1b;
}
.media-tile__eyebrow {
  font-size: .7rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--orange);
}
.media-tile h3 {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.2rem;
  text-transform: uppercase;
  line-height: 1.2;
}
.media-tile p { color: var(--grey); font-size: .94rem; line-height: 1.65; }
.media-tile__go {
  margin-top: auto;
  padding-top: 16px;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--warm);
}
.media-tile--soon { opacity: .55; pointer-events: none; }
.media-tile--soon .media-tile__go { color: var(--grey); }

/* ========================================
   ONE SHEETS — scaled iframe previews
   ======================================== */

/* A feature card for multi-page documents: wider, and the preview shows
   the cover page only. */
.sheet-grid.sheet-grid--feature { grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); }
@media (max-width: 560px) {
  .sheet-grid.sheet-grid--feature { grid-template-columns: 1fr; }
}
.sheet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 40px 30px;
  margin-top: 36px;
}

.sheet-card {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

/* The preview window: a letter-proportioned frame holding a full-width
   render of the sheet, scaled down by JS (see onesheets.html). */
.sheet-card__preview {
  display: block;
  position: relative;
  aspect-ratio: 8.5 / 11;
  overflow: hidden;
  background: #fbf8f4;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .5);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.sheet-card:hover .sheet-card__preview,
.sheet-card:focus-visible .sheet-card__preview {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, .65);
  border-color: var(--orange);
}
.sheet-card:focus-visible { outline: none; }
.sheet-card:focus-visible .sheet-card__preview { outline: 3px solid var(--orange); outline-offset: 4px; }

.sheet-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Placeholder shown until the iframe is lazy-loaded into view. */
.sheet-card__preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, #fbf8f4 30%, #ede7df 50%, #fbf8f4 70%);
  background-size: 300% 100%;
  animation: sheet-shimmer 1.6s linear infinite;
  transition: opacity .4s ease;
}
.sheet-card__preview.is-loaded::after { opacity: 0; pointer-events: none; animation: none; }
@keyframes sheet-shimmer {
  from { background-position: 150% 0; }
  to   { background-position: -150% 0; }
}

/* Hover actions over the preview */
.sheet-card__actions {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  display: flex;
  gap: 8px;
  padding: 14px 12px;
  justify-content: center;
  background: linear-gradient(to top, rgba(10, 10, 10, .94), rgba(10, 10, 10, 0));
  opacity: 0;
  transition: opacity .25s ease;
}
.sheet-card:hover .sheet-card__actions,
.sheet-card:focus-within .sheet-card__actions { opacity: 1; }
.sheet-act {
  padding: 8px 14px;
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.sheet-act:hover, .sheet-act:focus-visible {
  background: var(--orange);
  border-color: var(--orange);
  outline: none;
}
/* the actions sit above the preview, so they need pointer events back */
.sheet-card__preview .sheet-card__actions { pointer-events: auto; }

/* ---- share dialog ---- */
.share-modal[hidden] { display: none; }
.share-modal { position: fixed; inset: 0; z-index: 999; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(8, 8, 8, .82); }
.share-modal__box { width: min(520px, 100%); background: var(--dark); border: 1px solid rgba(255,255,255,.14); padding: 34px 30px 30px; position: relative; }
.share-modal__close { position: absolute; top: 10px; right: 14px; background: none; border: 0; color: var(--grey); font-size: 26px; line-height: 1; cursor: pointer; }
.share-modal__close:hover { color: var(--white); }
.share-modal__title { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 1rem; letter-spacing: .02em; }
.share-modal__name { margin-top: 6px; color: var(--grey); font-size: .85rem; }
.share-modal__link { width: 100%; margin-top: 18px; padding: 12px 14px; font: inherit; font-size: .88rem; color: var(--white); background: #0d0d0d; border: 1px solid rgba(255,255,255,.18); }
.share-modal__copy { margin-top: 14px; padding: 12px 26px; font: inherit; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: #fff; background: var(--orange); border: 0; cursor: pointer; }
.share-modal__copy:hover { background: var(--orange-hi); }

.sheet-card__meta { display: block; padding: 20px 2px 0; }
.sheet-card__title {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1.25;
  text-transform: uppercase;
}
.sheet-card__sub {
  display: block;
  margin-top: 8px;
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--grey);
}

/* Shown if JS is off — the cards still work as plain links. */
.sheet-empty { color: var(--grey); margin-top: 30px; }

@media (max-width: 600px) {
  .sheet-grid { grid-template-columns: 1fr; gap: 34px; }
}
