/* Destiny of Valendhar — site styles
   Colours are taken from the key art: the night that follows its dusk sky, aged brass from the embroidery,
   lavender from the sky, ember from the Elementalist's flame.
   Type: Marcellus shares the flared Roman letters of the logo; Alegreya is a warm book face for reading.
   Signature: forged plates with cut corners, an echo of the sharpened logs of the village wall. */
:root {
  --night: #12131E;
  --night-deep: #0B0C14;
  --night-2: #1B1C2B;
  --night-3: #26263A;
  --parchment: #F0E7D3;
  --parchment-dim: #C8C0B0;
  --ink: #241C12;
  --ink-soft: #5B4E40;
  --brass: #D0A155;
  --brass-hi: #EBC77F;
  --brass-deep: #7A5524;
  --glyph: #B4AEE2;
  --ember: #E0672F;
  --line: rgba(235, 199, 127, .17);
  --text: #E4DCCB;
  --muted: #9C9AAB;
  /* the four guild banners */
  --paladin: #8AABE6; --ranger: #92C073; --whitemage: #F0E3B8; --elementalist: #E8624A;
  --display: "Marcellus", Georgia, "Times New Roman", serif;
  --body: "Alegreya", Georgia, "Times New Roman", serif;
  --story: "Alegreya", Georgia, serif;
  --maxw: 1200px;
  --radius: 0;
  --header-h: 68px;
  --cut: 14px;
  --plate: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  --brass-edge: linear-gradient(160deg, #EBC77F, #7A5524 45%, #D0A155);
  /* the dusk stage every cut-out stands on: lamplight on the night, as in the guild-hall portraits */
  --stage: radial-gradient(ellipse 78% 70% at 50% 44%, rgba(208, 161, 85, .22), transparent 72%), linear-gradient(180deg, var(--night-3), var(--night-deep));
  --stage-lit: radial-gradient(ellipse 80% 72% at 50% 44%, rgba(235, 199, 127, .32), transparent 74%), linear-gradient(180deg, #2E2D44, var(--night-deep));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--night); color: var(--text);
  font: 400 18px/1.6 var(--body); font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brass-hi); }
:focus-visible { outline: 3px solid var(--glyph); outline-offset: 3px; border-radius: 0; }
h1, h2, h3 {
  font-family: var(--display); font-weight: 400; color: var(--parchment);
  line-height: 1.12; letter-spacing: .004em; text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin: .2em 0 .3em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin: 0 0 .45em; }
h3 { font-size: 1.3rem; margin: .8em 0 .3em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 20px; }
.kicker { font: italic 500 1.08rem/1.2 var(--body); color: var(--brass-hi); margin: 0 0 10px; }
.lede { font-size: 1.25rem; color: var(--parchment-dim); max-width: 760px; }
.big { font-size: 1.3rem; line-height: 1.5; color: var(--parchment); }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brass); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header & nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(18, 19, 30, .96); border-bottom: 1px solid var(--line); }
@media (min-width: 1081px) { .site-header { background: rgba(18, 19, 30, .86); backdrop-filter: blur(8px); } }
.bar { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand::before { content: ""; width: 30px; height: 30px; flex-shrink: 0; background: url("../../favicon.svg") center / contain no-repeat; }
.brand-logo { height: 46px; width: auto; }
.brand-text { font: 400 1.18rem/1 var(--display); color: var(--parchment); letter-spacing: .01em; }
.main-nav { margin-left: auto; }
.nav-list, .sub { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; gap: 2px; }
.nav-item { position: relative; }
.nav-row { display: flex; align-items: center; }
.nav-item > a, .nav-row > a {
  display: block; padding: 10px 10px; color: var(--parchment-dim); text-decoration: none;
  font-weight: 500; font-size: 1.02rem; white-space: nowrap; border-radius: 0;
}
.nav-item > a:hover, .nav-row > a:hover { color: var(--parchment); }
.nav-list > .is-active > a, .nav-list > .is-active > .nav-row > a { color: var(--brass); }
.sub-toggle {
  background: none; border: 0; color: var(--parchment-dim); cursor: pointer;
  width: 26px; height: 34px; margin-left: -6px; border-radius: 0; display: grid; place-items: center;
  transition: transform .2s, color .2s;
}
.sub-toggle:hover { color: var(--brass); }
.chev { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.sub-toggle[aria-expanded="true"] { transform: rotate(180deg); color: var(--brass); }

@media (min-width: 1081px) {
  .sub {
    display: none; position: absolute; top: 100%; left: 0; min-width: 240px;
    background: var(--night-2); border: 1px solid var(--line); border-radius: 0;
    padding: 8px; box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
  }
  .sub.open { display: block; }
  .sub .nav-item > a, .sub .nav-row > a { padding: 8px 12px; font-size: .93rem; color: var(--parchment-dim); }
  .sub a[aria-current="page"] { color: var(--brass); background: rgba(208, 161, 85, .08); }
  .sub .nav-item > a:hover { background: rgba(240, 231, 211, .06); }
  .nav-list > .nav-item:nth-last-child(-n+2) > .sub { left: auto; right: 0; }
  .menu-toggle { display: none; }
}
@media (max-width: 1080px) {
  .menu-toggle {
    margin-left: auto; display: flex; align-items: center; gap: 10px; background: none;
    border: 1px solid var(--line); color: var(--parchment); border-radius: 0; padding: 9px 14px; font: 500 .92rem var(--body); cursor: pointer;
  }
  .burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: .2s; }
  .burger::before, .burger::after { content: ""; position: absolute; }
  .burger::before { top: -6px; } .burger::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .burger { background: transparent; }
  .menu-toggle[aria-expanded="true"] .burger::before { top: 0; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .burger::after { top: 0; transform: rotate(-45deg); }
  .main-nav { display: none; position: fixed; inset: var(--header-h) 0 0 0; background: var(--night); overflow-y: auto; padding: 12px 16px 40px; margin: 0; }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list > .nav-item { border-bottom: 1px solid var(--line); }
  .nav-item > a, .nav-row > a { padding: 14px 6px; font-size: 1.05rem; flex: 1; }
  .sub-toggle { width: 48px; height: 48px; margin: 0; }
  .sub { display: none; padding: 0 0 10px 14px; border-left: 1px solid var(--line); margin-left: 6px; }
  .sub.open { display: block; }
  .sub .nav-item > a { padding: 10px 6px; font-size: .98rem; }
  .sub a[aria-current="page"] { color: var(--brass); }
  body.menu-open { overflow: hidden; }
  .lang-switch { order: 2; margin-left: auto; }
  .menu-toggle { order: 3; margin-left: 12px; }
}

/* language flags */
.lang-switch { display: flex; gap: 6px; margin-left: 14px; flex-shrink: 0; }
.lang-link { display: block; width: 30px; height: 20px; border-radius: 3px; overflow: hidden; opacity: .5;
  outline: 1px solid rgba(240, 231, 211, .25); transition: opacity .2s, outline-color .2s; }
.lang-link svg { width: 100%; height: 100%; display: block; }
.lang-link:hover { opacity: .9; }
.lang-link.is-current { opacity: 1; outline: 2px solid var(--brass); }
@media (max-width: 560px) {
  .bar { gap: 10px; padding: 0 16px; }
  .brand { min-width: 0; flex-shrink: 1; }
  .brand-text { font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .menu-label { display: none; }
  .menu-toggle { padding: 9px 11px; margin-left: 8px; }
  .lang-link { width: 26px; height: 17px; }
}
@media (min-width: 1081px) and (max-width: 1260px) {
  .bar { gap: 14px; }
  .nav-item > a, .nav-row > a { padding: 10px 6px; font-size: .9rem; }
}

/* ---------- page head (inner pages) ---------- */
.page-head { padding: 64px 0 44px; border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse 60% 120% at 85% 0%, rgba(180, 174, 226, .16), transparent 70%), linear-gradient(180deg, var(--night-3) 0%, var(--night) 100%); }
.page-head.has-bg { position: relative; background-size: cover; background-position: center; padding: 160px 0 48px; }
.page-head.has-bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 12, 20, .15), rgba(11, 12, 20, .95)); }
.page-head.has-bg .wrap { position: relative; }
.crumbs { font-size: .95rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.page-head-art { position: relative; padding: 0 0 44px; background: var(--night-deep); border-bottom: 1px solid var(--line); }
.page-head-frame { position: relative; margin: 0 auto; max-width: min(1920px, calc((100svh - var(--header-h)) * 16 / 9)); }
.page-head-frame img { width: 100%; height: auto; }
.page-head-frame::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 12, 20, 0), rgba(11, 12, 20, .8) 65%, var(--night-deep)); }
.page-head-text { position: relative; margin-top: -7rem; }
.page-head-text h1, .page-head-text .lede { text-shadow: 0 2px 20px rgba(0, 0, 0, .55); }
@media (max-width: 640px) { .page-head-text { margin-top: -2.5rem; } }

/* ---------- section tabs: every page of a section, under the page head; sticks under the header ---------- */
.section-tabs { position: sticky; top: var(--header-h); z-index: 40; background: rgba(27, 28, 43, .94); border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(6, 6, 12, .35); }
@media (min-width: 1081px) { .section-tabs { background: rgba(27, 28, 43, .86); backdrop-filter: blur(8px); } }
.st-inner { display: flex; align-items: stretch; gap: 0; min-height: 54px; }
.st-name { display: flex; align-items: center; flex-shrink: 0; padding-right: 22px; margin-right: 6px; text-decoration: none;
  font: 400 1.12rem/1 var(--display); color: var(--brass-hi); border-right: 1px solid var(--line); }
.st-name:hover { color: var(--brass); }
.st-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex: 1; min-width: 0;
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.st-list::-webkit-scrollbar { display: none; }
.st-list li { flex-shrink: 0; display: flex; }
.st-list a { position: relative; display: flex; align-items: center; padding: 0 16px; white-space: nowrap; text-decoration: none;
  font-size: 1.02rem; font-weight: 500; color: var(--parchment-dim); transition: color .15s, background-color .15s; }
.st-list a:hover { color: var(--parchment); background: rgba(240, 231, 211, .05); }
/* the current page: lit like a brass plate set into the bar */
.st-list a[aria-current="page"] { color: var(--parchment); background: linear-gradient(180deg, rgba(208, 161, 85, .05), rgba(208, 161, 85, .16)); }
.st-list a[aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--brass-deep), var(--brass-hi), var(--brass-deep)); clip-path: polygon(3px 0, calc(100% - 3px) 0, 100% 100%, 0 100%); }
.st-list a:focus-visible { outline-offset: -3px; }
.st-count { display: flex; align-items: center; flex-shrink: 0; padding-left: 18px; font-style: italic; font-size: .95rem; color: var(--muted); white-space: nowrap; }
/* on wide screens nothing hides: the row wraps instead of scrolling */
@media (min-width: 761px) { .st-list { flex-wrap: wrap; overflow: visible; } .st-list a { min-height: 54px; } }
@media (max-width: 1000px) { .st-count { display: none; } }
@media (max-width: 760px) {
  .st-inner { padding-right: 0; min-height: 50px; }
  .st-name { font-size: 1rem; padding-right: 14px; }
  .st-list a { padding: 0 13px; font-size: .97rem; }
  /* fades at the edges say the row goes on that way */
  .st-list { --fl: 0px; --fr: 36px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fl), #000 calc(100% - var(--fr)), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 var(--fl), #000 calc(100% - var(--fr)), transparent); }
  .st-list.not-start { --fl: 36px; }
  .st-list.at-end { --fr: 0px; }
}
/* anchors land below the two sticky bars */
html { scroll-padding-top: calc(var(--header-h) + 62px); }

/* ---------- buttons: gold, sitting on a dark timber ledge it presses into ---------- */
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  --cut: 9px; display: inline-flex; align-items: center; padding: 15px 30px; clip-path: var(--plate);
  font: 400 1.1rem/1 var(--display); text-decoration: none; transition: filter .15s, transform .1s, background-color .2s, color .2s;
}
.btn-gold { background: linear-gradient(180deg, #F2D595, var(--brass) 55%, #A5763A); color: #1C1409; }
.btn-gold:hover { color: #1C1409; filter: brightness(1.12); }
.btn-gold:active { transform: translateY(2px); }
.btn-ghost { color: var(--parchment); background: rgba(240, 231, 211, .07); box-shadow: inset 0 0 0 1px var(--brass); }
.btn-ghost:hover { color: var(--brass-hi); background: rgba(208, 161, 85, .16); }

/* ---------- facts ---------- */
.facts { margin: 0; clip-path: var(--plate); background: var(--night-2); padding: 12px 28px; }
.facts div { padding: 13px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: .95rem; font-style: italic; color: var(--brass-hi); }
.facts dd { margin: 2px 0 0; color: var(--parchment); font-weight: 500; line-height: 1.35; }

/* ---------- home: hero ---------- */
.hero { position: relative; background: var(--night-deep); }
.hero-stage { position: relative; overflow: hidden; }
.hero-backdrop { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(34px) brightness(.42) saturate(.9); }
.hero-art { position: relative; margin: 0 auto; max-width: min(1920px, calc((100svh - var(--header-h)) * 16 / 9)); }
.hero-art img, .hero-art svg { width: 100%; height: auto; display: block; }
.hero-art::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 12, 20, 0), rgba(11, 12, 20, .75) 60%, var(--night-deep)); }
@media (min-aspect-ratio: 17/9), (min-width: 1921px) {
  .hero-art img, .hero-art svg { -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
}
.hero-logo { position: absolute; z-index: 1; margin: 0; left: var(--logo-x, 30%); top: var(--logo-y, 7%); width: var(--logo-w, 40%);
  filter: drop-shadow(0 10px 24px rgba(11, 12, 20, .6)); }
.hero-wordmark { position: absolute; z-index: 1; left: 0; right: 0; top: 8%; margin: 0; text-align: center; pointer-events: none; }
.hero-wordmark span { display: block; }
.hero-wordmark .wm-small { font: italic 400 clamp(1rem, 2vw, 1.6rem)/1 var(--story); color: var(--parchment-dim); letter-spacing: .04em; }
.hero-wordmark .wm-big { font: 400 clamp(2.4rem, 7vw, 6rem)/1 var(--display); color: var(--parchment); letter-spacing: .02em;
  text-shadow: 0 4px 30px rgba(11, 12, 20, .7); }
.hero-art-bg { min-height: 72vh; background-size: cover; background-position: center; }
.hero-panel { position: relative; max-width: 860px; text-align: center; margin-top: -5.5rem; padding-bottom: 72px; }
.hero-panel .cta-row { justify-content: center; }
.hero-panel .hero-sub { margin-left: auto; margin-right: auto; }
.hero-hook { font: 400 clamp(2rem, 4vw, 3.2rem)/1.06 var(--display); letter-spacing: .004em; color: var(--parchment);
  margin: 0 0 14px; text-wrap: balance; text-shadow: 0 2px 24px rgba(0, 0, 0, .55); }
.hero-sub { font-size: 1.2rem; color: var(--parchment-dim); margin: 0 0 30px; max-width: 62ch; }

/* ---------- home: intro ---------- */
.intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.intro-title { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.intro-text { max-width: 60ch; }

/* ---------- raised band, topped by the palisade ---------- */
.palisade { position: relative; background: var(--night-2); margin-top: 34px; }
.palisade::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 34px; background: var(--night-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='34'%3E%3Cpath d='M0 34V12L8 2l8 10v22zM16 34V16l8-10 8 10v18zM32 34V10l8-10 8 10v24zM48 34V18l8-10 8 10v16zM64 34V13l8-10 8 10v21zM80 34V9l8-9 8 9v25zM96 34V17l8-10 8 10v17zM112 34V12l8-10 8 10v22z'/%3E%3C/svg%3E") left bottom / 128px 34px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='34'%3E%3Cpath d='M0 34V12L8 2l8 10v22zM16 34V16l8-10 8 10v18zM32 34V10l8-10 8 10v24zM48 34V18l8-10 8 10v16zM64 34V13l8-10 8 10v21zM80 34V9l8-9 8 9v25zM96 34V17l8-10 8 10v17zM112 34V12l8-10 8 10v22z'/%3E%3C/svg%3E") left bottom / 128px 34px repeat-x;
}
.palisade > .section > h2 { text-align: center; }
.pillars { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 48px 32px; align-items: start; }
.pillars .pillar { grid-column: span 2; }
.pillars .pillar:nth-child(4) { grid-column: 2 / span 2; }
.pillars .pillar:nth-child(5) { grid-column: 4 / span 2; }
.pillar .fig img, .pillar .ph-box { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border-radius: 0; }
.pillar h3 { font-size: 1.55rem; margin: 18px 0 6px; }
.pillar p { color: var(--parchment-dim); font-size: 1.05rem; margin: 0; }

/* ---------- home: jobs (four guild banners) ---------- */
.jobs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.job-card { --cut: 16px; position: relative; display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; clip-path: var(--plate);
  background: linear-gradient(180deg, var(--night-3), var(--night-2)); transition: filter .2s; }
.job-card .fig { overflow: hidden; background: radial-gradient(ellipse 80% 70% at 50% 42%, color-mix(in srgb, var(--job) 42%, transparent), transparent 72%); }
.job-card .fig img, .job-card .ph-box { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0; width: 100%; background: none; clip-path: none; transition: transform .5s ease-out; }
.job-card .fig img[src] { background: none; }
.job-card .ph-box { border: 0; }
.job-body { display: block; padding: 14px 20px 22px; border-top: 2px solid var(--job); text-align: center; }
.job-role { display: block; font-size: 1rem; font-style: italic; color: var(--job); margin: 0 0 2px; }
.job-name { font: 400 1.5rem/1.15 var(--display); color: var(--parchment); margin: 0 0 8px; display: block; }
.job-line { display: block; font: italic 400 1.08rem/1.35 var(--story); color: var(--parchment-dim); margin: 0; }
.job-card:hover { filter: brightness(1.1); }
.job-card:hover .fig img { transform: scale(1.04); }
.job-card:hover .job-name { color: var(--brass); }
.job-paladin { --job: var(--paladin); } .job-ranger { --job: var(--ranger); }
.job-whitemage { --job: var(--whitemage); } .job-elementalist { --job: var(--elementalist); }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.split.flip .split-media { order: 2; }
.split-media .fig img, .split-media .ph-box { border-radius: 0; }

/* ---------- cast portraits ---------- */
.cast-band { background: var(--night-deep); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.cast { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.portrait { --cut: 16px; position: relative; display: block; overflow: hidden; text-decoration: none; isolation: isolate; clip-path: var(--plate); }
.portrait .fig img, .portrait .ph-box { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; object-position: 50% 0; clip-path: none; transition: transform .5s ease-out; }
.portrait::after { content: ""; position: absolute; inset: 62% 0 0 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(11, 12, 20, 0), rgba(11, 12, 20, .9)); }
.portrait-text { position: absolute; left: 18px; right: 18px; bottom: 16px; text-align: center; z-index: 2; display: flex; flex-direction: column; }
.portrait-name { font: 400 clamp(1.25rem, 1.9vw, 1.7rem)/1.1 var(--display); color: var(--parchment); }
.portrait-role { font: italic 400 1.05rem/1.25 var(--story); color: var(--parchment-dim); margin-top: 4px; }
.portrait:hover .fig img { transform: scale(1.04); }
.portrait:hover .portrait-name { color: var(--brass); }
.portrait .ph-box { justify-content: flex-start; padding-top: 18%; }

/* ---------- the journey: a map trail from the Dais to Oakhaven's gate ---------- */
.trail-band { background: radial-gradient(ellipse 70% 40% at 50% 100%, rgba(208, 161, 85, .22), transparent 70%), linear-gradient(180deg, var(--night) 0%, var(--night-3) 100%); }
.trail-head { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.trail-head p { color: var(--parchment-dim); font-size: 1.15rem; max-width: 48ch; }
.trail { list-style: none; padding: 0; margin: 64px auto 0; max-width: 980px; position: relative; }
/* the dashed path down the middle, warming toward the gate */
.trail::before { content: ""; position: absolute; left: 50%; top: 10px; bottom: 10px; width: 3px; margin-left: -1.5px;
  background: repeating-linear-gradient(180deg, rgba(240, 231, 211, .35) 0 10px, transparent 10px 18px); }
.waypoint { position: relative; width: 50%; padding: 0 44px 26px 0; text-align: right; }
.waypoint:nth-child(even) { margin-left: 50%; padding: 0 0 26px 44px; text-align: left; }
.waypoint::before { content: ""; position: absolute; top: 6px; right: -9px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--night); border: 3px solid var(--glyph); box-shadow: 0 0 0 4px var(--night); }
.waypoint:nth-child(even)::before { right: auto; left: -9px; }
.waypoint a, .waypoint > div { display: block; text-decoration: none; }
.wp-act { display: block; font-size: 1rem; font-style: italic; color: var(--brass-hi); }
.wp-name { display: block; font: 400 1.35rem/1.15 var(--display); color: var(--parchment); margin: 2px 0 2px; }
.wp-line { display: block; font: italic 400 1.08rem/1.35 var(--story); color: var(--parchment-dim); }
.waypoint a:hover .wp-name { color: var(--brass); }
.waypoint.wp-end::before { width: 26px; height: 26px; top: 2px; right: -13px; background: var(--brass); border-color: var(--brass-hi); box-shadow: 0 0 0 4px var(--night-3), 0 0 40px rgba(208, 161, 85, .7); }
.waypoint.wp-end:nth-child(even)::before { left: -13px; }
.waypoint.wp-end .wp-name { color: var(--brass); }
.waypoint.wp-boss::before { border-color: var(--ember); background: var(--ember); }
.trail.will-rise .waypoint { opacity: 0; transform: translateY(14px); }
.trail.will-rise.is-lit .waypoint { animation: rise .5s cubic-bezier(.2, .7, .3, 1) forwards; animation-delay: calc(var(--i) * 110ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- story band ---------- */
.story-band { background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(180, 174, 226, .10), transparent 70%), var(--night-deep); }
.story-inner { text-align: center; max-width: 820px; }
.story-inner h2 { margin-bottom: 6px; }
.story-note { font: italic 400 1.15rem var(--story); color: var(--glyph); margin-bottom: 28px; }
.story-quote { --cut: 10px; font: 400 1.4rem/1.5 var(--story); color: var(--ink); margin: 0 auto 36px; padding: 34px 40px; background: linear-gradient(170deg, #F0E5CC, #DCCBA7); clip-path: var(--plate); }

/* ---------- figures, galleries, placeholders ---------- */
.fig { margin: 0; }
.fig img { background: var(--night-2); width: 100%; clip-path: var(--plate); }
.fig a.lb { display: block; cursor: zoom-in; padding: 1px; background: var(--brass-edge); clip-path: var(--plate); }
/* cut-outs (pictures on a plain studio background, made transparent by the build) all stand on the same dusk stage, so
   sheets, props and people read as one set; the lightbox still opens the full original with its background */
.fig img.cut, .fig img[src*="/CH-"], .fig img[src*="/PORTRAIT-"], .fig img[src*="/PC-GROUP"], .fig img[src*="/FULL_"], .fig img[src*="/EN-05"] {
  background: var(--stage); }
.fig a.lb:hover img.cut, .fig a.lb:focus-visible img.cut { background: var(--stage-lit); }
.fig figcaption { font-size: .98rem; font-style: italic; color: var(--parchment-dim); margin-top: 8px; text-align: center; }
.ph-box {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  aspect-ratio: 16/9; clip-path: var(--plate);
  background: radial-gradient(ellipse at 50% 40%, var(--night-3), var(--night-2));
}
.ph-id { display: none; }
.ph-note { font-style: italic; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.gallery.gallery-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery.gallery-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery.gallery-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery.gallery-4 .fig img { aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.gallery.gallery-169 .fig img { aspect-ratio: 16 / 9; object-fit: cover; }
.stub { border: 1px dashed var(--line); border-radius: 0; padding: 48px; text-align: center; background: var(--night-2); }

/* ---------- content components ---------- */
.feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; margin: 0 0 72px; }
.feature:last-child { margin-bottom: 0; }
.feature.flip .feature-media { order: 2; }
.feature-text h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin-top: 0; }
.prose p, .prose li { max-width: 70ch; }
.loops { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.loops li { padding: 24px; clip-path: var(--plate); background: var(--night-2); }
.loop-label { display: block; font: 400 1.2rem var(--display); color: var(--brass); margin-bottom: 8px; }
.loops p { margin: 0; color: var(--parchment-dim); font-size: .97rem; }
.loops.loops-3 { grid-template-columns: repeat(3, 1fr); }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.mode { border-top: 2px solid var(--brass); padding: 24px; background: var(--night-2); }
.mode h3 { margin-top: 0; }
.mode p:last-child { color: var(--parchment-dim); font-size: .97rem; margin: 0; }
.mode .kicker { margin-bottom: 4px; }
.mode .mode-fig { margin: -24px -24px 20px; }
.mode .mode-fig img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; display: block; }
.table-wrap { overflow-x: auto; margin-top: 8px; }
.data-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.data-table th, .data-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { font: italic 500 1rem var(--body); color: var(--brass-hi); }
.data-table tbody th { font: 400 1.05rem var(--display); color: var(--parchment); }
.data-table td.num { font: 400 1rem var(--display); color: var(--brass); white-space: nowrap; }
.data-table td { color: var(--parchment-dim); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.tags span { font-size: .88rem; font-weight: 500; color: var(--glyph); padding: 3px 11px; border-radius: 0; box-shadow: inset 0 0 0 1px rgba(180, 174, 226, .45); }
.quote { margin: 0 0 24px; padding: 4px 0 4px 24px; border-left: 2px solid var(--brass); }
.quote p { font: italic 400 1.4rem/1.45 var(--story); color: var(--parchment); margin: 0 0 6px; }
.quote cite { font-style: normal; font-size: 1rem; color: var(--brass-hi); }
.abilities { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.abilities li { font-size: .9rem; padding: 4px 11px; border-radius: 0; background: var(--night-3); color: var(--parchment); border-left: 3px solid var(--job, var(--brass)); }
.back { margin: 40px 0 0; }
.section-tight { padding-top: 56px; }
.band-dark { background: var(--night-deep); }

/* ---------- catalog (assets, creatures) ---------- */
.catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; align-items: start; }
.cat-item .fig img { border-radius: 0; }
.cat-item .ph-box { aspect-ratio: 3 / 2; }
.cat-id { display: none; }
.cat-item h3 { margin: 16px 0 6px; font-size: 1.4rem; }
.cat-item p:last-child { color: var(--parchment-dim); font-size: .97rem; margin: 0; }

/* ---------- swatches ---------- */
.swatches { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.swatches li { display: flex; flex-direction: column; gap: 2px; }
.swatch { display: block; aspect-ratio: 1; border-radius: 0; box-shadow: inset 0 0 0 1px rgba(240, 231, 211, .2); margin-bottom: 8px; }
.sw-name { font-weight: 600; color: var(--parchment); }
.sw-hex { font-size: .9rem; color: var(--muted); }

/* ---------- pager & footer ---------- */
.pager { display: flex; justify-content: space-between; gap: 16px; padding: 40px 0 64px; border-top: 1px solid var(--line); margin-top: 32px; }
.pager a { text-decoration: none; font: 400 1.05rem var(--display); color: var(--parchment); }
.pager a:hover { color: var(--brass); }
.pager small { display: block; font: italic 500 1rem var(--body); color: var(--brass-hi); margin-bottom: 4px; }
.pager .next { text-align: right; margin-left: auto; }
.site-footer { border-top: 1px solid var(--line); background: var(--night-deep); padding: 36px 0; font-size: .92rem; color: var(--muted); }
.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot > div { flex: 1 1 280px; }
.foot-title { font: 400 1.05rem var(--display); color: var(--parchment); margin-bottom: 4px; }
.foot-note { text-align: right; flex: 1 1 440px; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(6, 6, 12, .95); display: flex; align-items: center; justify-content: center; padding: 48px 64px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 0; }
.lightbox figcaption { color: var(--parchment-dim); margin-top: 12px; text-align: center; max-width: 900px; }
.lightbox .lb-count { display: block; font: italic .9rem var(--body); color: var(--muted); margin-top: 2px; }
.lightbox button { position: absolute; background: rgba(240, 231, 211, .08); border: 1px solid var(--line); color: var(--parchment); font-size: 2rem; line-height: 1; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; }
.lightbox button:hover { background: rgba(208, 161, 85, .2); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-panel { margin-top: -3rem; padding-bottom: 56px; }
  .intro, .split, .trail-head, .feature, .feature.flip { grid-template-columns: 1fr; gap: 32px; }
  .split.flip .split-media, .feature.flip .feature-media { order: 0; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillars .pillar, .pillars .pillar:nth-child(4) { grid-column: auto; }
  .pillars .pillar:nth-child(5) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 16px); }
  .jobs, .cast { grid-template-columns: 1fr 1fr; }
  .loops, .loops.loops-3 { grid-template-columns: 1fr 1fr; }
  .modes, .catalog { grid-template-columns: 1fr 1fr; }
  .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery.gallery-3, .gallery.gallery-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .foot-note { text-align: left; }
  /* the trail runs down the left edge on phones */
  .trail::before { left: 9px; margin-left: 0; }
  .waypoint, .waypoint:nth-child(even) { width: auto; margin-left: 0; padding: 0 0 24px 40px; text-align: left; }
  .waypoint::before, .waypoint:nth-child(even)::before { left: 0; right: auto; }
  .waypoint.wp-end::before, .waypoint.wp-end:nth-child(even)::before { left: -4px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .section { padding: 60px 16px; }
  .wrap { padding: 0 16px; }
  /* an inner page's body is both: keep the section's breathing room */
  .wrap.section { padding: 48px 16px 56px; }
  .hero-panel { margin-top: 0; padding-top: 8px; }
  .pillars { grid-template-columns: 1fr; gap: 36px; }
  .pillars .pillar:nth-child(5) { width: auto; justify-self: stretch; }
  .loops, .loops.loops-3, .modes, .catalog, .gallery.gallery-2, .gallery.gallery-3 { grid-template-columns: 1fr; }
  .story-quote { font-size: 1.2rem; padding: 26px 22px; }
  .lightbox { padding: 56px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .trail.will-rise .waypoint { opacity: 1; transform: none; animation: none; }
}
.swatches.swatches-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.sw-name { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 640px) { .swatches.swatches-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- home hero with the key art painting ----------
   The fight fills the lower half of the painting, so the fade is short and the text panel sits below the picture
   instead of overlapping it. The logo layer sits in the calm sky (30–70 % across, 7–41 % down). */
.hero-has-art .hero-art .hero-painting { aspect-ratio: 1672 / 941; }
.hero-has-art .hero-art::after { display: none; }
.hero-has-art .hero-stage::after { content: ""; position: absolute; inset: auto 0 0 0; height: 16%; pointer-events: none; background: linear-gradient(180deg, rgba(11, 12, 20, 0), var(--night-deep)); }
.hero-has-art .hero-panel { margin-top: 0; padding-top: 40px; }
.hero-art .hero-logo { --logo-x: 30%; --logo-y: 7%; --logo-w: 40%;
  filter: drop-shadow(0 4px 14px rgba(11, 12, 20, .45)) drop-shadow(0 0 2px rgba(11, 12, 20, .35)); }
.hero-art .hero-logo img { width: 100%; height: auto; aspect-ratio: 1983 / 793; -webkit-mask-image: none; mask-image: none; }
@media (max-width: 760px) {
  /* the painting is small on phones, so the logo takes a bigger share of the sky */
  .hero-art .hero-logo { --logo-x: 19%; --logo-y: 4%; --logo-w: 62%; }
  .hero-has-art .hero-panel { padding-top: 28px; }
}

/* ---------- concept art: sheets by section, made ones first, a box for each one still to come ---------- */
.sheet-block { margin-top: 80px; scroll-margin-top: calc(var(--header-h) + 72px); }
/* the sections of a long page, each with how many of its sheets are made */
.sheet-index { margin: 0 0 64px; }
.sheet-index ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sheet-index a {
  --cut: 7px; display: inline-flex; align-items: baseline; gap: 9px; padding: 8px 15px 9px;
  font: 400 1rem/1.2 var(--display); color: var(--parchment); text-decoration: none;
  background: var(--night-2); clip-path: var(--plate); }
.sheet-index a span { font: italic 400 .88rem var(--body); color: var(--brass); }
.sheet-index a:hover, .sheet-index a:focus-visible { background: var(--night-3); color: var(--brass-hi); }
.sheet-block.first { margin-top: 0; }
.sheet-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.sheet-head h2 { margin: 0 0 10px; }
.sheet-count { font-style: italic; color: var(--muted); font-size: .95rem; white-space: nowrap; }
.sheet-intro { color: var(--parchment-dim); max-width: 70ch; margin: 0 0 24px; }
.gallery.gallery-sheets { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px 20px; }
.gallery-sheets .fig img { aspect-ratio: 16 / 9; object-fit: contain; }
/* a little air round a cut-out, so the objects don't touch the plate's cut corners */
.gallery-sheets .fig img.cut { padding: 4% 5%; }
.concept-card .fig img.cut { object-fit: contain; padding: 5% 6%; }
.gallery-sheets.gallery-tall .fig img, .gallery-sheets.gallery-tall .ph-box { aspect-ratio: 3 / 4; }
/* materials are square, seamless surfaces: they fill their tile, smaller and more of them to a row */
.gallery.gallery-sheets.gallery-square { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.gallery-sheets.gallery-square .fig img, .gallery-sheets.gallery-square .ph-box { aspect-ratio: 1; object-fit: cover; }
.gallery-sheets figcaption { font-size: .92rem; }
.concept-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 24px; }
.concept-card { display: block; color: inherit; text-decoration: none; }
.concept-card .fig img, .concept-card .ph-box { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; }
.concept-card-text { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; }
.concept-card-title { font: 400 1.35rem/1.2 var(--display); color: var(--parchment); }
.concept-card-lede { color: var(--parchment-dim); font-size: .97rem; }
.concept-card:hover .concept-card-title, .concept-card:focus-visible .concept-card-title { color: var(--brass-hi); }
@media (max-width: 1000px) { .concept-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .concept-cards { grid-template-columns: 1fr; }
  .gallery.gallery-sheets { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .sheet-head { flex-direction: column; gap: 0; }
}

/* ---------- devlog: the newest video large, then each series as a grid of parts, oldest first ---------- */
.devlog-intro { color: var(--parchment-dim); max-width: 70ch; margin: 0 0 48px; }
.devlog-entry { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 36px; align-items: center; padding: 0 0 56px; margin: 0 0 56px; border-bottom: 1px solid var(--line); }
.devlog-entry:last-child { border-bottom: 0; margin-bottom: 0; }
.devlog-video { position: relative; width: 100%; padding: 1px; background: var(--brass-edge); clip-path: var(--plate); }
.devlog-video iframe { display: block; width: 100%; height: 100%; border: 0; background: var(--night-deep); clip-path: var(--plate); }
.devlog-text h2 { margin: 4px 0 12px; }
.devlog-text p { color: var(--parchment-dim); }
@media (max-width: 900px) { .devlog-entry { grid-template-columns: 1fr; gap: 20px; } }
.dl-latest { border-bottom: 0; padding-bottom: 0; }
.dl-latest .kicker a { color: inherit; }
.dl-meta { font-style: italic; color: var(--muted); font-size: .95rem; }
.dl-all { margin: 88px 0 8px; }
.dl-row { padding: 36px 0 8px; border-top: 1px solid var(--line); margin-top: 28px; }
.dl-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.dl-row-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0; }
.dl-row-head h2 a { color: var(--parchment); text-decoration: none; }
.dl-row-head h2 a:hover { color: var(--brass-hi); }
.dl-count { font-style: italic; color: var(--muted); white-space: nowrap; }
.dl-row-text { color: var(--parchment-dim); max-width: 70ch; margin: 6px 0 22px; }
/* the grid: a series reads left to right, part 1 first */
.dl-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 30px 20px; }
.dl-grid-big { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 40px 28px; }
.dl-open { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
.dl-thumb { --cut: 12px; position: relative; display: block; padding: 1px; background: var(--brass-edge); clip-path: var(--plate); margin-bottom: 10px; }
.dl-thumb img, .dl-noimg { display: block; width: 100%; aspect-ratio: 16 / 9.2; object-fit: cover; object-position: 50% 30%; clip-path: var(--plate);
  background: var(--night-2); filter: saturate(.8) brightness(.82); transition: filter .25s; }
/* the play mark: a brass disc with a dark arrow, the same brass as the frames */
.dl-play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #F2D595, var(--brass) 60%, #A5763A); box-shadow: 0 6px 20px rgba(6, 6, 12, .55);
  transition: transform .2s; }
.dl-play::after { content: ""; position: absolute; left: 23px; top: 18px; border-style: solid; border-width: 11px 0 11px 17px;
  border-color: transparent transparent transparent #1C1409; }
.dl-len { position: absolute; right: 12px; bottom: 10px; padding: 2px 9px; font-size: .88rem; color: var(--parchment);
  background: rgba(11, 12, 20, .78); }
.dl-label { font-style: italic; color: var(--brass-hi); font-size: 1rem; }
.dl-title { font: 400 1.25rem/1.25 var(--display); color: var(--parchment); }
.dl-grid-big .dl-title { font-size: 1.4rem; }
.dl-open:hover .dl-thumb img, .dl-open:focus-visible .dl-thumb img { filter: none; }
.dl-open:hover .dl-play, .dl-open:focus-visible .dl-play { transform: scale(1.08); }
.dl-open:hover .dl-title { color: var(--brass-hi); }
.dl-card:target .dl-title { color: var(--brass-hi); }

/* the viewer: the video big, its text beside it, and the way to the next part */
.dl-viewer { width: min(1240px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; color: var(--text);
  background: var(--night-2); overflow: auto; }
.dl-viewer::backdrop { background: rgba(6, 6, 12, .9); }
.dl-viewer[open] { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
.dl-v-frame { background: #000; align-self: start; }
.dl-v-frame iframe { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; }
.dl-v-text { padding: 34px 32px 28px; display: flex; flex-direction: column; }
.dl-v-label { font-style: italic; color: var(--brass-hi); margin: 0 0 4px; }
.dl-v-text h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0 0 8px; }
.dl-v-meta { font-style: italic; color: var(--muted); font-size: .95rem; margin: 0 0 16px; }
.dl-v-body { color: var(--parchment-dim); }
.dl-v-nav { display: flex; gap: 10px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.dl-v-nav button { flex: 1; padding: 11px 12px; background: rgba(240, 231, 211, .06); color: var(--parchment); border: 0;
  box-shadow: inset 0 0 0 1px var(--line); font: 400 1rem var(--display); cursor: pointer; }
.dl-v-nav button:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--brass); color: var(--brass-hi); }
.dl-v-nav button:disabled { opacity: .35; cursor: default; }
.dl-v-close { position: absolute; top: 10px; right: 10px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(11, 12, 20, .8); color: var(--parchment); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.dl-v-close:hover { border-color: var(--brass); color: var(--brass-hi); }
@media (max-width: 900px) {
  .dl-viewer[open] { grid-template-columns: 1fr; }
  .dl-v-text { padding: 22px 18px 20px; }
  .dl-grid, .dl-grid-big { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
@media (max-width: 560px) { .dl-row-head { flex-direction: column; gap: 2px; } .dl-all { margin-top: 64px; } }

/* Images can't be dragged out, selected or long-pressed into a save menu (user, 2026-11-11) */
img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
