@font-face {
    font-family: 'Benne';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/Benne-Regular.woff2') format('woff2');
}

:root {
    --akil-bg-light: #f7f7f9;
    --akil-bg-dark: #1c1f26;
    --akil-text-light: #1a1a1a;
    --akil-text-dark: #e5e0d5;
    --akil-muted-light: rgba(26, 26, 26, 0.64);
    --akil-muted-dark: rgba(229, 224, 213, 0.68);
    --akil-main-width: 35rem;
    --akil-sidebar-anchor-width: 35rem;
    --akil-sidebar-width: 8.5rem;
    --akil-gutter: clamp(2rem, 7vw, 5rem);
    --akil-top: clamp(2rem, 5vw, 5rem);
    --akil-page-pad: clamp(0.75rem, 3vw, 2rem);
}

[data-theme="dark"] {
    --text: var(--akil-text-dark);
    --bg: var(--akil-bg-dark);
    --muted: var(--akil-muted-dark);
    --rule: rgba(229, 224, 213, 0.18);
    --rule-strong: rgba(229, 224, 213, 0.28);
    --accent-pink: #d878a8;
    --accent-purple: #a878d8;
    --accent-gold: #c8a878;
    --accent-stat: #edc766;
    --accent-blue: #78a8d8;
    --accent-green: #a8c878;
    --nav-local: var(--accent-blue);
    --nav-blog: var(--accent-pink);
    --nav-shelf: var(--accent-purple);
    --nav-tutoring: var(--accent-green);
    --nav-divider: rgba(229, 224, 213, 0.2);
    --learn-more: var(--accent-blue);
    --toggle-accent: var(--accent-pink);
}

[data-theme="light"] {
    --text: var(--akil-text-light);
    --bg: var(--akil-bg-light);
    --muted: var(--akil-muted-light);
    --rule: rgba(26, 26, 26, 0.16);
    --rule-strong: rgba(26, 26, 26, 0.26);
    --accent-pink: #c6397d;
    --accent-purple: #7d39c6;
    --accent-gold: #8a6425;
    --accent-stat: #875000;
    --accent-blue: #2f6fab;
    --accent-green: #496f1f;
    --nav-local: var(--accent-blue);
    --nav-blog: var(--accent-pink);
    --nav-shelf: var(--accent-purple);
    --nav-tutoring: var(--accent-green);
    --nav-divider: rgba(26, 26, 26, 0.18);
    --learn-more: var(--accent-blue);
    --toggle-accent: var(--accent-pink);
}

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

html {
    overflow-y: scroll;
    font-size: 120%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    padding: var(--akil-page-pad);
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: 'Benne', Georgia, serif;
    line-height: 1.68;
    letter-spacing: 0;
    transition: background-color 0.22s ease, color 0.22s ease;
}

main,
body > footer,
.container {
    width: min(100%, var(--akil-main-width));
    max-width: var(--akil-main-width);
}

main,
body > footer {
    margin-right: auto;
    margin-left: auto;
}

.container {
    padding: 0;
}

a {
    color: inherit;
    font-weight: 700;
    text-decoration: none;
    text-underline-offset: 0.14em;
    transition: color 0.22s ease;
}

a:hover {
    text-decoration: underline;
}

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

button {
    font: inherit;
}

header {
    position: fixed;
    top: calc(var(--akil-page-pad) + var(--akil-top) + 4rem);
    left: max(1rem, calc(50% - (var(--akil-sidebar-anchor-width) / 2) - var(--akil-gutter) - var(--akil-sidebar-width)));
    width: var(--akil-sidebar-width);
}

header .container,
nav {
    display: block;
    max-width: none;
    padding: 0;
}

.nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    list-style: none;
}

.nav-links li {
    position: relative;
    padding-left: 1rem;
    line-height: 1.6;
}

.nav-links li:has(a.active)::before {
    content: "•";
    position: absolute;
    top: 50%;
    left: 0;
    color: var(--nav-local);
    line-height: 1;
    transform: translateY(-50%);
}

.nav-links li:has(a[href$="blog.html"].active)::before {
    color: var(--nav-blog);
}

.nav-links li:has(a[href$="shelf.html"].active)::before {
    color: var(--nav-shelf);
}

.nav-links li:has(a[href*="tutoring"].active)::before {
    color: var(--nav-tutoring);
}

.nav-links li:has(a[href*="PageviewDuel"].active)::before {
    color: var(--accent-gold);
}

.nav-links a {
    color: var(--nav-local);
    font-size: 0.95rem;
    font-weight: 400;
}

.nav-links a[href$="blog.html"] {
    color: var(--nav-blog);
    font-weight: 700;
}

.nav-links a[href$="shelf.html"] {
    color: var(--nav-shelf);
    font-weight: 700;
}

.nav-links a[href*="tutoring"] {
    color: var(--nav-tutoring);
    font-weight: 700;
}

.nav-links a[href*="PageviewDuel"] {
    color: var(--accent-gold);
    font-weight: 700;
}

.nav-links li:has(a[href$="blog.html"]) {
    margin-top: 0.55rem;
    padding-top: 0.55rem;
}

.nav-links li:has(a[href$="blog.html"])::after {
    content: "";
    position: absolute;
    top: 0;
    left: 1rem;
    width: 3.5rem;
    border-top: 1px solid var(--nav-divider);
}

.theme-toggle {
    position: fixed;
    top: calc(var(--akil-page-pad) + var(--akil-top));
    left: calc(50% + (var(--akil-main-width) / 2) + 2rem);
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.6;
}

.theme-option {
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--toggle-accent);
    cursor: pointer;
    font: inherit;
    font-weight: 400;
    line-height: inherit;
}

.theme-option.is-active {
    color: var(--text);
    cursor: default;
    font-weight: 700;
}

.theme-option:disabled {
    opacity: 1;
}

.theme-separator {
    color: var(--muted);
    font-weight: 400;
}

.mobile-menu-toggle,
.mobile-menu-panel {
    display: none;
}

.main-page.home-collapsed main > section:not(.hero) {
    display: none;
}

.hero,
.blog-index,
.blog-post,
.error-page,
.tutoring-page .tutoring-hero {
    padding: var(--akil-top) 0 0;
}

.hero {
    margin-bottom: 1.25rem;
}

.hero h1,
.post-content h1,
.tutoring-title,
.error-content h1 {
    margin-bottom: 2.15rem;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
}

.section-title,
.post-content h2,
.blog-card h3,
.error-content h2 {
    margin: 1.5rem 0 0.5rem;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: lowercase;
}

.hero p,
.entry p,
.award-item p,
.blog-excerpt,
.post-content p,
.tutoring-lead,
.course-intro p,
.week-body p,
.section-lead,
.tutoring-cta-text,
.structure-card p:last-child,
.gates-list li {
    max-width: none;
    margin: 0 0 1.05rem;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.68;
    overflow-wrap: break-word;
}

section,
section.container {
    margin-bottom: 2rem;
}

.entry-list,
.awards-list,
.skills-container,
.cards-grid {
    display: block;
}

.entry,
.award-item,
.blog-card,
.skill-category {
    display: block;
    margin-bottom: 1.15rem;
}

.entry-header {
    display: block;
    margin-bottom: 0.08rem;
}

.entry-header h3,
.award-item h3,
.blog-card h3,
.course-name,
.week-card h4 {
    display: block;
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.entry-meta,
.blog-meta,
.post-content .post-meta,
.course-duration,
.structure-meta,
.week-label,
.latest-badge,
.tutoring-badge {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 400;
    white-space: normal;
}

.main-page:not(.home-collapsed) .section-title {
    color: var(--accent-blue);
    font-size: 1.08rem;
    line-height: 1.2;
}

.main-page:not(.home-collapsed) .entry-header h3,
.main-page:not(.home-collapsed) .award-item h3 {
    font-size: 1.1rem;
    line-height: 1.25;
}

.main-page:not(.home-collapsed) .entry-meta {
    font-size: 0.88rem;
}

.highlight-number,
.highlight-stat {
    color: var(--accent-stat);
    font-size: 1.02em;
    font-weight: 800;
}

.highlight-term {
    font-weight: 700;
}

.tone-pink {
    color: var(--accent-pink);
}

.tone-purple {
    color: var(--accent-purple);
}

.tone-gold {
    color: var(--accent-gold);
}

.tone-blue {
    color: var(--accent-blue);
}

.tone-green {
    color: var(--accent-green);
}

.intro-links {
    margin-top: 0.25rem;
}

.home-more-link {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.34rem;
    margin-top: -0.45rem;
}

.home-more-link a {
    font-size: 1.04rem;
    font-weight: 700;
    text-decoration: none;
}

.home-more-link [data-home-toggle] {
    color: var(--learn-more) !important;
}

.home-more-link span {
    font-size: 1.04rem;
}

.home-more-link .home-game-link {
    color: var(--accent-gold) !important;
}

.home-more-link a:hover {
    opacity: 0.82;
    text-decoration: underline;
}

main a:nth-of-type(5n + 1),
body > footer a:nth-of-type(5n + 1) {
    color: var(--accent-pink);
}

main a:nth-of-type(5n + 2),
body > footer a:nth-of-type(5n + 2) {
    color: var(--accent-purple);
}

main a:nth-of-type(5n + 3),
body > footer a:nth-of-type(5n + 3) {
    color: var(--accent-gold);
}

main a:nth-of-type(5n + 4),
body > footer a:nth-of-type(5n + 4) {
    color: var(--accent-blue);
}

main a:nth-of-type(5n + 5),
body > footer a:nth-of-type(5n + 5) {
    color: var(--accent-green);
}

.skill-category {
    margin-bottom: 0.25rem;
}

.skill-category h3 {
    display: inline;
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
}

.skill-category h3::after {
    content: ": ";
    font-weight: 400;
}

.skill-tags,
.skill-tag {
    display: inline;
}

.skill-tag {
    color: var(--text);
    font-size: 1rem;
}

.skill-tag:not(:last-child)::after {
    content: ", ";
}

.blog-card-content {
    display: block;
}

.blog-title-link {
    display: inline;
}

.blog-title-link:hover {
    text-decoration: none;
}

.blog-title-link:hover > span:first-child {
    text-decoration: underline;
}

.blog-read-cue {
    margin-left: 0.3rem;
    font-size: 0.8rem;
    font-weight: 400;
    text-decoration: underline;
    white-space: nowrap;
}

.blog-card h3,
.post-content h2,
.error-content h2 {
    text-transform: none;
}

.blog-meta,
.post-content .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-tags,
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.blog-meta > *:not(:last-child)::after,
.post-content .post-meta > *:not(:last-child)::after,
.blog-tags .tag:not(:last-child)::after,
.post-tags .tag:not(:last-child)::after {
    content: " ·";
    color: var(--muted);
    font-weight: 400;
}

.tag {
    color: var(--muted);
    font-size: 0.85rem;
}

.post-content blockquote,
.blog-excerpt-quote {
    margin: 1rem 0;
    padding-left: 1rem;
    border-left: 1px solid var(--muted);
    color: var(--text);
}

.post-content em {
    font-style: italic;
}

.post-media {
    margin: 1.25rem 0;
}

.post-media img,
.post-media video {
    display: block;
    width: 100%;
    height: auto;
}

.post-media video {
    background: #000;
}

.post-media figcaption {
    margin-bottom: 0.4rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.back-button {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.post-footer {
    margin-top: 2.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--rule);
    text-align: left;
}

.post-navigation,
.post-share {
    margin-top: 1rem;
}

.post-share h3 {
    margin-bottom: 0.45rem;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
}

.share-buttons,
.suggestion-links,
.error-actions,
.tutoring-cta,
.course-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.btn,
.course-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.2rem 0.65rem 0.24rem;
    background: transparent;
    border: 1px solid var(--rule-strong);
    border-radius: 999px;
    color: var(--text);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.15;
    vertical-align: middle;
}

main a.btn,
main a.course-nav-link {
    color: var(--text);
}

main a.back-button {
    color: var(--muted);
}

.btn-primary {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

main a.btn-primary {
    color: var(--bg);
}

.btn:hover,
.course-nav-link:hover {
    text-decoration: none;
    border-color: var(--text);
}

.error-content h1 {
    margin-bottom: 1.1rem;
}

.error-page-body {
    display: flex;
    flex-direction: column;
}

.error-page-body main {
    flex: 1 0 auto;
}

.error-content .error-lead {
    margin-bottom: 0.35rem;
    font-size: 1.08rem;
    font-weight: 700;
}

.error-content > p:not(.error-lead) {
    margin: 0;
    color: var(--muted);
}

.error-actions {
    align-items: baseline;
    gap: 0.35rem;
    margin-top: 1.35rem;
}

.error-actions > *:not(:last-child)::after {
    content: " ·";
    color: var(--muted);
    font-weight: 400;
}

.error-actions a,
.error-back {
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    line-height: inherit;
}

.error-actions .error-home {
    color: var(--accent-blue);
}

.error-actions .error-blog {
    color: var(--accent-pink);
}

.error-actions .error-tutoring {
    color: var(--accent-green);
}

.error-actions .error-back {
    color: var(--accent-gold);
}

.error-actions a:hover,
.error-back:hover {
    text-decoration: underline;
}

.error-suggestions {
    margin-top: 2.25rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--rule);
}

.error-suggestions .section-title {
    margin: 0 0 0.55rem;
}

.suggestion-links {
    gap: 0.75rem;
}

body > footer {
    display: block;
    margin-top: 0;
    padding: 4rem 0 1rem;
    color: var(--text);
    text-align: right;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.footer-links a:not(:last-child)::after {
    content: " ·";
    color: var(--muted);
    font-weight: 400;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
    color: var(--muted);
}

body > footer p {
    color: inherit;
    font-size: 1rem;
    line-height: 1.25;
}

.footer-bottom .game-launcher {
    display: inline-flex;
    flex: 0 0 auto;
    width: 0.44rem;
    height: 0.44rem;
    background: currentColor;
    border: 0;
    border-radius: 50%;
    color: var(--muted);
    font-size: 0;
    line-height: 0;
    opacity: 0.48;
    transform: translateY(-0.13rem) scale(1);
    transition: color 0.22s ease, opacity 0.22s ease, transform 0.22s ease;
}

.footer-bottom .game-launcher:hover,
.footer-bottom .game-launcher:focus-visible {
    color: var(--accent-gold);
    opacity: 1;
    transform: translateY(-0.13rem) scale(1.18);
    text-decoration: none;
}

.shelf-intro {
    padding-top: var(--akil-top);
}

.shelf-intro h1 {
    margin-bottom: 1.15rem;
}

.shelf-lead,
.shelf-source-links {
    margin: 0 0 1rem;
    color: var(--text);
    font-size: 1.02rem;
    line-height: 1.55;
}

.shelf-source-links {
    color: var(--muted);
}

.shelf-source-links a[href="#books"] {
    color: var(--accent-purple);
}

.shelf-source-links a[href="#film"] {
    color: var(--accent-pink);
}

.shelf-source-links a[href="#music"] {
    color: var(--accent-gold);
}

.media-section {
    margin-top: 2.4rem;
    padding-top: 0.9rem;
}

.media-section:first-of-type {
    margin-top: 2rem;
}

.media-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.media-heading h2 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.2;
}

.media-source-link {
    margin-left: 0.3rem;
    color: var(--muted) !important;
    font-size: 0.78rem;
    font-weight: 400;
}

.media-list {
    display: grid;
    gap: 0.62rem;
    list-style: none;
}

.media-item {
    padding: 0.18rem 0;
}

.media-item--film {
    padding: 0.5rem 0;
}

.media-item--book {
    padding: 0.5rem 0;
}

.media-copy {
    min-width: 0;
}

.media-rank {
    display: block;
    margin-bottom: 0.08rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.media-copy h3 {
    margin: 0;
    font-size: 1.03rem;
    line-height: 1.18;
}

.media-copy h3 a {
    color: var(--text) !important;
}

.media-copy p {
    margin: 0.08rem 0 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.3;
}

.media-section--books .media-heading h2,
.media-section--books .media-rank {
    color: var(--accent-purple);
}

.media-section--films .media-heading h2,
.media-section--films .media-rank {
    color: var(--accent-pink);
}

.media-section--albums .media-heading h2,
.media-section--albums .media-rank {
    color: var(--accent-gold);
}

.tutoring-page {
    --akil-main-width: 41rem;
}

.tutoring-page main,
.tutoring-page > footer,
.tutoring-page .container,
.shelf-page main,
.shelf-page > footer,
.shelf-page .container {
    width: min(100%, var(--akil-main-width));
    max-width: var(--akil-main-width);
}

.tutoring-page .theme-toggle,
.shelf-page .theme-toggle {
    left: calc(50% + (var(--akil-main-width) / 2) + 2rem);
}

.tutoring-page .tutoring-hero {
    margin-bottom: 2rem;
}

.tutoring-page .tutoring-title {
    margin-bottom: 0.8rem;
    font-size: 1.75rem;
    line-height: 1.15;
}

.tutoring-page .tutoring-lead {
    max-width: 30rem;
    font-size: 1.05rem;
    line-height: 1.55;
}

.tutoring-page section,
.tutoring-page section.container {
    margin-bottom: 2.5rem;
}

.tutoring-page .section-title {
    margin: 0 0 0.85rem;
}

.structure-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 1.1rem;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

.structure-card {
    padding: 0.85rem 1rem 0.9rem 0;
    border-right: 1px solid var(--rule);
}

.structure-card + .structure-card {
    padding-left: 1rem;
}

.structure-card:last-child {
    padding-right: 0;
    border-right: 0;
}

.structure-card h3,
.gates-card h3,
.week-card h4 {
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.structure-meta,
.course-duration,
.week-label {
    margin: 0.1rem 0 0.35rem;
    font-size: 0.84rem;
}

.structure-card p:last-child,
.gates-list li,
.week-body p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
}

.gates-card {
    padding: 0.85rem 0 0.9rem 1rem;
    border-left: 1px solid var(--rule-strong);
}

.gates-list {
    margin-top: 0.35rem;
    list-style: none;
}

.course-nav {
    margin-bottom: 1.5rem;
}

.course-intro {
    margin: 1.6rem 0 0.45rem;
}

.weeks-section {
    margin-bottom: 2.25rem;
    border-top: 1px solid var(--rule);
}

.week-card {
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 1.1rem;
    padding: 0.72rem 0;
    border-bottom: 1px solid var(--rule);
}

.week-header,
.week-body {
    min-width: 0;
}

.week-label {
    margin: 0 0 0.12rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.week-body code {
    padding: 0.02em 0.24em;
    border-radius: 3px;
    background: color-mix(in srgb, var(--text) 10%, transparent);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.82em;
}

.tutoring-cta-section {
    padding-top: 2.5rem;
    border-top: 1px solid var(--rule);
}

@media (max-width: 1080px) {
    :root {
        --akil-page-pad: clamp(1rem, 4vw, 2rem);
    }

    header {
        position: static;
        width: 100%;
        max-width: var(--akil-sidebar-anchor-width);
        margin: 0 auto 1.25rem;
    }

    .nav-links {
        flex-flow: row wrap;
        gap: 1.5rem;
    }

    .nav-links li {
        padding-left: 0;
    }

    .nav-links li:has(a[href$="blog.html"]) {
        margin-top: 0;
        padding-top: 0;
    }

    .nav-links li:has(a[href$="blog.html"])::after {
        display: none;
    }

    .nav-links li:has(a.active)::before {
        content: none;
    }

    .nav-links a.active {
        font-weight: 700;
    }

    .theme-toggle,
    .tutoring-page .theme-toggle,
    .shelf-page .theme-toggle {
        position: static;
        display: flex;
        width: max-content;
        margin: 0.65rem 0 0 auto;
        top: auto;
        right: auto;
        left: auto;
    }

    .hero,
    .blog-index,
    .blog-post,
    .error-page,
    .shelf-intro,
    .tutoring-page .tutoring-hero {
        padding-top: 0;
    }

    .hero h1,
    .post-content h1,
    .tutoring-title,
    .error-content h1 {
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 720px) {
    .structure-grid {
        grid-template-columns: 1fr;
    }

    .structure-card,
    .structure-card + .structure-card,
    .structure-card:last-child {
        padding: 0.85rem 0;
        border-right: 0;
        border-bottom: 1px solid var(--rule);
    }

    .structure-card:last-child {
        border-bottom: 0;
    }

    .week-card {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
}

@media (max-width: 540px) {
    html {
        font-size: 112%;
    }

    .nav-links {
        gap: 1.15rem;
        padding-right: 0;
    }

    .mobile-menu-toggle {
        position: fixed;
        top: clamp(0.8rem, 4vw, 1rem);
        right: clamp(0.8rem, 4vw, 1rem);
        z-index: 40;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.18rem;
        width: 1.45rem;
        height: 1.45rem;
        padding: 0;
        background: transparent;
        border: 0;
        color: var(--muted);
        cursor: pointer;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-0.2rem);
        transition: color 0.22s ease, opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
        visibility: hidden;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 1rem;
        height: 1px;
        background: currentColor;
        border-radius: 999px;
        transform-origin: center;
        transition: transform 0.22s ease, opacity 0.22s ease;
    }

    .mobile-menu-toggle:hover,
    .mobile-menu-toggle:focus-visible {
        color: var(--text);
    }

    .mobile-menu-panel {
        position: fixed;
        top: calc(clamp(0.8rem, 4vw, 1rem) + 1.95rem);
        right: clamp(0.8rem, 4vw, 1rem);
        z-index: 39;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 0.16rem;
        padding: 0.42rem 0.55rem 0.48rem 0.75rem;
        border: 1px solid var(--rule);
        border-radius: 6px;
        background: var(--bg);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-0.2rem);
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
        visibility: hidden;
    }

    .mobile-menu-panel a {
        color: var(--nav-local);
        font-size: 0.9rem;
        font-weight: 400;
        line-height: 1.35;
    }

    .mobile-menu-panel a[href$="blog.html"] {
        color: var(--nav-blog);
        font-weight: 700;
    }

    .mobile-menu-panel a[href$="shelf.html"] {
        color: var(--nav-shelf);
        font-weight: 700;
    }

    .mobile-menu-panel a[href*="tutoring"] {
        color: var(--nav-tutoring);
        font-weight: 700;
    }

    .mobile-menu-panel a.active {
        font-weight: 700;
    }

    .mobile-menu-ready .mobile-menu-toggle,
    .mobile-menu-open .mobile-menu-toggle {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        visibility: visible;
    }

    .mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
        transform: translateY(0.18rem) rotate(45deg);
    }

    .mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
        transform: translateY(-0.18rem) rotate(-45deg);
    }

    .mobile-menu-open .mobile-menu-panel {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        visibility: visible;
    }

    .nav-links li:has(a[href*="#experience"]),
    .nav-links li:has(a[href*="#awards"]),
    .nav-links li:has(a[href*="#projects"]),
    .nav-links li:has(a[href*="#skills"]),
    .nav-links li:has(a[href*="PageviewDuel"]) {
        display: none;
    }

    .footer-links,
    .footer-bottom {
        justify-content: flex-start;
    }

    body > footer {
        text-align: left;
    }
}
