:root {
    --paper: #f8f7f2;
    --paper-deep: #efeee8;
    --ink: #202321;
    --muted: #73766f;
    --line: #d9d9d0;
    --line-dark: #bfc1b8;
    --green: #b9d7c2;
    --green-deep: #628873;
    --blue: #b9d2e4;
    --blue-deep: #62819a;
    --orange: #e6c5a3;
    --orange-deep: #a9784e;
    --violet: #d0c7e1;
    --violet-deep: #7d6d99;
    --serif: Georgia, "Times New Roman", serif;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

.sr-only {
    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: absolute;
    left: 1rem;
    top: -5rem;
    z-index: 20;
    padding: 0.7rem 1rem;
    background: var(--ink);
    color: var(--paper);
}

.skip-link:focus {
    top: 1rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(217, 217, 208, 0.72);
    background: rgba(248, 247, 242, 0.92);
    backdrop-filter: blur(14px);
}

.nav-shell,
.content-shell,
.hero-grid {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.nav-shell {
    display: flex;
    min-height: 96px;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 760;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.site-brand-logo-wrap {
    position: relative;
    display: inline-flex;
    width: min(140px, 28vw);
    height: 56px;
    flex: 0 0 auto;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.site-brand-logo-wrap::after {
    position: absolute;
    inset: -35% auto -35% -80%;
    width: 45%;
    background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.8) 48%, transparent 100%);
    content: "";
    pointer-events: none;
    transform: skewX(-20deg);
    animation: site-logo-shine 4.8s ease-in-out infinite;
}

.site-brand-logo {
    position: relative;
    z-index: 1;
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

@keyframes site-logo-shine {
    0%,
    62%,
    100% {
        transform: translateX(0) skewX(-20deg);
    }

    78% {
        transform: translateX(360%) skewX(-20deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-brand-logo-wrap::after {
        animation: none;
    }
}

.brand-mark {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    padding: 7px;
    border: 1px solid var(--ink);
    border-radius: 50%;
}

.brand-mark span {
    display: block;
    width: 4px;
    background: var(--ink);
}

.brand-mark span:nth-child(1) {
    height: 10px;
}

.brand-mark span:nth-child(2) {
    height: 17px;
}

.brand-mark span:nth-child(3) {
    height: 13px;
}

.site-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.site-menu a {
    transition: color 160ms ease;
}

.site-menu a:hover,
.site-menu a:focus-visible {
    color: var(--ink);
}

.site-menu .nav-admin {
    color: var(--ink);
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    background: transparent;
}

.menu-line {
    display: block;
    width: 17px;
    height: 1px;
    margin: 4px auto;
    background: var(--ink);
}

.hero-section {
    overflow: hidden;
    padding: 64px 0;
    background:
        radial-gradient(circle at 75% 38%, rgba(185, 215, 194, 0.28), transparent 27%),
        var(--paper);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(410px, 0.95fr);
    align-items: center;
    gap: 5rem;
}

.eyebrow,
.section-kicker {
    margin: 0 0 1.1rem;
    color: var(--green-deep);
    font-size: 0.71rem;
    font-weight: 780;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green-deep);
    box-shadow: 0 0 0 5px rgba(98, 136, 115, 0.12);
}

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

h1,
h2 {
    letter-spacing: -0.055em;
}

h1 {
    max-width: 690px;
    margin-bottom: 1.5rem;
    font-size: clamp(3.25rem, 6.1vw, 5.6rem);
    font-weight: 550;
    line-height: 0.98;
}

.hero-copy h1 {
    padding-left: 4px;
    letter-spacing: -0.03em;
}

.hero-title-line {
    display: inline-block;
    white-space: nowrap;
}

h1 em,
h2 em {
    color: var(--green-deep);
    font-family: var(--serif);
    font-weight: 400;
}

.hero-lead {
    max-width: 550px;
    margin-bottom: 2.1rem;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.8;
}

.search-form {
    display: flex;
    width: min(100%, 570px);
    align-items: center;
    padding: 5px;
    border: 1px solid var(--line-dark);
    background: #fffefa;
    box-shadow: 0 9px 30px rgba(49, 55, 49, 0.06);
}

.search-icon {
    padding: 0 0.75rem 0 1rem;
    color: var(--muted);
    font-size: 1.7rem;
    line-height: 1;
    transform: rotate(-20deg);
}

.search-form input {
    min-width: 0;
    flex: 1;
    padding: 0.8rem 0.3rem;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
}

.search-form input::placeholder {
    color: #a0a29c;
}

.search-form button {
    border: 0;
    background: var(--ink);
    color: var(--paper);
    transition: background 160ms ease, transform 160ms ease;
}

.search-form button {
    padding: 0.85rem 1.05rem;
    font-size: 0.88rem;
    font-weight: 700;
}

.search-form button:hover {
    background: var(--green-deep);
    transform: translateY(-1px);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    color: var(--muted);
    font-size: 0.76rem;
}

.hero-meta strong {
    color: var(--ink);
    font-size: 0.95rem;
}

.meta-divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--line-dark);
}

.hero-visual {
    position: relative;
    min-height: 400px;
    isolation: isolate;
}

.visual-orbit {
    position: absolute;
    border: 1px solid rgba(98, 136, 115, 0.3);
    border-radius: 50%;
    transform: rotate(-22deg);
}

.orbit-one {
    width: 430px;
    height: 180px;
    top: 55px;
    left: 7%;
}

.orbit-two {
    width: 410px;
    height: 240px;
    top: 40px;
    left: 10%;
    border-color: rgba(169, 120, 78, 0.24);
    transform: rotate(35deg);
}

.visual-card {
    position: absolute;
    z-index: 1;
    width: min(100%, 420px);
    min-height: 286px;
    padding: 1.15rem 1.25rem;
    border: 1px solid #3a443d;
    background: #26302b;
    box-shadow: 22px 24px 0 rgba(185, 215, 194, 0.38);
    color: #dbe7dd;
    transform: rotate(-5deg);
}

.visual-card-main {
    top: 52px;
    left: 8%;
}

.visual-card-top,
.visual-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #9cac9e;
    font-size: 0.59rem;
    letter-spacing: 0.13em;
}

.window-dots {
    display: inline-flex;
    gap: 4px;
}

.window-dots i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #d8ac7b;
}

.window-dots i:nth-child(2) {
    background: #c6d9a7;
}

.window-dots i:nth-child(3) {
    background: #96bacb;
}

.visual-card-status {
    color: #aad5b5;
}

.code-lines {
    display: grid;
    gap: 0.8rem;
    margin: 2.55rem 0 2rem;
    color: #aabbb0;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.75rem;
}

.code-lines span {
    white-space: nowrap;
}

.code-number {
    display: inline-block;
    width: 24px;
    color: #627268;
    font-weight: 400;
}

.code-key {
    color: #c6d9a7;
    font-style: normal;
}

.code-lines strong {
    color: #e5c396;
    font-weight: 400;
}

.code-lines .code-green {
    color: #a8d4b2;
}

.visual-progress {
    height: 4px;
    overflow: hidden;
    margin-bottom: 1.2rem;
    background: #414c45;
}

.visual-progress span {
    display: block;
    width: 68%;
    height: 100%;
    background: #a8d4b2;
}

.visual-card-bottom strong {
    color: #dce9df;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}

.floating-label {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--line);
    background: rgba(255, 254, 250, 0.91);
    box-shadow: 0 10px 22px rgba(49, 55, 49, 0.08);
    color: var(--muted);
    font-size: 0.72rem;
}

.floating-label-top {
    top: 16px;
    right: -3%;
}

.floating-label-bottom {
    right: 5%;
    bottom: 28px;
}

.label-symbol {
    color: var(--orange-deep);
    font-size: 1rem;
}

.label-green {
    color: var(--green-deep);
}

.intro-strip {
    padding: 2.25rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--paper-deep);
}

.intro-grid {
    display: grid;
    grid-template-columns: 0.65fr 1.35fr;
    gap: 4rem;
}

.intro-grid h2 {
    max-width: 790px;
    margin-bottom: 1rem;
    font-size: clamp(1.85rem, 3.5vw, 3.2rem);
    font-weight: 500;
    line-height: 1.15;
}

.intro-grid p:last-child {
    max-width: 650px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
}

.content-section {
    padding: 108px 0;
}

.page-hero {
    padding: 88px 0 76px;
    border-bottom: 1px solid var(--line);
    background: var(--paper-deep);
}

.page-hero h1 {
    max-width: 760px;
    margin-bottom: 1rem;
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    line-height: 1;
}

.page-hero-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 3rem;
}

.page-hero-heading p:not(.section-kicker) {
    max-width: 620px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1rem;
}

.blog-page {
    background: #fbfaf7;
}

.blog-page-intro {
    padding: 74px 0 48px;
    text-align: center;
}

.blog-page-intro h1 {
    max-width: none;
    margin: 0 0 0.8rem;
    color: var(--ink);
    font-size: clamp(2.15rem, 4.5vw, 3.45rem);
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 1.1;
}

.blog-page-intro > .content-shell > p {
    margin-bottom: 1.8rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.blog-category-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
}

.blog-category-nav a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 0.55rem 1rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #f0eee8;
    color: #686b65;
    font-size: 0.78rem;
    font-weight: 650;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.blog-category-nav a:hover,
.blog-category-nav a:focus-visible {
    background: #e7e3d9;
    color: var(--ink);
    transform: translateY(-1px);
}

.blog-category-nav a.is-active {
    background: var(--orange-deep);
    color: #fffefa;
}

.blog-articles-section {
    padding: 0 0 112px;
}

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

.blog-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #ebe9e3;
    border-radius: 8px;
    background: #fffefa;
    box-shadow: 0 2px 8px rgba(50, 47, 39, 0.025);
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.blog-card:hover,
.blog-card:focus-visible {
    box-shadow: 0 10px 24px rgba(50, 47, 39, 0.1);
    transform: translateY(-3px);
}

.blog-card-media {
    position: relative;
    display: flex;
    min-height: 168px;
    align-items: flex-start;
    overflow: hidden;
    padding: 0.75rem;
}

.blog-card-media-with-image {
    background: #d9d5ca;
}

.blog-card-media-with-image::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(20, 24, 23, 0.24), rgba(20, 24, 23, 0.02) 48%, rgba(20, 24, 23, 0.38));
    content: "";
}

.blog-card-cover {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-media::after {
    position: absolute;
    right: 14%;
    bottom: -42%;
    width: 220px;
    height: 150px;
    border: 1px solid rgba(255, 254, 250, 0.36);
    border-radius: 50%;
    content: "";
    transform: rotate(-17deg);
}

.blog-card-media-ink {
    background: #1f2524;
}

.blog-card-media-blue {
    background: #bdd2dc;
}

.blog-card-media-orange {
    background: #e4d5bf;
}

.blog-card-media-green {
    background: #c9d8c9;
}

.blog-card-label,
.blog-card-featured {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0.27rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 254, 250, 0.88);
    color: var(--ink);
    font-size: 0.64rem;
    font-weight: 700;
}

.blog-card-featured {
    margin-left: 0.4rem;
    background: var(--orange-deep);
    color: #fffefa;
}

.blog-card-media-mark {
    position: absolute;
    right: 18%;
    bottom: 4%;
    z-index: 1;
    color: rgba(255, 254, 250, 0.82);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 7rem;
    font-weight: 400;
    line-height: 0.7;
    transform: rotate(-13deg);
}

.blog-card-media-blue .blog-card-media-mark,
.blog-card-media-orange .blog-card-media-mark,
.blog-card-media-green .blog-card-media-mark {
    color: rgba(32, 35, 33, 0.45);
}

.blog-card-body {
    display: flex;
    min-height: 218px;
    flex-direction: column;
    padding: 1rem 1.05rem 1.15rem;
}

.blog-card-body time {
    margin-bottom: 0.75rem;
    color: #96988f;
    font-size: 0.68rem;
}

.blog-card-body h3 {
    display: -webkit-box;
    min-height: 2.75em;
    margin-bottom: 0.65rem;
    overflow: hidden;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.03rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.38;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.blog-card-body p {
    display: -webkit-box;
    margin-bottom: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.blog-empty-state {
    padding: 4rem 0;
    color: var(--muted);
    text-align: center;
}

.catalog-search {
    display: flex;
    width: min(100%, 390px);
    align-items: center;
    padding: 4px;
    border: 1px solid var(--line-dark);
    background: #fffefa;
}

.catalog-search input {
    min-width: 0;
    flex: 1;
    padding: 0.75rem 0.7rem;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
}

.catalog-search button,
.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 0;
    background: var(--ink);
    color: var(--paper);
    font-size: 0.78rem;
    font-weight: 700;
}

.catalog-search button {
    padding: 0.75rem 0.9rem;
}

.catalog-search button:hover,
.button-link:hover {
    background: var(--green-deep);
}

.catalog-section {
    min-height: 460px;
    background: #fbfaf5;
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    color: var(--muted);
    font-size: 0.78rem;
}

.catalog-toolbar strong {
    color: var(--ink);
}

.public-skill-list {
    border-top: 1px solid var(--line-dark);
}

.public-skill-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1.7fr) minmax(170px, 0.85fr) 120px 24px;
    align-items: center;
    gap: 1.25rem;
    min-height: 128px;
    border-bottom: 1px solid var(--line);
    transition: background 160ms ease, padding 160ms ease;
}

.public-skill-row:hover,
.public-skill-row:focus-visible {
    padding: 0 0.7rem;
    background: rgba(255, 254, 250, 0.72);
}

.public-skill-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-dark);
    border-radius: 50%;
    color: var(--green-deep);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.72rem;
}

.public-skill-main {
    display: grid;
    min-width: 0;
    gap: 0.25rem;
}

.public-skill-type,
.repository-card-label,
.sidebar-label {
    color: var(--green-deep);
    font-size: 0.65rem;
    font-weight: 780;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.public-skill-main strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.05rem;
    letter-spacing: -0.025em;
}

.public-skill-main > span:last-child {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-skill-repository,
.public-skill-stats {
    display: grid;
    gap: 0.25rem;
    color: var(--muted);
    font-size: 0.72rem;
}

.public-skill-repository strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-skill-stats {
    white-space: nowrap;
}

.public-skill-stats span:first-child span {
    color: var(--orange-deep);
}

.public-empty-state,
.homepage-notice {
    padding: 2rem 0;
    color: var(--muted);
}

.article-error {
    max-width: 700px;
    padding: 5rem 0;
}

.article-error h1 {
    margin-bottom: 1.6rem;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 520;
    line-height: 1.05;
}

.button-link {
    padding: 0.85rem 1rem;
}

.article-header {
    padding: 92px 0 82px;
    border-bottom: 1px solid var(--line);
    background: var(--paper-deep);
}

.article-header-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    align-items: end;
    gap: 5rem;
}

.article-header-grid-tutorial {
    display: block;
}

.back-link {
    display: inline-flex;
    margin-bottom: 3.6rem;
    color: var(--muted);
    font-size: 0.78rem;
}

.back-link:hover {
    color: var(--green-deep);
}

.article-header h1 {
    max-width: none;
    margin-bottom: 1.25rem;
    font-size: clamp(2.7rem, 6vw, 5.5rem);
    font-weight: 520;
    line-height: 1;
}

.article-excerpt {
    max-width: none;
    margin-bottom: 1.4rem;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.2rem;
    color: var(--muted);
    font-size: 0.75rem;
}

.article-header-meta span + span {
    position: relative;
    padding-left: 1.2rem;
}

.article-header-meta span + span::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--line-dark);
    content: "";
    transform: translateY(-50%);
}

.article-resource-card {
    padding: 1.35rem;
    border: 1px solid var(--line-dark);
    background: var(--paper);
}

.resource-card-heading {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 1.1rem;
}

.resource-card-heading strong {
    overflow-wrap: anywhere;
    font-size: 1.2rem;
}

.resource-command-list {
    display: grid;
    gap: 0.6rem;
}

.resource-command {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    padding: 0.7rem;
    border: 1px solid var(--line);
    background: #fffefa;
}

.resource-command-main {
    display: grid;
    min-width: 0;
    flex: 1;
    gap: 0.3rem;
}

.resource-command-main > span {
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 760;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.resource-command code {
    display: block;
    overflow: hidden;
    color: var(--ink);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.72rem;
    line-height: 1.55;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resource-copy-button {
    flex: 0 0 auto;
    padding: 0.42rem 0.55rem;
    border: 1px solid var(--line-dark);
    background: transparent;
    color: var(--ink);
    font-size: 0.68rem;
    font-weight: 700;
}

.resource-copy-button:hover,
.resource-copy-button:focus-visible {
    border-color: var(--green-deep);
    color: var(--green-deep);
}

.resource-action-links {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.85rem;
}

.resource-action-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--line);
    color: var(--green-deep);
    font-size: 0.75rem;
    font-weight: 760;
}

.resource-action-link:hover {
    color: var(--ink);
}

.article-layout {
    display: block;
    padding-top: 84px;
    padding-bottom: 108px;
}

.article-content {
    min-width: 0;
    max-width: none;
}

.article-layout-tutorial {
    display: block;
    max-width: none;
}

.article-layout-tutorial .article-content {
    max-width: none;
}

.article-bottom-tags {
    margin-top: 3.25rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line-dark);
}

.markdown-content {
    color: #30342f;
    font-family: var(--serif);
    font-size: 1.08rem;
    line-height: 1.85;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    margin: 2.4rem 0 0.85rem;
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 700;
    line-height: 1.2;
}

.markdown-content h1 {
    font-size: 2rem;
}

.markdown-content h2 {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.65rem;
}

.markdown-content h3 {
    font-size: 1.3rem;
}

.markdown-content p {
    margin-bottom: 1.15rem;
}

.markdown-content ul,
.markdown-content ol {
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
}

.markdown-content li {
    margin-bottom: 0.35rem;
}

.markdown-content blockquote {
    margin: 1.5rem 0;
    padding: 0.25rem 1.2rem;
    border-left: 3px solid var(--green-deep);
    background: rgba(185, 215, 194, 0.16);
    color: var(--muted);
}

.markdown-content blockquote p:last-child {
    margin-bottom: 0;
}

.markdown-content hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.markdown-content a {
    color: var(--green-deep);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.markdown-content code {
    padding: 0.12rem 0.3rem;
    background: var(--paper-deep);
    color: var(--orange-deep);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.82em;
}

.markdown-content pre {
    overflow-x: auto;
    margin: 1.5rem 0;
    padding: 1.15rem 1.2rem;
    background: #26302b;
    color: #dbe7dd;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.78rem;
    line-height: 1.7;
}

.markdown-content pre code {
    padding: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
}

.markdown-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.markdown-content table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-family: var(--sans);
    font-size: 0.9rem;
    line-height: 1.55;
}

.markdown-content th,
.markdown-content td {
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.markdown-content th {
    background: var(--paper-deep);
    color: var(--ink);
    font-weight: 750;
}

.markdown-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.3rem 0;
    border: 1px solid var(--line);
}

.markdown-content .task-list {
    padding-left: 0;
    list-style: none;
}

.markdown-content .task-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}

.markdown-content .task-list-item input {
    width: 1rem;
    min-width: 1rem;
    height: 1rem;
    margin-top: 0.35rem;
}

.markdown-content del {
    color: var(--muted);
}

.article-tags {
    margin-top: 0.9rem;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.7;
}

.categories-section {
    padding-top: 72px;
    background: #fbfaf5;
}

.featured-section,
.latest-section {
    background: var(--paper-deep);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.7rem;
}

.section-heading h2 {
    margin-bottom: 0;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 520;
    line-height: 1;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    transition: color 160ms ease;
}

.text-link:hover,
.text-link:focus-visible {
    color: var(--green-deep);
}

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

.category-card {
    display: flex;
    min-height: 265px;
    flex-direction: column;
    padding: 1.45rem;
    border: 1px solid var(--line);
    background: var(--paper);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.category-card:hover,
.category-card:focus-visible {
    box-shadow: 8px 8px 0 rgba(32, 35, 33, 0.08);
    transform: translateY(-4px);
}

.category-number {
    display: inline-flex;
    width: 35px;
    height: 35px;
    align-items: center;
    justify-content: center;
    margin-bottom: 4rem;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 0.68rem;
}

.category-mint {
    color: var(--green-deep);
}

.category-blue {
    color: var(--blue-deep);
}

.category-orange {
    color: var(--orange-deep);
}

.category-violet {
    color: var(--violet-deep);
}

.category-title,
.category-description,
.category-footer {
    color: var(--ink);
}

.category-title {
    margin-bottom: 0.65rem;
    font-size: 1.18rem;
    font-weight: 750;
    letter-spacing: -0.03em;
}

.category-description {
    min-height: 54px;
    color: var(--muted);
    font-size: 0.83rem;
    line-height: 1.65;
}

.category-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    font-size: 0.72rem;
}

.circle-arrow {
    display: inline-flex;
    width: 27px;
    height: 27px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-dark);
    border-radius: 50%;
    color: var(--ink);
}

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

.skill-card {
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--paper);
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.skill-card:hover,
.skill-card:focus-visible {
    box-shadow: 8px 8px 0 rgba(32, 35, 33, 0.08);
    transform: translateY(-4px);
}

.skill-cover {
    position: relative;
    display: flex;
    min-height: 214px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tone-ink .skill-cover {
    background: #28302b;
}

.tone-blue .skill-cover {
    background: #c4d8e7;
}

.tone-orange .skill-cover {
    background: #dfc2a3;
}

.cover-grid {
    position: absolute;
    inset: 0;
    opacity: 0.55;
    background-image: linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 25px 25px;
    transform: rotate(-10deg) scale(1.4);
}

.cover-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.42rem 0.62rem;
    border: 1px solid rgba(32, 35, 33, 0.28);
    background: rgba(255, 254, 250, 0.75);
    color: var(--ink);
    font-size: 0.65rem;
    font-weight: 760;
}

.cover-symbol {
    position: relative;
    z-index: 1;
    display: flex;
    width: 94px;
    height: 94px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 254, 250, 0.8);
    border-radius: 50%;
    color: #fffefa;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 1.25rem;
    transform: rotate(-13deg);
}

.tone-blue .cover-symbol,
.tone-orange .cover-symbol {
    border-color: rgba(32, 35, 33, 0.55);
    color: var(--ink);
}

.skill-card-body {
    padding: 1.25rem;
}

.skill-card-body h3 {
    margin-bottom: 0.65rem;
    font-size: 1.25rem;
    letter-spacing: -0.035em;
}

.skill-card-body p {
    min-height: 58px;
    margin-bottom: 1.2rem;
    color: var(--muted);
    font-size: 0.83rem;
    line-height: 1.7;
}

.skill-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.67rem;
}

.skill-card-meta > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.skill-stats {
    flex: 0 0 auto;
}

.skill-stats span,
.latest-stars span,
.repository-meta span span[aria-hidden="true"] {
    color: var(--orange-deep);
}

.filter-pills {
    display: flex;
    gap: 0.4rem;
}

.filter-pill {
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    font-size: 0.72rem;
}

.filter-pill.active,
.filter-pill:hover {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--paper);
}

.latest-list {
    border-top: 1px solid var(--line-dark);
}

.latest-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1.6fr) minmax(150px, 0.85fr) 100px 70px 24px;
    align-items: center;
    gap: 1.3rem;
    min-height: 108px;
    border-bottom: 1px solid var(--line);
    transition: background 160ms ease, padding 160ms ease;
}

.latest-row:hover,
.latest-row:focus-visible {
    padding-right: 0.7rem;
    padding-left: 0.7rem;
    background: rgba(255, 254, 250, 0.72);
}

.latest-icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-dark);
    border-radius: 50%;
    color: var(--green-deep);
}

.latest-main {
    display: grid;
    gap: 0.25rem;
}

.latest-tag {
    color: var(--green-deep);
    font-size: 0.65rem;
    font-weight: 760;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.latest-main strong {
    font-size: 1.02rem;
    letter-spacing: -0.02em;
}

.latest-main > span:last-child,
.latest-repository,
.latest-date,
.latest-stars {
    color: var(--muted);
    font-size: 0.73rem;
}

.latest-main > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.latest-repository {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.latest-stars {
    white-space: nowrap;
}

.row-arrow {
    color: var(--muted);
    font-size: 1.25rem;
    transition: color 160ms ease, transform 160ms ease;
}

.latest-row:hover .row-arrow,
.latest-row:focus-visible .row-arrow {
    color: var(--green-deep);
    transform: translateX(3px);
}

.site-footer {
    background: #e6e7df;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.footer-brand p {
    max-width: 300px;
    margin: 1.2rem 0 0;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-links > div {
    display: grid;
    align-content: start;
    gap: 0.5rem;
}

.footer-label {
    margin-bottom: 0.35rem;
    color: var(--ink);
    font-size: 0.69rem;
    font-weight: 760;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-links a {
    width: fit-content;
    color: var(--muted);
    font-size: 0.78rem;
}

.footer-links a:hover {
    color: var(--ink);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.15rem;
    padding-bottom: 1.15rem;
    border-top: 1px solid #cdd0c7;
    color: var(--muted);
    font-size: 0.68rem;
}

@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-copy {
        max-width: 720px;
    }

    .hero-visual {
        width: min(100%, 590px);
        margin: 0 auto;
    }

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

    .latest-row {
        grid-template-columns: 40px minmax(0, 1.6fr) minmax(130px, 0.8fr) 80px 58px 20px;
        gap: 0.8rem;
    }

    .public-skill-row {
        grid-template-columns: 40px minmax(0, 1.5fr) minmax(140px, 0.8fr) 90px 20px;
        gap: 0.8rem;
    }

    .article-header-grid {
        gap: 3rem;
    }
}

@media (max-width: 760px) {
    .nav-shell,
    .content-shell,
    .hero-grid {
        width: min(100% - 32px, 620px);
    }

    .nav-shell {
        min-height: 78px;
    }

    .site-brand-logo-wrap {
        width: min(120px, 42vw);
        height: 48px;
    }

    .menu-toggle {
        display: block;
    }

    .site-menu {
        position: absolute;
        top: 78px;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.65rem;
        border: 1px solid var(--line);
        background: var(--paper);
        box-shadow: 0 14px 30px rgba(32, 35, 33, 0.1);
    }

    .site-menu.is-open {
        display: flex;
    }

    .site-menu a {
        padding: 0.85rem 0.7rem;
        border-bottom: 1px solid var(--line);
    }

    .site-menu a:last-child {
        border-bottom: 0;
    }

    .hero-section {
        padding: 54px 0 58px;
    }

    h1 {
        font-size: clamp(2.75rem, 12vw, 4rem);
    }

    .hero-title-line {
        font-size: 0.92em;
    }

    .hero-lead {
        font-size: 0.98rem;
    }

    .page-hero {
        padding: 68px 0 60px;
    }

    .page-hero-heading {
        display: block;
    }

    .blog-page-intro {
        padding: 58px 0 38px;
    }

    .blog-page-intro > .content-shell > p {
        margin-bottom: 1.5rem;
    }

    .blog-articles-section {
        padding-bottom: 72px;
    }

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

    .blog-card-media {
        min-height: 180px;
    }

    .blog-card-body {
        min-height: 0;
    }

    .catalog-search {
        width: 100%;
        margin-top: 2rem;
    }

    .search-form {
        align-items: stretch;
        flex-wrap: wrap;
        padding: 4px;
    }

    .search-icon {
        padding-left: 0.7rem;
    }

    .search-form input {
        width: calc(100% - 45px);
    }

    .search-form button {
        width: 100%;
        margin-top: 3px;
    }

    .hero-meta {
        flex-wrap: wrap;
        gap: 0.7rem;
    }

    .hero-visual {
        min-height: 340px;
        transform: scale(0.92);
        transform-origin: top center;
    }

    .visual-card {
        min-height: 260px;
    }

    .visual-card-main {
        left: 0;
    }

    .floating-label-top {
        right: 0;
    }

    .floating-label-bottom {
        right: 0;
        bottom: 18px;
    }

    .intro-strip {
        padding: 48px 0 40px;
    }

    .content-section {
        padding: 64px 0;
    }

    .categories-section {
        padding-top: 56px;
    }

    .intro-grid,
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2.3rem;
    }

    .section-heading {
        display: block;
        margin-bottom: 2rem;
    }

    .section-heading .text-link,
    .filter-pills {
        margin-top: 1.2rem;
    }

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

    .category-grid {
        gap: 0.7rem;
    }

    .category-card {
        min-height: 235px;
        padding: 1rem;
    }

    .category-number {
        margin-bottom: 2.6rem;
    }

    .latest-row {
        grid-template-columns: 35px minmax(0, 1fr) 20px;
        gap: 0.7rem;
        padding: 1rem 0;
    }

    .public-skill-row {
        grid-template-columns: 35px minmax(0, 1fr) 20px;
        gap: 0.7rem;
        min-height: 112px;
        padding: 1rem 0;
    }

    .public-skill-repository,
    .public-skill-stats {
        display: none;
    }

    .public-skill-main > span:last-child {
        white-space: normal;
    }

    .article-header {
        padding: 68px 0 60px;
    }

    .article-header-grid {
        grid-template-columns: 1fr;
    }

    .back-link {
        margin-bottom: 2.5rem;
    }

    .article-resource-card {
        max-width: 560px;
    }

    .article-layout {
        padding-top: 60px;
        padding-bottom: 72px;
    }

    .latest-repository,
    .latest-date,
    .latest-stars {
        display: none;
    }

    .latest-main > span:last-child {
        white-space: normal;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.35rem;
    }
}

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

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

