/* Lore & Logic — Version 1 shared stylesheet
   Visual thesis: an adult, editorial cosmic makerspace—not generic gamer RGB. */

:root {
    color-scheme: dark;

    --space-950: #030307;
    --space-900: #070710;
    --space-850: #0b0b16;
    --panel: rgba(8, 9, 18, 0.84);
    --panel-strong: rgba(7, 8, 16, 0.94);
    --panel-soft: rgba(18, 17, 34, 0.7);

    --text: #f5f3fa;
    --text-soft: #d3cfde;
    --text-muted: #a9a4b7;

    --purple: #8b5cf0;
    --magenta: #d64aa6;
    --blue: #3295d2;
    --teal: #51d2d2;
    --pink: #f06fae;
    --red: #c84f6f;
    --yellow: #ffd166;
    --makerspace-orange: #f85001;
    --makerspace-blue: #15789a;

    --border: rgba(151, 199, 230, 0.2);
    --border-bright: rgba(106, 231, 234, 0.52);
    --focus: #94f4f2;

    --font-body: "Quicksand", "Trebuchet MS", Arial, sans-serif;
    --font-marker: "Permanent Marker", "Comic Sans MS", cursive;
    --font-friendly: "Fredoka", "Arial Rounded MT Bold", Arial, sans-serif;

    --shadow-panel: 0 24px 70px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 42px rgba(81, 210, 210, 0.12);
    --radius-sm: 0.75rem;
    --radius-md: 1.2rem;
    --radius-lg: 2rem;
    --content: 76rem;
}

/* Foundation */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 8rem;
}

body {
    margin: 0;
    min-width: 18rem;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(ellipse at 13% 15%, rgba(123, 65, 182, 0.42), transparent 31%),
        radial-gradient(ellipse at 83% 13%, rgba(31, 116, 176, 0.34), transparent 29%),
        radial-gradient(ellipse at 72% 48%, rgba(202, 52, 148, 0.2), transparent 33%),
        radial-gradient(ellipse at 20% 68%, rgba(20, 149, 159, 0.22), transparent 31%),
        radial-gradient(ellipse at 92% 88%, rgba(179, 53, 84, 0.19), transparent 28%),
        linear-gradient(155deg, var(--space-950), var(--space-900) 58%, #06040b);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
}

body::before,
body::after {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
}

body::before {
    opacity: 0.56;
    background-image:
        radial-gradient(circle at 8% 12%, rgba(255,255,255,.78) 0 1px, transparent 1.5px),
        radial-gradient(circle at 24% 74%, rgba(255,255,255,.6) 0 1px, transparent 1.5px),
        radial-gradient(circle at 38% 25%, rgba(155,229,255,.72) 0 1px, transparent 1.5px),
        radial-gradient(circle at 57% 83%, rgba(255,255,255,.62) 0 1px, transparent 1.5px),
        radial-gradient(circle at 74% 9%, rgba(255,210,239,.8) 0 1px, transparent 1.5px),
        radial-gradient(circle at 91% 64%, rgba(255,255,255,.7) 0 1px, transparent 1.5px);
    background-size: 13rem 17rem, 19rem 23rem, 17rem 29rem, 29rem 21rem, 23rem 17rem, 31rem 27rem;
}

body::after {
    background: linear-gradient(to bottom, transparent 0 78%, rgba(3, 3, 7, 0.62));
}

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

a {
    color: inherit;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h2,
h3 {
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

::selection {
    color: #05060b;
    background: var(--teal);
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 4px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100;
    padding: 0.8rem 1.05rem;
    color: #05060b;
    background: var(--teal);
    border-radius: var(--radius-sm);
    font-weight: 700;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(122, 194, 220, 0.15);
    background:
        linear-gradient(90deg, rgba(138, 92, 240, 0.06), transparent 34%, rgba(45, 212, 191, 0.05)),
        rgba(4, 4, 10, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.header-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1rem, 2.25vw, 2.2rem);
    width: min(var(--content), calc(100% - 2rem));
    min-height: 9.85rem;
    margin-inline: auto;
    padding-block: 0.25rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    text-decoration: none;
}

.brand--illustrated {
    flex: 0 1 auto;
    border-radius: var(--radius-sm);
}

.brand--illustrated:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 0.25rem;
}

.brand-art {
    display: block;
    width: auto;
    height: clamp(7.55rem, 9.25vw, 9.25rem);
    max-width: min(34.75rem, 52vw);
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 0 14px rgba(50, 134, 224, 0.16));
}

.primary-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(0.8rem, 2vw, 1.5rem);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.primary-nav a {
    position: relative;
    padding-block: 0.4rem;
    color: var(--text-soft);
    text-decoration: none;
}

.primary-nav a::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, var(--teal), var(--purple));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
    color: var(--text);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
    transform: scaleX(1);
}

/* Shared layout and type */

.section-shell,
.hero,
.identity-strip,
.site-footer {
    width: min(var(--content), calc(100% - 2rem));
    margin-inline: auto;
}

.section-shell {
    padding-block: clamp(4.75rem, 9vw, 8rem);
}

.section-heading {
    max-width: 48rem;
    margin-bottom: 2.25rem;
}

.section-heading--split {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 0.8fr);
    gap: 2rem;
    max-width: none;
    align-items: end;
}

.section-heading h2,
.about-panel h2 {
    margin-bottom: 0.8rem;
    font-family: var(--font-marker);
    font-size: clamp(2.25rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: 0.015em;
}

.section-heading p,
.about-copy {
    color: var(--text-soft);
}

.eyebrow {
    margin-bottom: 0.8rem;
    color: var(--teal);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* Hero */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(19rem, 0.82fr);
    gap: clamp(2rem, 6vw, 6rem);
    min-height: calc(100vh - 9.85rem);
    padding-block: clamp(3rem, 7vw, 6rem);
    align-items: center;
}

.hero--solo {
    grid-template-columns: minmax(0, 1fr);
    min-height: min(44rem, calc(100vh - 9.85rem));
}

.hero--solo .hero-copy {
    max-width: 64rem;
}

.hero > * {
    min-width: 0;
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.hero h1 {
    margin-bottom: 1rem;
    font-family: var(--font-marker);
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-shadow:
        0 0 32px rgba(139, 92, 240, 0.3),
        0 0 70px rgba(50, 149, 210, 0.14);
}

.hero-lede {
    max-width: 42rem;
    margin-bottom: 1rem;
    color: var(--text);
    font-size: clamp(1.35rem, 3vw, 2.1rem);
    font-weight: 500;
    line-height: 1.35;
}

.hero-intro {
    max-width: 42rem;
    margin-bottom: 2rem;
    color: var(--text-soft);
    font-size: 1.06rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.button {
    display: inline-flex;
    min-height: 3rem;
    padding: 0.7rem 1.15rem;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button--primary {
    color: #05070b;
    background: linear-gradient(110deg, var(--teal), #8ee2f2);
    box-shadow: 0 0 28px rgba(81, 210, 210, 0.2);
}

.button--secondary {
    color: var(--text);
    border-color: var(--border);
    background: rgba(8, 9, 18, 0.58);
}

.button--secondary:hover {
    border-color: var(--border-bright);
    box-shadow: var(--shadow-glow);
}

.hero-art {
    position: relative;
    margin: 0;
}

.hero-art::before {
    position: absolute;
    inset: 10% -5%;
    z-index: -1;
    content: "";
    background: radial-gradient(circle, rgba(139, 92, 240, 0.3), rgba(50, 149, 210, 0.12) 42%, transparent 70%);
    filter: blur(28px);
}

.art-frame {
    overflow: hidden;
    border: 1px solid rgba(142, 215, 238, 0.28);
    border-radius: min(8vw, 2.75rem);
    background: #05050a;
    box-shadow: 0 36px 90px rgba(0, 0, 0, 0.52), 0 0 42px rgba(104, 74, 188, 0.16);
}

.art-frame img {
    width: 100%;
    aspect-ratio: 1582 / 2048;
    object-fit: cover;
}

.hero-art figcaption {
    max-width: 30rem;
    margin: 1rem auto 0;
    color: var(--text-muted);
    font-size: 0.86rem;
    text-align: center;
}

.mascot-label {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--text);
    font-family: var(--font-friendly);
    font-size: 1.05rem;
}

/* Identity strip */

.identity-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--panel);
    box-shadow: var(--shadow-panel);
}

.identity-strip p {
    margin: 0;
    padding: 1.25rem;
    color: var(--text-muted);
    font-size: 0.83rem;
    line-height: 1.45;
}

.identity-strip p + p {
    border-left: 1px solid var(--border);
}

.identity-strip span {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--text);
    font-weight: 700;
}

/* Section portals */

.portal-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

.portal-card {
    position: relative;
    display: flex;
    grid-column: span 4;
    min-height: 20rem;
    padding: clamp(1.4rem, 3vw, 2rem);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background:
        linear-gradient(145deg, rgba(255,255,255,.035), transparent 45%),
        var(--panel);
    box-shadow: 0 18px 52px rgba(0,0,0,.22);
    color: inherit;
    text-decoration: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.portal-card::after {
    position: absolute;
    right: -3rem;
    bottom: -4.5rem;
    width: 12rem;
    aspect-ratio: 1;
    content: "";
    border-radius: 50%;
    background: var(--card-glow, var(--purple));
    opacity: 0.1;
    filter: blur(28px);
}

.portal-card:hover {
    border-color: color-mix(in srgb, var(--card-glow, var(--teal)) 48%, transparent);
    box-shadow: 0 20px 60px rgba(0,0,0,.35), 0 0 32px color-mix(in srgb, var(--card-glow, var(--teal)) 12%, transparent);
    transform: translateY(-3px);
}

.portal-card:focus-visible {
    border-color: var(--focus);
    box-shadow: 0 0 0 3px rgba(148, 244, 242, 0.14), var(--shadow-glow);
}

/* Interior pages */

.interior-main {
    width: min(var(--content), calc(100% - 2rem));
    margin-inline: auto;
}

.page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.6fr);
    gap: clamp(2rem, 7vw, 6rem);
    min-height: 30rem;
    padding-block: clamp(4rem, 10vw, 8rem);
    align-items: end;
    border-bottom: 1px solid var(--border);
}

.page-hero h1 {
    margin-bottom: 1rem;
    font-family: var(--font-marker);
    font-size: clamp(3.25rem, 9vw, 7rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.page-hero__lede {
    max-width: 48rem;
    margin-bottom: 0;
    color: var(--text-soft);
    font-size: clamp(1.15rem, 2.4vw, 1.6rem);
}

.page-hero--mind-palace {
    overflow: hidden;
    margin-top: 2rem;
    padding-inline: clamp(1.25rem, 4vw, 3.5rem);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(90deg, rgba(3, 4, 13, 0.94) 0%, rgba(7, 8, 24, 0.78) 47%, rgba(3, 4, 13, 0.38) 100%),
        url("assets/mind-palace-stars.png") center / cover no-repeat;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42), 0 0 45px rgba(81, 210, 210, 0.08);
}

.page-hero-art {
    overflow: hidden;
    margin: 0;
    align-self: end;
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-lg);
    background: rgba(4, 5, 13, 0.9);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42), var(--shadow-glow);
}

.page-hero-art img {
    width: 100%;
    height: 22rem;
    object-fit: cover;
}

.page-hero-art--portrait img {
    object-position: center 22%;
}

.page-hero-art--mascot img {
    height: 24rem;
    object-fit: contain;
    padding: 1rem;
    background: #f7f8fa;
}

.page-hero-art--symbol img {
    height: 15rem;
    object-fit: contain;
    padding: 2rem;
    background: radial-gradient(circle, rgba(130, 28, 44, 0.18), transparent 68%);
}

.page-hero-art figcaption {
    display: grid;
    gap: 0.25rem;
    padding: 1rem 1.15rem 1.2rem;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.page-hero-art figcaption strong {
    color: var(--teal);
    font-family: var(--font-friendly);
}

.hero-link-row {
    display: flex;
    margin: 1.75rem 0 0;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.hero-link-row span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.wide-art-card {
    display: grid;
    overflow: hidden;
    margin: 0;
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 0.42fr);
    align-items: center;
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(16, 18, 35, 0.98), rgba(7, 8, 17, 0.96));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.wide-art-card img {
    width: 100%;
    max-height: 37rem;
    object-fit: contain;
    background: #f7f8fa;
}

.wide-art-card figcaption {
    padding: clamp(1.5rem, 4vw, 3rem);
    color: var(--text-soft);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.community-feature {
    display: grid;
    overflow: hidden;
    margin-bottom: 1.2rem;
    grid-template-columns: minmax(9rem, 13rem) minmax(0, 1fr);
    align-items: center;
    border: 1px solid rgba(139, 92, 240, 0.45);
    border-radius: var(--radius-md);
    color: var(--text);
    text-decoration: none;
    background: linear-gradient(135deg, rgba(139, 92, 240, 0.16), var(--panel));
}

.community-feature img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: #f7f1e7;
}

.community-feature > span {
    display: grid;
    gap: 0.35rem;
    padding: 1.5rem;
}

.community-feature strong {
    color: var(--teal);
    font-family: var(--font-friendly);
    font-size: 1.2rem;
}

.community-feature small {
    color: var(--text-soft);
    font-size: 0.95rem;
}

.community-feature:hover,
.community-feature:focus-visible {
    border-color: var(--teal);
    box-shadow: var(--shadow-glow);
}

.character-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.character-card {
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--panel);
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24);
}

.character-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: contain;
    background: radial-gradient(circle at 50% 30%, rgba(139, 92, 240, 0.16), rgba(4, 5, 13, 0.98));
}

.character-card figcaption {
    padding: 1rem 1.1rem 1.2rem;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.placeholder-card--linked {
    display: flex;
    flex-direction: column;
}

.placeholder-card--linked .source-link {
    margin-top: auto;
}

.page-status,
.recommendation-policy {
    padding: 1.35rem;
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-md);
    color: var(--text-soft);
    background: linear-gradient(145deg, rgba(81, 210, 210, 0.1), var(--panel));
    box-shadow: var(--shadow-glow);
}

.page-status strong,
.recommendation-policy strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--teal);
    font-family: var(--font-friendly);
    font-size: 0.9rem;
}

.page-status p,
.recommendation-policy p {
    margin-bottom: 0;
}

.makerspace-welcome-poster {
    display: grid;
    margin: clamp(2.5rem, 6vw, 5rem) 0 0;
    padding: clamp(1rem, 3vw, 2rem);
    grid-template-columns: minmax(16rem, 29rem) minmax(0, 1fr);
    gap: clamp(1.5rem, 5vw, 4rem);
    align-items: center;
    border: 1px solid rgba(248, 80, 1, 0.42);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 18% 25%, rgba(248, 80, 1, 0.1), transparent 38%),
        radial-gradient(circle at 80% 70%, rgba(21, 120, 154, 0.16), transparent 42%),
        var(--panel-strong);
    box-shadow: var(--shadow-panel);
}

.makerspace-welcome-poster img {
    width: 100%;
    max-height: 46rem;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.makerspace-welcome-poster figcaption {
    color: var(--text-soft);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.7;
}

.makerspace-welcome-poster figcaption strong {
    display: block;
    margin-bottom: 0.7rem;
    color: var(--makerspace-orange);
    font-family: var(--font-friendly);
    font-size: clamp(1.3rem, 3vw, 2rem);
}

.makerspace-setup {
    margin: clamp(2rem, 5vw, 4rem) 0 0;
}

.makerspace-setup__frame {
    overflow: hidden;
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-lg);
    background: var(--panel-strong);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42), 0 0 50px rgba(81, 210, 210, 0.1);
}

.makerspace-setup img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center 48%;
}

.makerspace-setup figcaption {
    max-width: 62rem;
    margin: 0.9rem auto 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

.makerspace-setup figcaption strong {
    color: var(--text-soft);
    font-family: var(--font-friendly);
}

.makerspace-scenes {
    margin-top: clamp(3rem, 7vw, 5.5rem);
}

.makerspace-scenes__heading {
    max-width: 52rem;
    margin-bottom: 1.4rem;
}

.makerspace-scenes__heading h2 {
    margin-bottom: 0.7rem;
    font-family: var(--font-marker);
    font-size: clamp(2.1rem, 4.5vw, 3.6rem);
    font-weight: 400;
    line-height: 1.08;
}

.makerspace-scenes__heading > p:last-child {
    margin-bottom: 0;
    color: var(--text-soft);
}

.makerspace-scenes__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.makerspace-scene {
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(19, 20, 34, 0.94), rgba(7, 8, 15, 0.96));
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.32);
}

.makerspace-scene img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.makerspace-scene figcaption {
    padding: 1rem 1.1rem 1.15rem;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.makerspace-scene figcaption strong {
    color: var(--text-soft);
    font-family: var(--font-friendly);
}

.interior-section {
    padding-block: clamp(4rem, 8vw, 7rem);
}

.interior-section + .interior-section {
    border-top: 1px solid var(--border);
}

.interior-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(16rem, 0.9fr);
    gap: 2rem;
    margin-bottom: 2.2rem;
    align-items: end;
}

.interior-heading h2 {
    margin-bottom: 0;
    font-family: var(--font-marker);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.08;
}

.interior-heading p {
    margin-bottom: 0;
    color: var(--text-soft);
}

.placeholder-grid,
.equipment-grid,
.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.placeholder-card,
.recommendation-card,
.equipment-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--panel);
    box-shadow: 0 18px 52px rgba(0,0,0,.22);
}

.placeholder-card,
.recommendation-card {
    min-height: 15rem;
    padding: 1.5rem;
}

.placeholder-card h3,
.recommendation-card h3,
.equipment-card h3 {
    margin-bottom: 0.6rem;
    font-size: 1.28rem;
    font-weight: 600;
}

.placeholder-card p,
.recommendation-card p,
.equipment-card p {
    color: var(--text-soft);
}

.placeholder-label,
.equipment-kicker {
    margin-bottom: 2rem;
    color: var(--teal) !important;
    font-family: var(--font-friendly);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.equipment-card {
    display: flex;
    min-height: 31rem;
    flex-direction: column;
}

.equipment-card__image,
.equipment-card__placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-bottom: 1px solid var(--border);
    background: #f3f3f5;
}

.equipment-card__image {
    object-fit: contain;
}

.equipment-card__placeholder {
    display: grid;
    padding: 2rem;
    place-items: center;
    color: #373343;
    font-family: var(--font-friendly);
    text-align: center;
}

.equipment-card__body {
    display: flex;
    padding: 1.4rem;
    flex: 1;
    flex-direction: column;
}

.equipment-card__body > :last-child {
    margin-top: auto;
    margin-bottom: 0;
}

.source-link {
    width: fit-content;
    color: var(--teal);
    font-size: 0.84rem;
    font-weight: 600;
}

.book-progress {
    width: fit-content;
    margin: 0.2rem 0 0.75rem;
    padding: 0.3rem 0.65rem;
    border: 1px solid rgba(81, 210, 210, 0.35);
    border-radius: 999px;
    color: var(--teal);
    background: rgba(81, 210, 210, 0.08);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.book-disclosure {
    padding-left: 0.85rem;
    border-left: 2px solid rgba(183, 139, 255, 0.45);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.publication-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.publication-card {
    display: flex;
    min-height: 19rem;
    padding: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background:
        radial-gradient(circle at 100% 0, rgba(139, 92, 240, 0.13), transparent 42%),
        var(--panel);
    box-shadow: 0 18px 52px rgba(0,0,0,.22);
}

.publication-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.28rem;
    font-weight: 600;
    line-height: 1.3;
}

.publication-card h3 a,
.story-card h3 a {
    color: var(--text);
    text-decoration-color: rgba(81, 210, 210, 0.45);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

.publication-card h3 a:hover,
.publication-card h3 a:focus-visible,
.story-card h3 a:hover,
.story-card h3 a:focus-visible {
    color: var(--teal);
}

.publication-card > p:not(.publication-card__meta) {
    color: var(--text-soft);
}

.publication-card .source-link,
.story-card .source-link {
    margin-top: auto;
}

.publication-card__meta {
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.publication-card__meta span {
    color: var(--pink);
    font-weight: 700;
}

/* Long-form articles */

.article-main {
    width: min(100% - 2rem, var(--content));
    margin-inline: auto;
    padding: clamp(3.5rem, 8vw, 7rem) 0 5rem;
}

.longform-article {
    max-width: 64rem;
    margin-inline: auto;
}

.article-header {
    padding-bottom: clamp(2rem, 5vw, 3.5rem);
    border-bottom: 1px solid var(--border);
}

.article-header h1 {
    max-width: 60rem;
    margin: 0.55rem 0 1.15rem;
    font-size: clamp(2.5rem, 7vw, 5.4rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.02;
}

.article-header h1 em {
    color: var(--text-soft);
    font-weight: 300;
}

.article-dek {
    max-width: 48rem;
    color: var(--text-soft);
    font-size: clamp(1.08rem, 2.2vw, 1.35rem);
    line-height: 1.65;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.4rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.article-meta span:not(:last-child)::after {
    margin-left: 1.4rem;
    color: var(--teal);
    content: "•";
}

.article-source-note,
.article-disclosure {
    padding: 1.15rem 1.3rem;
    border: 1px solid rgba(81, 210, 210, 0.3);
    border-radius: var(--radius-sm);
    background: rgba(81, 210, 210, 0.065);
}

.article-source-note {
    max-width: 50rem;
}

.article-source-note strong,
.article-disclosure strong {
    color: var(--teal);
    font-family: var(--font-friendly);
    font-size: 1rem;
}

.article-source-note p,
.article-disclosure p {
    margin: 0.35rem 0 0.65rem;
    color: var(--text-soft);
}

.article-copy {
    max-width: 47rem;
    margin: clamp(2.5rem, 6vw, 4.5rem) auto 0;
    color: var(--text-soft);
    font-size: clamp(1rem, 1.5vw, 1.08rem);
    line-height: 1.85;
}

.article-copy section + section {
    margin-top: 3.2rem;
}

.article-copy h2 {
    margin-bottom: 1rem;
    color: var(--text);
    font-family: var(--font-marker);
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.25;
}

.article-copy p {
    margin: 0 0 1.35rem;
}

.article-copy blockquote {
    margin: 2rem 0;
    padding: 1rem 0 1rem 1.4rem;
    border-left: 3px solid var(--purple);
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 500;
}

.article-disclosure {
    margin-top: 3rem;
    border-color: rgba(240, 111, 174, 0.34);
    background: rgba(240, 111, 174, 0.065);
}

.article-disclosure strong {
    color: var(--pink);
}

.article-back {
    display: flex;
    max-width: 47rem;
    margin: 3rem auto 0;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.article-back a {
    display: inline-flex;
    min-height: 2.75rem;
    padding: 0.55rem 0.9rem;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--panel);
    font-weight: 600;
    text-decoration: none;
}

.article-back a:hover,
.article-back a:focus-visible {
    border-color: var(--border-bright);
    color: var(--teal);
}

.source-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
    align-items: baseline;
}

.source-note {
    margin-top: 1rem;
    color: var(--text-muted) !important;
    font-size: 0.78rem;
}

.recommendation-card--favorite {
    border-color: rgba(255, 209, 102, 0.42);
    background: linear-gradient(145deg, rgba(255, 209, 102, 0.08), var(--panel));
}

.recommendation-card--confirm {
    border-style: dashed;
}

.reading-grid,
.tbr-grid,
.shelf-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.reading-card,
.tbr-card,
.shelf-card,
.reading-highlight {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, rgba(18, 19, 33, 0.94), rgba(8, 9, 17, 0.96));
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.22);
}

.reading-card,
.tbr-card,
.shelf-card {
    padding: 1.5rem;
}

.reading-card h3,
.tbr-card h3,
.shelf-card h3,
.reading-highlight h3 {
    margin: 0.8rem 0 0.65rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.reading-card p,
.shelf-card p,
.reading-highlight p {
    color: var(--text-soft);
}

.reading-card--active {
    border-color: rgba(81, 210, 210, 0.46);
    background: linear-gradient(145deg, rgba(81, 210, 210, 0.1), rgba(8, 9, 17, 0.96));
}

.book-card {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 1.15rem;
    align-items: start;
}

.book-card__cover-link,
.review-entry__cover,
.mini-book > a:first-child {
    display: block;
    border-radius: 0.45rem;
    outline-offset: 0.22rem;
}

.mini-book > a:first-child {
    overflow: hidden;
}

.book-cover,
.review-entry__cover img,
.mini-book img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.38);
}

.book-card__body {
    min-width: 0;
}

.book-card__body h3 {
    margin-top: 0.72rem;
}

.book-isbn {
    margin: 0.85rem 0 0;
    color: var(--text-muted) !important;
    font-size: 0.8rem;
    line-height: 1.45;
}

.book-isbn span {
    color: var(--yellow);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.book-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1rem;
}

.book-actions a,
.mini-book__buy {
    display: inline-flex;
    align-items: center;
    min-height: 2.2rem;
    padding: 0.45rem 0.68rem;
    border: 1px solid rgba(81, 210, 210, 0.3);
    border-radius: 999px;
    color: var(--text);
    background: rgba(81, 210, 210, 0.07);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
}

.book-actions a:hover,
.book-actions a:focus-visible,
.mini-book__buy:hover,
.mini-book__buy:focus-visible {
    border-color: var(--teal);
    background: rgba(81, 210, 210, 0.14);
}

.status-chip {
    display: inline-flex;
    width: fit-content;
    padding: 0.35rem 0.62rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: var(--teal);
    background: rgba(81, 210, 210, 0.08);
    font-family: var(--font-friendly);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.status-chip--paused {
    color: var(--pink);
    background: rgba(244, 139, 216, 0.08);
}

.status-chip--read,
.status-chip--reread {
    color: var(--yellow);
    background: rgba(255, 209, 102, 0.08);
}

.status-chip--tbr {
    margin-bottom: 1rem;
    color: #c9adff;
    background: rgba(176, 132, 255, 0.1);
}

.reading-highlight {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.75fr);
    gap: 1.5rem;
    padding: clamp(1.5rem, 4vw, 2.4rem);
    border-color: rgba(255, 209, 102, 0.36);
    background: linear-gradient(135deg, rgba(121, 72, 188, 0.2), rgba(8, 9, 17, 0.98) 55%, rgba(81, 210, 210, 0.08));
}

.reading-highlight .eyebrow {
    margin-bottom: 0;
}

.reading-highlight__note {
    align-self: center;
    padding: 1.1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(3, 4, 10, 0.5);
}

.reading-highlight__note > :last-child {
    margin-bottom: 0;
}

.reading-highlight__note hr {
    margin: 1.2rem 0;
    border: 0;
    border-top: 1px solid var(--border);
}

.book-actions--stacked {
    align-items: stretch;
    flex-direction: column;
}

.book-actions--stacked a {
    justify-content: center;
    text-align: center;
}

.series-covers {
    display: grid;
    grid-template-columns: repeat(4, minmax(7.2rem, 1fr));
    gap: 0.85rem;
    margin-top: 1.35rem;
}

.edition-callout {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 209, 102, 0.32);
    border-radius: var(--radius-sm);
    background: rgba(255, 209, 102, 0.07);
}

.edition-callout strong {
    color: var(--yellow);
}

.empyrean-shelf-photo {
    margin: 1.15rem 0 0;
    overflow: hidden;
    border: 1px solid rgba(255, 209, 102, 0.28);
    border-radius: var(--radius-sm);
    background: rgba(2, 3, 10, 0.8);
}

.empyrean-shelf-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2.55 / 1;
    object-fit: cover;
}

.empyrean-shelf-photo figcaption {
    padding: 0.8rem 0.95rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.mini-book {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.mini-book h4 {
    margin: 0.65rem 0 0.45rem;
    font-size: 0.92rem;
    line-height: 1.25;
}

.mini-book img.mini-book__edition-image {
    object-fit: contain;
    background: #fff;
}

.mini-book img.mini-book__edition-image--threshing-day {
    transform: scale(1.9);
    transform-origin: center;
}

.mini-book__edition {
    margin: 0 0 0.65rem;
    color: var(--yellow) !important;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.4;
}

.mini-book__buy {
    width: fit-content;
    margin-top: auto;
    min-height: auto;
    padding: 0.38rem 0.55rem;
    font-size: 0.68rem;
}

.review-entry {
    display: grid;
    grid-template-columns: minmax(10rem, 15rem) minmax(0, 1fr);
    gap: clamp(1.4rem, 4vw, 2.5rem);
    padding: clamp(1.35rem, 4vw, 2.4rem);
    border: 1px solid rgba(176, 132, 255, 0.4);
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, rgba(121, 72, 188, 0.17), rgba(8, 9, 17, 0.97) 58%, rgba(81, 210, 210, 0.07));
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.review-entry__content {
    min-width: 0;
}

.review-entry h3 {
    margin: 0.75rem 0 0.25rem;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.book-byline {
    margin-top: 0;
    color: var(--text-muted);
}

.review-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.3rem;
}

.review-columns section {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(3, 4, 10, 0.48);
}

.review-columns h4 {
    margin: 0 0 0.55rem;
    color: var(--yellow);
    font-size: 1rem;
}

.review-columns p {
    margin: 0;
    color: var(--text-soft);
}

.spoiler-panel {
    margin-top: 1rem;
    border: 1px solid rgba(244, 139, 216, 0.35);
    border-radius: var(--radius-sm);
    background: rgba(244, 139, 216, 0.06);
}

.spoiler-panel summary {
    padding: 0.9rem 1rem;
    color: var(--pink);
    font-weight: 700;
    cursor: pointer;
}

.spoiler-panel p {
    margin: 0;
    padding: 0 1rem 1rem;
    color: var(--text-soft);
}

.cover-credit {
    margin: 1rem 0 0;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.book-list {
    display: grid;
    gap: 0.7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.book-list li {
    position: relative;
    padding-left: 1.1rem;
    color: var(--text-soft);
}

.book-list li::before {
    position: absolute;
    top: 0.68em;
    left: 0;
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--teal));
    content: "";
}

.shelf-card--wide {
    grid-column: 1 / -1;
    border-color: rgba(244, 139, 216, 0.3);
}

.reading-card cite,
.tbr-card cite,
.shelf-card cite,
.reading-highlight cite,
.now-card cite {
    font-style: italic;
}

.gallery-section {
    margin-top: 3rem;
}

.gallery-section h3 {
    margin-bottom: 0.3rem;
    font-family: var(--font-marker);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 400;
}

.gallery-section > p {
    color: var(--text-muted);
}

.gallery-track {
    display: grid;
    grid-auto-columns: minmax(17rem, 32%);
    grid-auto-flow: column;
    gap: 1rem;
    padding: 0.25rem 0 1rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-color: var(--teal) rgba(255,255,255,.06);
}

.gallery-slot {
    min-height: 20rem;
    margin: 0;
    overflow: hidden;
    scroll-snap-align: start;
    border: 1px dashed var(--border-bright);
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, rgba(81, 210, 210, 0.07), var(--panel));
}

.gallery-slot__image {
    display: grid;
    min-height: 15rem;
    padding: 2rem;
    place-items: center;
    color: var(--text-muted);
    font-family: var(--font-friendly);
    text-align: center;
}

.gallery-slot figcaption {
    padding: 1rem;
    border-top: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 0.85rem;
}

.gallery-slot--photo {
    border-style: solid;
    background: linear-gradient(145deg, rgba(248, 80, 1, 0.08), rgba(21, 120, 154, 0.08) 48%, var(--panel));
}

.gallery-slot--photo img {
    display: block;
    width: 100%;
    height: 18rem;
    object-fit: contain;
    background: rgba(2, 3, 10, 0.92);
}

.gallery-slot--photo figcaption strong,
.gallery-slot--photo figcaption span {
    display: block;
}

.gallery-slot--photo figcaption strong {
    margin-bottom: 0.4rem;
    color: var(--text-main);
    font-family: var(--font-friendly);
    font-size: 1rem;
    line-height: 1.25;
}

.gallery-slot--photo figcaption span {
    line-height: 1.55;
}

.page-directory {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 0;
    padding: 1.5rem 0 4rem;
    border-top: 1px solid var(--border);
    list-style: none;
}

.page-directory a {
    display: inline-flex;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-soft);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}

.page-directory a:hover,
.page-directory a:focus-visible,
.page-directory a[aria-current="page"] {
    color: var(--space-950);
    border-color: var(--teal);
    background: var(--teal);
}

.research-note {
    padding: 1.5rem;
    border-left: 3px solid var(--yellow);
    color: var(--text-soft);
    background: rgba(255, 209, 102, 0.06);
}

.research-note p:last-child {
    margin-bottom: 0;
}

.portal-card h3 {
    margin-bottom: 0.7rem;
    font-family: var(--font-marker);
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 400;
    line-height: 1.12;
}

.portal-card p:not(.card-number) {
    color: var(--text-soft);
}

.card-number {
    margin-bottom: 2.5rem;
    color: var(--card-glow, var(--teal));
    font-family: var(--font-friendly);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
}

.card-note {
    margin: auto 0 0;
    padding-top: 1rem;
    color: var(--text-muted) !important;
    font-size: 0.88rem;
}

.portal-card--maker { --card-glow: var(--yellow); grid-column: span 5; }
.portal-card--books { --card-glow: var(--magenta); }
.portal-card--blog { --card-glow: var(--teal); }
.portal-card--opinion { --card-glow: var(--red); grid-column: span 4; }
.portal-card--lore { --card-glow: var(--purple); grid-column: span 5; }
.portal-card--tabletop { --card-glow: var(--pink); }
.portal-card--development { --card-glow: var(--blue); }
.portal-card--libraries { --card-glow: var(--teal); grid-column: span 5; }
.portal-card--about { --card-glow: var(--yellow); grid-column: span 4; }

.split-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.split-labels span,
.status-pill {
    display: inline-flex;
    width: fit-content;
    padding: 0.4rem 0.65rem;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    color: var(--text-soft);
    background: rgba(255,255,255,.04);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Latest */

.latest-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.story-card {
    display: flex;
    min-height: 18rem;
    padding: clamp(1.5rem, 4vw, 2.25rem);
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--panel);
    box-shadow: var(--shadow-panel);
}

.story-card--featured {
    grid-row: span 2;
    min-height: 37rem;
    background:
        radial-gradient(circle at 100% 0, rgba(139, 92, 240, 0.23), transparent 42%),
        radial-gradient(circle at 0 100%, rgba(81, 210, 210, 0.12), transparent 45%),
        var(--panel-strong);
}

.story-card h3 {
    margin-bottom: 0.8rem;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    font-weight: 500;
    line-height: 1.25;
}

.story-card p:not(.story-meta) {
    color: var(--text-soft);
}

.story-meta {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.story-meta span {
    margin-right: 0.5rem;
    color: var(--teal);
}

/* Current activity */

.now-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.now-card {
    min-height: 15rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border-bright);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    background: linear-gradient(to bottom, rgba(81, 210, 210, 0.07), var(--panel));
}

.now-icon {
    display: grid;
    width: 2.65rem;
    aspect-ratio: 1;
    margin-bottom: 2.2rem;
    place-items: center;
    border: 1px solid var(--border-bright);
    border-radius: 50%;
    color: var(--teal);
    font-family: var(--font-friendly);
    font-weight: 600;
}

.now-card h3 {
    margin-bottom: 0.55rem;
    font-size: 1.15rem;
    font-weight: 600;
}

.placeholder-copy {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* About and community */

.about-panel {
    display: grid;
    grid-template-columns: minmax(15rem, .8fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 7vw, 6rem);
    padding: clamp(2rem, 5vw, 4rem);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(120deg, rgba(139,92,240,.12), transparent 42%),
        var(--panel-strong);
    box-shadow: var(--shadow-panel);
}

.about-copy {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.about-copy p:last-child {
    margin-bottom: 0;
}

.community-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.community-list li {
    min-height: 4.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--panel);
    font-weight: 500;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.community-list li:hover,
.community-list li:focus-within {
    border-color: var(--border-bright);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.community-list a {
    display: flex;
    min-height: 4.5rem;
    padding: 1rem 1.1rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-radius: inherit;
    text-decoration: none;
}

.link-destination {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 400;
    text-align: right;
}

/* Footer */

.site-footer {
    display: flex;
    padding-block: 2.25rem 3rem;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.83rem;
}

.site-footer p {
    margin-bottom: 0;
}

.validation-badge {
    flex: 0 0 auto;
    line-height: 0;
}

.validation-badge img {
    display: block;
}

.footer-brand {
    color: var(--text);
    font-family: var(--font-marker);
    font-size: 1.35rem;
}

/* Poster-derived orange/blue rhythm for brush-marker headings. */
.section-heading h2,
.about-panel h2,
.hero h1,
.page-hero h1,
.makerspace-scenes__heading h2,
.interior-heading h2,
.article-copy h2,
.gallery-section h3,
.footer-brand {
    color: var(--makerspace-blue);
    text-shadow: 0 0 28px rgba(21, 120, 154, 0.2);
}

.section-heading h2::first-line,
.about-panel h2::first-line,
.hero h1::first-line,
.page-hero h1::first-line,
.makerspace-scenes__heading h2::first-line,
.interior-heading h2::first-line,
.article-copy h2::first-line,
.gallery-section h3::first-line,
.footer-brand::first-line {
    color: var(--makerspace-orange);
}

.portal-grid > :nth-child(odd) h3,
.placeholder-grid > :nth-child(odd) h3,
.equipment-grid > :nth-child(odd) h3,
.recommendation-grid > :nth-child(odd) h3,
.reading-grid > :nth-child(odd) h3,
.tbr-grid > :nth-child(odd) h3,
.shelf-grid > :nth-child(odd) h3,
.publication-grid > :nth-child(odd) h3,
.latest-grid > :nth-child(odd) h3,
.now-grid > :nth-child(odd) h3 {
    color: var(--makerspace-orange);
}

.portal-grid > :nth-child(even) h3,
.placeholder-grid > :nth-child(even) h3,
.equipment-grid > :nth-child(even) h3,
.recommendation-grid > :nth-child(even) h3,
.reading-grid > :nth-child(even) h3,
.tbr-grid > :nth-child(even) h3,
.shelf-grid > :nth-child(even) h3,
.publication-grid > :nth-child(even) h3,
.latest-grid > :nth-child(even) h3,
.now-grid > :nth-child(even) h3 {
    color: var(--makerspace-blue);
}

.portal-grid h3::first-line,
.placeholder-grid h3::first-line,
.equipment-grid h3::first-line,
.recommendation-grid h3::first-line,
.reading-grid h3::first-line,
.tbr-grid h3::first-line,
.shelf-grid h3::first-line,
.publication-grid h3::first-line,
.latest-grid h3::first-line,
.now-grid h3::first-line {
    color: inherit;
}

/* Responsive adjustments */

@media (max-width: 68rem) {
    .header-shell {
        padding-block: 0.8rem;
        flex-direction: column;
        gap: 0.25rem;
    }

    .brand-art {
        height: 8.7rem;
        max-width: min(100%, 32.5rem);
        object-position: center;
    }

    .primary-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero {
        min-height: auto;
        grid-template-columns: minmax(0, 1fr) minmax(17rem, .72fr);
    }

    .identity-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .identity-strip p + p {
        border-left: 0;
    }

    .identity-strip p:nth-child(even) {
        border-left: 1px solid var(--border);
    }

    .identity-strip p:nth-child(n+3) {
        border-top: 1px solid var(--border);
    }

    .portal-card,
    .portal-card--maker,
    .portal-card--opinion,
    .portal-card--lore,
    .portal-card--libraries,
    .portal-card--about {
        grid-column: span 6;
    }

    .portal-card:last-child {
        grid-column: span 12;
    }

    .now-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .placeholder-grid,
    .equipment-grid,
    .recommendation-grid,
    .character-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .character-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 48rem) {
    html {
        scroll-padding-top: 10rem;
    }

    .brand-art {
        height: 7.55rem;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 4rem;
    }

    .hero h1 {
        font-size: clamp(2.4rem, 12.5vw, 4rem);
        overflow-wrap: anywhere;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-intro,
    .hero-lede {
        margin-inline: auto;
    }

    .hero-actions {
        display: grid;
        width: 100%;
        justify-content: center;
    }

    .hero-actions .button {
        width: 100%;
        white-space: normal;
    }

    .hero-art {
        width: min(100%, 30rem);
        max-width: 100%;
        margin-inline: auto;
    }

    .section-heading--split,
    .about-panel,
    .page-hero,
    .interior-heading {
        grid-template-columns: minmax(0, 1fr);
    }

    .page-hero > *,
    .interior-heading > * {
        min-width: 0;
    }

    .page-hero {
        min-height: auto;
        padding-top: 4rem;
    }

    .page-hero--mind-palace {
        padding: 3rem 1rem 1rem;
        background-position: 58% center;
    }

    .page-hero-art {
        width: min(100%, 28rem);
        margin-inline: auto;
    }

    .wide-art-card,
    .makerspace-welcome-poster,
    .community-feature,
    .character-gallery {
        grid-template-columns: minmax(0, 1fr);
    }

    .makerspace-welcome-poster img {
        width: min(100%, 30rem);
        margin-inline: auto;
    }

    .community-feature img {
        max-height: 22rem;
    }

    .character-card:last-child {
        grid-column: auto;
    }

    .page-hero h1 {
        font-size: clamp(2.8rem, 15vw, 4.5rem);
    }

    .makerspace-setup img {
        aspect-ratio: 4 / 3;
    }

    .makerspace-scenes__grid {
        grid-template-columns: 1fr;
    }

    .portal-card,
    .portal-card--maker,
    .portal-card--opinion,
    .portal-card--lore,
    .portal-card--libraries,
    .portal-card--about,
    .portal-card:last-child {
        grid-column: span 12;
    }

    .latest-grid {
        grid-template-columns: 1fr;
    }

    .publication-grid {
        grid-template-columns: 1fr;
    }

    .article-meta {
        display: grid;
        gap: 0.35rem;
    }

    .article-meta span::after {
        display: none;
    }

    .story-card--featured {
        grid-row: auto;
        min-height: 24rem;
    }

    .community-list {
        grid-template-columns: 1fr;
    }

    .placeholder-grid,
    .equipment-grid,
    .recommendation-grid,
    .reading-grid,
    .tbr-grid,
    .shelf-grid {
        grid-template-columns: 1fr;
    }

    .reading-highlight {
        grid-template-columns: 1fr;
    }

    .series-covers {
        grid-template-columns: repeat(2, minmax(7rem, 1fr));
    }

    .review-entry,
    .review-columns {
        grid-template-columns: 1fr;
    }

    .review-entry__cover {
        width: min(15rem, 64vw);
        margin-inline: auto;
    }

    .shelf-card--wide {
        grid-column: auto;
    }

    .gallery-track {
        grid-auto-columns: minmax(16rem, 82%);
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 32rem) {
    .section-shell,
    .hero,
    .identity-strip,
    .site-footer,
    .header-shell,
    .interior-main {
        width: min(100% - 1.2rem, var(--content));
    }

    .brand {
        width: 100%;
        justify-content: center;
    }

    .brand-art {
        height: 6.45rem;
        max-width: 100%;
    }

    .primary-nav {
        gap: 0.45rem 0.9rem;
        font-size: 0.78rem;
    }

    .identity-strip,
    .now-grid {
        grid-template-columns: 1fr;
    }

    .identity-strip p:nth-child(even) {
        border-left: 0;
    }

    .identity-strip p + p {
        border-top: 1px solid var(--border);
    }

    .community-list a {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.2rem;
    }

    .book-card {
        grid-template-columns: 5.8rem minmax(0, 1fr);
        gap: 0.85rem;
        padding: 1rem;
    }

    .book-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .book-actions a {
        justify-content: center;
        text-align: center;
    }

    .link-destination {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: more) {
    :root {
        --panel: rgba(3, 3, 8, 0.96);
        --panel-strong: rgba(2, 2, 6, 0.99);
        --text-soft: #ebe8f1;
        --text-muted: #d0cbd8;
        --border: rgba(201, 235, 250, 0.55);
    }
}
