/* Free previews from Study Hall (2026-11-16, Joe): the playbook, the spaced repetition lesson,
   the grade calculator and Study Hall itself, as picture cards on one dark band. The same cards
   on the Study Hall page, the playbook page and the lesson page, so it reads as one set of
   previews of what is inside Study Hall. Markup: tools/free_cards.py (static pages) and
   assets/js/studyhall-page.js (the Study Hall page). */

.fc-band {
  --fc-ground: #18213F; --fc-text: #FFFFFF; --fc-dim: #B9C1DE;
  position: relative;
  margin-top: clamp(44px, 7vw, 72px);
  padding: clamp(36px, 5vw, 56px) 0 clamp(40px, 6vw, 60px);
  color: var(--fc-text);
  background: var(--fc-ground);
  /* Full width whatever column the band sits in. */
  box-shadow: 0 0 0 100vmax var(--fc-ground);
  clip-path: inset(0 -100vmax);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fc-band { --fc-ground: #111733; } }
:root[data-theme="dark"] .fc-band { --fc-ground: #111733; }

.fc-eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #F5B13D; }
.fc-band h2 { margin: 0 0 6px; color: var(--fc-text); font-size: clamp(26px, 3.8vw, 34px); letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
.fc-sub { margin: 0 0 24px; color: var(--fc-dim); font-size: 16.5px; }

.fc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fc-card {
  display: flex; flex-direction: column; min-width: 0;
  border-radius: 18px; overflow: hidden; text-decoration: none;
  background: var(--bg-card); color: var(--text);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .28);
  transition: transform .18s ease, box-shadow .18s ease;
}
.fc-card:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(0, 0, 0, .34); }
.fc-card:focus-visible { outline: 3px solid #F5B13D; outline-offset: 3px; }

.fc-art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #E9ECF4; }
.fc-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* A printable page: the page itself, tilted on a warm ground. */
.fc-art.is-page { background: linear-gradient(135deg, #FDE7E3, #E6F5E1); }
.fc-art.is-page img { position: absolute; top: 9%; left: 50%; width: auto; height: 82%; object-fit: contain; border-radius: 4px; box-shadow: 0 10px 24px rgba(20, 20, 40, .28); transform: translateX(-50%) rotate(-3deg); }
/* A video: a play button and its length. */
.fc-play { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(0, 0, 0, .55); display: grid; place-items: center; }
.fc-play svg { width: 22px; height: 22px; margin-left: 3px; fill: #fff; }
.fc-len { position: absolute; right: 10px; bottom: 10px; padding: 4px 9px; border-radius: 999px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 12.5px; font-weight: 700; }

.fc-body { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px 16px; flex: 1; }
.fc-tag { font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--red); }
.fc-body strong { font-size: 18px; letter-spacing: -0.01em; line-height: 1.2; }
.fc-body > span:not(.fc-tag):not(.fc-go) { color: var(--text-dim); font-size: 14.5px; line-height: 1.4; }
.fc-go { margin-top: auto; padding-top: 8px; font-size: 14.5px; font-weight: 700; color: var(--green-deep); }

/* Phones: picture beside the words, so three cards stay short. */
@media (max-width: 640px) {
  .fc-grid { grid-template-columns: 1fr; gap: 12px; }
  .fc-card { flex-direction: row; border-radius: 16px; }
  .fc-art { flex: none; width: 42%; aspect-ratio: auto; min-height: 118px; }
  /* A narrow picture: keep Joe in it, not half the title. */
  .fc-art.is-video img { object-position: 82% center; }
  .fc-play { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  .fc-play svg { width: 16px; height: 16px; }
  .fc-len { right: 6px; bottom: 6px; font-size: 11px; padding: 3px 7px; }
  .fc-body { padding: 11px 13px 12px; }
  .fc-body strong { font-size: 16.5px; }
  .fc-body > span:not(.fc-tag):not(.fc-go) { font-size: 13.5px; }
  .fc-go { padding-top: 6px; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) { .fc-card { transition: none; } .fc-card:hover { transform: none; } }
