/* bbmorris journal: the one stylesheet. Change a value here and every page follows. */

@font-face { font-family: "Archivo"; src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4-latin-opsz-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --bg: #ffffff;
  --ink: #111114;
  --muted: #5c5c66;
  --rule: #e4e4e8;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --pad: clamp(16px, 5.5vw, 80px);
  --max: 1280px;
  --gap: 24px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0b0b0f; --ink: #f4f4f6; --muted: #a3a3ad; --rule: #2a2a32; color-scheme: dark; }
  :root:not([data-theme="light"]) .entry { --accent: var(--accent-dark, var(--ink)); }
}
:root[data-theme="dark"] { --bg: #0b0b0f; --ink: #f4f4f6; --muted: #a3a3ad; --rule: #2a2a32; color-scheme: dark; }
:root[data-theme="dark"] .entry { --accent: var(--accent-dark, var(--ink)); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
a { color: inherit; text-underline-offset: 4px; }
img { display: block; width: 100%; height: auto; background: var(--rule); }
figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
figcaption { font-size: 13px; line-height: 1.4; letter-spacing: .02em; color: var(--muted); }
figcaption b { color: var(--accent, var(--ink)); font-weight: 700; margin-right: .5em; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; }
.label, .crumbs, .card-meta, .facts dt, .pager span:first-child { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.crumbs { font-size: 13px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--bg); padding: 8px 12px; }

/* Header */
.site-head { padding: 28px var(--pad); }
.site-head-in { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; }
.wordmark { font-size: 22px; font-weight: 800; font-stretch: 125%; letter-spacing: -0.02em; text-decoration: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.site-nav a { text-decoration: none; padding: 6px 0; }
.site-nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; }
.site-nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.theme-toggle { display: grid; place-items: center; width: 44px; height: 44px; margin: -8px -13px -8px -8px; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }

/* Page and entry heads */
.page-head, .entry-head { padding: 72px var(--pad) 56px; }
.page-head .wrap, .entry-head .wrap { display: flex; flex-direction: column; gap: 28px; }
.page-head h1, .entry-head h1 { font-size: clamp(44px, 7.2vw, 104px); line-height: .94; font-weight: 800; font-stretch: 125%; letter-spacing: -0.025em; text-wrap: balance; }
.intro { max-width: 760px; font-family: var(--serif); font-size: clamp(19px, 1.7vw, 24px); line-height: 1.45; }

/* Entry */
.entry { --accent: var(--accent-light, var(--ink)); }
.entry + .entry { border-top: 1px solid var(--rule); margin-top: 24px; }
.hero img { aspect-ratio: 2 / 1; object-fit: cover; }
.hero figcaption { padding: 0 var(--pad); }
.hero figcaption span { display: block; max-width: var(--max); margin: 0 auto; }
.hero-set { display: grid; gap: clamp(2px, .4vw, 6px); }
.hero-set img, .hero-full img { aspect-ratio: auto; }

.facts-block { padding: 40px var(--pad); }
.facts { padding: 32px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--gap); }
.facts dd { margin-top: 6px; font-size: 16px; line-height: 1.4; }

.entry-body { padding: 32px var(--pad) 72px; }
.entry-body .wrap { display: flex; flex-direction: column; gap: 48px; }
.prose { max-width: 680px; display: flex; flex-direction: column; gap: 24px; font-family: var(--serif); font-size: 20px; line-height: 1.6; }
.section-head { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; margin-top: 24px; }
.section-head h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; font-weight: 800; font-stretch: 125%; letter-spacing: -0.02em; }
.section-head p { font-size: 14px; color: var(--muted); }
.row { display: grid; gap: var(--gap); align-items: start; }
.row-stack { display: flex; flex-direction: column; gap: var(--gap); }

.video-frame { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.video-frame img { height: 100%; object-fit: cover; opacity: .72; }
a.video-frame:hover img { opacity: .85; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 12px 22px 12px 18px; border-radius: 999px; background: #ffffff; color: #111114; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
a.video-frame:hover .video-play { background: #111114; color: #ffffff; }

.tags { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.tags a { padding: 6px 0; }

.entry-foot { padding: 0 var(--pad) 64px; }
.entry-foot .wrap { padding-top: 56px; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 40px; }
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.pager a { text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.pager a:hover span:last-child { text-decoration: underline; }
.pager span:last-child { font-size: 22px; line-height: 1.2; font-weight: 700; font-stretch: 112%; }
.pager .newer { text-align: right; grid-column: 2; }
.copyright { font-size: 13px; color: var(--muted); }
.stream-status { padding: 0 var(--pad) 48px; text-align: center; font-size: 13px; color: var(--muted); }

/* Home and lists */
.recent { padding: 0 var(--pad) 56px; }
.recent .wrap { padding: 28px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 20px; }
.recent-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px var(--gap); }
.recent-list a { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: center; text-decoration: none; }
.recent-list img { aspect-ratio: 1; object-fit: cover; }
.recent-list strong { display: block; font-size: 16px; line-height: 1.25; font-weight: 700; }
.recent-list a:hover strong { text-decoration: underline; }
.recent-list small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }

.year { padding: 0 var(--pad) 88px; }
.year .wrap { display: flex; flex-direction: column; gap: 40px; }
.year-label { font-size: clamp(40px, 6vw, 88px); line-height: 1; font-weight: 800; font-stretch: 125%; letter-spacing: -0.03em; }
.year-label a { text-decoration: none; }
.year-label a:hover { text-decoration: underline; text-decoration-thickness: 4px; }
.cards { display: flex; flex-direction: column; gap: 56px; }
.card { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(20px, 3.5vw, 48px); align-items: center; }
.card-photo img { aspect-ratio: 3 / 2; object-fit: cover; }
.card-text { display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: clamp(26px, 3vw, 44px); line-height: 1.02; font-weight: 800; font-stretch: 125%; letter-spacing: -0.02em; text-wrap: balance; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.card-intro { max-width: 520px; font-family: var(--serif); font-size: 18px; line-height: 1.5; }

.tag-index { padding: 0 var(--pad) 88px; }
.tag-index ul { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; font-stretch: 112%; }
.tag-index li span { margin-left: 6px; font-size: 13px; font-weight: 600; color: var(--muted); vertical-align: super; }

/* Site footer */
.site-foot { padding: 0 var(--pad) 56px; }
.site-foot-in { padding-top: 32px; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 20px; font-size: 13px; color: var(--muted); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: baseline; }
.foot-nav a { padding: 6px 0; }
.foot-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

@media (max-width: 720px) {
  .row { grid-template-columns: minmax(0, 1fr) !important; }
  .hero-single img { aspect-ratio: 3 / 2; }
  .prose { font-size: 18px; }
  .card { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager .newer { text-align: left; grid-column: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
