/* roman.forum /1/: a forum in daylight. Flat fills, no borders, no hard shadows.
   Kin to doom.ooo (black) and am-i.ooo (night blue); this one is travertine. */
:root {
  --bg: #f5eddc; --stone: #ebe1cb; --marble: #fffaf0; --deep: #dfd2b6;
  --ink: #2a2018; --dim: #76664f; --line: #cfc0a2;
  --terra: #b4482b; --terra-d: #8f3520; --purple: #5a2b82; --gold: #b9871f; --laurel: #4d7738; --sky: #bfe1f3;
  --display: "Cinzel", "Trajan Pro", Georgia, serif; --fat: "Caprasimo", "Cooper Black", Georgia, serif;
  --sans: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;
  --col: 720px; --r: 10px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 60px; }
body { background: linear-gradient(#f5eddc 0%, #f5eddc 70%, #f3dfbd 100%); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.58; text-wrap: pretty; overflow-x: hidden; padding-bottom: 44px; }
img { max-width: 100%; }
a { color: inherit; text-decoration-color: var(--terra); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--terra-d); }
.wrap { max-width: var(--col); margin: 0 auto; padding: 0 20px; }
section { padding: 44px 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.1; letter-spacing: .01em; }
h1 { font-size: clamp(38px, 10.5vw, 68px); font-weight: 900; }
h2 { font-size: clamp(28px, 7.4vw, 42px); margin-bottom: 12px; }
h2 small { display: block; font-family: var(--sans); font-size: 12.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--terra); margin-bottom: 8px; }
h3 { font-size: 22px; margin-bottom: 8px; }
p { margin-bottom: .95em; }
.sub { font-size: 19px; color: var(--dim); }
.kick { font-size: 12.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--terra); margin-bottom: 12px; }
.lede { font-size: clamp(18px, 4.9vw, 21px); line-height: 1.5; }

.mast { position: sticky; top: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; height: 48px; padding: 0 16px; background: rgba(245, 237, 220, .94); backdrop-filter: blur(6px); }
.mast .mark { font-family: var(--display); font-weight: 900; font-size: 16px; letter-spacing: .05em; white-space: nowrap; text-decoration: none; text-transform: uppercase; }
.mast .mark span { color: var(--terra); }
.mast nav { display: flex; gap: 13px; white-space: nowrap; align-items: center; font-size: 13.5px; font-weight: 650; }
.mast nav a { text-decoration: none; }
.mast nav a.subs { background: var(--terra); color: #fff8ea; padding: 6px 12px; border-radius: 6px; font-weight: 750; }
@media (max-width: 520px) { .mast nav a.hide-s { display: none; } .mast { padding: 0 12px; } .mast .mark { font-size: 14.5px; } .mast nav { gap: 11px; font-size: 13px; } .mast nav a.subs { padding: 6px 10px; } }

.hero { padding: 0; }
.hero .art { display: block; width: 100%; height: auto; max-height: 76vh; object-fit: cover; object-position: 50% 60%; image-rendering: pixelated; }
.hero-text { padding: 30px 0 8px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 8px; }
.btn { display: inline-block; font-weight: 750; font-size: 15.5px; text-decoration: none; background: var(--terra); color: #fff8ea; padding: 11px 18px; border-radius: 7px; }
.btn:hover { background: var(--purple); color: #fff; }
.btn.alt { background: var(--deep); color: var(--ink); }
.fan { font-size: 13.5px; color: var(--dim); margin-top: 14px; }

/* procedural colonnades: forum.v1.js draws them; they fall into ruin down the page */
.colo { position: relative; line-height: 0; margin: 0; }
.colo canvas { display: block; width: 100%; image-rendering: pixelated; }
.colo .bird { position: absolute; width: 30px; height: auto; image-rendering: pixelated; cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; transition: transform 1.1s cubic-bezier(.3, .1, .3, 1), opacity 1.1s; }
.colo .bird img { display: block; width: 100%; image-rendering: pixelated; }
.colo .bird.left img { transform: scaleX(-1); }
.colo .bird.off { transform: translate(120px, -160px) scale(.6); opacity: 0; pointer-events: none; }
.colo .cat { position: absolute; width: 44px; image-rendering: pixelated; }

.inscr { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .34em; text-transform: uppercase; text-align: center; color: #8d7c61; background: var(--stone); padding: 9px 10px 8px; text-shadow: 0 1px 0 #fff8e8; }
.inscr b { font-weight: 700; color: var(--terra-d); }

.box { background: var(--marble); border-radius: var(--r); padding: 22px 20px; margin: 20px 0; position: relative; }
.box .lab { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--terra); margin-bottom: 8px; }
.box .ico { float: right; width: 62px; height: auto; margin: -4px -2px 6px 12px; image-rendering: pixelated; }
.box p:last-child { margin-bottom: 0; }
.box.stone { background: var(--stone); }
.box.night { background: #1c1832; color: #f0e8d4; }
.box.night .lab { color: #e9b949; }
.box.black { background: #17130f; color: #efe6d3; }
.box.black .lab { color: #e9b949; }
.more { font-size: 14.5px; color: var(--dim); }
.box.black .more, .box.night .more { color: #b9ad97; }
.place { font-size: 14.5px; color: var(--dim); background: var(--stone); border-radius: var(--r); padding: 12px 15px; margin: 0 0 18px; }
.place b { font-family: var(--display); letter-spacing: .06em; color: var(--ink); }

.play { position: relative; aspect-ratio: 16 / 9; background: #1b1611; border-radius: var(--r); overflow: hidden; cursor: pointer; margin: 14px 0 10px; }
.play img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; display: block; }
.play button { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 66px; height: 46px; border: 0; border-radius: 9px; background: var(--terra); color: #fff8ea; font-size: 20px; cursor: pointer; }
.play:hover button { background: var(--purple); }
.play iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.meta { font-size: 14px; color: var(--dim); }

.nums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
@media (min-width: 640px) { .nums { grid-template-columns: repeat(4, 1fr); } }
.nums b { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(28px, 8vw, 42px); line-height: 1; color: var(--terra-d); }
.nums span { display: block; font-size: 13px; font-weight: 650; color: var(--dim); margin-top: 5px; line-height: 1.35; }

.five { list-style: none; }
.five li { display: grid; grid-template-columns: 128px 1fr; gap: 14px; padding: 12px 0; align-items: start; }
.five .th { display: block; border-radius: 7px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--deep); }
.five .th img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; display: block; }
.five .t { display: block; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); }
.five .n { font-family: var(--display); font-weight: 900; font-size: 21px; text-decoration: none; }
.five p { font-size: 15px; line-height: 1.45; margin: 2px 0 0; }
@media (max-width: 420px) { .five li { grid-template-columns: 104px 1fr; } }

/* the tablets: one per episode */
.tab { background: var(--marble); border-radius: var(--r); padding: 20px; margin: 18px 0; scroll-margin-top: 60px; }
.tab .hd { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tab .num { font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1; color: var(--gold); letter-spacing: .04em; }
.tab .date { font-size: 12.5px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.tab h3 { font-size: clamp(24px, 6.4vw, 31px); margin: 6px 0 2px; }
.tab .title { font-size: 15px; font-weight: 650; color: var(--dim); margin-bottom: 0; }
.tab .who { font-size: 15.5px; background: var(--stone); border-radius: 8px; padding: 12px 14px; margin: 12px 0; }
.tab .who b { font-family: var(--display); letter-spacing: .04em; }
.tab .ch { font-size: 14.5px; color: var(--dim); }
.tab .ch b { color: var(--ink); font-weight: 700; }
.tab .x { font-size: 14.5px; margin-bottom: 0; }
.tab .x span { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff8ea; background: var(--purple); border-radius: 4px; padding: 2px 7px 1px; margin-right: 7px; }
.tab .locked { display: flex; align-items: center; gap: 14px; background: var(--stone); border-radius: var(--r); padding: 14px; margin: 14px 0 10px; font-size: 14.5px; color: var(--dim); }
.tab .locked img { width: 128px; border-radius: 7px; image-rendering: pixelated; flex: none; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.jump a { font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: .06em; text-decoration: none; background: var(--stone); border-radius: 6px; padding: 6px 11px; }
.jump a:hover { background: var(--terra); color: #fff8ea; }

.lines { list-style: none; }
.lines li { padding: 9px 0 9px 82px; position: relative; font-size: 15.5px; line-height: 1.45; }
.lines li + li { box-shadow: inset 0 1px 0 var(--stone); }
.lines li b { position: absolute; left: 0; top: 10px; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--terra); }

.pic { margin: 22px 0 10px; }
.pic img { display: block; width: 100%; height: auto; border-radius: var(--r); image-rendering: pixelated; }
.pic figcaption { font-size: 13.5px; color: var(--dim); margin-top: 8px; }
.pair { display: grid; gap: 14px; margin: 16px 0; }
@media (min-width: 640px) { .pair { grid-template-columns: 1fr 1fr; } }
.pair .box { margin: 0; }

.else { list-style: none; margin-top: 10px; }
.else li { display: grid; grid-template-columns: 128px 1fr; gap: 12px; padding: 10px 0; align-items: start; }
.else .th { display: block; border-radius: 7px; overflow: hidden; background: var(--deep); aspect-ratio: 16 / 9; }
.else .th img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; display: block; }
.else .t { font-weight: 750; font-size: 16px; line-height: 1.3; }
.else .n { font-size: 12.5px; font-weight: 650; color: var(--dim); margin-top: 2px; }
.else p { font-size: 14.5px; line-height: 1.45; margin: 4px 0 0; }
@media (max-width: 420px) { .else li { grid-template-columns: 104px 1fr; } }

/* the golden milestone: three sites, good friends */
.three { display: grid; gap: 12px; margin-top: 18px; }
@media (min-width: 700px) { .three { grid-template-columns: repeat(3, 1fr); } }
.three a { display: block; text-decoration: none; border-radius: var(--r); padding: 20px 18px 18px; min-height: 100%; }
.three img { height: 62px; width: auto; image-rendering: pixelated; display: block; margin-bottom: 10px; }
.three b { display: block; font-family: var(--fat); font-weight: 400; font-size: 24px; line-height: 1.1; }
.three span { display: block; font-size: 14.5px; line-height: 1.42; margin-top: 6px; opacity: .86; }
.three .doom { background: #0a0908; color: #ece5d6; } .three .doom b { color: #f7c62f; }
.three .ami { background: #100f24; color: #f0e8d4; }
.three .here { background: var(--marble); color: var(--ink); } .three .here b { font-family: var(--display); font-weight: 900; letter-spacing: .06em; color: var(--terra-d); font-size: 21px; }

.ruins { padding: 0; margin-top: 30px; }
.ruins img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
footer { background: #e9d9b6; padding: 30px 0 36px; font-size: 14px; color: #6d5d45; }
footer p { margin-bottom: .8em; }

/* the Sacred Way: a strip at the foot of the window; the fox walks it as you scroll */
.via { position: fixed; left: 0; right: 0; bottom: 0; height: 44px; z-index: 20; pointer-events: none; background: linear-gradient(rgba(245, 237, 220, 0), #f5eddc 10px); }
.via::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 16px; background: repeating-linear-gradient(90deg, #cdbf9f 0 22px, #b9aa89 22px 24px, #d6c9aa 24px 52px, #b9aa89 52px 54px, #c6b796 54px 70px, #b9aa89 70px 72px); box-shadow: inset 0 2px 0 #a79877; }
.via .fox { position: absolute; bottom: 12px; left: 0; width: 24px; z-index: 1; height: auto; image-rendering: pixelated; will-change: transform; }
.via .fox.step { margin-bottom: 2px; }
.via .ms { position: absolute; bottom: 1px; z-index: 1; font-family: var(--display); font-weight: 800; font-size: 10px; color: #7f704f; transform: translateX(-50%); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .colo .bird { transition: none; } }
