/* ===== TERMINAL THEME =====
   Dark, monospace, green-on-charcoal. Mapped onto the existing
   class names so every page inherits the look. */

/* ===== TOKENS ===== */
:root {
    --bg:        #0d1117;
    --bg-panel:  #161b22;
    --bg-inset:  #10151c;
    --border:    #21262d;
    --border-mut:#30363d;
    --text:      #e6edf3;
    --text-mut:  #7d8590;
    --green:     #3fb950;
    --green-dim: #2ea043;
    --blue:      #58a6ff;
    --amber:     #d29922;
    --red:       #f85149;
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
            "Liberation Mono", "Courier New", monospace;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--mono);
    line-height: 1.65;
    color: var(--text);
    background-color: var(--bg);
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: rgba(63, 185, 80, 0.3);
    color: #fff;
}

a {
    color: var(--green);
    text-decoration: none;
}

/* ===== UTILITY ===== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.highlight {
    color: var(--green);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.6rem 1.1rem;
    font-family: var(--mono);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid var(--border-mut);
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
    text-align: center;
}

.btn::before {
    content: "";
    color: var(--text-mut);
}

.btn-primary {
    background-color: transparent;
    color: var(--green);
    border-color: var(--green-dim);
}

.btn-primary:hover {
    background-color: rgba(63, 185, 80, 0.12);
    border-color: var(--green);
}

.btn-secondary {
    background-color: transparent;
    color: var(--blue);
    border-color: var(--border-mut);
}

.btn-secondary:hover {
    background-color: rgba(88, 166, 255, 0.1);
    border-color: var(--blue);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-mut);
    border-color: var(--border-mut);
}

.btn-outline:hover {
    color: var(--text);
    border-color: var(--text-mut);
}

/* ===== HEADER & NAV ===== */
.header {
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 3.5rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-logo a {
    font-family: var(--mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--green);
    text-decoration: none;
}

.nav-logo a::before {
    content: "~/";
    color: var(--text-mut);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-mut);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s ease;
    position: relative;
}

.nav-link::before {
    content: "";
    color: var(--green);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle .bar {
    width: 24px;
    height: 2px;
    background-color: var(--text-mut);
    margin: 3px 0;
    transition: 0.3s;
}

/* ===== MAIN ===== */
.main {
    margin-top: 3.5rem;
}

/* ===== HERO ===== */
.hero {
    padding: 5rem 0 4rem;
    background-color: var(--bg);
    text-align: left;
}

.hero-content {
    animation: fadeInUp 0.6s ease;
}

.hero-content::before {
    content: "amardeep@london:~$ whoami";
    display: block;
    color: var(--text-mut);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text);
    letter-spacing: -0.01em;
}

.hero-title::after {
    content: "\2588";
    color: var(--green);
    margin-left: 0.15em;
    animation: blink 1.1s step-end infinite;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--green);
    margin-bottom: 1.25rem;
    font-weight: 400;
}

.hero-subtitle::before {
    content: "// ";
    color: var(--text-mut);
}

.hero-description {
    font-size: 1rem;
    color: var(--text-mut);
    max-width: 62ch;
    margin: 0 0 2rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 0.9rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* ===== INTRO ===== */
.intro {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
}

.intro h2,
.skills h2,
.values h2 {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: var(--text);
    font-weight: 600;
}

.intro h2::before,
.skills h2::before,
.values h2::before {
    content: "## ";
    color: var(--green);
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.intro-item {
    text-align: left;
    padding: 1.5rem;
    background-color: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.15s ease;
}

.intro-item:hover {
    border-color: var(--border-mut);
}

.intro-item h3 {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
    color: var(--green);
}

.intro-item h3::before {
    content: "> ";
    color: var(--text-mut);
}

.intro-item p {
    color: var(--text-mut);
    line-height: 1.65;
    font-size: 0.92rem;
}

/* ===== PAGE HEADER ===== */
.page-header {
    padding: 4.5rem 0 2.5rem;
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text);
    letter-spacing: -0.01em;
}

.page-header h1::before {
    content: "$ ";
    color: var(--green);
}

.page-header p {
    font-size: 1rem;
    color: var(--text-mut);
    max-width: 62ch;
    margin: 0;
}

/* ===== ABOUT ===== */
.about-content {
    padding: 4rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
    font-weight: 600;
}

.about-text h2::before {
    content: "## ";
    color: var(--green);
}

.about-text p {
    margin-bottom: 1.25rem;
    color: var(--text-mut);
    line-height: 1.75;
}

.about-image {
    text-align: center;
}

.profile-image {
    width: 100%;
    max-width: 280px;
    border-radius: 8px;
    border: 1px solid var(--border-mut);
}

.skills {
    padding: 4rem 0;
    background-color: var(--bg-inset);
    border-top: 1px solid var(--border);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.skill-category {
    background: var(--bg-panel);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.skill-category h3 {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    color: var(--green);
}

.skill-category h3::before {
    content: "> ";
    color: var(--text-mut);
}

.skill-list {
    list-style: none;
}

.skill-list li {
    padding: 0.4rem 0;
    color: var(--text-mut);
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
}

.skill-list li::before {
    content: "- ";
    color: var(--green);
}

.skill-list li:last-child {
    border-bottom: none;
}

/* ===== VALUES ===== */
.values {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.value-item {
    text-align: left;
    padding: 1.5rem;
    background-color: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.value-item h3 {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
    color: var(--green);
}

.value-item h3::before {
    content: "> ";
    color: var(--text-mut);
}

.value-item p {
    color: var(--text-mut);
    line-height: 1.65;
    font-size: 0.92rem;
}

/* ===== RESUME ===== */
.resume-header {
    text-align: left;
}

.resume-title {
    font-size: 1.2rem;
    color: var(--green);
    margin-bottom: 0.75rem;
}

.resume-title::before {
    content: "// ";
    color: var(--text-mut);
}

.resume-contact {
    font-size: 0.9rem;
    color: var(--text-mut);
    margin-bottom: 1rem;
}

.resume-contact span {
    margin-right: 1rem;
}

.resume-content {
    padding: 4rem 0;
}

.resume-section {
    margin-bottom: 3rem;
}

.resume-section h2 {
    font-size: 1.4rem;
    margin-bottom: 1.75rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
    font-weight: 600;
}

.resume-section h2::before {
    content: "## ";
    color: var(--green);
}

.experience-item,
.education-item {
    margin-bottom: 2.5rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border);
}

.experience-item:last-child,
.education-item:last-child {
    border-bottom: none;
}

.experience-header,
.education-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.experience-header h3,
.education-header h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin: 0;
}

.company,
.school {
    color: var(--green);
    font-weight: 500;
}

.period {
    color: var(--text-mut);
    font-size: 0.85rem;
}

.experience-details {
    list-style: none;
    margin-left: 1rem;
}

.experience-details li {
    position: relative;
    margin-bottom: 0.5rem;
    color: var(--text-mut);
    line-height: 1.65;
    font-size: 0.92rem;
}

.experience-details li::before {
    content: "→";
    color: var(--green);
    position: absolute;
    left: -1rem;
}

.education-details {
    color: var(--text-mut);
    line-height: 1.65;
    font-size: 0.92rem;
}

.skills-resume {
    display: grid;
    gap: 1.25rem;
}

.skill-group h4 {
    font-weight: 600;
    color: var(--green);
    margin-bottom: 0.5rem;
}

.skill-group h4::before {
    content: "> ";
    color: var(--text-mut);
}

.skill-group p {
    color: var(--text-mut);
    line-height: 1.65;
    font-size: 0.92rem;
}

.projects-list {
    display: grid;
    gap: 1.25rem;
}

.project-item {
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--bg-panel);
}

.project-item h3 {
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.project-item h3::before {
    content: "> ";
    color: var(--green);
}

.project-tech {
    color: var(--amber);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.project-item p {
    color: var(--text-mut);
    line-height: 1.65;
    font-size: 0.92rem;
}

.certifications-list {
    display: grid;
    gap: 0.75rem;
}

.certification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.1rem;
    background-color: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.certification-item h4 {
    color: var(--text);
    margin: 0;
    font-weight: 500;
}

.cert-date {
    color: var(--text-mut);
    font-size: 0.85rem;
}

/* ===== BLOG & PHOTOGRAPHY ===== */
.blog-content,
.photography-content {
    padding: 4rem 0;
}

.blog-placeholder,
.photography-placeholder {
    text-align: left;
    max-width: 640px;
}

.placeholder-icon {
    color: var(--border-mut);
    margin-bottom: 1.5rem;
}

.placeholder-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--text);
    font-weight: 600;
}

.placeholder-content h2::before {
    content: "## ";
    color: var(--green);
}

.placeholder-content p {
    color: var(--text-mut);
    margin-bottom: 1.25rem;
    line-height: 1.75;
}

.blog-preview,
.photo-preview {
    background-color: var(--bg-panel);
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin: 1.5rem 0;
}

.blog-preview h3,
.photo-preview h3 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    color: var(--text);
}

.blog-preview h3::before,
.photo-preview h3::before {
    content: "$ ls ";
    color: var(--green);
}

.topic-list {
    list-style: none;
    text-align: left;
}

.topic-list li {
    padding: 0.6rem 0;
    color: var(--text-mut);
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
}

.topic-list li::before {
    content: "- [ ] ";
    color: var(--green);
}

.topic-list li:last-child {
    border-bottom: none;
}

.preview-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    text-align: left;
}

.category-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--green);
}

.category-item h4::before {
    content: "> ";
    color: var(--text-mut);
}

.category-item p {
    color: var(--text-mut);
    font-size: 0.85rem;
}

.blog-actions,
.photo-actions {
    margin-top: 1.5rem;
}

/* ===== BLOG POSTS (index + list) ===== */
.blog-post {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.blog-post:last-child {
    border-bottom: none;
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.82rem;
    color: var(--text-mut);
    margin-bottom: 0.5rem;
}

.post-category {
    color: var(--amber);
}

.post-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.post-title a {
    color: var(--blue);
}

.post-title a:hover {
    text-decoration: underline;
}

.post-excerpt {
    color: var(--text-mut);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.read-more {
    color: var(--green);
    font-size: 0.9rem;
}

.read-more::after {
    content: " →";
}

.read-more:hover {
    text-decoration: underline;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--bg-inset);
    color: var(--text-mut);
    padding: 2.5rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.social-links {
    display: flex;
    gap: 1.25rem;
}

.social-link {
    color: var(--text-mut);
    transition: color 0.15s ease;
}

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

.footer-text {
    color: var(--text-mut);
    font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 3.5rem;
        flex-direction: column;
        background-color: var(--bg-panel);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        border-bottom: 1px solid var(--border);
        padding: 1.5rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-content::before {
        font-size: 0.8rem;
        word-break: break-all;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .experience-header,
    .education-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .intro-grid,
    .skills-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }

    .certification-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3.5rem 0 3rem;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .page-header {
        padding: 3.5rem 0 2rem;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    .about-content,
    .skills,
    .values,
    .resume-content,
    .blog-content,
    .photography-content {
        padding: 3rem 0;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-title::after {
        animation: none;
    }
}

.btn:focus-visible,
.nav-link:focus-visible,
.social-link:focus-visible,
a:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

/* ===== BLOG POST CONTENT (rendered Markdown) ===== */
.post-content {
    max-width: 720px;
    color: #c9d1d9;
    font-size: 1rem;
    line-height: 1.8;
}

.post-content > *:first-child {
    margin-top: 0;
}

.post-content p {
    margin: 1.25rem 0;
}

.post-content h2 {
    font-size: 1.4rem;
    color: var(--text);
    margin: 2.25rem 0 1rem;
    font-weight: 600;
}

.post-content h2::before {
    content: "## ";
    color: var(--green);
}

.post-content h3 {
    font-size: 1.15rem;
    color: var(--text);
    margin: 1.75rem 0 0.75rem;
    font-weight: 600;
}

.post-content h3::before {
    content: "> ";
    color: var(--green);
}

.post-content a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-content a:hover {
    color: var(--green);
}

.post-content strong {
    color: var(--text);
    font-weight: 600;
}

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

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content ul li::marker {
    color: var(--green);
}

.post-content ol li::marker {
    color: var(--text-mut);
}

.post-content blockquote {
    border-left: 3px solid var(--green);
    margin: 1.5rem 0;
    padding: 0.25rem 0 0.25rem 1.25rem;
    color: var(--text-mut);
    font-style: italic;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin: 1.5rem 0;
}

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

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.92rem;
    display: block;
    overflow-x: auto;
}

.post-content th,
.post-content td {
    border: 1px solid var(--border);
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.post-content th {
    background: var(--bg-panel);
    color: var(--text);
}

/* inline code */
.post-content code {
    font-family: var(--mono);
    font-size: 0.88em;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.1em 0.4em;
    color: #79c0ff;
}

.post-back {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.post-back a {
    color: var(--green);
}

.post-back a:hover {
    text-decoration: underline;
}

/* code blocks + Rouge syntax highlighting (GitHub-dark palette) */
.post-content pre.highlight,
.post-content div.highlight,
.post-content figure.highlight {
    background: #161b22;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin: 1.5rem 0;
    overflow: hidden;
}

.post-content .highlight pre,
.post-content pre.highlight {
    margin: 0;
    padding: 1rem 1.25rem;
    overflow-x: auto;
}

.post-content .highlight code {
    background: none;
    border: none;
    padding: 0;
    color: #c9d1d9;
    font-size: 0.86rem;
    line-height: 1.6;
}

.highlight .c, .highlight .c1, .highlight .cm, .highlight .cd, .highlight .cp { color: #8b949e; font-style: italic; }
.highlight .k, .highlight .kd, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kt { color: #ff7b72; }
.highlight .kc { color: #79c0ff; }
.highlight .o, .highlight .ow { color: #ff7b72; }
.highlight .s, .highlight .s1, .highlight .s2, .highlight .sb, .highlight .sc, .highlight .sd, .highlight .se, .highlight .sh, .highlight .si, .highlight .sx, .highlight .sr, .highlight .ss, .highlight .dl { color: #a5d6ff; }
.highlight .m, .highlight .mi, .highlight .mf, .highlight .mh, .highlight .mo, .highlight .il { color: #79c0ff; }
.highlight .nf, .highlight .nx { color: #d2a8ff; }
.highlight .nc, .highlight .nn, .highlight .no { color: #ffa657; }
.highlight .na { color: #79c0ff; }
.highlight .nb, .highlight .bp { color: #79c0ff; }
.highlight .nt { color: #7ee787; }
.highlight .nv, .highlight .vc, .highlight .vg, .highlight .vi { color: #c9d1d9; }
.highlight .p, .highlight .pi { color: #c9d1d9; }
.highlight .gh { color: #79c0ff; font-weight: 600; }
.highlight .gi { color: #7ee787; }
.highlight .gd { color: #ffa198; }
.highlight .err { color: #f85149; }

/* ===== TAGS ===== */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.9rem 0 0;
}

.blog-post .post-tags {
    margin: 0.75rem 0 0.75rem;
}

.tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--green);
    text-decoration: none;
    border: 1px solid var(--border-mut);
    border-radius: 6px;
    padding: 0.15rem 0.6rem;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.tag::before {
    content: "#\00A0";
    color: var(--text-mut);
}

.tag:hover {
    border-color: var(--green);
    background-color: rgba(63, 185, 80, 0.1);
}

.tags-browse {
    margin-bottom: 2rem;
}

.tags-browse a {
    color: var(--text-mut);
    font-size: 0.9rem;
}

.tags-browse a:hover {
    color: var(--green);
}

/* tags page */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0 0 2.5rem;
}

.tag-cloud .tag {
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
}

.tag-count {
    color: var(--text-mut);
}

.tag-section {
    margin-bottom: 2.5rem;
    padding-top: 0.5rem;
    scroll-margin-top: 5rem;
}

.tag-section h2 {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 1rem;
    font-weight: 600;
}

.tag-section h2::before {
    content: "#\00A0";
    color: var(--green);
}

.tag-posts {
    list-style: none;
}

.tag-posts li {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    align-items: baseline;
}

.tag-posts li:last-child {
    border-bottom: none;
}

.tag-post-date {
    color: var(--text-mut);
    font-size: 0.82rem;
    white-space: nowrap;
    min-width: 6.5rem;
}

.tag-posts a {
    color: var(--blue);
}

.tag-posts a:hover {
    text-decoration: underline;
}

