/* ---------------------------------------------------------------
   tayyabjaved.com
   Minimal dark theme. System fonts, one column, no decoration.
   --------------------------------------------------------------- */

:root {
    --bg: #000;
    --fg: #e6e6e6;
    --muted: #7a7a7a;
    --faint: #2a2a2a;
    --code-bg: #111;
    --link: #fff;
    --sans: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --measure: 46rem;
}

/* Base ---------------------------------------------------------- */

html { -webkit-text-size-adjust: 100%; background: var(--bg); }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--sans);
    font-size: 1.2rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.15em; }

.wrap {
    max-width: var(--measure);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.muted { color: var(--muted); }

.screen-reader-text {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

/* Header -------------------------------------------------------- */

.site-header { padding: 2.5rem 0 3.5rem; }

.site-header__inner {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.site-header__brand {
    font-family: var(--mono);
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    color: var(--muted);
}

.site-header__brand:hover,
.site-header__brand.is-current { color: var(--fg); text-decoration: none; }

.site-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

.site-nav__list a {
    font-size: 1.05rem;
    color: var(--muted);
}

.site-nav__list a:hover,
.site-nav__list .current-menu-item a { color: var(--fg); text-decoration: none; }

/* Main ---------------------------------------------------------- */

.site-main { flex: 1 0 auto; display: flex; flex-direction: column; width: 100%; box-sizing: border-box; padding-bottom: 5rem; }

.page-header { margin-bottom: 2.5rem; }

.page-header__title {
    font-size: 1.9rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 0.25rem;
}

.page-header__desc { margin: 0; }

/* Post list (archive, index, search) ---------------------------- */

.post-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.post-list__item { border-top: 1px solid var(--faint); }
.post-list__item:last-child { border-bottom: 1px solid var(--faint); }

.post-list__link {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1.5rem;
    padding: 0.9rem 0;
    text-decoration: none;
}

.post-list__link:hover { text-decoration: none; }
.post-list__link:hover .post-list__title { text-decoration: underline; text-underline-offset: 0.15em; }

.post-list__title { font-weight: 500; }

.post-list__date {
    flex-shrink: 0;
    font-family: var(--mono);
    font-size: 0.9rem;
    color: var(--muted);
}

@media (max-width: 480px) {
    .post-list__link { flex-direction: column; gap: 0.15rem; align-items: flex-start; }
}

.pagination { margin-top: 2.5rem; }
.pagination .nav-links { display: flex; gap: 1rem; font-size: 1rem; }
.pagination .page-numbers { color: var(--muted); }
.pagination .page-numbers.current { color: var(--fg); }
.pagination .page-numbers:hover { color: var(--fg); text-decoration: none; }

/* Single post / page -------------------------------------------- */

.post__header { margin-bottom: 2.5rem; }

.post__date {
    display: block;
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.post__title {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin: 0;
}

.post__tags {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--muted);
}

.tag:hover { color: var(--fg); text-decoration: none; }

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--faint);
    font-size: 0.9rem;
}

.post-nav__next { text-align: right; margin-left: auto; }
.post-nav a { color: var(--muted); }
.post-nav a:hover { color: var(--fg); text-decoration: none; }

/* Prose: the_content() output ----------------------------------- */

.prose > * { margin-top: 0; margin-bottom: 1.4em; }
.prose > *:last-child { margin-bottom: 0; }

.prose h2, .prose h3, .prose h4 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-top: 2.2em;
    margin-bottom: 0.6em;
}
.prose h2 { font-size: 1.4rem; }
.prose h3 { font-size: 1.15rem; }
.prose h4 { font-size: 1rem; }

.prose a { text-decoration: underline; text-underline-offset: 0.15em; text-decoration-color: var(--muted); }
.prose a:hover { text-decoration-color: var(--fg); }

.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.3em; }

.prose blockquote {
    margin-left: 0;
    padding-left: 1.25rem;
    border-left: 2px solid var(--faint);
    color: var(--muted);
}

.prose hr { border: 0; border-top: 1px solid var(--faint); margin: 3em 0; }

.prose img, .prose video, .prose figure {
    max-width: 100%;
    height: auto;
    display: block;
}
.prose figure { margin-left: 0; margin-right: 0; }
.prose figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.5em; }

.prose code {
    font-family: var(--mono);
    font-size: 0.875em;
    background: var(--code-bg);
    padding: 0.15em 0.4em;
    border-radius: 3px;
}

.prose pre {
    font-family: var(--mono);
    font-size: 0.85rem;
    line-height: 1.6;
    background: var(--code-bg);
    border: 1px solid var(--faint);
    border-radius: 4px;
    padding: 1rem 1.25rem;
    overflow-x: auto;
}

.prose pre code { background: none; padding: 0; font-size: inherit; }

.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--faint); }
.prose th { color: var(--muted); font-weight: 500; }

.post__pages { font-size: 0.9rem; color: var(--muted); }

/* Search form --------------------------------------------------- */

.search-form { margin-top: 1rem; }

.search-form__input {
    width: 100%;
    background: var(--code-bg);
    color: var(--fg);
    border: 1px solid var(--faint);
    border-radius: 4px;
    padding: 0.6rem 0.8rem;
    font: inherit;
    font-size: 0.95rem;
}

.search-form__input:focus { outline: none; border-color: var(--muted); }

/* Footer -------------------------------------------------------- */

.site-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--faint);
    padding: 2rem 0 3rem;
}

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--muted);
}

/* Front page: coming soon --------------------------------------- */



/* Blog home (category-blog.php) --------------------------------- */

.blog-home { --accent: #ff6b5b; }

.blog-home__header { margin-bottom: 3rem; }

.blog-home__title {
    font-size: clamp(2.25rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 0.35rem;
    color: #fff;
}

.blog-home__desc { margin: 0; color: var(--fg); }

.post-group { margin-bottom: 3rem; }

.post-group__title {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 1.5rem;
    color: #fff;
}

.post-group__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.post-group__item { margin-bottom: 1.5rem; }
.post-group__item:last-child { margin-bottom: 0; }

.post-group__link {
    display: block;
    color: var(--accent);
    font-size: 1.3rem;
    line-height: 1.4;
}

.post-group__date {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.95rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.post-group__more {
    margin: 1.5rem 0 0;
    text-align: right;
    font-size: 1.1rem;
}

.post-group__more a { color: var(--accent); }

/* Code blocks --------------------------------------------------- */

.code-block {
    margin: 2em 0;
    border: 1px solid var(--faint);
    border-radius: 6px;
    background: var(--code-bg);
    overflow: hidden;
}

.code-block__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 1rem;
    border-bottom: 1px solid var(--faint);
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--muted);
}

.code-block__copy {
    appearance: none;
    background: none;
    border: 1px solid var(--faint);
    border-radius: 4px;
    color: var(--muted);
    font: inherit;
    padding: 0.15rem 0.6rem;
    cursor: pointer;
}

.code-block__copy:hover { color: var(--fg); border-color: var(--muted); }
.code-block__copy.is-copied { color: #7ee787; border-color: #7ee787; }

.code-block .wp-block-code,
.code-block pre {
    margin: 0;
    border: 0;
    border-radius: 0;
    background: none;
    font-size: 1rem;
    line-height: 1.65;
    padding: 1.1rem 1.25rem;
    overflow-x: auto;
    white-space: pre;
    tab-size: 4;
}

.code-block pre code {
    display: block;
    background: none;
    padding: 0;
    color: var(--fg);
}

/* Highlight.js token colours (dark) */
.hljs-comment, .hljs-quote { color: #7a7a7a; font-style: italic; }
.hljs-keyword, .hljs-selector-tag, .hljs-doctag, .hljs-meta .hljs-keyword { color: #ff7b72; }
.hljs-string, .hljs-addition, .hljs-regexp, .hljs-meta .hljs-string { color: #a5d6ff; }
.hljs-number, .hljs-literal, .hljs-symbol, .hljs-bullet { color: #79c0ff; }
.hljs-title, .hljs-title.function_, .hljs-section { color: #d2a8ff; }
.hljs-title.class_, .hljs-type, .hljs-built_in { color: #ffa657; }
.hljs-variable, .hljs-template-variable, .hljs-attr, .hljs-attribute, .hljs-property { color: #e6e6e6; }
.hljs-name, .hljs-selector-id, .hljs-selector-class, .hljs-tag { color: #7ee787; }
.hljs-meta { color: #79c0ff; }
.hljs-deletion { color: #ffa198; }
.hljs-emphasis { font-style: italic; }
.hljs-strong { font-weight: 700; }

/* Downloads panel (single post) --------------------------------- */

.downloads {
    margin: 0 0 2.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--faint);
    border-radius: 6px;
    background: var(--code-bg);
}

.downloads__title {
    margin: 0 0 0.75rem;
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.downloads__list { list-style: none; margin: 0; padding: 0; }

.downloads__item + .downloads__item { margin-top: 0.6rem; }

.downloads__link {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.downloads__link:hover { text-decoration: none; }
.downloads__link:hover .downloads__name { text-decoration: underline; text-underline-offset: 0.15em; }

.downloads__name::before { content: "\2193\00a0"; color: var(--muted); }

.downloads__meta {
    flex-shrink: 0;
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--muted);
}

.downloads__desc {
    margin: 0.15rem 0 0 1.1em;
    font-size: 0.95rem;
    color: var(--muted);
}

/* Experience timeline ------------------------------------------- */

.crumb { margin: 0 0 2rem; font-size: 0.95rem; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--fg); }

.roles {
    list-style: none;
    margin: 0;
    padding: 0;
}

.role {
    display: grid;
    grid-template-columns: 10rem 1fr;
    gap: 0 2rem;
    padding: 2rem 0;
    border-top: 1px solid var(--faint);
}

.role:last-child { border-bottom: 1px solid var(--faint); }

.role__when {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-top: 0.35rem;
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
}

.role__range { color: var(--fg); white-space: nowrap; }
.role--current .role__range { color: #7ee787; }

.role__title {
    margin: 0 0 0.2rem;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.role__link { color: #fff; }
.role__link:hover { text-decoration: underline; text-underline-offset: 0.15em; }
.role__link::after { content: " \2197"; font-size: 0.8em; color: var(--muted); }

.role__company {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 1.05rem;
}

.role__company a { color: var(--muted); }
.role__company a:hover { color: var(--fg); }

.role__badge {
    display: inline-block;
    margin-left: 0.6rem;
    padding: 0.05em 0.55em;
    border: 1px solid #7ee787;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #7ee787;
    vertical-align: middle;
}

.role__desc { font-size: 1.05rem; color: var(--fg); }
.role__desc > :first-child { margin-top: 0; }
.role__desc > :last-child { margin-bottom: 0; }

.role__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin: 1.25rem 0 0;
    font-size: 0.95rem;
}

.role__links a { color: var(--muted); }
.role__links a:hover { color: var(--fg); }

@media (max-width: 640px) {
    .role { grid-template-columns: 1fr; gap: 0.75rem; }
    .role__when { flex-direction: row; gap: 0.75rem; padding-top: 0; }
}

/* Experience tabs + total --------------------------------------- */

.page-header__total {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.05em 0.6em;
    border: 1px solid var(--faint);
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--fg);
    vertical-align: middle;
}

.tabs {
    display: flex;
    gap: 1.75rem;
    margin: -0.5rem 0 2.5rem;
    border-bottom: 1px solid var(--faint);
}

.tabs__link {
    padding: 0.6rem 0;
    margin-bottom: -1px;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-size: 1.05rem;
    font-weight: 500;
}

.tabs__link:hover { color: var(--fg); text-decoration: none; }
.tabs__link.is-active { color: #fff; border-bottom-color: #fff; }

/* Projects ------------------------------------------------------ */

.project-group { margin-bottom: 3rem; }

.project-group__title {
    margin: 0 0 1.25rem;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: var(--mono);
    letter-spacing: 0.04em;
    text-transform: lowercase;
    color: var(--muted);
}

.project-group__title::before { content: "# "; }

.projects { list-style: none; margin: 0; padding: 0; }

.project {
    padding: 1.5rem 0;
    border-top: 1px solid var(--faint);
}

.project:last-child { border-bottom: 1px solid var(--faint); }

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

.project__title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.project__link { color: #fff; }
.project__link:hover { text-decoration: underline; text-underline-offset: 0.15em; }

.project__year {
    flex-shrink: 0;
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--muted);
}

.project__desc { font-size: 1.05rem; }
.project__desc > :first-child { margin-top: 0; }
.project__desc > :last-child { margin-bottom: 0; }

.project__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin: 1rem 0 0;
    font-size: 0.95rem;
}

.project__links a { color: var(--muted); }
.project__links a:hover { color: var(--fg); }

/* Contact ------------------------------------------------------- */

.contacts { list-style: none; margin: 0; padding: 0; }

.contact {
    display: grid;
    grid-template-columns: 8rem 1fr;
    gap: 0 2rem;
    padding: 1.4rem 0;
    border-top: 1px solid var(--faint);
}

.contact:last-child { border-bottom: 1px solid var(--faint); }

.contact__label {
    padding-top: 0.2rem;
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--muted);
}

.contact__link {
    font-size: 1.25rem;
    font-weight: 500;
    color: #fff;
    word-break: break-word;
}

.contact__link:hover { text-decoration: underline; text-underline-offset: 0.15em; }

.contact__arrow { font-size: 0.8em; color: var(--muted); }

.contact__note {
    margin: 0.25rem 0 0;
    font-size: 0.95rem;
    color: var(--muted);
}

@media (max-width: 640px) {
    .contact { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* Front page ---------------------------------------------------- */

.hero { padding: 1rem 0 3.5rem; }

.hero__prompt {
    margin: 0 0 0.75rem;
    font-family: var(--mono);
    font-size: 0.9rem;
    color: var(--muted);
}

.hero__dollar { color: #7ee787; }

.hero__name {
    margin: 0 0 1.25rem;
    font-size: clamp(2.25rem, 6vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #fff;
}

.hero__cursor {
    display: inline-block;
    width: 0.5em;
    height: 0.9em;
    margin-left: 0.15em;
    background: #7ee787;
    vertical-align: -0.08em;
    animation: blink 1.1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero__cursor { animation: none; } }

.hero__intro { font-size: 1.25rem; max-width: 36rem; }
.hero__intro > :first-child { margin-top: 0; }
.hero__intro > :last-child { margin-bottom: 0; }

.hero__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1.75rem 0 0;
    font-size: 1.05rem;
}

.hero__links a { color: var(--muted); }
.hero__links a:hover { color: var(--fg); }

.home-section { padding: 2.5rem 0; border-top: 1px solid var(--faint); }

.home-section__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.home-section__title {
    margin: 0;
    font-family: var(--mono);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--fg);
}

.home-section__slash { color: var(--muted); margin-right: 0.25rem; }

.home-section__more { font-size: 0.95rem; color: var(--muted); white-space: nowrap; }
.home-section__more:hover { color: var(--fg); }

.home-posts { list-style: none; margin: 0; padding: 0; }

.home-posts__item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1.5rem;
    padding: 0.7rem 0;
}

.home-posts__link { font-size: 1.15rem; font-weight: 500; color: #fff; }

.home-posts__date {
    flex-shrink: 0;
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--muted);
}

.home-roles { list-style: none; margin: 0; padding: 0; }

.home-roles__item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem 0.6rem;
    padding: 0.5rem 0;
    font-size: 1.15rem;
}

.home-roles__link { font-weight: 500; color: #fff; }
.home-roles__at { color: var(--muted); }

.home-roles__since {
    margin-left: auto;
    font-family: var(--mono);
    font-size: 0.85rem;
    color: #7ee787;
}

.stack { margin: 0; }

.stack__row {
    display: grid;
    grid-template-columns: 9rem 1fr;
    gap: 0.5rem 1.5rem;
    padding: 0.75rem 0;
}

.stack__group {
    padding-top: 0.35rem;
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--muted);
}

.stack__items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
}

.chip {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--faint);
    border-radius: 6px;
    background: var(--code-bg);
    font-family: var(--mono);
    font-size: 0.9rem;
    color: var(--fg);
}

a.chip:hover { border-color: var(--muted); text-decoration: none; }

.chip__since { font-size: 0.75rem; color: var(--muted); }

@media (max-width: 640px) {
    .home-posts__item { flex-direction: column; gap: 0.15rem; }
    .home-roles__since { margin-left: 0; width: 100%; }
    .stack__row { grid-template-columns: 1fr; }
}

/* Topic pages --------------------------------------------------- */

.topic__intro { margin-bottom: 3rem; }
.topic__posts { --accent: #ff6b5b; }

/* Front page highlights ----------------------------------------- */

.highlights {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1rem;
}

.highlight {
    position: relative;
    padding: 1.25rem 1.4rem 1.4rem;
    border: 1px solid var(--faint);
    border-left: 3px solid #7ee787;
    border-radius: 6px;
    background: var(--code-bg);
}

.highlight:hover { border-color: var(--muted); border-left-color: #7ee787; }

.highlight__label {
    margin: 0 0 0.35rem;
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7ee787;
}

.highlight__title {
    margin: 0 0 0.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.highlight__title a { color: #fff; }
.highlight__title a::after { content: ""; position: absolute; inset: 0; }

.highlight__blurb { margin: 0 0 0.9rem; font-size: 1rem; color: var(--fg); }

.highlight__more { font-size: 0.95rem; color: var(--muted); }
.highlight:hover .highlight__more { color: var(--fg); }

/* Photo strip (role / project cards) ---------------------------- */

.photo-strip {
    list-style: none;
    display: flex;
    gap: 0.6rem;
    margin: 1.25rem 0 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.photo-strip__item { flex: 0 0 auto; }

.photo-strip__img {
    display: block;
    width: 10rem;
    height: 7.5rem;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--faint);
    transition: border-color 0.15s;
}

.photo-strip__link:hover .photo-strip__img { border-color: var(--muted); }

/* Gallery (Media page) ------------------------------------------ */

.gallery {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 1rem;
}

.gallery__link {
    display: block;
    border: 1px solid var(--faint);
    border-radius: 6px;
    background: var(--code-bg);
    overflow: hidden;
    transition: border-color 0.15s;
}

.gallery__link:hover { border-color: var(--muted); text-decoration: none; }

.gallery__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery__meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.75rem 0.9rem 0.9rem;
}

.gallery__kind {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7ee787;
}

.gallery__title { font-weight: 500; color: #fff; font-size: 1rem; }
.gallery__caption { font-size: 0.9rem; color: var(--muted); }
