/**
 * /pages/delvantic-world/ — the world's home page, in the "Forge" family (public/assets/css/STYLE-FAMILIES.md).
 * Dark bands are torchlit ashlar (the sign-in pages' wall); light bands are parchment notices on oak planks (Quarters).
 * Sprites: /public/assets/images/quarters/forge/. Everything is scoped under .dw, so the brown world shell around it
 * (navigation-world.php, footer-world.php) is untouched. 2026-09-22.
 */
@import url(/public/assets/css/fonts-forge.css);

.dw {
    --dw-ink: #2a1c0d;
    --dw-sepia: #5a4124;
    --dw-gilt: #b8892b;
    --dw-gold: #d9b45a;
    --dw-gold-hi: #f1d58c;
    --dw-bone: #e9dcc0;
    --dw-ash: #b3a386;
    --dw-green: #15382c;
    --dw-serif: 'EB Garamond', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
    --dw-caps: 'Cinzel', 'Trajan Pro', 'Palatino Linotype', Georgia, serif;
    font-family: var(--dw-serif);
    font-size: 18px;
    line-height: 1.6;
}
.dw a { transition: color 0.15s; }
.dw a:focus-visible { outline: 2px solid var(--dw-gold-hi); outline-offset: 3px; }

/* ── Hero: the stone wall at night, a torch above, the gilt mark turning ── */
.dw-hero {
    position: relative;
    padding: 72px 20px 84px;
    text-align: center;
    color: var(--dw-bone);
    background:
        radial-gradient(ellipse 700px 420px at 50% 0, rgba(255, 160, 70, 0.30), transparent 70%),
        radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(0, 0, 0, 0.75) 100%),
        linear-gradient(rgba(14, 9, 5, 0.72), rgba(14, 9, 5, 0.72)),
        url(/public/assets/images/quarters/forge/ashlar-wall.webp) 50% 0 / 420px 840px repeat,
        #0d0b0a;
    border-bottom: 14px solid transparent;
    border-image: url(/public/assets/images/quarters/forge/strap.svg) 0 0 14 0 / 0 0 14px 0 repeat;
}
.dw-hero-inner { max-width: 760px; margin: 0 auto; }
.dw-hero-mark { display: block; margin: 0 auto 10px; width: 132px; height: 132px; }
.dw-hero-title {
    font-family: var(--dw-caps);
    font-weight: 800;
    font-size: clamp(38px, 7vw, 68px);
    letter-spacing: 0.05em;
    line-height: 1.05;
    color: var(--dw-gold);
    text-shadow: 0 3px 0 #000, 0 0 30px rgba(217, 180, 90, 0.3);
    margin: 0 0 18px;
}
.dw-hero-lede { font-size: clamp(19px, 2.2vw, 22px); color: var(--dw-bone); max-width: 60ch; margin: 0 auto 28px; }
.dw-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.dw-hero-note { margin: 18px 0 0; font-style: italic; font-size: 16px; color: var(--dw-ash); }

/* buttons: a slab of the wall's stone with gold letters; iron for the second action */
.dw-btn {
    display: inline-block;
    padding: 13px 30px;
    font-family: var(--dw-caps);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.08em;
    text-decoration: none;
    border-radius: 2px;
    text-shadow: 0 -1px 0 #000;
}
.dw-btn--stone {
    color: var(--dw-gold);
    background:
        linear-gradient(180deg, rgba(26, 18, 10, 0.70), rgba(6, 4, 2, 0.88)),
        url(/public/assets/images/quarters/forge/ashlar-wall.webp) 50% 38% / 520px 1040px,
        #2a2622;
    border: 1px solid #000;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -3px 0 rgba(0, 0, 0, 0.5), 0 0 0 2px #3a2c14, 0 4px 12px rgba(0, 0, 0, 0.7);
}
.dw-btn--stone:hover { color: var(--dw-gold-hi); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -3px 0 rgba(0, 0, 0, 0.5), 0 0 0 2px var(--dw-gilt), 0 4px 14px rgba(0, 0, 0, 0.7); }
.dw-btn--iron {
    color: #efe7d6;
    background: linear-gradient(180deg, #4d4a45, #2e2c29 55%, #1c1b19);
    border: 1px solid #0e0d0c;
    box-shadow: 0 3px 0 #0e0d0c, inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.dw-btn--iron:hover { color: var(--dw-gold-hi); }

/* ── Bands ─────────────────────────────────────────────────────────── */
.dw-band { padding: 64px 20px; }
.dw-band-inner { max-width: 1160px; margin: 0 auto; }
.dw-narrow { max-width: 760px; }
.dw-band-title {
    font-family: var(--dw-caps);
    font-weight: 700;
    font-size: clamp(26px, 3.6vw, 36px);
    letter-spacing: 0.04em;
    text-align: center;
    margin: 0 0 10px;
}
.dw-band-title::after {                /* the gilt rule with a lozenge */
    content: "";
    display: block;
    height: 14px;
    max-width: 420px;
    margin: 14px auto 0;
    background:
        url(/public/assets/images/quarters/forge/lozenge.svg) 50% 50% / 14px 14px no-repeat,
        url(/public/assets/images/quarters/forge/rule-diamond.svg) 50% 50% / 100% 12px no-repeat;
}
.dw-band-lede { text-align: center; max-width: 62ch; margin: 14px auto 34px; }
.dw-center { text-align: center; margin-top: 28px; }

.dw-band--oak {
    color: var(--dw-bone);
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.35)),
        url(/public/assets/images/quarters/forge/oak-planks.svg) 0 0 / 264px 480px repeat,
        #2c1d10;
}
.dw-band--oak .dw-band-title { color: var(--dw-gold); text-shadow: 0 2px 0 #000; }
.dw-band--oak .dw-band-lede { color: var(--dw-bone); }
.dw-band--stone {
    color: var(--dw-bone);
    background:
        linear-gradient(rgba(14, 9, 5, 0.8), rgba(14, 9, 5, 0.8)),
        url(/public/assets/images/quarters/forge/ashlar-wall.webp) 0 0 / 420px 840px repeat,
        #0d0b0a;
}
.dw-band--stone .dw-band-title { color: var(--dw-gold); text-shadow: 0 2px 0 #000; }
.dw-band--parchment {
    color: var(--dw-ink);
    background:
        radial-gradient(ellipse at 20% 0%, rgba(255, 250, 232, 0.7), transparent 60%),
        url(/public/assets/images/quarters/forge/parchment.svg),
        linear-gradient(165deg, #f3e7c6, #e2cd9c);
}
.dw-band--parchment .dw-band-title { color: var(--dw-ink); }

/* strap across the top of every band after the hero: the boards are bound */
.dw-band + .dw-band { border-top: 14px solid transparent; border-image: url(/public/assets/images/quarters/forge/strap.svg) 14 0 0 0 / 14px 0 0 0 repeat; }

/* ── Windows: postcards in iron frames ─────────────────────────────── */
.dw-windows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.dw-window { margin: 0; }
.dw-window-frame {
    display: block;
    border: 12px solid transparent;
    border-image: url(/public/assets/images/quarters/forge/frame-iron.svg) 34 / 34px / 0 stretch;
    background: #000;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
}
.dw-window-frame img { display: block; width: 100%; height: auto; aspect-ratio: 14 / 9; object-fit: cover; filter: sepia(0.15); transition: filter 0.2s; }
.dw-window-frame:hover img { filter: none; }
.dw-window figcaption { display: flex; flex-direction: column; align-items: center; margin-top: 10px; }
.dw-window-name { font-family: var(--dw-caps); font-weight: 700; color: var(--dw-gold); letter-spacing: 0.04em; }
.dw-window-when { font-size: 14px; font-style: italic; color: var(--dw-ash); }

/* ── Deeds: parchment notices pinned on the oak ────────────────────── */
.dw-deeds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 30px; }
.dw-notice {
    padding: 26px 30px 24px;
    color: var(--dw-ink);
    border: 12px solid transparent;
    border-image: url(/public/assets/images/quarters/forge/frame-card.svg) 34 / 34px / 0 stretch;
    background:
        radial-gradient(ellipse at 15% 0%, rgba(255, 250, 232, 0.75), transparent 60%),
        url(/public/assets/images/quarters/forge/parchment.svg),
        linear-gradient(165deg, #f3e7c6, #e7d4a8 65%, #dcc493);
    background-clip: padding-box;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
}
.dw-notice-title { font-family: var(--dw-caps); font-weight: 700; font-size: 21px; letter-spacing: 0.03em; margin: 0 0 8px; color: var(--dw-ink); }
.dw-notice p { margin: 0 0 14px; font-size: 17px; }
.dw-notice-link { font-weight: 700; color: #6b3a12; text-decoration: underline; text-decoration-color: rgba(107, 58, 18, 0.35); text-underline-offset: 3px; }
.dw-notice-link:hover { color: #7a1f1a; }

/* ── For AIs, and gold links on dark ──────────────────────────────── */
.dw-band--stone p { color: var(--dw-bone); text-align: center; }
.dw-gold-link { color: var(--dw-gold); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(217, 180, 90, 0.4); text-underline-offset: 3px; }
.dw-gold-link:hover { color: var(--dw-gold-hi); }

/* ── Lexicon: four words, each a picture in an oak frame ──────────── */
.dw-words { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dw-word { display: block; text-align: center; text-decoration: none; }
.dw-word img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border: 10px solid transparent;
    border-image: url(/public/assets/images/quarters/forge/frame-card.svg) 34 / 28px / 0 stretch;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
}
.dw-word span { display: block; margin-top: 8px; font-family: var(--dw-caps); font-weight: 700; color: var(--dw-gold); letter-spacing: 0.04em; }
.dw-word:hover span { color: var(--dw-gold-hi); }

/* ── History ──────────────────────────────────────────────────────── */
.dw-worlds { margin: 26px 0 0; padding-left: 1.2em; }
.dw-worlds li { margin-bottom: 14px; }
.dw-worlds strong { font-family: var(--dw-caps); letter-spacing: 0.03em; }
.dw-worlds a { color: #6b3a12; font-weight: 600; }

/* ── The gate: a painted sign hung on chains ─────────────────────── */
.dw-band--gate { padding-top: 90px; }
.dw-sign {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    padding: 30px 30px 32px;
    text-align: center;
    border: 12px solid transparent;
    border-image: url(/public/assets/images/quarters/forge/frame-card.svg) 34 / 34px / 0 stretch;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.10), transparent 60%),
        url(/public/assets/images/quarters/forge/oak-grain.svg),
        linear-gradient(180deg, #1c4a3a, var(--dw-green) 70%, #0f2a20);
    background-clip: padding-box;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.6);
}
.dw-sign::before {          /* two chains up into the band's iron strap: what holds the sign */
    content: "";
    position: absolute;
    top: -78px;
    left: 18%;
    right: 18%;
    height: 66px;
    background:
        url(/public/assets/images/quarters/forge/chain.svg) left top / 12px 20px repeat-y,
        url(/public/assets/images/quarters/forge/chain.svg) right top / 12px 20px repeat-y;
}
.dw-sign-title { font-family: var(--dw-caps); font-weight: 800; font-size: clamp(26px, 3.6vw, 36px); letter-spacing: 0.05em; color: var(--dw-gold-hi); text-shadow: 0 2px 0 #06140f; margin: 0 0 8px; }
.dw-sign p { color: rgba(243, 230, 196, 0.9); text-align: center; margin: 0 0 20px; }

/* ── Phones ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .dw-windows { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
    .dw-deeds { grid-template-columns: 1fr; }
    .dw-words { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .dw-band { padding: 48px 16px; }
    .dw-hero { padding: 48px 16px 60px; }
    .dw-notice { padding: 20px 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .dw a, .dw-window-frame img { transition: none; }
}

/* How to get in, under the postcards (2026-09-22): a parchment notice, centred */
.dw-how-in {
    max-width: 760px;
    margin: 40px auto 0;
    padding: 24px 30px 26px;
    text-align: center;
    color: var(--dw-ink);
    border: 12px solid transparent;
    border-image: url(/public/assets/images/quarters/forge/frame-card.svg) 34 / 34px / 0 stretch;
    background:
        radial-gradient(ellipse at 15% 0%, rgba(255, 250, 232, 0.75), transparent 60%),
        url(/public/assets/images/quarters/forge/parchment.svg),
        linear-gradient(165deg, #f3e7c6, #e7d4a8 65%, #dcc493);
    background-clip: padding-box;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
}
.dw-how-in p { margin: 0 0 12px; font-size: 17px; }
.dw-how-in strong { font-family: var(--dw-caps); font-weight: 700; letter-spacing: 0.02em; }
.dw-how-in .dw-hero-actions { margin-top: 16px; }

/* ── The world bar, Forge edition (navigation-world.php with $worldNavForge) ─────────────────────────────────────
   An oak beam bound by an iron strap along its lower edge, the gilt mark turning at the left, gold capitals; the one
   call to action is a slab of the wall's stone. Outside .dw on purpose (the bar is the shell's), so every rule is
   scoped to .wh-navbar--forge, which only a page that opts in gets. */
.wh-navbar.wh-navbar--forge {
    background:
        url(/public/assets/images/quarters/forge/oak-grain.svg),
        linear-gradient(180deg, #4a3420, #2c1d10);
    border-bottom: 0;
    padding: 0.6rem 0 calc(0.6rem + 12px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}
.wh-navbar--forge::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 14px;
    background: url(/public/assets/images/quarters/forge/strap.svg) 0 0 / 64px 14px repeat-x;
    pointer-events: none;
}
.wh-navbar--forge .wh-brand-mark { width: 34px; height: 34px; display: block; }
.wh-navbar--forge .wh-brand-text {
    font-family: 'Cinzel', 'Trajan Pro', 'Palatino Linotype', Georgia, serif;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    color: #d9b45a;
    text-shadow: 0 1px 0 #000, 0 0 12px rgba(217, 180, 90, 0.3);
}
.wh-navbar--forge .wh-nav-link,
.wh-navbar--forge .wh-nav-link:visited {
    font-family: 'Cinzel', 'Trajan Pro', 'Palatino Linotype', Georgia, serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    color: #e9dcc0 !important;
    text-shadow: 0 1px 0 #000;
}
.wh-navbar--forge .wh-nav-link:hover,
.wh-navbar--forge .wh-nav-link:focus-visible { color: #f1d58c !important; }
.wh-navbar--forge .wh-user-avatar {
    background: radial-gradient(circle at 35% 30%, #f6e2a3, #c9982f 45%, #6d4a12);
    color: #2a1c0d;
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 800;
    box-shadow: 0 0 0 2px #1a1108;
}
.wh-navbar--forge .wh-btn-signup {
    font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #d9b45a;
    background:
        linear-gradient(180deg, rgba(26, 18, 10, 0.70), rgba(6, 4, 2, 0.88)),
        url(/public/assets/images/quarters/forge/ashlar-wall.webp) 50% 38% / 520px 1040px,
        #2a2622;
    border: 1px solid #000;
    border-radius: 2px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 0 2px #3a2c14;
    text-shadow: 0 -1px 0 #000;
}
.wh-navbar--forge .wh-btn-signup:hover { color: #f1d58c; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 0 2px #b8892b; }
.wh-navbar--forge .wh-dropdown {
    font-family: 'EB Garamond', 'Palatino Linotype', Georgia, serif;
    background:
        url(/public/assets/images/quarters/forge/parchment.svg),
        linear-gradient(165deg, #f3e7c6, #e2cd9c);
    border: 2px solid #2c1d10;
    border-radius: 2px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5);
}
.wh-navbar--forge .wh-dropdown .dropdown-item { color: #2a1c0d; font-size: 16px; }
.wh-navbar--forge .wh-dropdown .dropdown-item:hover { background: rgba(184, 137, 43, 0.22); color: #2a1c0d; }
.wh-navbar--forge .navbar-toggler { border-color: rgba(217, 180, 90, 0.6); }
.wh-navbar--forge .navbar-toggler-icon { filter: invert(0.85) sepia(1) saturate(2) hue-rotate(5deg); }
/* the account name keeps its own case: the reading serif, not Cinzel (STYLE-FAMILIES.md, Forge rules) */
.wh-navbar--forge .dropdown-toggle.wh-nav-link { font-family: 'EB Garamond', 'Palatino Linotype', Georgia, serif; font-size: 1.05rem; letter-spacing: 0; }
