/* =========================================================
   Media Baca Santri — public reader surface
   Direction: portal indeks bergambar (acuan: Kumparan)
   Putih, tinta hitam, aksen teal; Heebo + PT Serif.
   ========================================================= */

@font-face {
    font-family: "Heebo";
    src: url("/assets/fonts/heebo-latin.woff2") format("woff2");
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "PT Serif";
    src: url("/assets/fonts/pt-serif-400-latin.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "PT Serif";
    src: url("/assets/fonts/pt-serif-700-latin.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "PT Serif";
    src: url("/assets/fonts/pt-serif-italic-400-latin.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

:root {
    --paper: #ffffff;
    --paper-2: #f7f7f7;
    --paper-3: #f0f0f0;
    --ink: #0d0d0d;
    --ink-soft: #333333;
    --muted: #5f5f5f;
    --line: #e7e7e7;
    --line-strong: #cfcfcf;
    --teal: #00a5af;
    --teal-ink: #00747a;
    --teal-deep: #005c61;
    --teal-soft: #e8f7f8;
    --red: #dc1641;
    --sans: "Heebo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --serif: "PT Serif", Georgia, "Times New Roman", serif;
    --display: var(--sans);
    --read: var(--sans);
    --radius: 8px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body.read {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

#main {
    flex: 1;
}

body.read ::selection {
    background: var(--teal-soft);
    color: var(--ink);
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

:focus-visible {
    outline: 2px solid var(--teal-ink);
    outline-offset: 3px;
}

.wrap {
    width: min(100% - 2.5rem, 1160px);
    margin-inline: auto;
}

.wrap-article {
    width: min(100% - 2.5rem, 44rem);
    margin-inline: auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--ink);
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 6px;
    transform: translateY(-200%);
    text-decoration: none;
}

.skip:focus {
    transform: none;
}

/* ---------- Header ---------- */
.top {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: 0;
}

.brand-mark {
    width: 32px;
    height: 32px;
    flex: none;
    display: block;
}

.brand-mark .brand-svg,
.brand-mark img {
    width: 100%;
    height: 100%;
    display: block;
}

.brand-mark--image {
    padding: 2px;
    border-radius: 7px;
    border: 1px solid var(--line);
    background: var(--paper-2);
}

.brand-mark--image img {
    object-fit: contain;
    border-radius: 4px;
}

.brand-name {
    font-family: var(--sans);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    flex: none;
}

.top-nav a {
    color: var(--ink-soft);
    text-decoration: none;
    padding: 0.5rem 0;
}

.top-nav a:hover {
    color: var(--teal-ink);
}

.top-nav a[aria-current="page"] {
    color: var(--teal-ink);
    font-weight: 700;
}

/* ---------- Home: hero carousel ---------- */
.home {
    padding: 24px 0 8px;
}

.hero {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #101315;
    isolation: isolate;
}

.hero-track {
    position: relative;
    aspect-ratio: 16 / 9;
    touch-action: pan-y;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.015);
    transition: opacity 520ms cubic-bezier(0.16, 1, 0.3, 1), transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 1;
}

.hero-link {
    position: absolute;
    inset: 0;
    display: block;
    color: #fff;
    text-decoration: none;
}

.hero-link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}

.hero-media,
.hero-media img,
.hero-media .thumb-ph {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide .thumb-ph {
    background: linear-gradient(140deg, #0b4a4f 0%, #00a5af 58%, #7fe0e5 100%);
    color: #fff;
    font-size: clamp(3rem, 8vw, 5.5rem);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 9, 11, 0.88) 0%, rgba(5, 9, 11, 0.5) 36%, rgba(5, 9, 11, 0.1) 66%, rgba(5, 9, 11, 0) 100%);
}

.hero-body {
    position: absolute;
    inset: auto 0 0 0;
    display: block;
    padding: clamp(18px, 3vw, 34px);
    padding-bottom: calc(clamp(18px, 3vw, 34px) + 52px);
}

.hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.hero-cat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
}

.hero-cat::before {
    content: "";
    width: 18px;
    height: 3px;
    border-radius: 2px;
    background: var(--teal);
}

.hero-index {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.72);
    font-variant-numeric: tabular-nums;
}

.hero-title {
    display: block;
    max-width: 30ch;
    font-family: var(--display);
    font-size: clamp(1.5rem, 3.2vw, 2.7rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-wrap: balance;
    overflow-wrap: break-word;
    text-shadow: 0 1px 26px rgba(0, 0, 0, 0.35);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.82);
}

.hero-meta .dot {
    background: rgba(255, 255, 255, 0.5);
}

.hero-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(9, 12, 13, 0.5);
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 160ms ease, border-color 160ms ease;
}

.hero-nav:hover {
    background: rgba(9, 12, 13, 0.8);
    border-color: rgba(255, 255, 255, 0.6);
}

.hero-nav--prev {
    left: clamp(10px, 2vw, 22px);
}

.hero-nav--next {
    right: clamp(10px, 2vw, 22px);
}

.hero-controls {
    position: absolute;
    z-index: 3;
    left: clamp(18px, 3vw, 34px);
    right: clamp(18px, 3vw, 34px);
    bottom: clamp(14px, 2.2vw, 24px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 4px;
}

.hero-dot {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 40px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.hero-dot::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: width 280ms cubic-bezier(0.16, 1, 0.3, 1), background 200ms ease;
}

.hero-dot.is-active::before {
    width: 32px;
    background: rgba(255, 255, 255, 0.32);
}

.hero-dot-fill {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 32px;
    height: 9px;
    border-radius: 999px;
    background: var(--teal);
    transform: translate(-50%, -50%) scaleX(0);
    transform-origin: left center;
    opacity: 0;
    pointer-events: none;
}

.hero-dot.is-active .hero-dot-fill {
    opacity: 1;
    animation: hero-progress var(--hero-interval, 5000ms) linear forwards;
}

@keyframes hero-progress {
    from {
        transform: translate(-50%, -50%) scaleX(0);
    }
    to {
        transform: translate(-50%, -50%) scaleX(1);
    }
}

.hero-toggle {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(9, 12, 13, 0.5);
    color: #fff;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease;
}

.hero-toggle:hover {
    background: rgba(9, 12, 13, 0.8);
}

/* ---------- Shared bits ---------- */
.cat {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal-ink);
    text-decoration: none;
}

.cat:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--line-strong);
    flex: none;
}

.section-head {
    position: relative;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 10px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.section-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 38px;
    height: 3px;
    background: var(--teal);
}

.section-more {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--teal-ink);
    text-decoration: none;
    white-space: nowrap;
}

.section-more:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.thumb-ph {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: var(--teal-soft);
    color: var(--teal-ink);
    font-family: var(--sans);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

/* ---------- Home: latest cards ---------- */
.home-latest {
    padding-top: 36px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 24px;
}

.card {
    min-width: 0;
}

.card-media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--paper-2);
    text-decoration: none;
}

.card-media img,
.card-media .thumb-ph {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card .cat {
    margin-top: 12px;
}

.card-title {
    margin: 6px 0 0;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
    overflow-wrap: break-word;
}

.card-title a {
    text-decoration: none;
}

.card-title a:hover {
    color: var(--teal-ink);
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 8px 0 0;
    font-size: 0.75rem;
    color: var(--muted);
}

/* ---------- Topics ---------- */
.home-topics {
    padding: 38px 0 64px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink-soft);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
}

.chip:hover {
    border-color: var(--teal-ink);
    color: var(--teal-ink);
}

.chip-count {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--teal-ink);
    background: var(--teal-soft);
    border-radius: 999px;
    padding: 1px 7px;
}

/* ---------- Page head / search ---------- */
.page-head {
    padding: 40px 0 18px;
}

.page-head h1 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.1rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    overflow-wrap: break-word;
}

.page-sub {
    margin: 7px 0 0;
    font-size: 0.875rem;
    color: var(--muted);
}

.search-form {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 6px 0 14px;
    max-width: 44rem;
    padding: 4px;
    background: var(--paper-2);
    border-radius: 10px;
}

.search-form:focus-within {
    outline: 2px solid var(--teal-ink);
    outline-offset: 2px;
}

.search-form input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1rem;
}

.search-form input::placeholder {
    color: var(--muted);
}

.search-form input:focus {
    outline: 0;
}

.search-form button {
    height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 7px;
    background: var(--teal-ink);
    color: #fff;
    font-family: var(--sans);
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
}

.search-form button:hover {
    background: var(--teal-deep);
}

/* ---------- Archive rows ---------- */
.archive {
    padding-bottom: 64px;
}

.rows {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

.row {
    display: grid;
    grid-template-columns: 208px minmax(0, 1fr);
    gap: 22px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    align-items: start;
}

.row-media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--paper-2);
    text-decoration: none;
}

.row-media img,
.row-media .thumb-ph {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.row-body {
    min-width: 0;
}

.row-title {
    margin: 5px 0 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    overflow-wrap: break-word;
}

.row-title a {
    text-decoration: none;
}

.row-title a:hover {
    color: var(--teal-ink);
}

.row-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 7px 0 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--muted);
}

.row-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 9px 0 0;
    font-size: 0.75rem;
    color: var(--muted);
}

/* ---------- Pager ---------- */
.pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 30px;
}

.pager-side {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--teal-ink);
    text-decoration: none;
}

.pager-side:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pager-side[aria-disabled="true"] {
    color: #b3b3b3;
}

.pager-status {
    font-size: 0.8125rem;
    color: var(--muted);
}

/* ---------- Article ---------- */
.article {
    padding: 36px 0 8px;
}

.article-head .cat {
    margin-bottom: 10px;
}

.article-head h1 {
    margin: 0;
    font-size: clamp(1.9rem, 3.6vw, 2.65rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    text-wrap: balance;
    overflow-wrap: break-word;
}

.article-dek {
    margin: 16px 0 0;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink-soft);
    overflow-wrap: break-word;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 18px 0 0;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
    font-size: 0.8125rem;
    color: var(--muted);
}

.article-meta strong {
    color: var(--ink-soft);
    font-weight: 600;
}

.article-cover {
    margin: 26px 0 0;
}

.article-cover img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    background: var(--paper-2);
}

.prose {
    margin-top: 30px;
    font-family: var(--serif);
    font-size: 1.1875rem;
    line-height: 1.75;
    color: #1c1c1c;
    overflow-wrap: break-word;
}

.prose p {
    margin: 0 0 1.35em;
}

.prose > p:first-child {
    margin-top: 0;
}

.prose h2 {
    margin: 2em 0 0.6em;
    font-family: var(--sans);
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.prose h3 {
    margin: 1.8em 0 0.5em;
    font-family: var(--sans);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
}

.prose a {
    color: var(--teal-ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.prose a:hover {
    color: var(--teal-deep);
}

.prose ul,
.prose ol {
    margin: 0 0 1.35em;
    padding-left: 1.35em;
}

.prose li {
    margin-bottom: 0.4em;
}

.prose blockquote {
    margin: 1.8em 0;
    padding: 18px 22px;
    background: var(--paper-2);
    border-radius: var(--radius);
    font-style: italic;
    color: var(--ink-soft);
}

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

.prose figure {
    margin: 1.8em 0;
}

.prose img {
    border-radius: var(--radius);
    width: 100%;
}

.prose figcaption {
    margin-top: 8px;
    font-family: var(--sans);
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--muted);
}

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

.prose pre {
    overflow-x: auto;
    padding: 16px;
    background: var(--paper-2);
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.prose code {
    font-size: 0.9em;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.article-tags .chip {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 0.75rem;
}

/* ---------- More read ---------- */
.more-read {
    margin-top: 42px;
    margin-bottom: 64px;
}

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

.more-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--paper-2);
    border-radius: var(--radius);
    text-decoration: none;
}

.more-link:hover .more-title {
    color: var(--teal-ink);
}

.more-media {
    display: block;
    width: 104px;
    flex: none;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 6px;
    background: var(--paper-3);
}

.more-media img,
.more-media .thumb-ph {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.more-media .thumb-ph {
    font-size: 1.25rem;
}

.more-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.more-dir {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--teal-ink);
}

.more-title {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: break-word;
}

/* ---------- Categories ---------- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.cat-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 10px;
    text-decoration: none;
}

.cat-card:hover {
    border-color: var(--teal-ink);
    background: #fbfdfd;
}

.cat-card-name {
    font-size: 1.0625rem;
    font-weight: 700;
    overflow-wrap: break-word;
}

.cat-card-count {
    font-size: 0.8125rem;
    color: var(--muted);
}

/* ---------- Empty / 404 ---------- */
.empty {
    padding: 56px 0 64px;
}

.empty h2,
.empty h1 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.empty p {
    margin: 8px 0 0;
    font-size: 0.9375rem;
    color: var(--muted);
}

.home-empty {
    padding: 20px 0 40px;
}

.page-404 {
    padding: 64px 0 96px;
}

.page-404 h1 {
    margin: 0;
    font-size: clamp(1.7rem, 3.4vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.empty-code {
    margin: 0 0 10px;
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--teal);
}

.page-404 .empty-code {
    color: var(--teal-ink);
}

.page-404 p {
    margin: 10px 0 18px;
}

.text-link {
    display: inline-block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--teal-ink);
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ---------- Footer ---------- */
.foot {
    border-top: 1px solid var(--line);
    background: var(--paper-2);
}

.foot-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    padding: 34px 0 38px;
}

.foot-logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 1.0625rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.foot-logo .brand-mark {
    width: 26px;
    height: 26px;
}

.foot-tag {
    margin: 8px 0 0;
    font-size: 0.8125rem;
    color: var(--muted);
}

.foot-note {
    max-width: 34rem;
    margin: 8px 0 0;
    font-size: 0.8125rem;
    color: var(--muted);
}

.foot-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--muted);
}

.foot-meta a {
    color: var(--teal-ink);
    text-decoration: none;
}

.foot-meta a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Reading progress ---------- */
.progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 30;
    width: 100%;
    height: 3px;
    background: transparent;
    pointer-events: none;
}

.progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--teal);
    transform: scaleX(0);
    transform-origin: 0 50%;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .wrap {
        width: calc(100% - 2rem);
    }

    .top-inner {
        height: 56px;
        gap: 12px;
    }

    .brand {
        gap: 8px;
    }

    .brand-mark {
        width: 28px;
        height: 28px;
    }

    .brand-name {
        font-size: 1.0625rem;
    }

    .top-nav {
        gap: 1rem;
        font-size: 0.8125rem;
    }

    .home {
        padding-top: 16px;
    }

    .hero {
        border-radius: 8px;
    }

    .hero-track {
        aspect-ratio: 16 / 9;
        min-height: clamp(236px, 58vw, 420px);
    }

    .hero-body {
        padding: 16px 16px calc(16px + 48px);
    }

    .hero-top {
        margin-bottom: 8px;
    }

    .hero-title {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
        font-size: clamp(1.35rem, 6vw, 1.85rem);
        max-width: 24ch;
    }

    .hero-meta {
        margin-top: 9px;
        font-size: 0.75rem;
    }

    .hero-nav {
        width: 40px;
        height: 40px;
    }

    .hero-controls {
        left: 14px;
        right: 14px;
        bottom: 12px;
    }

    .hero-dot {
        width: 22px;
    }

    .hero-dot::before {
        width: 8px;
        height: 8px;
    }

    .hero-dot.is-active::before {
        width: 28px;
    }

    .hero-dot-fill {
        width: 28px;
        height: 8px;
    }

    .card-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .row {
        grid-template-columns: minmax(0, 1fr) 112px;
        gap: 14px;
        padding: 16px 0;
    }

    .row-media {
        order: 2;
        width: 112px;
    }

    .row-body {
        order: 1;
    }

    .row-title {
        font-size: 1rem;
        line-height: 1.35;
    }

    .row-excerpt {
        display: none;
    }

    .row-meta {
        margin-top: 7px;
    }

    .cat-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .page-head {
        padding-top: 30px;
    }

    .article {
        padding-top: 26px;
    }

    .prose {
        font-size: 1.0625rem;
        line-height: 1.72;
    }

    .more-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .foot-inner {
        flex-direction: column;
        gap: 20px;
        padding: 28px 0 32px;
    }

    .foot-meta {
        align-items: flex-start;
    }
}

@media (max-width: 400px) {
    .hero-title {
        font-size: 1.3rem;
    }

    .hero-cat {
        font-size: 0.625rem;
    }

    .hero-index {
        display: none;
    }

    .article-head h1 {
        font-size: 1.65rem;
        text-wrap: pretty;
    }
}

@media (max-width: 360px) {
    .top-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 9px 0 0;
        row-gap: 0;
    }

    .brand {
        flex: 1 1 100%;
    }

    .top-nav {
        flex: 1 1 100%;
        gap: 1.1rem;
        padding: 3px 0 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-dot-fill {
        display: none;
    }

    .hero-slide {
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }

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

@media print {
    .top,
    .foot,
    .progress,
    .more-read,
    .article-tags {
        display: none;
    }

    body.read {
        background: #fff;
    }

    .prose {
        font-size: 11.5pt;
        line-height: 1.5;
    }

    .wrap-article {
        width: 100%;
    }
}

.foot-saran {
    padding: 34px 0 28px;
    border-bottom: 1px solid var(--line);
}
.foot-saran-head {
    margin-bottom: 18px;
}
.foot-saran h2 {
    margin: 0 0 5px;
    font-family: var(--sans);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--ink);
}
.foot-saran p {
    margin: 0;
    max-width: 640px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}
.saran-form {
    display: grid;
    gap: 12px;
    max-width: 760px;
}
.saran-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.saran-field {
    display: grid;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-soft);
}
.saran-field input,
.saran-field textarea {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: var(--paper);
    padding: 10px 12px;
    color: var(--ink);
    font: 400 14px/1.5 var(--sans);
}
.saran-field textarea {
    min-height: 96px;
    resize: vertical;
}
.saran-field input:focus,
.saran-field textarea:focus {
    outline: 2px solid var(--teal-ink);
    outline-offset: 1px;
    border-color: var(--teal-ink);
}
.saran-optional {
    font-weight: 400;
    color: var(--muted);
}
.saran-required {
    color: var(--red);
}
.saran-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.saran-submit {
    border: 0;
    border-radius: 6px;
    background: var(--ink);
    color: #fff;
    padding: 12px 18px;
    font: 700 13px/1 var(--sans);
    cursor: pointer;
}
.saran-submit:hover {
    background: var(--teal-deep);
}
.saran-submit:focus-visible {
    outline: 2px solid var(--teal-ink);
    outline-offset: 2px;
}
.saran-hint {
    color: var(--muted);
    font-size: 12px;
}
.saran-note {
    max-width: 760px;
    margin: 0 0 14px;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.5;
}
.saran-note--ok {
    background: var(--teal-soft);
    color: var(--teal-deep);
}
.saran-note--err {
    background: #fdecef;
    color: #8a1230;
}
.saran-note ul {
    margin: 0;
    padding-left: 18px;
}
.saran-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

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

    .foot-saran {
        padding: 28px 0 24px;
    }
}
