/* Handbook Hub v0.1 — Modern Navy Editorial */
:root {
    color-scheme: light;
    --navy: #0b1730;
    --navy-deep: #081229;
    --ink: #111e38;
    --ink-soft: #5b677f;
    --ink-muted: #8b96a9;
    --accent: #4777ee;
    --accent-strong: #355fd9;
    --accent-soft: #e8eeff;
    --mint: #acf2db;
    --bg: #fafbfe;
    --surface: #ffffff;
    --surface-alt: #f2f5fa;
    --surface-muted: #e8ecf4;
    --border: #e4e9f1;
    --border-strong: #ccd5e4;
    --shadow: 0 14px 46px rgba(17, 36, 77, 0.055);
    --shadow-hover: 0 20px 55px rgba(18, 41, 85, 0.14);
    --radius: 18px;
    --container: 1220px;
    --font-heading: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    --font-body: "DM Sans", "Segoe UI", sans-serif;
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --ink: #f2f6ff;
    --ink-soft: #b7c3d6;
    --ink-muted: #8b9cb7;
    --accent: #83a5ff;
    --accent-strong: #7398ff;
    --accent-soft: #1d3055;
    --bg: #0a1224;
    --surface: #121e34;
    --surface-alt: #182640;
    --surface-muted: #253550;
    --border: #273751;
    --border-strong: #385070;
    --shadow: 0 14px 46px rgba(0, 0, 0, 0.13);
    --shadow-hover: 0 24px 56px rgba(0, 0, 0, 0.25);
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}
body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}
a {
    color: inherit;
    text-decoration: none;
}
button,
input,
select {
    font: inherit;
}
button {
    cursor: pointer;
}
svg {
    display: block;
}
.icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}
img {
    max-width: 100%;
}
[hidden] {
    display: none !important;
}
:focus-visible {
    outline: 3px solid #7fa7ff;
    outline-offset: 3px;
}
.container {
    width: min(calc(100% - 72px), var(--container));
    margin-inline: auto;
}
.skip-link {
    position: fixed;
    top: -100px;
    left: 16px;
    padding: 13px 18px;
    z-index: 1000;
    border-radius: 8px;
    color: #fff;
    background: #294dc7;
}
.skip-link:focus {
    top: 14px;
}
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 120;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #4777ee, #a5c2ff, #8ff0d1);
    transition: width 0.1s linear;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    width: 100%;
    background: var(--surface);
    border-bottom: 1px solid transparent;
    transition:
        background 0.2s,
        box-shadow 0.2s,
        border-color 0.2s;
}
.site-header.is-scrolled {
    border-color: var(--border);
    box-shadow: 0 6px 22px rgba(5, 19, 44, 0.055);
    background: color-mix(in srgb, var(--surface) 93%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.header-inner {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand,
.footer-brand {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.065em;
    white-space: nowrap;
}
.brand {
    font-size: 19px;
}
.brand-mark {
    width: 39px;
    height: 39px;
    flex: none;
    background: #0b1730;
    color: #c6d6ff;
    border-radius: 13px;
    display: grid;
    place-items: center;
}
.brand-mark svg {
    width: 30px;
    height: 30px;
}
.brand-dot {
    color: #4777ee;
}
.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 39px;
    margin-left: auto;
    margin-right: auto;
}
.nav-link {
    color: var(--ink-soft);
    font-size: 13.5px;
    font-weight: 700;
    position: relative;
    transition: color 0.2s;
}
.nav-link:hover {
    color: var(--accent);
}
.nav-link::after {
    content: "";
    position: absolute;
    height: 2px;
    bottom: -9px;
    left: 0;
    right: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: right 0.2s;
}
.nav-link:hover::after {
    right: 0;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.header-search {
    height: 41px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface-alt);
    color: var(--ink-soft);
    padding: 0 11px;
    font-size: 12.5px;
}
.header-search .icon {
    width: 16px;
    height: 16px;
}
kbd {
    font-family: var(--font-body);
    font-size: 10px;
    line-height: 1;
    padding: 5px 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--ink-muted);
    border-radius: 6px;
    white-space: nowrap;
}
.header-search:hover {
    border-color: var(--border-strong);
    color: var(--ink);
}
.theme-toggle,
.menu-toggle {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--ink);
    background: var(--surface-alt);
    transition:
        transform 0.2s,
        color 0.2s,
        background 0.2s;
}
.theme-toggle:hover,
.menu-toggle:hover {
    background: var(--accent-soft);
    transform: translateY(-1px);
}
.theme-toggle .icon-sun {
    display: none;
}
:root[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}
:root[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}
.menu-toggle {
    display: none;
}
.menu-toggle .icon-close {
    display: none;
}
.menu-toggle[aria-expanded="true"] .icon-close {
    display: block;
}
.menu-toggle[aria-expanded="true"] .icon-menu {
    display: none;
}
.mobile-menu {
    display: none;
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    background: #0b1730;
    color: #fff;
    isolation: isolate;
}
.hero::before {
    position: absolute;
    content: "";
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(circle at 75% 40%, rgba(62, 97, 180, 0.23), transparent 36%),
        linear-gradient(116deg, #0c1834 5%, #0b1630 55%, #0f2042 100%);
}
.hero::after {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    top: 3%;
    right: -12%;
    border: 1px solid rgba(161, 185, 239, 0.07);
    border-radius: 50%;
    z-index: -1;
}
.hero-glow {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(75px);
    z-index: -1;
}
.hero-glow-one {
    background: rgba(76, 103, 224, 0.22);
    height: 260px;
    width: 260px;
    top: 80px;
    left: 40%;
}
.hero-glow-two {
    background: rgba(25, 176, 176, 0.075);
    height: 200px;
    width: 220px;
    bottom: 65px;
    right: 8%;
}
.hero-grid {
    min-height: 615px;
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    align-items: center;
    gap: 44px;
    padding-top: 58px;
    padding-bottom: 54px;
    position: relative;
}
.hero-copy {
    position: relative;
    z-index: 2;
    padding-top: 2px;
}
.eyebrow-pill {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #c8d8fa;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.12em;
    font-size: 10px;
    border: 1px solid rgba(182, 207, 255, 0.2);
    background: rgba(160, 184, 255, 0.08);
    border-radius: 999px;
    padding: 10px 14px;
}
.dot-pulse {
    height: 7px;
    width: 7px;
    background: #8cf1d0;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(140, 241, 208, 0.13);
}
.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(45px, 4.45vw, 66px);
    line-height: 1.21;
    font-weight: 800;
    letter-spacing: -0.073em;
    margin: 28px 0 21px;
}
.hero-accent {
    background: linear-gradient(95deg, #b5d0ff 6%, #9cafff 50%, #d9ddff 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-description {
    font-size: 15px;
    line-height: 1.95;
    color: #b6c4e0;
    max-width: 490px;
    margin: 0;
}
.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-family: var(--font-heading);
    font-size: 12.7px;
    font-weight: 700;
    padding: 13px 20px;
    transition:
        transform 0.2s,
        box-shadow 0.2s,
        background 0.2s,
        border-color 0.2s;
}
.btn:hover {
    transform: translateY(-2px);
}
.btn .icon {
    width: 17px;
    height: 17px;
}
.btn-primary {
    background: #4777ee;
    color: #fff;
    box-shadow: 0 10px 27px rgba(71, 119, 238, 0.24);
}
.btn-primary:hover {
    background: #5b8aff;
    box-shadow: 0 13px 30px rgba(71, 119, 238, 0.33);
}
.btn-outline {
    color: #ecf3ff;
    border-color: rgba(196, 214, 248, 0.28);
    background: rgba(255, 255, 255, 0.025);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(196, 214, 248, 0.5);
}
.hero-stats {
    margin-top: 49px;
    display: flex;
    align-items: center;
    gap: 25px;
}
.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.hero-stat strong {
    font-size: 24px;
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.05em;
    color: #fff;
    line-height: 1;
}
.hero-stat span {
    font-size: 11px;
    color: #9aacd0;
}
.stat-rule {
    height: 29px;
    width: 1px;
    background: rgba(177, 200, 238, 0.19);
}
.hero-visual {
    min-height: 475px;
    display: grid;
    place-items: center;
    position: relative;
    isolation: isolate;
}
.orbit {
    position: absolute;
    border: 1px solid rgba(195, 213, 255, 0.09);
    border-radius: 50%;
    inset: auto;
    z-index: -1;
}
.orbit-one {
    width: 480px;
    height: 480px;
}
.orbit-two {
    width: 575px;
    height: 575px;
}
.showcase-frame {
    position: relative;
    width: min(100%, 438px);
    background: linear-gradient(148deg, #fbfcff, #e8eefb);
    border: 7px solid rgba(227, 235, 255, 0.13);
    border-radius: 22px;
    padding: 20px 22px 19px;
    color: #142344;
    box-shadow:
        0 34px 70px rgba(0, 0, 0, 0.22),
        0 0 65px rgba(106, 131, 231, 0.14);
    transform: rotate(-3deg);
}
.showcase-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #8594b0;
    font-size: 8px;
    letter-spacing: 0.17em;
    font-weight: 800;
}
.showcase-topbar > span:last-child {
    font-size: 15px;
}
.showcase-dots {
    display: flex;
    gap: 5px;
}
.showcase-dots i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #aebce0;
}
.showcase-dots i:first-child {
    background: #8bb4fa;
}
.showcase-dots i:nth-child(2) {
    background: #b9c9ef;
}
.showcase-intro {
    padding: 22px 0 14px;
    border-bottom: 1px solid #dfe5f1;
}
.showcase-intro > span {
    font-weight: 800;
    color: #6175a0;
    font-size: 9px;
    letter-spacing: 0.13em;
}
.showcase-intro h2 {
    font-family: var(--font-heading);
    font-size: 31px;
    line-height: 1.2;
    letter-spacing: -0.065em;
    margin: 10px 0 0;
}
.showcase-intro h2 i {
    font-style: normal;
    color: #4777ee;
}
.showcase-stack {
    padding: 12px 0 4px;
}
.showcase-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 5px;
    border-bottom: 1px solid #e7ebf4;
}
.showcase-item:last-child {
    border-bottom: 0;
}
.showcase-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex: none;
}
.showcase-icon svg {
    height: 19px;
    width: 19px;
}
.showcase-icon-blue {
    background: #e0eaff;
    color: #3d6ae3;
}
.showcase-icon-purple {
    background: #ece4fe;
    color: #835ed0;
}
.showcase-icon-mint {
    background: #d7f4e8;
    color: #248e71;
}
.showcase-item > div:nth-child(2) {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}
.showcase-item b {
    font-family: var(--font-heading);
    font-size: 12px;
    letter-spacing: -0.02em;
}
.showcase-item div span {
    font-size: 10px;
    color: #8a98ae;
}
.showcase-item > span {
    color: #7287a9;
    font-size: 17px;
}
.showcase-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 8px;
    color: #8492ab;
    font-weight: 800;
    letter-spacing: 0.19em;
    border-top: 1px solid #dfe5f1;
    padding-top: 15px;
    margin-top: 2px;
}
.showcase-footer span {
    color: #6181d1;
    font-size: 18px;
    line-height: 1;
}
.visual-float {
    position: absolute;
    z-index: 2;
    box-shadow: 0 15px 36px rgba(0, 0, 0, 0.14);
    transform: rotate(4deg);
}
.visual-float-top {
    background: #c4d5ff;
    color: #193669;
    font-family: var(--font-heading);
    letter-spacing: 0.005em;
    font-size: 11px;
    font-weight: 800;
    border-radius: 11px;
    padding: 12px 15px;
    top: 44px;
    right: -3px;
}
.mini-star {
    color: #4a6de2;
    font-size: 15px;
    margin-right: 5px;
}
.visual-float-bottom {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #183457;
    background: #e7fff7;
    border: 1px solid #c0f2e0;
    border-radius: 12px;
    padding: 11px 15px;
    left: -24px;
    bottom: 52px;
    transform: rotate(3deg);
}
.float-badge {
    display: grid;
    place-items: center;
    background: #b8f3df;
    border-radius: 9px;
    width: 36px;
    height: 36px;
    font-size: 22px;
    color: #278363;
}
.visual-float-bottom div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.visual-float-bottom strong {
    font-size: 11px;
    font-family: var(--font-heading);
}
.visual-float-bottom small {
    font-size: 9px;
    color: #6a9087;
}
.hero-foot {
    border-top: 1px solid rgba(184, 202, 237, 0.13);
    color: #9aadd0;
    font-size: 9px;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.15em;
}
.hero-foot-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    height: 50px;
}
.hero-foot-inner > span:last-child span {
    font-size: 16px;
    margin-left: 7px;
}
.hero-foot-line {
    height: 1px;
    flex: 1;
    background: rgba(180, 204, 244, 0.13);
}

/* Highlights */
.value-band {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.value-inner {
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.value-item {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}
.value-icon {
    height: 42px;
    width: 42px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--accent-soft);
    font-size: 20px;
    color: var(--accent);
}
.value-item div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.value-item strong {
    font-size: 12px;
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
}
.value-item small {
    font-size: 11.5px;
    color: var(--ink-muted);
}
.value-separator {
    width: 1px;
    height: 32px;
    background: var(--border);
}

/* Sections */
.section {
    padding: 94px 0 10px;
}
.section-featured {
    padding-bottom: 88px;
}
.section-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    font-size: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 0.13em;
}
.short-line {
    display: inline-block;
    height: 2px;
    width: 23px;
    background: var(--accent);
    border-radius: 4px;
}
.section h2,
.about-section h2 {
    font-family: var(--font-heading);
    font-size: clamp(30px, 3vw, 43px);
    line-height: 1.22;
    letter-spacing: -0.07em;
    font-weight: 800;
    margin: 16px 0 12px;
}
.section h2 em,
.about-section h2 em {
    font-style: normal;
    color: var(--accent);
}
.section-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
}
.section-heading-row p,
.library-intro p {
    font-size: 13.5px;
    color: var(--ink-soft);
    line-height: 1.85;
    margin: 0;
}
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--accent);
    font-weight: 800;
    font-size: 12px;
    font-family: var(--font-heading);
    white-space: nowrap;
    margin-bottom: 8px;
}
.text-link .icon {
    height: 16px;
    width: 16px;
}
.text-link:hover .icon {
    transform: translate(2px, -2px);
}
.text-link .icon {
    transition: transform 0.2s;
}
.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.featured-card {
    display: flex;
    overflow: hidden;
    min-height: 247px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 21px;
    box-shadow: var(--shadow);
    transition:
        transform 0.2s,
        box-shadow 0.2s,
        border-color 0.2s;
}
.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-strong);
}
.featured-art {
    width: 42%;
    min-width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.featured-card .featured-art .cover-glyph {
    font-size: 78px;
}
.featured-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 25px 22px;
    min-width: 0;
}
.featured-label {
    font-family: var(--font-heading);
    color: var(--accent);
    letter-spacing: 0.1em;
    font-size: 9px;
    font-weight: 800;
}
.featured-body h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    letter-spacing: -0.055em;
    line-height: 1.35;
    margin: 13px 0 9px;
    overflow-wrap: anywhere;
}
.featured-body p {
    color: var(--ink-soft);
    font-size: 11.5px;
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.featured-read {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    width: fit-content;
    margin-top: 17px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    font-family: var(--font-heading);
}
.featured-read span {
    font-size: 16px;
}
.featured-placeholder {
    height: 247px;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--surface-alt), var(--surface), var(--surface-alt));
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}

/* Library */
.section-library {
    padding-top: 88px;
    padding-bottom: 107px;
    background: var(--surface-alt);
    border-top: 1px solid var(--border);
}
.library-intro {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 38px;
}
.library-intro h2 {
    margin-bottom: 10px;
}
.library-count-card {
    padding: 14px 19px;
    min-width: 122px;
    border-radius: 15px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: flex-start;
}
.library-count-card span {
    font-size: 8px;
    letter-spacing: 0.12em;
    font-family: var(--font-heading);
    color: var(--ink-muted);
    font-weight: 800;
}
.library-count-card strong {
    font-size: 28px;
    letter-spacing: -0.07em;
    font-family: var(--font-heading);
    line-height: 1.2;
}
.library-count-card small {
    font-size: 10px;
    color: var(--ink-soft);
}
.library-toolbar {
    display: flex;
    align-items: stretch;
    gap: 13px;
    margin-bottom: 24px;
}
.search-field {
    height: 58px;
    flex: 1;
    border-radius: 13px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    gap: 13px;
    align-items: center;
    padding: 0 16px 0 19px;
    cursor: text;
    box-shadow: 0 3px 10px rgba(17, 37, 68, 0.015);
}
.search-field:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 13%, transparent);
}
.search-field > .icon {
    color: var(--ink-muted);
    width: 20px;
    height: 20px;
}
.search-field input {
    outline: none;
    border: 0;
    background: transparent;
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: var(--ink);
}
.search-field input::placeholder {
    color: var(--ink-muted);
}
.search-field input::-webkit-search-cancel-button {
    cursor: pointer;
}
.search-shortcut {
    background: var(--surface-alt);
}
.sort-wrap {
    height: 58px;
    position: relative;
    min-width: 205px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 0 17px;
}
.sort-wrap label {
    font-size: 11px;
    color: var(--ink-muted);
    flex: none;
}
.sort-wrap select {
    color: var(--ink);
    flex: 1;
    background: transparent;
    appearance: none;
    border: 0;
    font-size: 12px;
    font-weight: 700;
    outline: none;
    cursor: pointer;
    padding-right: 10px;
    min-width: 0;
}
/* Native <option> popups need explicit foreground/background colors. Without this,
   some browsers show a white system menu with inherited light-on-dark text. */
.sort-wrap select option {
    color: var(--ink);
    background-color: var(--surface);
}
:root[data-theme="dark"] .sort-wrap select {
    color-scheme: dark;
}
:root[data-theme="light"] .sort-wrap select {
    color-scheme: light;
}
.sort-wrap .icon {
    height: 16px;
    width: 16px;
    color: var(--ink-soft);
    pointer-events: none;
}
.sort-wrap:focus-within {
    outline: 3px solid #7fa7ff;
    outline-offset: 2px;
}
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--border);
}
.category-tabs {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}
.category-chip {
    border-radius: 100px;
    padding: 10px 16px;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-soft);
    border: 1px solid var(--border);
    background: var(--surface);
    transition:
        background 0.2s,
        color 0.2s,
        border-color 0.2s;
    white-space: nowrap;
}
.category-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.category-chip.is-active {
    color: #fff;
    background: #0b1730;
    border-color: #0b1730;
}
:root[data-theme="dark"] .category-chip.is-active {
    background: #89aaff;
    color: #07152e;
    border-color: #89aaff;
}
.filter-caption {
    color: var(--ink-muted);
    font-size: 9px;
    letter-spacing: 0.12em;
    font-family: var(--font-heading);
    font-weight: 700;
    white-space: nowrap;
}
.results-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 63px;
    gap: 16px;
}
.results-meta span {
    font-size: 12px;
    color: var(--ink-soft);
}
.clear-filter {
    color: var(--accent);
    font-weight: 700;
    font-size: 11px;
    border: 0;
    background: transparent;
}
.clear-filter span {
    font-size: 17px;
    margin-left: 4px;
    color: inherit;
}
.handbook-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 23px;
}
.handbook-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 19px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition:
        transform 0.22s,
        box-shadow 0.22s,
        border-color 0.22s;
}
.handbook-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-strong);
}
.card-cover {
    height: 183px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.card-cover::before {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    border: 1px solid currentColor;
    opacity: 0.13;
    border-radius: 50%;
    right: -45px;
    top: -80px;
}
.card-cover::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    border: 1px solid currentColor;
    opacity: 0.13;
    border-radius: 50%;
    left: -58px;
    bottom: -91px;
}
.cover-topline {
    position: absolute;
    inset: 18px 18px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 9px;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.08em;
    opacity: 0.8;
}
.cover-topline span:last-child {
    font-size: 12px;
}
.cover-glyph {
    font-size: 66px;
    line-height: 1;
    font-weight: 400;
    position: relative;
    z-index: 2;
    opacity: 0.9;
    font-family: var(--font-heading);
}
.cover-glyph svg {
    width: 66px;
    height: 66px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.cover-bottomline {
    position: absolute;
    bottom: 16px;
    left: 19px;
    right: 19px;
    font-family: var(--font-heading);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    opacity: 0.85;
    line-height: 1.5;
}
.cover-blue {
    background: #dce8ff;
    color: #2453ae;
}
.cover-purple {
    background: #e9dcff;
    color: #6846ad;
}
.cover-mint {
    background: #d5f5e8;
    color: #16856b;
}
.cover-orange {
    background: #ffe6ce;
    color: #bb6229;
}
.cover-lavender {
    background: #e5e5ff;
    color: #595cc2;
}
.cover-navy {
    background: #253b65;
    color: #d4e3ff;
}
.cover-teal {
    background: #caf1f1;
    color: #207f86;
}
.cover-rose {
    background: #ffe0e8;
    color: #b0496d;
}
.cover-sand {
    background: #f8eecf;
    color: #998135;
}
.card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 21px 22px 20px;
}
.card-category {
    font-size: 9px;
    font-family: var(--font-heading);
    letter-spacing: 0.11em;
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
}
.card-content h3 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.045em;
    margin: 10px 0 9px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.card-content p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 63px;
}
.card-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 19px 0 16px;
}
.card-tag {
    color: var(--ink-soft);
    padding: 5px 9px;
    border-radius: 6px;
    background: var(--surface-alt);
    font-size: 9.5px;
    font-weight: 600;
}
.card-bottom {
    border-top: 1px solid var(--border);
    margin-top: auto;
    padding-top: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.card-date {
    font-size: 10px;
    color: var(--ink-muted);
}
.card-action {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}
.card-action svg {
    width: 15px;
    height: 15px;
}
.skeleton-card {
    height: 375px;
    border-radius: 18px;
    background: linear-gradient(100deg, var(--surface), var(--surface-muted), var(--surface));
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
    to {
        background-position: -200% 0;
    }
}
.library-message {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 11px;
    border: 1px dashed var(--border-strong);
    border-radius: 20px;
    padding: 30px;
    background: var(--surface);
}
.library-message .empty-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    color: var(--accent);
    background: var(--accent-soft);
    margin-bottom: 4px;
}
.library-message .empty-icon svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
}
.library-message h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin: 0;
    letter-spacing: -0.04em;
}
.library-message p {
    font-size: 12px;
    margin: 0;
    max-width: 360px;
    line-height: 1.7;
    color: var(--ink-soft);
}
.message-action {
    margin-top: 9px;
    border: 1px solid var(--border-strong);
    background: var(--surface-alt);
    color: var(--ink);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
}
.load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 37px;
}
.btn-load-more {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--border-strong);
    padding-inline: 27px;
}
.btn-load-more:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
}

/* About */
.about-section {
    padding: 95px 0;
    background: var(--bg);
}
.about-card {
    background: #112447;
    min-height: 327px;
    color: #fff;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    padding: 49px 61px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    isolation: isolate;
}
.about-card::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(63, 105, 217, 0.18);
    filter: blur(50px);
    right: -8%;
    top: -50%;
    z-index: -1;
}
.about-card .section-eyebrow {
    color: #adc5ff;
}
.about-card h2 {
    font-size: clamp(30px, 3vw, 42px);
    margin: 15px 0;
}
.about-card h2 em {
    color: #b2c8ff;
}
.about-card p {
    max-width: 425px;
    line-height: 1.85;
    color: #b8c7e4;
    font-size: 12.5px;
    margin: 0 0 22px;
}
.btn-light {
    background: #edf3ff;
    color: #162e5a;
}
.btn-light:hover {
    background: #d6e5ff;
}
.about-decoration {
    position: absolute;
    font-size: 90px;
    color: rgba(139, 172, 246, 0.06);
    left: 48%;
    top: -45px;
}
.about-art {
    height: 280px;
    position: relative;
    display: grid;
    place-items: center;
}
.art-ring {
    position: absolute;
    display: block;
    border: 1px solid rgba(188, 211, 255, 0.22);
    border-radius: 50%;
}
.ring-outer {
    width: 330px;
    height: 330px;
}
.ring-middle {
    width: 250px;
    height: 250px;
}
.art-core {
    height: 169px;
    width: 169px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #517fe9, #23417c);
    border: 1px solid #8dacf2;
    box-shadow:
        0 0 60px rgba(76, 132, 250, 0.33),
        inset 0 0 30px rgba(255, 255, 255, 0.055);
    border-radius: 45px;
    transform: rotate(-13deg);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 88px;
    font-weight: 800;
    letter-spacing: -0.1em;
}
.art-core span {
    color: #b0f3d9;
}
.art-small-star {
    position: absolute;
    color: #a4bfff;
}
.star-one {
    right: 33px;
    top: 36px;
    font-size: 30px;
}
.star-two {
    left: 24px;
    bottom: 42px;
    font-size: 39px;
}

/* Footer */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
}
.footer-top {
    padding: 40px 0 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.footer-brand {
    font-size: 19px;
    letter-spacing: -0.06em;
}
.footer-brand-icon {
    display: grid;
    place-items: center;
    height: 30px;
    width: 30px;
    border-radius: 9px;
    color: #fff;
    background: #0b1730;
    font-size: 22px;
}
.footer-brand > span:last-child {
    color: var(--accent);
    margin-left: -10px;
}
.footer-top p {
    font-size: 11px;
    color: var(--ink-muted);
}
.footer-top nav {
    display: flex;
    gap: 24px;
}
.footer-top nav a {
    font-size: 11px;
    color: var(--ink-soft);
    font-weight: 700;
}
.footer-top nav a:hover {
    color: var(--accent);
}
.footer-bottom {
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 61px;
    color: var(--ink-muted);
    font-size: 10.5px;
}
.heart-symbol {
    color: var(--accent);
    font-size: 14px;
    margin-left: 3px;
}
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 85;
    height: 45px;
    width: 45px;
    display: grid;
    place-items: center;
    background: #4777ee;
    color: #fff;
    border: 0;
    box-shadow: 0 10px 25px rgba(37, 67, 157, 0.2);
    border-radius: 13px;
    transition:
        transform 0.2s,
        opacity 0.2s,
        visibility 0.2s;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}
.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 1120px) {
    .desktop-nav {
        gap: 24px;
    }
    .header-search kbd {
        display: none;
    }
    .header-search {
        padding-inline: 12px;
    }
    .hero-grid {
        gap: 18px;
    }
    .visual-float-top {
        right: 0;
    }
    .visual-float-bottom {
        left: 0;
    }
    .hero h1 {
        font-size: clamp(41px, 4.75vw, 60px);
    }
    .featured-art {
        min-width: 148px;
        width: 38%;
    }
    .featured-body {
        padding: 20px 18px;
    }
    .featured-body h3 {
        font-size: 18px;
    }
}
@media (max-width: 920px) {
    .container {
        width: min(calc(100% - 48px), var(--container));
    }
    .header-inner {
        height: 72px;
    }
    .desktop-nav {
        display: none;
    }
    .header-actions {
        margin-left: auto;
    }
    .menu-toggle {
        display: grid;
    }
    .mobile-menu:not([hidden]) {
        display: flex;
        flex-direction: column;
        padding: 6px 24px 20px;
        border-top: 1px solid var(--border);
        background: var(--surface);
        box-shadow: 0 15px 20px rgba(0, 0, 0, 0.08);
    }
    .mobile-menu a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 48px;
        border-bottom: 1px solid var(--border);
        font-size: 14px;
        font-weight: 700;
    }
    .mobile-menu a span {
        color: var(--accent);
    }
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        min-height: unset;
        padding-block: 74px;
    }
    .hero h1 {
        font-size: clamp(38px, 4.7vw, 50px);
    }
    .hero-description {
        font-size: 13.5px;
    }
    .showcase-frame {
        padding: 18px 16px;
        width: min(100%, 400px);
    }
    .showcase-intro h2 {
        font-size: 24px;
    }
    .orbit-one {
        width: 375px;
        height: 375px;
    }
    .orbit-two {
        width: 440px;
        height: 440px;
    }
    .hero-visual {
        min-height: 400px;
    }
    .visual-float-top {
        font-size: 9px;
        top: 18px;
    }
    .visual-float-bottom {
        bottom: 15px;
    }
    .hero-stats {
        gap: 17px;
    }
    .value-inner {
        gap: 12px;
    }
    .value-item {
        gap: 9px;
    }
    .value-item strong {
        font-size: 11px;
    }
    .value-item small {
        font-size: 10px;
    }
    .value-icon {
        width: 36px;
        height: 36px;
    }
    .handbook-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
    .featured-grid {
        gap: 14px;
    }
    .featured-card {
        min-height: 223px;
    }
    .featured-art {
        width: 35%;
        min-width: 120px;
    }
    .featured-body h3 {
        font-size: 16px;
    }
    .featured-body p {
        -webkit-line-clamp: 2;
    }
    .featured-card .featured-art .cover-glyph svg {
        width: 49px;
        height: 49px;
    }
    .about-card {
        padding: 40px;
    }
    .ring-outer {
        width: 275px;
        height: 275px;
    }
    .ring-middle {
        width: 215px;
        height: 215px;
    }
    .art-core {
        width: 145px;
        height: 145px;
        font-size: 72px;
    }
    .footer-top {
        flex-wrap: wrap;
    }
}
@media (max-width: 700px) {
    .container {
        width: min(calc(100% - 36px), var(--container));
    }
    .header-inner {
        height: 66px;
    }
    .brand {
        font-size: 17px;
        gap: 8px;
    }
    .brand-mark {
        height: 35px;
        width: 35px;
        border-radius: 11px;
    }
    .brand-mark svg {
        width: 27px;
        height: 27px;
    }
    .header-search {
        height: 39px;
        width: 39px;
        justify-content: center;
        padding: 0;
    }
    .header-search span {
        display: none;
    }
    .theme-toggle,
    .menu-toggle {
        height: 39px;
        width: 39px;
        border-radius: 11px;
    }
    .header-actions {
        gap: 7px;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: left;
        padding: 61px 0 48px;
        gap: 20px;
    }
    .hero-copy {
        max-width: 570px;
    }
    .hero h1 {
        font-size: clamp(39px, 8.2vw, 55px);
        margin: 22px 0 15px;
    }
    .hero-description {
        max-width: 490px;
        line-height: 1.82;
    }
    .hero-stats {
        margin-top: 34px;
    }
    .hero-visual {
        min-height: 348px;
        max-width: 470px;
        width: 100%;
        margin-inline: auto;
    }
    .showcase-frame {
        max-width: 365px;
        transform: rotate(-2.5deg);
    }
    .showcase-intro {
        padding-block: 13px 9px;
    }
    .showcase-intro h2 {
        font-size: 23px;
    }
    .showcase-item {
        padding-block: 7px;
    }
    .showcase-icon {
        width: 33px;
        height: 33px;
    }
    .showcase-footer {
        padding-top: 10px;
    }
    .visual-float-top {
        right: 0;
        top: -2px;
    }
    .visual-float-bottom {
        left: -2px;
        bottom: 1px;
    }
    .orbit-one {
        width: 360px;
        height: 360px;
    }
    .orbit-two {
        width: 420px;
        height: 420px;
    }
    .hero-foot-inner {
        font-size: 8px;
        gap: 12px;
    }
    .value-inner {
        padding: 21px 0;
        flex-wrap: wrap;
        gap: 20px;
    }
    .value-item {
        flex: 1 1 calc(50% - 20px);
    }
    .value-separator {
        display: none;
    }
    .section {
        padding-top: 70px;
    }
    .section-featured {
        padding-bottom: 69px;
    }
    .section-heading-row {
        align-items: flex-start;
    }
    .section h2,
    .about-section h2 {
        font-size: clamp(29px, 6.5vw, 38px);
    }
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .featured-card {
        min-height: 218px;
    }
    .featured-art {
        min-width: 36%;
    }
    .featured-body h3 {
        font-size: 19px;
    }
    .featured-body p {
        -webkit-line-clamp: 3;
    }
    .section-library {
        padding-top: 70px;
        padding-bottom: 75px;
    }
    .library-intro {
        margin-bottom: 27px;
    }
    .filter-caption {
        display: none;
    }
    .category-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        padding: 2px 0 8px;
        margin-bottom: -8px;
        max-width: 100%;
    }
    .category-tabs::-webkit-scrollbar {
        display: none;
    }
    .filter-bar {
        margin-right: -18px;
        padding-right: 18px;
        overflow: hidden;
    }
    .sort-wrap {
        min-width: 168px;
    }
    .sort-wrap label {
        display: none;
    }
    .about-section {
        padding: 65px 0;
    }
    .about-card {
        padding: 35px 31px;
        grid-template-columns: 1fr;
        min-height: unset;
    }
    .about-art {
        display: none;
    }
    .footer-top {
        gap: 15px;
    }
    .footer-top p {
        flex: 1 1 100%;
        order: 3;
        margin: 0;
    }
    .footer-top nav {
        margin-left: auto;
    }
}
@media (max-width: 500px) {
    .eyebrow-pill {
        font-size: 8px;
        padding: 9px 10px;
        gap: 7px;
    }
    .hero h1 {
        font-size: clamp(36px, 9vw, 48px);
        letter-spacing: -0.076em;
    }
    .hero-description {
        font-size: 12.8px;
    }
    .hero-ctas {
        gap: 9px;
    }
    .btn {
        font-size: 11px;
        padding: 12px 14px;
        min-height: 46px;
    }
    .hero-visual {
        min-height: 324px;
    }
    .showcase-frame {
        max-width: 310px;
        padding: 14px 15px;
        border-width: 5px;
    }
    .showcase-intro h2 {
        font-size: 21px;
    }
    .showcase-item b {
        font-size: 10px;
    }
    .showcase-item div span {
        font-size: 9px;
    }
    .visual-float-top {
        top: 2px;
        right: -5px;
        font-size: 8px;
        padding: 10px;
    }
    .visual-float-bottom {
        bottom: 0;
        left: -4px;
        padding: 8px 10px;
    }
    .visual-float-bottom strong {
        font-size: 10px;
    }
    .orbit-one {
        width: 305px;
        height: 305px;
    }
    .orbit-two {
        width: 370px;
        height: 370px;
    }
    .hero-foot-inner > span:first-child {
        font-size: 7px;
    }
    .hero-foot-inner > span:last-child {
        font-size: 7px;
        white-space: nowrap;
    }
    .value-inner {
        gap: 17px;
    }
    .value-item {
        flex: 1 1 100%;
    }
    .value-item strong {
        font-size: 12px;
    }
    .value-item small {
        font-size: 11px;
    }
    .section-heading-row {
        flex-direction: column;
        gap: 9px;
    }
    .text-link {
        margin: 0;
    }
    .section-heading-row p,
    .library-intro p {
        font-size: 12px;
    }
    .featured-art {
        min-width: 37%;
        width: 37%;
    }
    .featured-card {
        min-height: 200px;
    }
    .featured-body {
        padding: 17px 13px;
    }
    .featured-body h3 {
        font-size: 15px;
        margin: 8px 0 7px;
    }
    .featured-body p {
        font-size: 10px;
        -webkit-line-clamp: 2;
    }
    .featured-read {
        font-size: 10px;
        margin-top: 12px;
    }
    .library-count-card {
        min-width: 80px;
        padding: 11px 12px;
    }
    .library-count-card span {
        font-size: 7px;
    }
    .library-count-card strong {
        font-size: 24px;
    }
    .library-count-card small {
        font-size: 9px;
    }
    .library-intro {
        gap: 14px;
        align-items: end;
    }
    .library-intro > div:first-child {
        min-width: 0;
    }
    .library-intro h2 {
        font-size: 29px;
    }
    .library-toolbar {
        flex-direction: column;
        gap: 11px;
        margin-bottom: 17px;
    }
    .search-field {
        min-height: 53px;
        flex: auto;
    }
    .sort-wrap {
        min-height: 48px;
        height: 48px;
        justify-content: space-between;
    }
    .sort-wrap label {
        display: block;
    }
    .sort-wrap select {
        flex: initial;
        margin-left: auto;
    }
    .handbook-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .card-cover {
        height: 180px;
    }
    .card-content {
        padding: 20px;
    }
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-top nav {
        margin: 3px 0;
        gap: 21px;
    }
    .footer-top p {
        order: initial;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 7px;
        padding: 15px 0;
    }
    .back-to-top {
        right: 15px;
        bottom: 17px;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
