/* /links/ — the link page for social profiles (no site header or menu): its own CSS, the one
   exception to the one site.css rule (CLAUDE.md). Light and dark, as the site. Made 2026-11-11 from the old
   base.css, links.css, ars.css and consent.css, in that order. */

/* --- base --- */
/* The look every page shares. A page adds its own styles only for what is
   its alone (see CLAUDE.md). */

@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald-latin.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}

:root {
  --ink: #f1f3f5;
  --ink-soft: #ced4da;
  --ground: #1e344c;
  --gold: #d9b45b;
  --heading: "Oswald", "Arial Narrow", sans-serif;
  --text: "Times New Roman", Times, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

/* The site's one background, on every page, defined here only: the app's
   backdrop. Black, a faint gold glow rising from the foot, and the runes in
   faint rows turned 12 degrees, as the app draws them. */
body {
  margin: 0;
  color: var(--ink);
  background: #000 radial-gradient(120% 55% at 50% 100%, #0e0a04, #070503 50%, #000) fixed;
  font: 17px/1.45 var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.15;
  transform: rotate(-12deg);
  background: url("../images/backdrops/runes.webp") 0 0 / 840px 480px;
}

/* Everything on a page stands in front of its backdrop. */
body > * { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* The default button, the links page's own: at least 56px tall, the full
   width of its column. A page sets only its colours and what it holds. */
.button {
  position: relative;
  display: block;
  margin: 0 0 14px;
  padding: 14px 24px;
  min-height: 56px;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s, filter 0.15s;
}

.button:hover { transform: translateY(-1px); filter: brightness(1.08); }

/* An inner page's header: a round back button on the left, the page's name
   in the middle, kept centred by an empty cell on the right. */
.page-head {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  margin: 0 0 26px;
}

.page-head h1 {
  margin: 0;
  text-align: center;
  font: 400 32px/1.2 var(--heading);
  text-transform: uppercase;
}

.back-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(241, 243, 245, 0.25);
  transition: transform 0.15s, filter 0.15s;
}

.back-button:hover { transform: translateY(-1px); filter: brightness(1.15); }

/* A phone flashes a square over whatever is tapped; every button here draws
   its own press instead, in its own shape. */
a, button { -webkit-tap-highlight-color: transparent; }
.back-button:active,
.button:active,
.store:active { filter: brightness(1.4); }
.back-button svg { width: 26px; height: 26px; }

/* The cookie question (js/consent.js): pinned to the foot of the window,
   above a phone's own bar, until the visitor answers it. */
.consent {
  position: fixed;
  z-index: 20;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 20px;
  border: 1px solid rgba(217, 180, 91, 0.55);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.92);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  font-size: 16px;
  line-height: 1.4;
}

.consent p { flex: 1 1 300px; margin: 0; }
.consent a { color: var(--gold); }
.consent-actions { display: flex; gap: 10px; margin-left: auto; }

.consent button {
  min-height: 44px;
  padding: 0 22px;
  border-radius: 8px;
  font: 400 17px var(--heading);
  text-transform: uppercase;
  cursor: pointer;
}

.consent-decline {
  border: 1px solid rgba(241, 243, 245, 0.35);
  background: none;
  color: var(--ink-soft);
}

.consent-accept {
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #000;
}

@media (max-width: 520px) {
  .consent-actions { width: 100%; }
  .consent button { flex: 1; }
}

/* A quiet row of links at a page's foot, above its version. */
.foot-links { margin: 0 0 10px; font-size: 14px; }
.foot-links a { color: rgba(241, 243, 245, 0.7); }

/* The site's version, at the foot of every page. */
.site-foot {
  text-align: center;
  font: 12px var(--text);
  color: rgba(241, 243, 245, 0.45);
  padding: 32px 16px 24px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* --- links --- */
/* The links page: Alex Eagle's Taplink page, copied as it looks — the
   emblem and a column of coloured buttons, on the site's one background. */


.links {
  position: relative;
  max-width: 824px;   /* Taplink's 792px column, plus the side margins */
  margin: 0 auto;
  padding: 16px 16px 8px;
  text-align: center;
}

/* The header: the emblem, and the name beside it, centred. */
.home-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 6px 0 18px;
  text-align: left;
}

/* The emblem is as tall as the name and its two lines of motto. */
.avatar {
  flex: none;
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

.links h1 {
  margin: 0;
  font: 400 42px/1.05 var(--heading);
  text-transform: uppercase;
  color: var(--ink);
}

/* The motto under the name: the mantra in Sanskrit, then its meaning. Each
   line's size makes it exactly as wide as "ALEX EAGLE" above it. The fonts,
   Tiro Devanagari Sanskrit and Cinzel, hold only the letters these two lines
   use, so they have names of their own that no other text can pick up. */
@font-face {
  font-family: "Motto Devanagari";
  src: url("../fonts/tiro-devanagari-sanskrit-mantra.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Motto Cinzel";
  src: url("../fonts/cinzel-motto.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* On the narrowest phones (320px) the header fits only with a smaller gap. */
@media (max-width: 340px) { .home-head { gap: 10px; } }

/* The name and the motto's two lines are stacked boxes with a gap between
   them. Each line is tall enough for its own letters, the Sanskrit's marks
   above and below included, so no browser can draw one line into another. */
.home-head .name { display: flex; flex-direction: column; gap: 3px; }

.home-head h1 { line-height: 1; }

.motto { display: flex; flex-direction: column; gap: 3px; margin: 0; white-space: nowrap; }

.motto .mantra {
  color: var(--gold);
  font: 400 19.89px/1.3 "Motto Devanagari", serif;
  /* The English line sits up close under the Sanskrit; the room above the
     Sanskrit, for its top marks, stays. */
  margin-bottom: -7px;
}

.motto .meaning {
  color: #e6e6e6;
  font: 500 11.63px/1.15 "Motto Cinzel", serif;
}


/* A section: its heading, centred, then its buttons. */
.links h2 {
  margin: 0;
  padding: 26px 0 12px;
  font: 400 32px/1.2 var(--heading);
  text-transform: uppercase;
  color: var(--ink);
}

/* Each button's colour; its size is site.css's default button. */
.button { background: var(--bg, #fff); }

.button .title {
  display: block;
  font: 400 17px/1.3 var(--heading);
  text-transform: uppercase;
}

.button .sub {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.35;
  opacity: 0.85;
}

.button:has(.icon) { padding-left: 68px; padding-right: 68px; }

.button .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 40px;
  height: 40px;
  transform: translateY(-50%);
  filter: invert(1);
}

/* A logo heavier than the others (Patreon's solid mark) is drawn smaller. */
.button .icon.small { left: 16px; width: 32px; height: 32px; }

/* A button whose ground is white: dark-orange words, as on Taplink. */
.button.light { color: #e8590c; }

.button.outlined { border-color: rgba(204, 93, 232, 0.9); }

/* Taplink's two attention effects, as its own stylesheet defines them. */

/* "blink": a white bar, turned 45 degrees, sweeps across the button from
   left to right, once every three seconds. */
.blink { overflow: hidden; }
.blink::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  z-index: 1;
  width: 1rem;
  height: 100%;
  background: #fff;
  opacity: 0.9;
  transform: rotate(45deg) scale(2);
  animation: shine 3s linear infinite;
}
@keyframes shine {
  0% { left: -100%; }
  20%, 100% { left: 120%; margin-left: 5rem; }
}

/* "buzz": a quick shake in the first fifth of every three seconds. */
.buzz { animation: buzz 3s linear infinite; }
@keyframes buzz {
  0%, 4% { transform: translateX(3px) rotate(1deg); }
  2%, 6% { transform: translateX(-3px) rotate(-1deg); }
  8%, 12% { transform: translateX(2px) rotate(1deg); }
  10%, 14% { transform: translateX(-2px) rotate(-1deg); }
  16%, 18% { transform: translateX(1px) rotate(1deg); }
  20%, 100% { transform: translateX(0) rotate(0); }
}

/* A few words about Alex, in a black card with a gold edge like the card
   buttons, in the headings' font; the Patreon button follows outside it. */
.about-card {
  margin: 0 0 12px;
  padding: 18px 16px;
  border: 1px solid rgba(217, 180, 91, 0.65);
  border-radius: 12px;
  background: #000;
}

.about { margin: 0; color: #d8d8d8; font: 400 17px/1.5 var(--heading); text-align: left; }

/* The home page's card buttons: one element for the app, the Study pages and
   the courses. Black, a gold edge, a picture fading in on the right, and a
   chevron; every one at least the same height. */
.card-buttons { display: grid; gap: 8px; }

.card-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 12px 16px;
  overflow: hidden;
  border: 1px solid rgba(217, 180, 91, 0.65);
  border-radius: 12px;
  background: #000;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
}

.card-button:hover { filter: brightness(1.1); }

.card-button .pic {
  position: absolute;
  top: 0;
  right: 0;
  width: 170px;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.card-button::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 170px;
  height: 100%;
  background: linear-gradient(90deg, #000, rgba(0, 0, 0, 0) 60%);
  pointer-events: none;
}

.card-button .ico { position: relative; z-index: 1; flex: none; width: 52px; height: 52px; border-radius: 12px; }

.card-button .words { position: relative; z-index: 1; flex: 1; max-width: calc(100% - 150px); }

/* A card button with no picture gives its words the whole width. */
.card-button:not(:has(.pic)) .words { max-width: none; }

.card-button .title {
  display: block;
  color: var(--gold);
  font: 400 22px/1.15 var(--heading);
  text-transform: uppercase;
}

.card-button .sub { display: block; margin-top: 3px; color: #d8d8d8; font: 400 15px/1.3 var(--heading); }

.card-button .chev {
  position: relative;
  z-index: 1;
  margin-left: auto;
  color: var(--gold);
  font: 400 30px/1 var(--heading);
  text-shadow: 0 0 6px #000;
}

/* The quiet link under a section of card buttons. */
.more-link {
  display: block;
  margin: 12px 0 0;
  color: var(--gold);
  font: 400 16px var(--heading);
  letter-spacing: 0.06em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

/* The courses page opens with the site's page header rather than the emblem. */
.links .page-head { text-align: center; }

/* --- Ars Vajrae colours --- */
/* The Ars Vajrae theme over the arsvajrae.com links design: black
   ground with a faint indigo tint, old gold accents, the big site's title. */
/* Light by default, dark with html[data-theme=dark] — the visitor's choice on the site. */
:root{--ink:#2a2620;--ink-soft:#7a7266;--gold:#B8902F;--gold-l:#E6C76A;--gold-d:#7E5E17;--url:#8a6a22;--line:#ece4d2;--soft:#fbf8f1;--card:#fffaf0;--bg:#fff;--gt:#8a6a1f;--ground:#fff}
html[data-theme=dark]{--ink:#ece4d2;--ink-soft:#a59c8a;--gold:#c9a24a;--gold-l:#ecd08a;--gold-d:#d9b768;--url:#a59c8a;--line:#2a2535;--soft:#15131f;--card:#15131f;--bg:#0a0910;--gt:#ecd08a;--ground:#0a0910}
body{background:var(--bg);color:var(--ink)}
body::before{display:none}
.links h2{color:var(--ink)}
.home-head{justify-content:center;margin-bottom:-6px}
.brand{display:flex;align-items:center;gap:14px;text-decoration:none}
.brand img{width:64px;height:64px} .brand .t{display:flex;flex-direction:column;line-height:1;text-align:left;gap:0}
.brand .name{line-height:.95;font:600 30px/.95 'Cinzel',serif;letter-spacing:.04em;background:linear-gradient(135deg,var(--gold-l),var(--gold) 50%,#a7802c);-webkit-background-clip:text;background-clip:text;color:transparent}
.brand .url{font:500 16px/1 'Cinzel',serif;letter-spacing:.2em;color:var(--url);margin-top:6px}
.card-button,.about-card{background:var(--card);border-color:rgba(201,162,74,.45);color:var(--ink)}
.card-button::after{background:linear-gradient(90deg,var(--card),transparent 60%)}
.card-button .title,.more-link{color:var(--gold-d)}
.card-button .sub,.about{color:var(--ink-soft)}
.button.gold{--bg:var(--card)!important;color:var(--gt);border-color:var(--gold)!important}
.site-foot .version{color:#6f6758}
@media(max-width:520px){.brand img{width:52px;height:52px}.brand .name{font-size:24px}.brand .url{font-size:12px;letter-spacing:.18em}}
.more-link.big{display:block;margin-top:14px;padding:14px;border:1px solid var(--gold);border-radius:8px;text-align:center}
.about-card .learn{display:block;text-align:center;margin:12px 0 0}

/* --- cookie question --- */
/* The cookie question (js/consent.js), pinned to the foot of the window. */
.consent{position:fixed;z-index:30;left:16px;right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));display:flex;flex-wrap:wrap;align-items:center;gap:12px 22px;max-width:760px;margin:0 auto;padding:16px 20px;background:var(--card);border:1px solid var(--line);border-radius:16px;box-shadow:0 10px 34px rgba(0,0,0,.25);font-size:16px;color:var(--ink)}
.consent p{flex:1 1 300px;margin:0}
.consent-actions{display:flex;gap:10px;margin-left:auto}
.consent button{min-height:44px;padding:0 22px;border-radius:999px;font:600 13px 'Cinzel',serif;letter-spacing:.12em;text-transform:uppercase;cursor:pointer}
.consent-decline{border:1px solid var(--line);background:none;color:var(--ink-soft)}
.consent-accept{border:0;color:#1a1408;background:linear-gradient(135deg,#ecd08a,#c9a24a)}
@media (max-width:520px){.consent-actions{width:100%}.consent button{flex:1}}
/* "What is Ars Vajrae?": two buttons under the text, like "Explore all articles" — the first filled gold (2026-11-12). */
.more-link.big.fill{background:var(--gold);color:#1a1408;border-color:var(--gold)}
.more-link.big+.more-link.big{margin-top:10px}
/* The site's header picture on top, fading into the background; the logo over its foot (2026-11-12). */
.hero2{margin:0 -16px;position:relative}
.hero2 img{display:block;width:100%;height:auto;aspect-ratio:2/1;object-fit:cover;object-position:50% 30%;-webkit-mask-image:linear-gradient(180deg,#000 70%,transparent);mask-image:linear-gradient(180deg,#000 70%,transparent)}
.hero2+.home-head{margin-top:-34px;position:relative}
/* No gap above the picture: it starts at the very top of the window (2026-11-12). */
.links:has(>.hero2){padding-top:0}
/* Header picture across the whole window, whole and never cropped (it only scales); the logo
   larger, just under it; less space before the first section (2026-11-12). */
.hero2{margin:0 calc(50% - 50vw);width:100vw}
.hero2 img{aspect-ratio:auto;width:100%;height:auto;max-height:none;object-fit:fill}
.hero2+.home-head{margin-top:-4px;margin-bottom:0}
.links:has(>.hero2) .brand img{width:76px;height:76px}
.links:has(>.hero2) .brand .name{font-size:34px}
.home-head+section h2{padding-top:10px}
@media(max-width:520px){.links:has(>.hero2) .brand img{width:60px;height:60px}.links:has(>.hero2) .brand .name{font-size:27px}}
/* The full-width picture (100vw) must not add a sideways scroll where the scrollbar takes width. */
html,body{overflow-x:clip}
/* Articles: a 3×3 grid, the title on the picture; a round refresh button shows 9 others (2026-11-12). */
.sh{position:relative;display:flex;justify-content:center;align-items:center}
.sh h2{flex:none}
.rf{position:absolute;right:0;top:50%;transform:translateY(-35%);display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:1px solid var(--gold);border-radius:50%;background:#000;color:var(--gold);cursor:pointer}
.rf.spin svg{animation:rfspin .5s ease}@keyframes rfspin{to{transform:rotate(360deg)}}
.ga{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.ta{position:relative;display:block;aspect-ratio:1;border-radius:10px;overflow:hidden;border:1px solid rgba(217,180,91,.45)}
.ta img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .3s}.ta:hover img{transform:scale(1.04)}
.ta span{position:absolute;left:0;right:0;bottom:0;padding:24px 8px 8px;background:linear-gradient(0deg,rgba(0,0,0,.92),transparent);font:400 15px/1.15 var(--heading);text-transform:uppercase;color:var(--gold);text-align:left}
@media(max-width:520px){.ta span{font-size:12px;padding:20px 6px 6px}.rf{width:36px;height:36px}}
/* Larger titles on the article tiles (2026-11-12). */
.ta span{font-size:19px;line-height:1.12;padding:30px 10px 10px}
@media(max-width:520px){.ta span{font-size:14.5px;padding:22px 7px 7px}}
/* Articles: 7 compact buttons — the title on the left, the whole picture on the right fading in (2026-11-12). */
.al{display:flex;flex-direction:column;gap:8px}
.ab{position:relative;display:flex;align-items:center;height:72px;padding:0 14px;border:1px solid rgba(217,180,91,.55);border-radius:10px;background:#000;overflow:hidden;color:var(--gold);text-decoration:none;text-align:left;transition:border-color .2s}
.ab:hover{border-color:var(--gold)}
.ab img{position:absolute;right:0;top:0;height:100%;width:auto;-webkit-mask-image:linear-gradient(90deg,transparent,#000 45%);mask-image:linear-gradient(90deg,transparent,#000 45%)}
.ab span{position:relative;z-index:1;flex:1;min-width:0;max-width:68%;font:400 21px/1.12 var(--heading);text-transform:uppercase;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ab i{position:relative;z-index:1;margin-left:auto;font-style:normal;font-size:24px;text-shadow:0 0 6px #000}
@media(max-width:520px){.ab span{font-size:18px}}
/* Article button: where it is from (Practice · Reflection, Blog, Runes & Norse …) above the title, one line (2026-11-12). */
.ab span{display:flex;flex-direction:column;gap:3px;-webkit-line-clamp:unset}
.ab span small{font:400 11.5px/1 var(--heading);letter-spacing:.16em;text-transform:uppercase;color:#a59c8a}
.ab span b{font:400 20px/1.1 var(--heading);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:520px){.ab span b{font-size:17px}}
/* Larger text on the article buttons, filling their height (2026-11-12). */
.ab span{gap:4px}
.ab span small{font-size:13.5px;letter-spacing:.14em}
.ab span b{font-size:24px;line-height:1.05}
@media(max-width:520px){.ab span small{font-size:12.5px}.ab span b{font-size:22px}}
/* Refresh: a "shuffle" sign on a soft dark-gold circle, no edge (2026-11-12). */
.rf{border:0;background:rgba(217,180,91,.16)}
.rf:hover{background:rgba(217,180,91,.26)}
.about-card .about+.about{margin-top:10px}

/* Links page lists (build.py links_sections, 2026-11-12): book cards as on the home page —
   3 a row on a phone, all 6 in one row wider. */
/* Home books (build.py home_books, 2026-11-12): the book covers' own styles (from page.css), the
   traditions' colours, and the card — cover on top, a strip in the tradition's colour below. */
.cover{width:140px;flex-shrink:0;aspect-ratio:2/3;border-radius:8px;background:linear-gradient(160deg,#2a2016,#5a4320);display:flex;align-items:center;justify-content:center;text-align:center;padding:12px;box-shadow:0 8px 24px rgba(0,0,0,.18)}
.cover span{font:600 15px/1.3 'Cinzel','Source Serif 4',serif;color:#E6C76A}
html[data-theme=dark] .cover{box-shadow:0 8px 24px rgba(0,0,0,.5)}
.cover.tpl .fr{height:100%;border:1px solid #B8902F;outline:1px solid rgba(230,199,106,.35);outline-offset:-5px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:10px;box-sizing:border-box;text-align:center;overflow:hidden}
.cover.tpl .sy{font-size:22px;color:#E6C76A;line-height:1}
.cover.tpl h3{margin:0;font:600 15px/1.15 'Cinzel','Source Serif 4',serif;background:linear-gradient(135deg,#E6C76A,#B8902F 45%,#7E5E17);-webkit-background-clip:text;background-clip:text;color:transparent;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
.cover.tpl .ln{width:36px;height:1px;background:#B8902F;flex-shrink:0}.cover.tpl p{margin:0;font-style:italic;color:#d2c8b3;font-size:11.5px;line-height:1.3}.cover.tpl small{font-size:8.5px;color:#a59c8a;letter-spacing:.05em;line-height:1.3}
.tb-buddhism{--tc:#E3A33B}.tb-tibetan{--tc:#C8453C}.tb-hindu{--tc:#F07A2A}.tb-bible{--tc:#5d6b7c}html[data-theme=dark] .tb-bible{--tc:#EDE8DA}.tb-judaism{--tc:#5B9BE6}.tb-islam{--tc:#2FB37A}.tb-tao{--tc:#4FB9A8}.tb-confucian{--tc:#B98A3E}.tb-zoro{--tc:#F2B33D}.tb-shinto{--tc:#E0674F}.tb-norse{--tc:#7FA3CF}
.bk{display:flex;flex-direction:column;border-radius:10px;overflow:hidden;background:#000;text-decoration:none;color:inherit}
.bk .cw{display:block;width:100%;aspect-ratio:3/4;overflow:hidden;container-type:inline-size}
.bk .cover{margin:0!important;border-radius:0!important;box-shadow:none!important}
.bk .cover.img{padding:0!important;background:none!important;width:100%!important;height:100%!important}
.bk .cover.img img{width:100%;height:100%;object-fit:cover;object-position:top;border-radius:0}
.bk .cover.tpl{display:block!important;width:100%!important;height:100%!important;padding:6cqw!important;box-sizing:border-box}
.bk .cover.tpl .fr{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:3cqw;width:100%!important;height:100%!important;box-sizing:border-box;padding:6cqw!important;overflow:hidden;min-width:0;outline-offset:-2.5cqw}
.bk .cover.tpl .sy{font-size:9cqw!important}.bk .cover.tpl h3{font-size:8.5cqw!important;line-height:1.15!important;max-width:100%;overflow-wrap:anywhere}
.bk .cover.tpl .ln{width:20cqw}.bk .cover.tpl p{font-size:5.5cqw!important;max-width:100%;overflow-wrap:anywhere}.bk .cover.tpl small{font-size:4.6cqw!important;max-width:100%}
.bk.tb .cover.tpl{background:radial-gradient(ellipse at 50% 30%,color-mix(in srgb,var(--tc) 25%,#100c08),#100c08 75%)}
.bk.tb .cover.tpl .fr{border-color:var(--tc);outline-color:color-mix(in srgb,var(--tc) 40%,transparent)}.bk.tb .cover.tpl .sy{color:var(--tc)}.bk.tb .cover.tpl h3{background:none;color:var(--tc)}.bk.tb .cover.tpl .ln{background:var(--tc)}
.bk .tx{flex:1;display:flex;flex-direction:column;gap:4px;padding:9px 10px 11px;border-top:3px solid var(--tc,#c9a24a);background:color-mix(in srgb,var(--tc,#c9a24a) 14%,#0d0b12);text-align:center}
.bk .tx small{font:600 9.5px 'Cinzel','Source Serif 4',serif;letter-spacing:.14em;text-transform:uppercase;color:var(--tc,#c9a24a)}
.bk .tx b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font:600 14px/1.25 'Source Serif 4',serif;color:#ecd08a}
html[data-sf] .bk .tx small{font-family:var(--sf),serif}
/* Home books: a frame in the tradition's colour around the whole card; the grid — 2×6 wide,
   3×4 on a tablet, 3×3 narrower, 3×2 on a phone (2026-11-12). */
.bk{border:2px solid var(--tc,#c9a24a)}
.bk .tx{border-top-width:2px}

/* Home apps (build.py home_apps, 2026-11-12): the app card's styles from page.css; traditions in two rows. */
.apc{position:relative;overflow:hidden;max-width:860px;margin:6px auto 34px;min-height:200px;border:1px solid rgba(230,199,106,.3);border-radius:20px;background:radial-gradient(ellipse at 0% 0%,rgba(230,199,106,.12),transparent 60%),var(--card,#15131f);color:var(--ink)}
.apc-pic{position:absolute;inset:0 0 0 45%;background:url(/images/apps/runic-order-odin.webp) center 20%/cover;-webkit-mask-image:linear-gradient(90deg,transparent,#000 50%);mask-image:linear-gradient(90deg,transparent,#000 50%)}
.apc-in{position:relative;display:flex;gap:22px;align-items:center;padding:26px;max-width:62%}
.apc-ic{width:96px;height:96px;border-radius:22px;flex:none;box-shadow:0 0 0 2px #c9a24a,0 10px 28px rgba(0,0,0,.6)}
.apc-k{display:block;font:500 10.5px 'Cinzel','Source Serif 4',serif;letter-spacing:.22em;text-transform:uppercase;color:var(--gold)}
.apc .apc-n{font:600 28px/1.15 'Cinzel','Source Serif 4',serif;margin:4px 0;text-align:left;background:linear-gradient(135deg,#ecd08a,var(--gold) 45%,#d9b45b);-webkit-background-clip:text;background-clip:text;color:transparent}
.apc-t{margin:0;font:italic 400 18px/1.35 'Source Serif 4',serif;color:#ecd08a}
.apc-st{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.apc-b{position:relative;display:inline-flex;align-items:center;gap:7px;height:44px;box-sizing:border-box;padding:6px 12px 6px 10px;border:1px solid #555;border-radius:9px;background:#000;color:#fff;text-decoration:none}
.apc-b svg{width:20px;height:20px;fill:#fff;flex:none}.apc-b small{display:block;font-size:9px;line-height:1;opacity:.8;white-space:nowrap}.apc-b b{display:block;font:500 15px/1.1 'Cinzel','Source Serif 4',serif;white-space:nowrap}
.apc-later{opacity:.7;cursor:default}
.apc-b em{position:absolute;top:-8px;right:-6px;padding:2px 6px;border:1px solid var(--gold);border-radius:999px;background:var(--card,#15131f);color:var(--gold);font:500 8.5px/1 'Cinzel','Source Serif 4',serif;font-style:normal;letter-spacing:.08em;text-transform:uppercase}
.apc-end{margin:40px 0 0}.app-page .apc-end>h2{text-align:center}
#h-apps .apc{max-width:860px;margin:0 auto}
.apc .apc-n{font:600 28px/1.15 'Cinzel','Source Serif 4',serif;margin:4px 0;text-align:left}
.apc .apc-n a{text-decoration:none;background:linear-gradient(135deg,#ecd08a,var(--gold) 45%,#d9b45b);-webkit-background-clip:text;background-clip:text;color:transparent}
/* A tradition card's section (Gods, Runes, Rune stones …) on its picture, top left (2026-11-12). */
.sc .im{position:relative}
.sc .im u{position:absolute;left:8px;top:8px;max-width:calc(100% - 16px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none;padding:3px 9px;border-radius:999px;background:rgba(0,0,0,.65);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);font:600 9.5px 'Cinzel','Source Serif 4',serif;letter-spacing:.12em;text-transform:uppercase;color:#ecd08a}
html[data-sf] .sc .im u{font-family:var(--sf),serif}
/* The order's text: three paragraphs, centred, small gap between them (2026-11-12). */
.title .lead{margin:0 auto 12px}.title .lead:last-of-type{margin-bottom:26px}
/* The order's text in a card as wide as the two buttons, left-aligned (2026-11-12). */
.title .leadc{max-width:680px;box-sizing:border-box;margin:0 auto 18px;padding:20px 24px;border:1px solid rgba(217,180,91,.35);border-radius:14px;background:var(--card,#fff);text-align:left}
html[data-theme=dark] .title .leadc{background:#12101a}
.title .leadc .lead{margin:0 0 10px;max-width:none;text-align:left;font-size:17px}
html[data-theme=dark] .title .leadc .lead{color:#d8d8d8}
.title .leadc .lead:last-child{margin:0}

.lbk{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
@media (min-width:600px){.lbk{grid-template-columns:repeat(6,1fr)}}
@media (max-width:599px){.lbk>:nth-child(n+10){display:none}}
.lbk .bk .tx small{font-size:8.5px}.lbk .bk .tx b{font-size:12.5px}
.lbk .bk{text-align:center}
#l-arts,#l-trads,#l-books{text-align:center}
/* Article buttons: "Runes & Norse · The Gods" over the title; both run almost to the chevron,
   with a soft dark shadow where they cross the picture (2026-11-12). */
.ab span{max-width:calc(100% - 26px)}
.ab span small,.ab span b{text-shadow:0 0 6px #000,0 0 12px #000,0 0 2px #000}
.ab span small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ab span small i{font-style:normal;color:#5a5346}.ab span small em{font-style:normal;color:var(--gold)}
