/* =========================================================
   Kiro遊戲娛樂生活網：前台樣式（不需打包，直接由 public 提供）
   ========================================================= */

:root {
    --bg: #f4f5f7;
    --surface: #ffffff;
    --surface-2: #f8f9fb;
    --text: #1d2127;
    --text-soft: #3d434c;
    --muted: #6b7380;
    --border: #e4e7eb;
    --accent: #d6336c;
    --accent-soft: #fdebf2;
    --accent-contrast: #ffffff;
    --shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 4px 12px rgb(16 24 40 / 6%);
    --shadow-hover: 0 4px 10px rgb(16 24 40 / 8%), 0 12px 28px rgb(16 24 40 / 10%);
    --radius: 12px;
    --radius-sm: 8px;
    --container: 1200px;
    --header-height: 60px;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f1114;
        --surface: #181b20;
        --surface-2: #1e2228;
        --text: #e8eaed;
        --text-soft: #c9cdd3;
        --muted: #9aa3ae;
        --border: #2a2f37;
        --accent: #f06595;
        --accent-soft: #3a1d29;
        --shadow: 0 1px 2px rgb(0 0 0 / 40%);
        --shadow-hover: 0 8px 24px rgb(0 0 0 / 45%);
    }
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 16px);
    -webkit-text-size-adjust: 100%;
}

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

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
}

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

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 100;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: var(--accent-contrast);
}

.skip-link:focus {
    top: 8px;
    color: var(--accent-contrast);
}

.button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-contrast);
    font-weight: 600;
}

.button:hover {
    color: var(--accent-contrast);
    filter: brightness(1.08);
}

/* ---------- 頁首 ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    border-bottom: 1px solid var(--border);
    backdrop-filter: saturate(1.6) blur(12px);
    -webkit-backdrop-filter: saturate(1.6) blur(12px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    height: var(--header-height);
}

.site-logo {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--text);
}

.site-logo img {
    width: 32px;
    height: auto;
    border-radius: 8px;
}

.search-form {
    display: flex;
    flex: 0 1 340px;
    min-width: 0;
    margin-left: auto;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-2);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-form:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-form input {
    flex: 1;
    min-width: 0;
    padding: 8px 4px 8px 16px;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
    outline: none;
}

.search-form button {
    display: flex;
    align-items: center;
    padding: 0 16px;
    border: 0;
    border-radius: 0 999px 999px 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    cursor: pointer;
}

.search-form button:hover {
    color: var(--accent);
}

.search-form--page {
    max-width: 520px;
    margin: 16px 0 0;
    background: var(--surface);
}

.search-form--page button {
    background: var(--accent);
    color: var(--accent-contrast);
    font-weight: 600;
}

.search-form--page button:hover {
    color: var(--accent-contrast);
}

.search-toggle {
    display: none;
    margin-left: auto;
    padding: 8px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.main-nav {
    position: relative;
    border-top: 1px solid var(--border);
}

.main-nav ul {
    display: flex;
    gap: 4px;
    margin: 0 auto;
    padding-top: 6px;
    padding-bottom: 6px;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}

.main-nav ul::-webkit-scrollbar {
    display: none;
}

.main-nav li {
    scroll-snap-align: start;
}

.main-nav a {
    display: block;
    padding: 6px 14px;
    border-radius: 999px;
    color: var(--text-soft);
    font-size: 0.95rem;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.main-nav a:hover {
    background: var(--surface-2);
    color: var(--accent);
}

.main-nav a[aria-current="page"] {
    background: var(--accent);
    color: var(--accent-contrast);
    font-weight: 600;
}

/* 閱讀進度條 */
.reading-progress {
    position: absolute;
    bottom: -1px;
    left: 0;
    height: 3px;
    width: 100%;
    background: var(--accent);
    transform: scaleX(var(--progress, 0));
    transform-origin: left;
}

/* ---------- 版面 ---------- */
.site-main {
    padding-top: 20px;
    padding-bottom: 56px;
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
}

@media (min-width: 1024px) {
    .layout {
        grid-template-columns: minmax(0, 1fr) 320px;
        align-items: start;
    }
}

.section {
    margin: 40px 0;
}

.section:first-child {
    margin-top: 0;
}

.section__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
    font-size: 1.3rem;
    line-height: 1.4;
}

.section__title > :first-child {
    padding-left: 12px;
    border-left: 4px solid var(--accent);
}

.section__more {
    flex-shrink: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--muted);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ---------- 文章卡片 ---------- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.post-grid--2 {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

@media (min-width: 640px) {
    .post-grid--2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .post-grid--2 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.post-card__thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--surface-2), var(--border));
}

.post-card__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.post-card:hover .post-card__thumb img {
    transform: scale(1.04);
}

.post-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px 14px;
}

.post-card__category {
    position: relative;
    z-index: 1;
    align-self: flex-start;
    padding: 1px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
}

.post-card__title {
    flex: 1;
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 整張卡片都可點擊 */
.post-card__title a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.post-card time {
    font-size: 0.8rem;
    color: var(--muted);
}

/* 橫式小卡 */
.post-card--list {
    flex-direction: row;
    align-items: stretch;
    box-shadow: none;
    background: transparent;
}

.post-card--list:hover {
    transform: none;
    box-shadow: none;
}

.post-card--list .post-card__thumb {
    flex: 0 0 38%;
    border-radius: var(--radius-sm);
}

.post-card--list .post-card__body {
    padding: 2px 0 2px 12px;
}

.post-card--list .post-card__title {
    font-size: 0.95rem;
    -webkit-line-clamp: 2;
}

.post-card--list:hover .post-card__title {
    color: var(--accent);
}

/* 精選大卡 */
.post-card--hero {
    height: 100%;
}

.post-card--hero .post-card__body {
    padding: 16px 18px 18px;
}

.post-card--hero .post-card__title {
    font-size: 1.35rem;
    line-height: 1.45;
}

/* ---------- 首頁精選 ---------- */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.hero__side {
    display: grid;
    gap: 14px;
    align-content: start;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

@media (min-width: 900px) {
    .hero {
        grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    }

    .hero__side {
        align-content: space-between;
    }
}

/* 首頁分類區塊：手機改為左右滑動 */
@media (max-width: 639px) {
    .post-grid--scroll {
        grid-auto-flow: column;
        grid-template-columns: none;
        grid-auto-columns: 78%;
        margin: 0 -16px;
        padding: 4px 16px 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 16px;
        scrollbar-width: none;
    }

    .post-grid--scroll::-webkit-scrollbar {
        display: none;
    }

    .post-grid--scroll > * {
        scroll-snap-align: start;
    }
}

/* ---------- 列表頁 ---------- */
.archive-header {
    margin-bottom: 24px;
}

.archive-header h1 {
    margin: 6px 0;
    font-size: 1.7rem;
    line-height: 1.35;
}

.archive-header p {
    margin: 4px 0;
    color: var(--text-soft);
}

.archive-header .archive-header__count {
    color: var(--muted);
    font-size: 0.9rem;
}

.empty {
    padding: 32px;
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--muted);
    text-align: center;
}

/* 分頁 */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.pagination a,
.pagination span {
    min-width: 44px;
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--surface);
    box-shadow: var(--shadow);
    text-align: center;
    font-weight: 500;
}

.pagination a:hover {
    background: var(--accent-soft);
}

.pagination .pagination__current {
    background: var(--accent);
    color: var(--accent-contrast);
}

.pagination .pagination__gap {
    background: none;
    box-shadow: none;
}

/* ---------- 文章 ---------- */
.entry {
    padding: 28px;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.entry__header h1 {
    margin: 10px 0 12px;
    font-size: 1.85rem;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.entry__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
    color: var(--muted);
}

.entry__content {
    max-width: 760px;
    font-size: 1.0625rem;
    line-height: 1.9;
    color: var(--text-soft);
    overflow-wrap: anywhere;
}

.entry__content > * {
    margin-top: 0;
    margin-bottom: 1.15em;
}

.entry__content h2,
.entry__content h3 {
    color: var(--text);
    line-height: 1.45;
    scroll-margin-top: calc(var(--header-height) + 56px);
}

.entry__content h2 {
    margin-top: 2em;
    padding: 8px 14px;
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--surface-2);
    font-size: 1.35rem;
}

.entry__content h3 {
    margin-top: 1.6em;
    font-size: 1.15rem;
}

.entry__content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.entry__content img {
    display: block;
    margin: 0 auto;
    border-radius: var(--radius-sm);
    cursor: zoom-in;
}

.entry__content a img {
    cursor: pointer;
}

.entry__content figure {
    margin: 1.5em 0;
}

.entry__content figcaption {
    margin-top: 8px;
    font-size: 0.88rem;
    color: var(--muted);
    text-align: center;
}

.entry__content blockquote {
    margin: 1.5em 0;
    padding: 12px 18px;
    border-left: 4px solid var(--border);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--surface-2);
    color: var(--text-soft);
}

.entry__content ul,
.entry__content ol {
    padding-left: 1.4em;
}

.entry__content li + li {
    margin-top: 0.3em;
}

.entry__content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.entry__content th,
.entry__content td {
    padding: 8px 12px;
    border: 1px solid var(--border);
}

.entry__content th {
    background: var(--surface-2);
    color: var(--text);
}

.entry__content tr:nth-child(even) td {
    background: var(--surface-2);
}

.entry__content hr {
    border: 0;
    border-top: 1px solid var(--border);
}

.entry__content .embed--youtube {
    aspect-ratio: 16 / 9;
}

.entry__content .embed--youtube iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: var(--radius-sm);
}

.entry__footer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.entry__terms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.chip {
    padding: 4px 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
}

/* 分享 */
.share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--surface-2);
}

.share__label {
    font-weight: 600;
}

.share__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.share__button {
    padding: 7px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.share__button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.share__button--line:hover {
    border-color: #06c755;
    color: #06c755;
}

.share__button--facebook:hover {
    border-color: #1877f2;
    color: #1877f2;
}

.share__button.is-done {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--accent-contrast);
}

/* 上一篇／下一篇 */
.post-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.post-nav__link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-nav__link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.post-nav__link--next {
    text-align: right;
}

.post-nav__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
}

.post-nav__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 600;
    line-height: 1.5;
}

/* 文章目錄 */
.toc ol {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.toc__item a {
    display: block;
    padding: 5px 10px;
    border-left: 2px solid var(--border);
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.5;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.toc__item--h3 a {
    padding-left: 24px;
    font-size: 0.86rem;
}

.toc__item a:hover,
.toc__item a.is-active {
    border-left-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}

.toc--inline {
    margin: 0 0 24px;
    border-radius: var(--radius);
    background: var(--surface-2);
}

.toc--inline summary {
    padding: 12px 16px;
    font-weight: 700;
    cursor: pointer;
}

.toc--inline ol {
    padding: 0 16px 14px;
}

@media (min-width: 1024px) {
    .toc--inline {
        display: none;
    }
}

/* ---------- 側欄 ---------- */
.sidebar {
    display: grid;
    gap: 20px;
    align-content: start;
}

@media (min-width: 1024px) {
    .sidebar {
        position: sticky;
        top: calc(var(--header-height) + 64px);
        max-height: calc(100vh - var(--header-height) - 80px);
        overflow-y: auto;
        scrollbar-width: thin;
        padding-bottom: 8px;
    }
}

.widget {
    padding: 18px;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.widget__title {
    margin: 0 0 12px;
    padding-left: 10px;
    border-left: 4px solid var(--accent);
    font-size: 1.05rem;
    line-height: 1.4;
}

.toc--sidebar {
    display: none;
}

@media (min-width: 1024px) {
    .toc--sidebar {
        display: block;
    }

    .toc--sidebar ol {
        max-height: 50vh;
        overflow-y: auto;
        scrollbar-width: thin;
    }
}

.rank-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-list a {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.rank-list img {
    width: 96px;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--surface-2);
}

.rank-list span {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.9rem;
    line-height: 1.5;
}

.category-list {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    transition: background 0.15s;
}

.category-list a:hover {
    background: var(--accent-soft);
}

.category-list__count {
    color: var(--muted);
    font-size: 0.85rem;
}

/* ---------- 廣告 ---------- */
.ad {
    margin: 24px 0;
    text-align: center;
}

.sidebar .ad {
    margin: 0;
}

.ad--top {
    display: none;
    margin-top: 0;
}

@media (min-width: 768px) {
    .ad--top {
        display: block;
    }
}

/* ---------- 404 ---------- */
.not-found {
    max-width: 560px;
    margin: 0 auto;
    padding: 48px 0;
    text-align: center;
}

.not-found__code {
    margin: 0;
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
}

.not-found .search-form--page {
    margin: 24px auto;
}

/* ---------- 頁尾 ---------- */
.site-footer {
    margin-top: 24px;
    border-top: 1px solid var(--border);
    background: var(--surface);
    font-size: 0.92rem;
    color: var(--muted);
}

.site-footer__inner {
    display: grid;
    gap: 28px;
    padding-top: 36px;
    padding-bottom: 24px;
}

@media (min-width: 768px) {
    .site-footer__inner {
        grid-template-columns: 1.4fr 2fr 1fr;
    }
}

.site-logo--footer {
    font-size: 1.05rem;
}

.site-footer__about {
    margin: 10px 0 0;
}

.site-footer__title {
    margin: 0 0 10px;
    font-size: 0.95rem;
    color: var(--text);
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__copy {
    margin: 0;
    padding: 16px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.85rem;
}

/* ---------- 回到頂端 ---------- */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 40;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-contrast);
    box-shadow: var(--shadow-hover);
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.2s, transform 0.2s;
}

.back-to-top.is-visible {
    opacity: 1;
    transform: none;
}

/* ---------- 圖片放大 ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgb(0 0 0 / 88%);
    cursor: zoom-out;
    animation: fade-in 0.15s ease-out;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.lightbox__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgb(255 255 255 / 15%);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
}

body.is-locked {
    overflow: hidden;
}

/* ---------- 手機 ---------- */
@media (max-width: 767px) {
    :root {
        --header-height: 56px;
    }

    .site-logo {
        font-size: 1.05rem;
    }

    .site-logo img {
        width: 28px;
    }

    .search-toggle {
        display: block;
    }

    .site-header .search-form {
        position: absolute;
        top: calc(var(--header-height) - 4px);
        right: 12px;
        left: 12px;
        z-index: 60;
        display: none;
        margin: 0;
        background: var(--surface);
        box-shadow: var(--shadow-hover);
    }

    .site-header .search-form.is-open {
        display: flex;
    }

    .search-form input {
        padding: 12px 4px 12px 16px;
        font-size: 1rem;
    }

    .site-main {
        padding-top: 16px;
    }

    .entry {
        margin: 0 -16px;
        padding: 20px 16px;
        border-radius: 0;
        box-shadow: none;
    }

    .entry__header h1 {
        font-size: 1.45rem;
    }

    .entry__content {
        font-size: 1.03rem;
    }

    .entry__content h2 {
        font-size: 1.2rem;
    }

    .archive-header h1 {
        font-size: 1.4rem;
    }

    .post-card--hero .post-card__title {
        font-size: 1.15rem;
    }

    .share {
        flex-direction: column;
        align-items: flex-start;
    }

    .back-to-top {
        right: 14px;
        bottom: 16px;
    }
}
