/*
Theme Name: The Screening Room
Theme URI: https://www.documentarytube.com/blog/
Description: DocumentaryTube's blog theme: the directory's booth and credits around a programme-paper reading page. Keeps wp_head, wp_body_open, wp_footer, the Phase 3 offset, the empty article anchor first in main#main, the story in entry-content article-content with post_class(), the site's own sidebar (sidebar-1) and menu locations, no lazy images and no auto sizes.
Author: DocumentaryTube
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: documentarytube-screening
*/
/* The colours, the fonts, the booth and the credits come from the directory's own stylesheet (linked in the head from /wp-chrome/). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.room { margin: 0; background: var(--paper, #f6f3ec); color: var(--ink, #1b1915); font: 400 1.04rem/1.65 var(--sans, system-ui, sans-serif); -webkit-font-smoothing: antialiased; }
.room-in img { max-width: 100%; height: auto; }
/* the story's own links; the booth and the credits keep the colours the directory's stylesheet gives them */
.room-in a { color: var(--link, #8f1f16); text-underline-offset: 3px; }
.room-skip { position: absolute; left: -999px; top: 0; z-index: 99; padding: 8px 12px; background: var(--red); color: var(--red-ink); }
.room-skip:focus { left: 8px; }
.room-anchor { display: contents; }
.room-in { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px 20px; }
@media (max-width: 640px) { .room-in { padding: 0 16px 16px; } }
.room-trail { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 16px 0 0; list-style: none; font-size: .85rem; color: var(--muted); }
.room-trail li + li::before { content: '/'; margin-right: 6px; color: var(--line); }
.room-trail a { color: var(--muted); text-decoration: none; }
.room-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; margin-top: 10px; }
@media (max-width: 960px) { .room-grid { grid-template-columns: minmax(0, 1fr); } }
.room-col { min-width: 0; }
.room-head { padding: 18px 0 10px; }
.room-kicker { margin: 0; font: 650 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.room-kicker a, .room-kicker { color: var(--red); text-decoration: none; }
.room-title { margin: .3em 0 .2em; font: 600 clamp(1.9rem, 1.3rem + 2.2vw, 3rem)/1.1 var(--serif); font-variation-settings: 'opsz' 72; letter-spacing: -.01em; color: var(--ink); }
.room-byline { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.room-byline a { color: var(--ink-2); text-decoration: none; }
.room-lede { max-width: 66ch; color: var(--ink-2); font-size: 1.1rem; }
.room-picture { margin: 16px 0 6px; }
.room-picture img { width: 100%; border-radius: var(--radius, 6px); }
.room-story { max-width: 72ch; }
.room-story .entry-content { color: var(--ink-2); }
.room-story .entry-content h2, .room-story .entry-content h3 { font-family: var(--serif); color: var(--ink); line-height: 1.2; margin: 1.6em 0 .4em; }
.room-story .entry-content h2 { font-size: 1.6rem; font-variation-settings: 'opsz' 48; }
.room-story .entry-content h3 { font-size: 1.2rem; }
.room-story .entry-content blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--red); font: italic 400 1.15rem/1.5 var(--serif); color: var(--ink); }
.room-story .entry-content iframe, .room-story .entry-content video, .room-story .entry-content embed { max-width: 100%; }
.room-story .entry-content .wp-block-embed__wrapper iframe, .room-story .entry-content iframe[src*="youtube"] { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: var(--radius, 6px); }
.room-story .entry-content table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.room-story .entry-content th, .room-story .entry-content td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.room-story .entry-content figure { margin: 1.4em 0; }
.room-story .entry-content figcaption { font-size: .82rem; color: var(--muted); }
.room-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0 0; }
.room-tags a { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; background: var(--panel-2); color: var(--ink-2); font-size: .82rem; font-weight: 600; text-decoration: none; }
.room-tags a:hover { background: var(--red-wash); color: var(--red); }
.room-turn { display: flex; justify-content: space-between; gap: 16px; margin: 30px 0 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .94rem; }
.room-turn a { color: var(--ink); text-decoration: none; font-family: var(--serif); }
.room-turn-next { margin-left: auto; text-align: right; }
.room-more h2, .room-talk h2 { font: 600 1.5rem/1.2 var(--serif); margin: 34px 0 14px; color: var(--ink); }
.room-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 8px; }
.room-card a { display: grid; gap: 6px; text-decoration: none; color: var(--ink); }
.room-card-pic { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius, 6px); background: var(--panel-2); }
.room-card-kicker { font: 650 .66rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.room-card-title { margin: 0; font: 600 1.05rem/1.3 var(--serif); color: var(--ink); }
.room-card-date { font-size: .8rem; color: var(--muted); }
.room-card a:hover .room-card-title { color: var(--red); }
.room-pages { display: flex; flex-wrap: wrap; gap: 6px; margin: 26px 0 0; }
.room-pages .page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius, 6px); background: var(--panel); color: var(--ink); text-decoration: none; font-weight: 600; }
.room-pages .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.room-side { display: grid; gap: 18px; align-content: start; min-width: 0; padding-top: 18px; }
.room-side .widget { padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg, 12px); overflow: hidden; }
.room-side .widget-title { margin: 0 0 10px; font: 650 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.room-side ul { margin: 0; padding-left: 1.1em; }
.room-talk { margin-top: 30px; }
.room-talk-list { padding-left: 1.2em; }
.room-talk input[type="text"], .room-talk input[type="email"], .room-talk input[type="url"], .room-talk textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius, 6px); background: var(--panel); color: var(--ink); font: inherit; }
.room-talk .submit { min-height: 42px; padding: 0 16px; border: 0; border-radius: var(--radius, 6px); background: var(--red); color: var(--red-ink); font-weight: 650; cursor: pointer; }
.room-lost { padding-top: 40px; max-width: 760px; }
