/* bloodangels.net (E-098) – composited from Aage's own mockup art. No JS, no inline styles.
   >=960px: "poster" mode, the page is a scaled replica of the mockup (sizes in cqw of .poster).
   <960px: stacked layout with the same art pieces. */
@font-face { font-family: "Uncial"; src: url("/fonts/uncial.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("/fonts/cinzel-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IM Fell"; src: url("/fonts/imfell.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "IM Fell"; src: url("/fonts/imfell-italic.ttf") format("truetype"); font-style: italic; font-display: swap; }

:root { --blood: #8e0f0f; --blood-dk: #4d0707; --gold: #d8b36a; --parch: #e9d9b4; --ink: #2a1a10; }
* { box-sizing: border-box; }
html { background: #09090a; }
body { margin: 0; color: var(--parch); font: 18px/1.5 "IM Fell", Georgia, serif; background: #09090a; }
a { color: var(--gold); }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--blood); color: #fff; padding: .5rem 1rem; z-index: 20; }
.skip-link:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.poster { container-type: inline-size; max-width: 1170px; margin: 0 auto; background: #151618 url("/img/metal.jpg"); box-shadow: 0 0 60px #000; }
.band { display: block; width: 100%; height: auto; }
.masthead { position: relative; }
.banner-link { display: block; }
.nav-band { position: relative; }
.pennants a { text-decoration: none; }

/* ---- stacked layout (default / phone / tablet) ---- */
.nav-img, .lower-bg, .rail-label { display: none; }
.pennants { display: flex; gap: .4rem; justify-content: center; padding: .75rem .6rem 1rem; }
.pen { flex: 1; max-width: 12rem; text-align: center; padding: .5rem .2rem 1.1rem; color: var(--blood-dk);
  font: 700 .72rem/1.15 "Cinzel", serif; letter-spacing: .04em; text-transform: uppercase;
  background: linear-gradient(180deg, #f2e4c3, var(--parch) 60%, #cdb582); border-top: 5px solid var(--blood);
  clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%); }
.pen[aria-current="page"], .pen:hover, .pen:focus-visible { background: linear-gradient(180deg, #c21d1d, var(--blood)); color: #f3e6c8; }

.lower { padding: .5rem .6rem 0; display: grid; gap: 1.5rem; }
.scroll { position: relative; }
.scroll > h2 { margin: 0; line-height: 0; }
.scroll > h2.bar { line-height: 1.2; }
.scroll .hd { display: block; width: 100%; height: auto; }
.scroll .body {
  position: relative; color: var(--ink); padding: 1rem 2.6rem 1.25rem;
  background: url("/img/rod-l.png") repeat-y left top / 2.4rem auto, url("/img/rod-r.png") repeat-y right top / 2.4rem auto, url("/img/parchment.jpg");
  box-shadow: 0 8px 20px rgba(0,0,0,.6);
}
.scroll h3 { font: 700 .95rem/1.2 "Cinzel", serif; text-transform: uppercase; margin: 0 0 .2rem; color: var(--ink); }
.scroll a { color: var(--blood); }
.scroll p { margin: 0 0 .7rem; }
.bar { font: 700 1.25rem/1.2 "Cinzel", serif; letter-spacing: .06em; text-transform: uppercase; text-align: center; color: var(--gold);
  background: linear-gradient(180deg, #6b1111, #3c0505); border: 3px solid #3b3d44; border-bottom-color: #14151a; padding: .55rem .75rem; margin: 0; box-shadow: inset 0 0 0 1px #a98a50; }
.card { display: grid; grid-template-columns: 90px 1fr; gap: .75rem; padding-bottom: .9rem; margin-bottom: .9rem; border-bottom: 1px dashed rgba(42,26,16,.35); }
.card:last-child { border: 0; margin: 0; padding: 0; }
.card img, .archive img, .chronicle-img { border: 2px solid #5a3a1e; display: block; }
.card h3 a, .archive a { color: var(--ink); text-decoration: none; }
.card .ex { font-size: .95rem; margin: 0 0 .3rem; }
.meta { font-size: .85rem; font-style: italic; color: #5b4330; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.mini-btn { display: inline-block; font: 700 .7rem/1 "Cinzel", serif; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  color: #3a2410 !important; padding: .35rem .6rem; background: linear-gradient(180deg, #e0c58a, #b58f4e); border: 1px solid #6b4a1e; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.articles-label { font: 700 .75rem "Cinzel", serif; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .4rem !important; }
.archive { list-style: none; margin: 0; padding: 0; }
.archive li { display: grid; grid-template-columns: 74px 1fr; gap: .7rem; align-items: center; padding: .5rem 0; border-bottom: 1px dashed rgba(42,26,16,.35); }
.archive li:last-child { border: 0; }
.archive a { font: 700 .9rem/1.2 "Cinzel", serif; text-transform: uppercase; }
.archive.full strong { font: 700 .9rem "Cinzel", serif; text-transform: uppercase; }
.oaths { list-style: none; margin: 0; padding: 0; text-align: center; }
.oaths li { padding: .6rem 0; position: relative; }
.oaths li + li::before { content: ""; display: block; width: .45rem; height: .45rem; margin: 0 auto .5rem; background: var(--blood); transform: rotate(45deg); }
.oaths h3 { font-size: .85rem; }
.oaths p { font-style: italic; font-size: .95rem; margin: 0; }
.steps { padding-left: 1.4rem; }
.men-in, .men-in-btn { display: block; width: 222px; max-width: 100%; height: 88px; margin: 0 auto; background: url("/img/btn.png") center / contain no-repeat; }
.men-in:hover, .men-in-btn:hover, .men-in:focus-visible, .men-in-btn:focus-visible { filter: brightness(1.35) saturate(1.2); }
.men-in { margin: 0 auto 1rem; }

/* inner pages */
.frame-mid { padding: 1.25rem .9rem 1.5rem; background: linear-gradient(180deg, #1b2027, #14181d); border-left: 4px solid #2c2f35; border-right: 4px solid #2c2f35; }
.page-head { text-align: center; max-width: 760px; margin: 0 auto 1.25rem; }
.page-head h1 { font: 700 2rem/1.15 "Cinzel", serif; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin: 0 0 .5rem; text-shadow: 0 2px 0 #2a0505; }
.page-head .lead { margin: 0; color: var(--parch); font-size: 1.1rem; }
.scrolls { display: grid; gap: 1.5rem; max-width: 1000px; margin: 0 auto; }
.prose h2 { font: 700 1.1rem "Cinzel", serif; text-transform: uppercase; color: var(--blood); letter-spacing: .06em; margin: 1rem 0 .35rem; border-bottom: 1px solid rgba(142,15,15,.35); }
.prose h2:first-child { margin-top: 0; }
blockquote { margin: 1.1rem 0 0; padding: .8rem 1rem; border-left: 4px solid var(--blood); font-style: italic; font-size: 1.1rem; background: rgba(142,15,15,.08); }
.chronicle-img { float: right; margin: 0 0 .75rem 1rem; }
.chronicle .bar { font-size: 1.4rem; }
.center { text-align: center; margin: 1.5rem 0 0; }
.cap { margin-top: 0; }

.site-footer { text-align: center; padding: 1.25rem 1rem 1.75rem; font-size: .95rem; color: #b8a888; background: #0f1012; border-top: 2px solid #2c2f35; }
.site-footer .tagline { font: 1.4rem "Uncial", serif; color: var(--gold); margin: 0 0 .5rem; }
.site-footer p { margin: .35rem 0; }
.placeholder-note { color: #e0a060; font-style: italic; }
.fan-notice { font-size: .8rem; color: #8f8470; }

/* ---- poster mode ---- */
@media (min-width: 960px) {
  .nav-img { display: block; }
  .rail-label { display: block; position: absolute; left: 11.4%; top: 84.6%; font: 700 1.9cqw/1 "Cinzel", serif; letter-spacing: .04em; color: #efe0bd; text-transform: uppercase; pointer-events: none; }
  .pennants { display: block; padding: 0; gap: 0; }
  .pen { position: absolute; top: 0; height: 86%; max-width: none; padding: 0; background: none; border: 0; clip-path: none; }
  .pen span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .pen-1 { left: 18.1%; width: 18.6%; } .pen-2 { left: 40.5%; width: 19.1%; } .pen-3 { left: 63.3%; width: 18.8%; }
  .pen[aria-current="page"], .pen:hover { background: none; box-shadow: none; filter: drop-shadow(0 0 .5cqw #e33); }
  .pen:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }

  .lower { display: block; padding: 0; position: relative; }
  .lower-bg { display: block; }
  .lower .scroll { position: absolute; }
  .lower .scroll > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .lower .scroll .body { padding: 0; background: none; box-shadow: none; height: 100%; font-size: 1cqw; }
  .lower .hd { display: none; }
  .s1 { left: 15.0%; top: 15.4%; width: 25.9%; height: 65.9%; }
  .s2 { left: 49.4%; top: 15.4%; width: 16.9%; height: 65.9%; }
  .s3 { left: 71.0%; top: 28.9%; width: 17.4%; height: 40.5%; }
  .lower .men-in { position: absolute; left: 70.4%; top: 71.4%; width: 18.3%; height: 15.8%; background: none; margin: 0; }
  .lower .men-in:hover, .lower .men-in:focus-visible { background: rgba(255,60,40,.12); filter: none; outline-offset: -3px; }

  .lower .scroll h3 { font-size: .98cqw; margin: 0 0 .25cqw; }
  .lower .card { grid-template-columns: 7.7cqw 1fr; gap: 1.1cqw; padding-bottom: .8cqw; margin-bottom: .8cqw; border-bottom: 1px dashed rgba(42,26,16,.3); }
  .lower .card:last-child { border: 0; margin: 0; padding: 0; }
  .lower .card img { width: 100%; height: auto; border-width: .17cqw; }
  .lower .card h3 { font-size: 1.02cqw; line-height: 1.15; }
  .lower .card .ex { font-size: .98cqw; line-height: 1.22; margin: 0 0 .45cqw; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .lower .meta { font-size: .8cqw; }
  .lower .mini-btn { font-size: .66cqw; padding: .3cqw .6cqw; }
  .lower .articles-label { font-size: .78cqw; margin: 0 0 .1cqw !important; padding-left: .2cqw; }
  .lower .archive li { grid-template-columns: 6.1cqw 1fr; gap: .9cqw; padding: .55cqw 0; }
  .lower .archive img { width: 100%; height: auto; border-width: .15cqw; }
  .lower .archive a { font-size: .9cqw; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .lower .archive li:nth-child(n+5) { display: none; }
  .lower .oaths li { padding: .55cqw 0 .45cqw; }
  .lower .oaths li + li::before { width: .38cqw; height: .38cqw; margin-bottom: .4cqw; }
  .lower .oaths h3 { font-size: .9cqw; }
  .lower .oaths p { font-size: .9cqw; line-height: 1.22; }

  /* inner pages: metal side columns repeat, content panel in the middle */
  .frame-mid { padding: 1.5cqw 12.5cqw 2cqw; border: 0;
    background: url("/img/side-l.jpg") repeat-y left top / 11.11% auto, url("/img/side-r.jpg") repeat-y right top / 11.11% auto, linear-gradient(180deg, #1b2027, #14181d); }
  .frame-mid .scrolls { max-width: none; }
  .frame-mid .scrolls:not(.single) { grid-template-columns: 1.6fr 1fr; align-items: start; }
  .frame-mid .scrolls.trio { grid-template-columns: 1fr 1fr; }
  .frame-mid .scrolls.trio .wide { grid-column: 1 / -1; }
  .frame-mid .page-head h1 { font-size: 2.4cqw; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .pen { font-size: .62rem; }
  .card { grid-template-columns: 72px 1fr; }
  .card img { width: 72px; height: auto; }
  .chronicle-img { float: none; margin: 0 0 .75rem; }
  .scroll .body { padding: 1rem 2.2rem 1.25rem; }
}
@media (min-width: 641px) and (max-width: 959px) {
  .lower { max-width: 640px; margin: 0 auto; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
