/* forgottengothic.com. Colours from channels/forgotten-gothic/channel.json (the lantern palette);
   the logotype crimson #B3221C is the red on banner B and appears in the logotype only.
   Contrast (WCAG 2.2 AA) is checked by site/test/site.test.mjs for every text colour below. */
@font-face { font-family: "League Gothic"; src: url("/fonts/league-gothic-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("/fonts/eb-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("/fonts/eb-garamond-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --room: #0A0806;
  --glass: #16100B;
  --rule: #2A2019;
  --lamplight: #F6D99B;
  --text: #EADBB8;
  --muted: #C2AE86;
  --link: #F2CE8A;
  --crimson: #B3221C;
  --display: "League Gothic", "Arial Narrow", Impact, sans-serif;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--room); color: var(--text); font-family: var(--serif); font-size: 118.75%; line-height: 1.6; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--lamplight); }
:focus-visible { outline: 2px solid var(--lamplight); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 2; background: var(--glass); padding: 0.4rem 0.8rem; }
.wrap { max-width: 42rem; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }

.masthead { padding: 2.4rem 1.25rem 1.6rem; text-align: center; border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; flex-direction: column; align-items: center; gap: 0.9rem; text-decoration: none; }
.disc { display: block; width: 96px; height: 96px; border-radius: 50%; }
.logotype { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 8.6vw, 4.5rem); line-height: 0.9; letter-spacing: 0.02em; text-transform: uppercase; color: var(--lamplight); }
.logotype .dark { color: var(--crimson); }
.tagline { margin: 0.7rem 0 0; font-size: clamp(0.78rem, 3.5vw, 0.95rem); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
nav { margin-top: 1.4rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem 1.5rem; }
nav a { font-family: var(--display); font-size: 1.3rem; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; }
nav a[aria-current="page"] { color: var(--lamplight); text-decoration: underline; text-underline-offset: 0.25em; }

main { padding-top: 2rem; padding-bottom: 2.5rem; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1; letter-spacing: 0.03em; text-transform: uppercase; color: var(--lamplight); }
h1 { margin: 0 0 1.1rem; font-size: 2.6rem; }
h2 { margin: 2.2rem 0 0.7rem; font-size: 1.8rem; }
p { margin: 0 0 1rem; }
.lede { font-size: 1.25rem; }
.updated, .episodes time { color: var(--muted); }
.channel { margin-top: 2rem; }

.latest .empty { font-style: italic; }
.episodes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.4rem; }
.episodes a { display: block; text-decoration: none; }
.episodes img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 4px; }
.ep-title { display: block; margin-top: 0.5rem; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.episodes time { display: block; font-size: 0.9rem; }

footer { border-top: 1px solid var(--rule); padding-top: 1.4rem; padding-bottom: 2.6rem; text-align: center; font-size: 0.95rem; color: var(--muted); }
footer p { margin: 0; }
