/* 1. Foundations */
:root {
    color-scheme: light;
    --color-background: #fff;
    --color-upper-background: #111318;
    --color-text: #202124;
    --color-muted: #565c65;
    --color-accent: #1747a6;
    --color-border: #d8dce2;
    --width-site: 70rem;
    --width-layout: 78rem;
    --width-content: 44rem;
    --ratio-post-media: 8 / 5;
    --page-gutter: clamp(1.25rem, 3vw, 2.5rem);
    --space-section: clamp(3rem, 4.5vw, 4rem);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--color-background);
    color: var(--color-text);
    font-family: var(--gh-font-body, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    font-size: 1.0625rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}
body > #umut-main { flex: 1 0 auto; min-width: 0; }
body > :is(.header-shell, .subscription-shell, .footer-shell) { flex-shrink: 0; }
a { color: var(--color-accent); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 0.15em; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 4px; }
button { font: inherit; cursor: pointer; }
button, .site-actions a { min-height: 44px; padding: 0.5rem 0.75rem; }
button { color: var(--color-text); background: var(--color-background); border: 1px solid var(--color-border); border-radius: 0.25rem; }
img, video { display: block; max-width: 100%; height: auto; }
iframe { max-width: 100%; }
figure { margin: 0; }
figcaption { color: var(--color-muted); font-size: 0.875rem; text-align: center; }
h1, h2, h3, h4, h5, h6 { font-family: var(--gh-font-heading, system-ui, sans-serif); line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }

/* 2. Shared layout and navigation */
.container { width: min(calc(100% - 2 * var(--page-gutter)), var(--width-layout)); margin-inline: auto; }
.site-actions, .nav, .pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.site-title { color: inherit; font-size: 1.25rem; font-weight: 750; text-decoration: none; }
.nav { list-style: none; margin: 0; padding: 0; }
.nav a { display: inline-block; padding-block: 0.5rem; }
.nav-current a { font-weight: 700; }
.site-actions a { display: inline-flex; align-items: center; }
.skip-link { position: fixed; bottom: 1rem; left: 1rem; z-index: 10; padding: 0.75rem; background: var(--color-background); transform: translateY(calc(100% + 2rem)); }
.skip-link:focus { transform: translateY(0); }

/* 3. Archives and posts */
.feed-header, .post-header { padding-block: 2rem; }
.post-card { max-width: var(--width-content); padding-block: 1.5rem; border-bottom: 1px solid var(--color-border); }
.post-card h2 { margin-top: 0; }
.post-meta { color: var(--color-muted); font-size: 0.9375rem; }
.pagination { justify-content: space-between; margin-block: 2rem; }
.archive-pagination { width: fit-content; max-width: 100%; margin-inline: auto; justify-content: center; flex-wrap: nowrap; gap: 0; padding: 0.25rem; border: 1px solid var(--color-border); border-radius: 0.65rem; font-size: 0.875rem; line-height: 1.4; }
.archive-page-numbers { display: flex; align-items: center; }
.archive-page-link, .archive-page-current { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-width: 44px; min-height: 44px; padding: 0.5rem; border-radius: 0.4rem; color: #1a1a1e; text-decoration: none; white-space: nowrap; }
.archive-page-current { background: #1a1a1e; color: #fff; }
.archive-page-link:hover { background: #f0f0f2; }
.post-header { max-width: var(--width-content); }
.post-cover { margin-top: 2rem; }
.post-cover img { width: 100%; }

/* 4. Editor content; Ghost supplies the individual card assets. */
.post-content {
    display: grid;
    grid-template-columns: minmax(1rem, 1fr) minmax(0, var(--width-content)) minmax(1rem, 1fr);
}
.post-content > * { grid-column: 2; min-width: 0; }
.post-content > .kg-width-wide { grid-column: 1 / -1; width: min(calc(100% - 2rem), var(--width-site)); justify-self: center; }
.post-content > .kg-width-full { grid-column: 1 / -1; width: 100%; }
.post-content > .kg-card { margin-block: 1.5rem; }
.post-content blockquote { margin-inline: 0; padding-inline-start: 1.25rem; border-inline-start: 3px solid var(--color-accent); }
.post-content pre { overflow-x: auto; padding: 1rem; background: #f3f4f6; }
.post-content code { font-size: 0.9em; }
.post-content table { display: block; overflow-x: auto; border-collapse: collapse; }
.post-content th, .post-content td { padding: 0.5rem; border: 1px solid var(--color-border); text-align: start; }
.post-content hr { width: 100%; border: 0; border-top: 1px solid var(--color-border); }

/* Shared Post and Page reading typography. */
:is(.post-article, .page-article) { --width-reading: 46.25rem; }
.post-article .article-header { max-width: 60rem; padding-block: clamp(2rem, 4vw, 3.5rem) 2rem; }
.article-tag { margin-bottom: 1rem; }
.article-title { margin: 0; font-size: clamp(2rem, 7vw, 2.25rem); font-weight: 700; line-height: 1.14; letter-spacing: -0.025em; }
.article-excerpt { max-width: 65ch; margin: 1.25rem 0 0; font-size: 1.0625rem; line-height: 1.65; color: var(--color-muted); }
.article-byline { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.25rem; font-size: 0.875rem; line-height: 1.6; }
.article-byline img { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.article-byline-text { min-width: 0; }
.article-byline-author { color: inherit; font-weight: 600; text-decoration: none; }
.article-byline-author:hover, .article-byline-author:focus-visible { text-decoration: underline; }
.article-byline-details { margin: 0.15rem 0 0; color: #60646f; font-size: 0.8125rem; }
:is(.post-article, .page-article) .post-cover { margin: 2rem 0 0; }
.post-cover-media { aspect-ratio: var(--ratio-post-media); overflow: hidden; border-radius: 0.65rem; background: #edf0f6; }
:is(.post-article, .page-article) .post-cover-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
:is(.post-article, .page-article) .post-cover figcaption { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.6; }
:is(.post-article, .page-article) .post-content { grid-template-columns: minmax(var(--page-gutter), 1fr) minmax(0, var(--width-reading)) minmax(var(--page-gutter), 1fr); font-size: 1.0625rem; line-height: 1.7; }
:is(.post-article, .page-article) .post-content > p { margin: 0 0 1.5rem; }
:is(.post-article, .page-article) .post-content > :is(h2, h3, h4, h5, h6) { margin: 2.5rem 0 1rem; line-height: 1.3; letter-spacing: -0.015em; text-wrap: pretty; }
:is(.post-article, .page-article) .post-content > h2 { font-size: 1.625rem; }
:is(.post-article, .page-article) .post-content > h3 { font-size: 1.375rem; }
:is(.post-article, .page-article) .post-content > h4 { font-size: 1.1875rem; }
:is(.post-article, .page-article) .post-content > h5 { font-size: 1.0625rem; }
:is(.post-article, .page-article) .post-content > h6 { font-size: 1rem; }
:is(.post-article, .page-article) .post-content > :first-child { margin-top: 0; }
:is(.post-article, .page-article) .post-content > :is(ul, ol) { margin: 0 0 1.5rem; padding-inline-start: 1.5rem; }
:is(.post-article, .page-article) .post-content :is(ul, ol) :is(ul, ol) { margin-block: 0.5rem; padding-inline-start: 1.25rem; }
:is(.post-article, .page-article) .post-content li + li { margin-top: 0.4rem; }
:is(.post-article, .page-article) .post-content > blockquote { margin-block: 1.5rem; }
:is(.post-article, .page-article) .post-content > .kg-blockquote-alt { padding-inline: 0; border-inline-start: 0; }
:is(.post-article, .page-article) .post-content > .kg-width-wide { width: min(calc(100% - 2 * var(--page-gutter)), var(--width-site)); }
:is(.post-article, .page-article) .post-content > :is(pre, table) { max-width: 100%; margin-block: 1.5rem; font-size: 0.9375rem; }
:is(.post-article, .page-article) .post-content pre { overflow-wrap: normal; }
:is(.post-article, .page-article) .post-content pre code { white-space: pre; }
:is(.post-article, .page-article) .post-content :not(pre) > code { padding: 0.1em 0.3em; border-radius: 0.2rem; background: #f3f4f6; overflow-wrap: anywhere; }
:is(.post-article, .page-article) .post-content figcaption { color: var(--color-muted); }
:is(.post-article, .page-article) .post-content .kg-embed-card > iframe { max-width: 100%; }
.article-ending { max-width: var(--width-reading); margin-block: 3rem; padding-top: 2rem; border-top: 1px solid var(--color-border); }
.article-author { display: flex; align-items: flex-start; gap: 1rem; }
.article-author img { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.article-author > div { min-width: 0; }
.article-author-name { color: inherit; font-size: 1rem; font-weight: 600; text-decoration: none; }
.article-author-name:hover, .article-author-name:focus-visible { text-decoration: underline; }
.article-author p { margin: 0.35rem 0 0; color: #60646f; font-size: 0.9375rem; line-height: 1.6; }
.article-author + .article-share { margin-top: 1.5rem; }
.article-share-label { margin: 0 0 0.5rem; font-size: 0.875rem; font-weight: 600; }
.article-share-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.article-share-links > :is(a, button) { display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem; min-height: 44px; padding: 0.5rem 1rem; border: 1px solid var(--color-border); border-radius: 999px; background: transparent; color: inherit; font-size: 0.875rem; line-height: 1.4; text-decoration: none; }
.article-share-links > :is(a, button):hover { background: #f0f0f2; }
.article-share-links [aria-disabled="true"] { cursor: wait; opacity: 0.7; }
.article-share-links svg { width: 18px; height: 18px; flex-shrink: 0; }
.article-share-links [hidden], .article-share-url[hidden] { display: none; }
.article-share-url { width: 100%; min-width: 0; margin-top: 0.75rem; padding: 0.75rem; border: 1px solid var(--color-border); border-radius: 0.25rem; background: #fff; color: inherit; font: inherit; font-size: 1rem; }
.article-share-status { margin: 0.75rem 0 0; color: var(--color-muted); font-size: 0.875rem; }
.article-share-status:empty { display: none; }
.related-section { padding-bottom: var(--space-section); }
@media (min-width: 48rem) {
    .article-title { font-size: clamp(2.75rem, 4vw, 3.25rem); }
    .article-excerpt { font-size: 1.1875rem; }
    :is(.post-article, .page-article) .post-content { font-size: 1.125rem; }
    :is(.post-article, .page-article) .post-content > h2 { font-size: 2rem; }
    :is(.post-article, .page-article) .post-content > h3 { font-size: 1.5rem; }
    :is(.post-article, .page-article) .post-content > h4 { font-size: 1.25rem; }
}

/* 5. Shared header and footer. */
.header-shell, .home-dark { background: var(--color-upper-background); color: #f7f8fc; }
.footer-shell, .subscription-shell { background: #111318; color: #f7f8fc; }
.header-shell .site-header {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1.25rem;
    border-bottom: 1px solid #ffffff12;
}
.site-header > .site-title { min-width: 0; max-width: calc(100% - 7rem); }
.header-menu { display: flex; flex-direction: column; gap: 1.25rem; width: 100%; min-width: 0; }
.header-menu[hidden], .menu-toggle[hidden] { display: none; }
.mobile-header-actions { display: grid; grid-template-columns: repeat(2, 44px); flex-shrink: 0; gap: 0.5rem; }
.menu-toggle, .mobile-search-toggle { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 0.25rem; background: transparent; color: inherit; }
.menu-close, .menu-toggle[aria-expanded="true"] .menu-lines { display: none; }
.menu-toggle[aria-expanded="true"] .menu-close { display: block; }
.header-menu .nav { align-items: stretch; flex-direction: column; }
.header-menu .nav a { display: block; min-height: 44px; }
.mobile-search-toggle:hover { background: #292c34; }
.header-shell .site-title, .footer-shell .site-title { font-size: 1.35rem; letter-spacing: -0.04em; }
.site-logo { width: auto; max-width: min(11rem, 100%); max-height: 2.75rem; object-fit: contain; }
.brand-dot { color: inherit; }
.header-shell .nav { gap: 0.25rem 1.5rem; }
.header-shell .nav a, .footer-shell .nav a { color: inherit; font-size: 0.875rem; text-decoration: none; }
.header-shell .nav a { color: #b8bac2; font-size: 0.9375rem; }
.header-shell .nav-current a { color: #fff; text-decoration: underline; text-underline-offset: 0.6em; }
.header-shell a:hover, .footer-shell a:hover { color: #b8c1ff; }
.header-shell .site-title, .header-shell .site-title:visited, .header-shell .site-title:hover, .header-shell .site-title:focus-visible,
.footer-shell .site-title, .footer-shell .site-title:visited, .footer-shell .site-title:hover, .footer-shell .site-title:focus-visible { color: #fff; }
.header-shell .nav a:hover, .header-shell .nav a:focus-visible,
.footer-links .nav a:hover, .footer-links .nav a:focus-visible { color: #fff; }
.header-shell .site-actions { flex-wrap: nowrap; gap: 0.5rem; }
.header-shell .search-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 44px; height: 44px; padding: 0.5rem 1.1rem; border: 1px solid transparent; border-radius: 999px; background: #292c34; color: inherit; font-size: 1rem; line-height: 1.25; }
.header-shell .search-toggle svg { width: 22px; height: 22px; flex-shrink: 0; }
.header-shell .search-toggle:hover { background: #373b45; }
.header-shell .site-actions .button-light { min-height: 48px; padding: 0.7rem 1.25rem; border-radius: 999px; background: #fff; color: #111318; font-size: 1rem; line-height: 1.25; }
.header-shell :focus-visible, .footer-shell :focus-visible, .home-dark :focus-visible { outline-color: #aebaff; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 46px;
    padding: 0.65rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 0.65rem;
    font-size: 0.875rem;
    font-weight: 650;
    line-height: 1.4;
    text-decoration: none;
}
.button-light { color: #111318; background: #f7f8fc; }
.header-shell .button-light:hover { color: #111318; background: #dce1ff; }
.button-dark { color: #fff; background: #111318; }
.button-dark:hover { color: #fff; background: #303955; }
.footer-shell .site-footer {
    display: grid;
    gap: 1.5rem;
    margin-top: 0;
    padding-block: clamp(1.25rem, 2vw, 1.75rem) clamp(1.5rem, 3vw, 2rem);
    border: 0;
    border-top: 1px solid #ffffff12;
}
.footer-about { min-width: 0; }
.footer-about p { color: #aeb4c1; font-size: 0.875rem; }
.footer-about p { margin: 0.5rem 0 0; }
.footer-social { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; max-width: 100%; }
.footer-shell .footer-social a { display: inline-flex; align-items: center; gap: 0.375rem; min-width: 0; max-width: 100%; min-height: 32px; color: #aeb4c1; font-size: 0.875rem; line-height: 1.4; text-decoration: none; }
.footer-social span { min-width: 0; overflow-wrap: anywhere; }
.footer-social svg { width: 18px; height: 18px; flex-shrink: 0; }
.footer-shell .footer-social a:hover, .footer-shell .footer-social a:focus-visible { color: #fff; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; min-width: 0; gap: 1rem; }
.footer-links:not(:has(nav, .footer-social)) { display: none; }
.footer-links .nav { gap: 0.25rem 1.5rem; }
@media (max-width: 63.999rem) {
    .has-menu-toggle .header-menu { position: absolute; top: calc(100% - 0.25rem); right: 0; z-index: 20; width: min(20rem, 100%); max-height: calc(100dvh - 10rem); overflow-y: auto; gap: 0.75rem; padding: 0.75rem; border: 1px solid #ffffff12; border-radius: 0.75rem; background: #242429; color: #f5f5f5; }
    .header-shell .header-menu .nav { gap: 0; }
    .header-shell .header-menu .nav a { min-height: 44px; padding: 0.625rem 0.5rem; font-size: 1rem; line-height: 1.5; color: #f5f5f5; overflow-wrap: anywhere; }
    .has-menu-toggle .header-menu .search-toggle { display: none; }
    .header-menu .site-actions { padding-inline: 0.5rem; }
}

/* 6. Homepage only: dark opening and editorial cards. */
.hero { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3.5rem); }
.eyebrow { margin: 0 0 1.25rem; color: #aeb4c1; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.hero-title { width: 100%; max-width: none; margin: 0; font-size: clamp(2rem, 5vw, 2.375rem); font-weight: 400; line-height: 1.12; letter-spacing: -0.025em; text-wrap: wrap; }
.hero-description { max-width: 60ch; margin: clamp(1.25rem, 2vw, 1.75rem) 0 0; color: #c0c5d0; font-size: clamp(1rem, 1.4vw, 1.125rem); line-height: 1.65; }
.section-title { margin: 0 0 1.5rem; font-size: clamp(1.75rem, 3vw, 2.35rem); font-weight: 700; letter-spacing: -0.025em; }
.featured-section { padding-bottom: var(--space-section); }
.featured-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.featured-heading .section-title { margin: 0; }
.slider-controls { display: none; gap: 0.5rem; flex-shrink: 0; }
.slider-controls[hidden] { display: none; }
.slider-button { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #292c34; color: #f7f8fc; font-size: 1.5rem; }
.slider-button:disabled { opacity: 0.35; cursor: default; }
.slider-button:not(:disabled):hover { background: #373b45; }
.featured-grid, .latest-grid, .related-grid, .archive-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem 1.5rem; }
.featured-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(85%, 26rem);
    gap: 1.5rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-color: #6f7790 #1c2232;
    scrollbar-width: thin;
    padding-block: 0.25rem 1.25rem;
}
.featured-grid .home-card { scroll-snap-align: start; }
.home-card { min-width: 0; display: flex; flex-direction: column; }
.latest-grid > [hidden] { display: none; }
.home-card-media { display: block; flex-shrink: 0; aspect-ratio: var(--ratio-post-media); overflow: hidden; border-radius: 0.65rem; background: #edf0f6; }
.home-card-media img { width: 100%; height: 100%; object-fit: cover; }
.home-card-media-empty { display: grid; place-items: center; background: radial-gradient(circle at 70% 30%, #586dd54a, transparent 55%), linear-gradient(135deg, #edf0f9, #d9deef); text-decoration: none; }
.card-placeholder-mark { font-size: 4rem; line-height: 1; font-weight: 300; color: #4657a4; }
.home-card-body { display: flex; flex-direction: column; align-items: flex-start; padding: 1rem 0 0; }
.card-tags { display: flex; flex-wrap: wrap; gap: 5px; max-width: 100%; margin-bottom: 0.75rem; }
.card-tag { display: inline-block; min-width: 0; max-width: 100%; padding: 0.1875rem 0.625rem; border-radius: 999px; background: #e8e8e8; color: #1a1a1e; font-family: inherit; font-size: 0.75rem; font-weight: 500; line-height: 1.5; letter-spacing: normal; text-transform: none; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-card-title { margin: 0; font-size: 1.25rem; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; }
.home-card-title a { color: inherit; text-decoration: none; }
.home-card-title a:hover { text-decoration: underline; }
.home-card-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; margin: 1rem 0 0; color: var(--color-muted); font-size: 0.9375rem; line-height: 1.65; }
.home-card-meta { margin-top: 0.75rem; font-size: 0.875rem; font-weight: 400; line-height: 1.6; color: #60646f; }
.home-card-meta p { margin: 0; }
.card-tag:hover { text-decoration: underline; }
.home-card-featured .home-card-body { padding-top: 1.25rem; }
.home-card-featured .home-card-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.3; text-wrap: pretty; }
.home-card-featured .home-card-title:focus-within { outline: 3px solid #aebaff; outline-offset: 4px; }
.home-card-featured .home-card-excerpt { margin: 1rem 0 0; color: #c0c5d0; line-height: 1.7; }
.home-card-featured .home-card-meta { color: #b8bac2; }
.home-card-featured .card-tag { background: #2b2c30; color: #f7f8fc; }
.home-card-featured .home-card-media-empty { background: radial-gradient(circle at 70% 30%, #5368cc55, transparent 60%), #1c2232; }
.home-card-featured .card-placeholder-mark { color: #aebaff; }
.latest-section { padding-block: var(--space-section); scroll-margin-top: 1.5rem; }
.latest-section > .section-title, .latest-heading > .section-title { max-width: 22ch; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; }
.latest-heading { display: flex; flex-direction: column; gap: 1rem; min-width: 0; margin-bottom: 1.5rem; }
.latest-heading > .section-title { margin: 0; }
.topic-navigation { display: flex; flex-wrap: nowrap; gap: 0.5rem; min-width: 0; max-width: 100%; padding: 0.5rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-padding-inline: 0.5rem; scrollbar-width: thin; scrollbar-color: #b8bac2 transparent; }
.topic-link { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 40px; padding: 0.5rem 1rem; border-radius: 999px; background: #f0f0f2; color: #1a1a1e; font: inherit; font-size: 0.875rem; font-weight: 500; line-height: 1.4; text-decoration: none; white-space: nowrap; scroll-margin-inline: 0.5rem; }
.topic-link:hover { background: #e3e3e7; color: #1a1a1e; }
.topic-link[aria-current="page"] { background: #1a1a1e; color: #fff; }
.latest-heading-primary, .latest-heading-secondary { display: block; }
.latest-heading-secondary { margin-top: 0.75rem; color: var(--color-muted); font-size: clamp(1rem, 1.5vw, 1.125rem); font-weight: 400; line-height: 1.6; letter-spacing: normal; }
.home-main .pagination { justify-content: center; gap: 1.5rem; margin: var(--space-section) 0 0; font-size: 0.875rem; }
.home-main .pagination a { padding: 0.6rem 1rem; border: 1px solid var(--color-border); border-radius: 0.5rem; text-decoration: none; }
.load-more { display: flex; flex-direction: column; align-items: center; margin-top: var(--space-section); }
.load-more-button[hidden], [data-home-pagination][hidden] { display: none; }
.load-more-button { min-height: 48px; padding: 0.5rem 1.75rem; border-radius: 999px; background: #1a1a1e; color: #fff; font-size: 0.9375rem; font-weight: 600; }
.load-more-button[aria-disabled="true"] { cursor: wait; opacity: 0.7; }
.load-more-status { margin: 1rem 0 0; text-align: center; color: #60646f; font-size: 0.875rem; font-weight: 400; }
.load-more-status:empty { display: none; }
.load-more:has(.load-more-button[hidden]):has(.load-more-status:empty) { display: none; }
.empty-feed { grid-column: 1 / -1; color: var(--color-muted); }
.subscription-section { display: grid; gap: 1.5rem; padding-block: clamp(2rem, 3vw, 2.5rem) clamp(1.25rem, 2vw, 1.75rem); }
.subscription-copy { min-width: 0; }
.subscription-title { margin: 0; font-size: clamp(1.75rem, 2.4vw, 2.25rem); line-height: 1.2; letter-spacing: -0.025em; text-wrap: wrap; }
.subscription-copy p { max-width: 54ch; margin: 0.75rem 0 0; color: #c0c5d0; font-size: 1rem; line-height: 1.65; }
.subscription-form { min-width: 0; align-self: center; }
.subscription-form label { display: block; margin-bottom: 0.5rem; font-size: 1rem; }
.subscription-fields { display: flex; flex-direction: column; gap: 0.75rem; }
.subscription-fields input { min-width: 0; width: 100%; min-height: 52px; padding: 0.75rem 1rem; font: inherit; font-size: 1rem; line-height: 1.4; border: 1px solid #5b6373; border-radius: 0.65rem; background: #1c2028; color: #fff; }
.subscription-fields input::placeholder { color: #aeb4c1; }
.subscription-fields .button { min-height: 52px; padding: 0.75rem 1.5rem; border-radius: 999px; font-size: 1rem; line-height: 1.4; white-space: nowrap; }
.subscription-fields button:disabled { cursor: wait; opacity: 0.65; }
.subscription-status { margin: 1rem 0 0; color: #c0c5d0; font-size: 0.9375rem; }
.subscription-status:empty { display: none; }
.subscription-form.error .subscription-status { color: #ffb5b5; }
.subscription-shell :focus-visible { outline-color: #aebaff; }

@media (max-width: 39.99rem) {
    .archive-page-direction { display: none; }
    .related-grid { display: flex; gap: 1rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 0.5rem; margin-inline: -0.5rem; padding: 0.5rem; scrollbar-width: thin; }
    .related-grid > .home-card { flex: 0 0 88%; min-width: 0; scroll-snap-align: start; }
    .home-card-featured .home-card-excerpt { -webkit-line-clamp: 2; }
}
@media (min-width: 40rem) {
    .latest-grid, .related-grid, .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .subscription-fields { flex-direction: row; }
    .subscription-fields input { flex: 1; }
}
@media (min-width: 48rem) {
    .hero-title { font-size: clamp(2.375rem, 4.7vw, 3rem); }
    .footer-shell .site-footer { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 2rem; }
    .footer-links { align-items: flex-end; text-align: end; }
    .footer-links .nav { justify-content: flex-end; }
    .footer-social { justify-content: flex-end; }
}
@media (min-width: 64rem) {
    #umut-main:has(> .error-section) { display: grid; align-items: center; }
    .mobile-header-actions { display: none; }
    .load-more-button { min-height: 50px; padding-inline: 2.25rem; }
    .topic-link { min-height: 44px; padding-inline: 1.25rem; font-size: 0.9375rem; }
    .latest-heading { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; column-gap: 1.5rem; }
    .latest-heading > .section-title { flex: 1 1 18rem; }
    .topic-navigation { flex: 0 1 auto; }
    .header-shell .site-header { flex-wrap: nowrap; gap: 2.5rem; }
    .site-header > .site-title { flex-shrink: 0; max-width: 30%; }
    .header-menu { flex-direction: row; align-items: center; justify-content: flex-end; flex-wrap: nowrap; gap: 1rem 1.75rem; width: auto; margin-left: auto; }
    .header-menu .nav { flex-direction: row; align-items: center; justify-content: flex-end; column-gap: 1.75rem; }
    .header-shell .nav a { font-size: 1rem; font-weight: 650; }
    .header-shell .nav-current a { font-weight: 700; }
    .header-shell .search-toggle { min-height: 40px; height: 40px; padding-inline: 1.25rem; font-weight: 600; }
    .header-shell .site-actions .button-light { min-height: 40px; height: 40px; padding: 0.5rem 1.5rem; }
    .header-menu .site-actions { margin-left: auto; }
    .hero-title { font-size: clamp(3.25rem, 4.4vw, 4rem); line-height: 1.1; letter-spacing: -0.03em; }
    .slider-controls:not([hidden]) { display: flex; }
    .latest-grid, .related-grid, .archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 3rem; }
    .subscription-section { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 3vw, 3rem); }
}
@media (prefers-reduced-motion: reduce) {
    .featured-grid { scroll-behavior: auto; }
}

/* Semantic fallbacks remain available without changing the visible layout. */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Archive introductions reuse the site container and home cards. */
.archive-section { padding-block: var(--space-section); }
.archive-header { margin-bottom: 2rem; }
.archive-eyebrow { margin: 0 0 1rem; color: var(--color-muted); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.archive-description { max-width: 46.25rem; margin: 1.25rem 0 0; color: var(--color-muted); font-size: 1.0625rem; line-height: 1.7; }
.archive-section > .topic-navigation { margin-bottom: 2.5rem; }
.archive-empty { padding-block: 1rem 2rem; }
.archive-empty p { margin-top: 0; }
.archive-empty a { display: inline-block; min-height: 44px; padding-block: 0.5rem; }

.archive-avatar { width: 96px; height: 96px; margin-bottom: 1.5rem; border-radius: 50%; object-fit: cover; }
.archive-posts-title { margin: 0 0 2rem; }
.author-website { display: inline-block; min-height: 44px; margin-top: 1rem; padding-block: 0.5rem; }
.author-social { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 1rem; }
.author-social a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: inherit; font-size: 0.875rem; }
.author-social svg { width: 18px; height: 18px; flex-shrink: 0; }

.page-article { padding-bottom: var(--space-section); }
.page-article .article-header { max-width: var(--width-reading); padding-block: clamp(2rem, 4vw, 3.5rem) 2rem; }
.page-article > .post-content:first-child { padding-top: var(--space-section); }

.error-section { padding-block: clamp(4rem, 9vw, 7rem); text-align: center; }
.error-code { margin: 0 0 1.5rem; color: var(--color-muted); font-size: clamp(4rem, 12vw, 7rem); font-weight: 700; line-height: 1; letter-spacing: -0.05em; }
.error-section > p:not(.error-code) { max-width: 46.25rem; margin: 1.5rem auto; color: var(--color-muted); }

/* Tag description follows navigation; absent descriptions add no spacing. */
.archive-section > .topic-navigation:has(+ .tag-description) { margin-bottom: 1.5rem; }
.tag-description { max-width: 45rem; margin: 0 0 2.5rem; color: #60646f; font-size: 1rem; font-weight: 400; line-height: 1.6; }
.author-social a:hover, .author-social a:focus-visible { color: var(--color-accent); }
@media (min-width: 48rem) {
    .tag-description { font-size: 1.0625rem; }
}
