/* Relics Unearthed: the series page and one page per film (both written by tools/make_unearthed.py). With pages.css. */

/* the series page: every film's cover, with its name under it */
.ue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: clamp(26px, 3vw, 40px) clamp(16px, 2.2vw, 28px); }
.ue-card { display: grid; gap: 12px; text-decoration: none; }
.ue-card img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; box-shadow: 0 0 0 1px var(--line-2), 7px 8px 0 var(--offset); transition: transform .2s var(--ease); }
.ue-card span { font: 700 clamp(1rem, 1.4vw, 1.12rem)/1.2 var(--display); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: transparent; transition: text-decoration-color .15s; }
.ue-card:hover img { transform: translateY(-3px); }
.ue-card:hover span { text-decoration-color: currentColor; }

/* a film's page: the film (its cover until it plays) beside the story, then the relic, the sources and the credits */
.ue-film { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.ue-cover { position: sticky; top: 24px; }
.ue-cover video, .ue-cover .vid { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; background: #080B0D; box-shadow: 0 0 0 1px var(--line-2), 11px 11px 0 var(--offset); }
.ue-body { min-width: 0; max-width: 42em; }
.ue-story p { font-size: 1.06rem; line-height: 1.7; }
.ue-sec { margin-top: clamp(38px, 5vw, 60px); }
.ue-sec h2 { font: 700 clamp(1.5rem, 2.6vw, 2rem)/1.15 var(--display); margin-bottom: .6em; }
.ue-sec > p + p { margin-top: .6em; }
.ue-list { border-top: 1px solid var(--line-2); }
.ue-list > li { padding: 12px 0; border-bottom: 1px solid var(--line-2); color: var(--ink-2); font-size: .92rem; line-height: 1.55; overflow-wrap: anywhere; }
.ue-list ul { margin: .5em 0 0; padding-left: 1.2em; }
.ue-list ul li + li { margin-top: .5em; }
.ue-list a { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: var(--ink-3); }
.ue-list a:hover { text-decoration-color: currentColor; }
.ue-host { color: var(--ink-3); }
.ue-next { margin-top: clamp(38px, 5vw, 60px); color: var(--ink-3); }

@media (max-width: 820px) {
  .ue-film { grid-template-columns: minmax(0, 1fr); }
  .ue-cover { position: static; width: min(100%, 280px); }
}
