/* fline.dev Theme — Developer editorial with warm depth */
/* Design tokens (colors, fonts, spacing) are generated in tokens.css from theme.yaml */
/* Base reset/accessibility is in SiteKit's base.css (auto-included) */

html, body {
   overflow-x: hidden;
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
   font-family: var(--font-heading);
   font-weight: 700;
   line-height: 1.3;
   color: var(--color-text);
}

h1 { font-size: 2.25rem; margin-bottom: 0.5em; letter-spacing: -0.025em; }
h2 { font-size: 1.75rem; margin-top: 2em; margin-bottom: 0.5em; letter-spacing: -0.02em; }
h3 { font-size: 1.375rem; margin-top: 1.5em; margin-bottom: 0.5em; }
h4 { font-size: 1.125rem; margin-top: 1.25em; margin-bottom: 0.5em; }

p {
   margin-bottom: 1.25em;
}

strong {
   font-weight: 600;
}

/* ============================================================
   Skip Link (Accessibility)
   ============================================================ */
.sk-skip-link {
   position: absolute;
   top: -100%;
   left: 0;
   background: var(--color-accent);
   color: #fff;
   padding: 0.5rem 1rem;
   z-index: 100;
   border-radius: 0 0 var(--radius) 0;
   font-weight: 500;
}

.sk-skip-link:focus {
   top: 0;
   color: #fff;
}

/* ============================================================
   Site Header & Navigation — Centered layout
   ============================================================ */
.sk-site-header {
   position: sticky;
   top: 0;
   z-index: 50;
   background: rgba(255, 255, 255, 0.92);
   backdrop-filter: blur(12px);
   -webkit-backdrop-filter: blur(12px);
   border-bottom: 1px solid var(--color-border-light);
   height: var(--header-height);
}

[data-theme="dark"] .sk-site-header {
   background: rgba(15, 23, 42, 0.92);
}

.sk-site-nav {
   display: flex;
   align-items: center;
   max-width: var(--max-width);
   margin: 0 auto;
   padding: 0 1.5rem;
   height: 100%;
}

.sk-site-logo {
   font-size: 1.25rem;
   font-weight: 700;
   color: var(--color-text);
   letter-spacing: -0.02em;
   flex-shrink: 0;
   display: flex;
   align-items: center;
   gap: 0.5rem;
}

.sk-site-logo img {
   height: 40px;
   width: 40px;
   border-radius: 8px;
}

.sk-site-logo-text {
   font-family: var(--font-heading);
   font-size: 1.35rem;
   font-weight: 700;
   letter-spacing: -0.02em;
}

.sk-site-logo:hover {
   color: var(--color-accent);
   opacity: 0.85;
}

.sk-nav-list {
   display: flex;
   list-style: none;
   gap: 0.25rem;
   flex: 1;
   justify-content: center;
}

.sk-nav-item a {
   display: inline-flex;
   align-items: center;
   gap: 0.375rem;
   padding: 0.5rem 1.25rem;
   color: var(--color-text);
   font-weight: 600;
   font-size: 1rem;
   border-radius: var(--radius);
   transition: all var(--transition);
}

.sk-nav-item a:hover,
.sk-nav-item a.active {
   color: var(--color-accent);
   background: var(--color-accent-light);
}

.sk-nav-icon {
   font-size: 0.875rem;
   display: inline-block;
   width: 1em;
   text-align: center;
}

.sk-rss-link {
   display: flex;
   align-items: center;
   justify-content: center;
   border: 1px solid var(--color-border);
   border-radius: var(--radius);
   padding: 0.375rem 0.625rem;
   color: var(--color-text-secondary);
   font-size: 1rem;
   transition: all var(--transition);
   flex-shrink: 0;
   margin-left: auto;
   text-decoration: none;
}

.sk-rss-link:hover {
   color: #f26522;
   border-color: #f26522;
}

.sk-theme-toggle {
   background: none;
   border: 1px solid var(--color-border);
   border-radius: var(--radius);
   padding: 0.375rem 0.625rem;
   color: var(--color-text-secondary);
   cursor: pointer;
   font-size: 0.875rem;
   transition: all var(--transition);
   flex-shrink: 0;
   margin-left: 0.5rem;
}

.sk-theme-toggle:hover {
   color: var(--color-accent);
   border-color: var(--color-accent);
}

/* Language picker */
.sk-lang-picker {
   position: relative;
   flex-shrink: 0;
   margin-left: 0.5rem;
}

.sk-lang-btn {
   display: flex;
   align-items: center;
   gap: 0.375rem;
   background: none;
   border: 1px solid var(--color-border);
   border-radius: var(--radius);
   padding: 0.375rem 0.625rem;
   color: var(--color-text-secondary);
   cursor: pointer;
   font-size: 0.875rem;
   font-weight: 500;
   transition: all var(--transition);
}

.sk-lang-btn:hover {
   color: var(--color-accent);
   border-color: var(--color-accent);
}

.sk-lang-btn i {
   font-size: 1rem;
}

.sk-lang-current {
   font-size: 0.75rem;
   letter-spacing: 0.03em;
}

.sk-lang-menu {
   position: absolute;
   top: 100%;
   right: 0;
   margin-top: 0.375rem;
   background: var(--color-bg);
   border: 1px solid var(--color-border);
   border-radius: var(--radius);
   box-shadow: 0 4px 16px var(--color-shadow);
   min-width: 140px;
   z-index: 100;
   opacity: 0;
   visibility: hidden;
   transform: translateY(-4px);
   transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
}

.sk-lang-open .sk-lang-menu {
   opacity: 1;
   visibility: visible;
   transform: translateY(0);
}

.sk-lang-option {
   display: block;
   padding: 0.5rem 1rem;
   color: var(--color-text);
   font-size: 0.875rem;
   text-decoration: none;
   transition: background 0.1s, color 0.1s;
}

.sk-lang-option:first-child {
   border-radius: var(--radius) var(--radius) 0 0;
}

.sk-lang-option:last-child {
   border-radius: 0 0 var(--radius) var(--radius);
}

.sk-lang-option:hover {
   background: var(--color-accent-light);
   color: var(--color-accent);
}

.sk-lang-active {
   font-weight: 600;
   color: var(--color-accent);
}

.sk-lang-flag {
   width: 18px;
   height: 18px;
   border-radius: 50%;
   overflow: hidden;
   vertical-align: middle;
   margin-right: 0.5rem;
   display: inline-block;
   flex-shrink: 0;
}

/* Instant CSS tooltips for icon buttons */
.sk-rss-link,
.sk-theme-toggle,
.sk-lang-btn {
   position: relative;
}

.sk-rss-link::after,
.sk-theme-toggle::after,
.sk-lang-btn::after {
   content: attr(aria-label);
   position: absolute;
   top: 100%;
   left: 50%;
   transform: translateX(-50%);
   padding: 0.25rem 0.5rem;
   background: var(--color-text);
   color: var(--color-bg);
   font-size: 0.75rem;
   border-radius: 4px;
   white-space: nowrap;
   opacity: 0;
   pointer-events: none;
   transition: opacity 0.15s;
   margin-top: 0.375rem;
   z-index: 100;
}

.sk-rss-link:hover::after,
.sk-theme-toggle:hover::after,
.sk-lang-btn:hover::after {
   opacity: 1;
}

.sk-lang-open .sk-lang-btn::after {
   opacity: 0 !important;
}

/* ============================================================
   Main Content
   ============================================================ */
#main-content {
   flex: 1;
   display: flex;
   flex-direction: column;
}

.sk-main {
   flex: 1;
   max-width: var(--max-width);
   margin: 0 auto;
   padding: 2rem 1.5rem;
   width: 100%;
}

/* ============================================================
   Article Page
   ============================================================ */
.sk-article {
   max-width: var(--content-width);
   margin: 0 auto;
}

.sk-article-header {
   margin-bottom: 2.5rem;
   padding-bottom: 1.5rem;
   border-bottom: 1px solid var(--color-border-light);
}

.sk-article-title {
   font-size: 2.5rem;
   letter-spacing: -0.03em;
   line-height: 1.2;
   margin-bottom: 0.75rem;
}

.sk-article-summary {
   font-size: 1.25rem;
   color: var(--color-text-secondary);
   line-height: 1.6;
   margin-bottom: 1rem;
}

.sk-article-meta {
   display: flex;
   align-items: center;
   gap: 0.75rem;
   flex-wrap: wrap;
}

.sk-article-date {
   color: var(--color-text-muted);
   font-size: 0.9375rem;
}

.sk-article-read-time {
   color: var(--color-text-muted);
   font-size: 0.9375rem;
}

.sk-article-read-time::before {
   content: "·";
   margin: 0 0.375rem;
}

.sk-article-category {
   display: inline-block;
   padding: 0.25rem 0.75rem;
   background: var(--color-accent-light);
   color: var(--color-accent);
   font-size: 0.8125rem;
   font-weight: 600;
   border-radius: 100px;
   text-transform: uppercase;
   letter-spacing: 0.05em;
   margin-left: auto;
   align-self: flex-end;
}

/* Author byline */
.sk-article-byline {
   display: flex;
   align-items: center;
   gap: 0.75rem;
}

.sk-article-author-image {
   width: 44px;
   height: 44px;
   border-radius: 50%;
   object-fit: cover;
   flex-shrink: 0;
}

.sk-article-byline-text {
   display: flex;
   flex-direction: column;
   gap: 0;
   padding: 0.125rem 0;
}

.sk-article-author {
   font-weight: 600;
   font-size: 0.9375rem;
   color: var(--color-text);
   text-decoration: none;
}

a.sk-article-author:hover {
   color: var(--color-accent);
}

.sk-article-byline-details {
   display: flex;
   align-items: center;
   gap: 0;
}

/* Translation notice for AI-translated articles */
.sk-translation-notice {
   display: flex;
   align-items: center;
   gap: 0.5rem;
   padding: 0.625rem 1rem;
   margin-bottom: 1.5rem;
   background: var(--color-bg-alt);
   border: 1px solid var(--color-border-light);
   border-radius: var(--radius);
   font-size: 0.8125rem;
   color: var(--color-text-secondary);
}

.sk-translation-notice i {
   color: var(--color-text-muted);
   flex-shrink: 0;
}

.sk-translation-notice-link {
   color: var(--color-accent);
   white-space: nowrap;
   margin-left: auto;
   position: relative;
   z-index: 2;
}

/* Draft preview banner */
.sk-draft-banner {
   padding: 0.75rem 1rem;
   margin-bottom: 1.5rem;
   background: #fef3c7;
   border: 1px solid #f59e0b;
   border-radius: var(--radius);
   font-size: 0.875rem;
   color: #92400e;
}

[data-theme="dark"] .sk-draft-banner {
   background: #451a03;
   border-color: #d97706;
   color: #fde68a;
}

/* Hero image */
.sk-article-hero {
   margin: -0.5rem 0 2rem;
}

.sk-article-hero img {
   width: 100%;
   height: auto;
   border-radius: var(--radius-lg);
   display: block;
}

.sk-article-body {
   font-size: 1.0625rem;
   line-height: 1.8;
}

.sk-article-body h2 {
   font-size: 1.625rem;
   margin-top: 2.5rem;
}

.sk-article-body h3 {
   font-size: 1.25rem;
   margin-top: 2rem;
}

.sk-article-body img:not(.about-avatar) {
   border-radius: var(--radius);
   margin: 1.5rem 0;
}

.sk-article-body blockquote {
   border-left: 3px solid var(--color-accent);
   padding: 0.75rem 1.25rem;
   margin: 1.5rem 0;
   background: var(--color-bg-alt);
   border-radius: 0 var(--radius) var(--radius) 0;
   color: var(--color-text-secondary);
}

.sk-article-body blockquote p:last-child {
   margin-bottom: 0;
}

.sk-article-body ul,
.sk-article-body ol {
   padding-left: 1.5rem;
   margin-bottom: 1.25em;
}

.sk-article-body li {
   margin-bottom: 0.375em;
}

.sk-article-body pre {
   background: var(--color-code-bg);
   color: var(--color-code-text);
   border-radius: var(--radius-lg);
   padding: 1.25rem 1.5rem;
   margin: 1.5rem 0;
   overflow-x: auto;
   font-family: var(--font-mono);
   font-size: 0.875rem;
   line-height: 1.6;
}

.sk-article-body code {
   font-family: var(--font-mono);
   font-size: 0.875em;
}

.sk-article-body p code,
.sk-article-body li code {
   background: var(--color-bg-alt);
   padding: 0.15rem 0.4rem;
   border-radius: 4px;
   font-size: 0.85em;
   border: 1px solid var(--color-border-light);
}

.sk-article-body pre code {
   background: none;
   padding: 0;
   border: none;
   font-size: inherit;
}

/* Copy button */
.sk-code-copy-btn {
   position: absolute;
   top: 0.5rem;
   right: 0.5rem;
   background: var(--color-code-bg);
   color: var(--color-text-muted);
   border: 1px solid var(--color-border-light);
   border-radius: 4px;
   padding: 0.3rem 0.5rem;
   font-size: 0.8rem;
   cursor: pointer;
   opacity: 0;
   transition: opacity 0.2s, color 0.2s, border-color 0.2s;
}

.sk-article-body pre:hover .sk-code-copy-btn {
   opacity: 1;
}

.sk-code-copy-btn:hover {
   color: var(--color-accent);
   border-color: var(--color-accent);
}

.sk-code-copy-btn.copied {
   color: #10b981;
   border-color: #10b981;
   opacity: 1;
}

.sk-article-body table {
   width: 100%;
   border-collapse: collapse;
   margin: 1.5rem 0;
   font-size: 0.9375rem;
}

.sk-article-body th,
.sk-article-body td {
   padding: 0.75rem 1rem;
   text-align: left;
   border-bottom: 1px solid var(--color-border);
}

.sk-article-body th {
   font-weight: 600;
   background: var(--color-bg-alt);
}

.sk-article-body hr {
   border: none;
   height: 1px;
   background: var(--color-border);
   margin: 2.5rem 0;
}

.sk-article-body a {
   text-decoration: underline;
   text-underline-offset: 2px;
}

.sk-article-body a:hover {
   text-decoration-color: var(--color-accent-hover);
}

.sk-article-footer {
   margin-top: 3rem;
   padding-top: 1.5rem;
   border-top: 1px solid var(--color-border-light);
}

/* ============================================================
   Article Prev/Next Navigation
   ============================================================ */
.sk-article-nav {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 1rem;
   margin: 2rem 0 1.5rem;
}

.sk-article-nav-prev,
.sk-article-nav-next {
   display: flex;
   flex-direction: column;
   padding: 1rem 1.25rem;
   border: 1px solid var(--color-border-light);
   border-radius: var(--radius-lg);
   transition: all var(--transition);
   text-decoration: none;
}

.sk-article-nav-next {
   text-align: right;
}

.sk-article-nav-prev:hover,
.sk-article-nav-next:hover {
   border-color: var(--color-accent);
   box-shadow: 0 2px 8px var(--color-shadow);
}

.sk-article-nav-empty {
   visibility: hidden;
}

.sk-article-nav-label {
   font-size: 0.8125rem;
   color: var(--color-text-muted);
   font-weight: 500;
   margin-bottom: 0.25rem;
}

.sk-article-nav-title {
   font-size: 0.9375rem;
   font-weight: 600;
   color: var(--color-text);
   line-height: 1.4;
}

/* ============================================================
   Video
   ============================================================ */
.sk-article-body video {
   display: block;
   max-width: 100%;
   width: auto;
   margin: 1.5rem auto;
   border-radius: var(--radius-lg);
}

/* ============================================================
   Listing Title Row (with RSS)
   ============================================================ */
.sk-listing-title-row {
   display: flex;
   align-items: baseline;
   justify-content: space-between;
}

.sk-listing-rss {
   font-size: 0.875rem;
   color: var(--color-text-muted);
   text-decoration: none;
   white-space: nowrap;
}

.sk-listing-rss:hover {
   color: var(--color-accent);
}

/* ============================================================
   Section Group Titles
   ============================================================ */
.sk-listing-group-title {
   font-size: 1.35rem;
   margin-top: 2.5rem;
   margin-bottom: 1rem;
   padding-bottom: 0.5rem;
   border-bottom: 2px solid var(--color-accent-light);
   color: var(--color-text);
   scroll-margin-top: calc(var(--header-height) + 1rem);
}

.sk-listing-group-title:first-of-type {
   margin-top: 0.5rem;
}

/* Section jump navigation */
.sk-section-jump-nav {
   display: flex;
   flex-wrap: wrap;
   gap: 0.5rem;
   margin-bottom: 1.5rem;
}

.sk-jump-link {
   display: inline-block;
   padding: 0.375rem 0.875rem;
   background: var(--color-bg-alt);
   border: 1px solid var(--color-border);
   border-radius: 100px;
   font-size: 0.875rem;
   color: var(--color-text-secondary);
   text-decoration: none;
   transition: all var(--transition);
}

.sk-jump-link:hover {
   color: var(--color-accent);
   border-color: var(--color-accent);
   background: var(--color-accent-light);
}

/* ============================================================
   Tags
   ============================================================ */
.sk-tag-list {
   display: flex;
   flex-wrap: wrap;
   gap: 0.5rem;
   list-style: none;
   margin-bottom: 1.5rem;
}

.sk-tag-list-inline {
   display: inline-flex;
   margin-bottom: 0;
   gap: 0.375rem;
}

.sk-tag {
   display: inline-flex;
   align-items: center;
}

.sk-tag-link {
   display: inline-block;
   padding: 0.25rem 0.75rem;
   background: var(--color-bg-alt);
   border: 1px solid var(--color-border);
   border-radius: 100px;
   font-size: 0.8125rem;
   color: var(--color-text-secondary);
   transition: all var(--transition);
}

.sk-tag-link:hover {
   background: var(--color-accent-light);
   border-color: var(--color-accent);
   color: var(--color-accent);
}

.sk-tag-link:hover::after {
   content: " \2192";
}

.sk-tag-count {
   font-size: 0.8125rem;
   color: var(--color-text-muted);
   margin-left: 0.25rem;
}

.sk-tag-index {
   gap: 0.75rem;
}

.sk-tag-index .sk-tag {
   font-size: 0.9375rem;
}

.sk-tag-index .sk-tag-link {
   padding: 0.375rem 1rem;
   font-size: 0.9375rem;
}

/* ============================================================
   Post Listings — Multi-column grid with image previews
   ============================================================ */
.sk-listing {
   max-width: var(--max-width);
   margin: 0 auto;
}

.sk-listing-header {
   margin-bottom: 2rem;
}

.sk-listing-title {
   font-size: 2rem;
   margin-bottom: 0.25rem;
}

.sk-listing-description {
   color: var(--color-text-secondary);
   font-size: 1.0625rem;
   margin-bottom: 0.75rem;
}

.sk-listing-count {
   color: var(--color-text-muted);
   font-size: 0.9375rem;
}

.sk-post-list {
   list-style: none;
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
   gap: 1.25rem;
}

.sk-post-card {
   position: relative;
   background: var(--color-bg-card);
   border: 1px solid var(--color-border-light);
   border-radius: var(--radius-lg);
   transition: all var(--transition);
   overflow: hidden;
   display: flex;
   flex-direction: column;
}

.sk-post-card:hover {
   border-color: var(--color-border);
   box-shadow: 0 4px 16px var(--color-shadow);
   transform: translateY(-2px);
}

/* Invisible overlay link for entire card clickability */
.sk-post-link {
   position: absolute;
   inset: 0;
   z-index: 1;
}

.sk-post-card article {
   flex: 1;
   display: flex;
   flex-direction: column;
}

/* Image preview */
.sk-post-image-container {
   width: 100%;
   height: 180px;
   overflow: hidden;
   background: var(--color-bg-alt);
}

.sk-post-image {
   width: 100%;
   height: 100%;
   object-fit: cover;
}

.sk-post-content {
   padding: 1.25rem 1.5rem 0.75rem;
   flex: 1;
}

.sk-post-title {
   font-size: 1.125rem;
   margin: 0 0 0.375rem 0;
   letter-spacing: -0.01em;
   line-height: 1.4;
}

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

.sk-post-title a:hover {
   color: var(--color-accent);
}

.sk-post-date {
   display: block;
   color: var(--color-text-muted);
   font-size: 0.8125rem;
   margin-bottom: 0.5rem;
}

.sk-post-summary {
   color: var(--color-text-secondary);
   font-size: 0.875rem;
   line-height: 1.6;
   margin-bottom: 0;
   display: -webkit-box;
   -webkit-line-clamp: 3;
   -webkit-box-orient: vertical;
   overflow: hidden;
}

.sk-page-blog .sk-post-summary {
   -webkit-line-clamp: 4;
}

.sk-post-footer {
   padding: 0.75rem 1.5rem 1rem;
   display: flex;
   align-items: center;
   gap: 0.5rem;
   flex-wrap: wrap;
   position: relative;
   z-index: 2;
}

.sk-post-category a {
   display: inline-block;
   padding: 0.125rem 0.5rem;
   background: var(--color-accent-light);
   color: var(--color-accent);
   font-size: 0.75rem;
   font-weight: 600;
   border-radius: 100px;
   text-transform: uppercase;
   letter-spacing: 0.04em;
   position: relative;
   z-index: 2;
}

.sk-post-footer .sk-tag-list-inline {
   position: relative;
   z-index: 2;
}

.sk-post-footer .sk-tag-link {
   font-size: 0.75rem;
   padding: 0.125rem 0.5rem;
}


/* ============================================================
   Back / Breadcrumb Links
   ============================================================ */
.sk-back-link {
   margin: 0;
}

.sk-back-link a {
   color: var(--color-text-muted);
   font-size: 0.9375rem;
   transition: color var(--transition);
}

.sk-back-link a:hover {
   color: var(--color-accent);
}

/* ============================================================
   Promotional Boxes
   ============================================================ */
.sk-promo-container {
   margin: 2.5rem 0 1.5rem;
   display: flex;
   flex-direction: column;
   gap: 1rem;
}

.sk-promo {
   display: flex;
   gap: 0.75rem;
   padding: 1.25rem 1.5rem;
   border-radius: var(--radius-lg);
}

.sk-promo-emoji {
   font-size: 1.25rem;
   line-height: 1.6;
   flex-shrink: 0;
}

.sk-promo-text {
   font-size: 0.9375rem;
   line-height: 1.6;
}

.sk-promo-text a {
   font-weight: 600;
   text-decoration: none;
}

.sk-promo-text a:hover {
   text-decoration: underline;
}

.sk-promo-link {
   display: inline-block;
   margin-top: 0.5rem;
   padding: 0.375rem 0.75rem;
   border: 1px solid currentColor;
   border-radius: var(--radius);
   font-weight: 600;
   text-decoration: none;
}

.sk-promo-link::after {
   content: " →";
}

.sk-promo-link:hover {
   text-decoration: none;
   opacity: 0.8;
}

.sk-promo-highlight {
   background: #fef9e7;
   border: 1px solid #f5e6b8;
}

.sk-promo-info {
   background: #edf4ff;
   border: 1px solid #c7d9f5;
}

[data-theme="dark"] .sk-promo-highlight {
   background: #2a1a0a;
   border-color: #b45309;
}

[data-theme="dark"] .sk-promo-highlight .sk-promo-text {
   color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .sk-promo-highlight .sk-promo-text a {
   color: #fbbf24;
}

[data-theme="dark"] .sk-promo-info {
   background: #0c1a2e;
   border-color: #3b82f6;
}

[data-theme="dark"] .sk-promo-info .sk-promo-text {
   color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .sk-promo-info .sk-promo-text a {
   color: #60a5fa;
}

/* Open-source promotion style (green) */
.sk-promo-oss {
   background: #f0fdf4;
   border: 1px solid #86efac;
}

[data-theme="dark"] .sk-promo-oss {
   background: #052e16;
   border-color: #22c55e;
}

[data-theme="dark"] .sk-promo-oss .sk-promo-text {
   color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .sk-promo-oss .sk-promo-text a {
   color: #4ade80;
}

/* Inline promotion: slightly smaller, integrated into article flow */
.sk-promo-inline {
   margin: 2rem 0;
}

/* Follow-me footer: subtle conversational CTA */
.sk-author-follow {
   margin-top: 1.5rem;
   padding: 0 0.5rem;
}

.sk-author-follow p {
   color: var(--color-text-muted);
   font-size: 0.875rem;
   line-height: 1.6;
}

.sk-author-follow a {
   color: var(--color-accent);
   font-weight: 600;
   text-decoration: none;
}

.sk-author-follow a:hover {
   text-decoration: underline;
}

/* ============================================================
   Home Page
   ============================================================ */
.sk-page-home .sk-main {
   max-width: var(--max-width);
}

.sk-home-hero {
   position: relative;
   text-align: center;
   padding: 3rem 1rem 2rem;
   /* Fallback for older browsers */
   background: linear-gradient(135deg, #0F2A5E, #4A2D6B, #8B4513);
   /* OKLCH: vibrant arc through purple/magenta instead of muddy gray */
   background: linear-gradient(135deg in oklch, #0F2A5E, #8B4513);
   border-radius: var(--radius-lg);
   margin-bottom: 2rem;
   border: 1px solid var(--color-border-light);
   overflow: hidden;
}

.sk-home-hero > * {
   position: relative;
}

/* Hero logo left of title */
.sk-home-hero .sk-home-title {
   display: inline-flex;
   align-items: center;
   gap: 0.75rem;
}

.sk-home-hero .sk-home-title::before {
   content: '';
   display: block;
   width: 64px;
   height: 64px;
   min-width: 64px;
   background: url('/assets/theme/images/flinedev-logo.webp') center/contain no-repeat;
   filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* Hero profile section */
.home-hero-profile {
   display: flex;
   align-items: center;
   gap: 1.5rem;
   text-align: left;
   max-width: 640px;
   margin: 0 auto;
}

.home-avatar {
   width: 96px;
   height: 96px;
   border-radius: 50%;
   flex-shrink: 0;
   border: 3px solid rgba(255, 255, 255, 0.3);
   box-shadow: 0 2px 8px var(--color-shadow);
}

.home-hero-text p {
   font-size: 1.125rem;
   color: var(--color-text-secondary);
   line-height: 1.6;
   margin-bottom: 0;
}

.home-hero-text strong {
   color: var(--color-text);
}

/* Section "more" links */
.home-section-more {
   text-align: right;
   margin-top: 0.5rem;
   margin-bottom: 0;
}

.home-section-more a {
   font-size: 0.9375rem;
   font-weight: 600;
   color: var(--color-accent);
}

.sk-home-title {
   font-size: 2.75rem;
   letter-spacing: -0.03em;
   margin-bottom: 0.5rem;
   color: #fff;
}

.sk-home-subtitle {
   font-size: 1.25rem;
   color: rgba(255, 255, 255, 0.85);
   max-width: 600px;
   margin: 0 auto 0;
   line-height: 1.6;
}

.sk-home-content {
   margin-bottom: 2rem;
}

.sk-home-content h2 {
   font-size: 1.5rem;
   margin-top: 2.5rem;
   margin-bottom: 1rem;
   padding-bottom: 0.5rem;
   border-bottom: 2px solid var(--color-accent-light);
}

/* Homepage App Cards */
.home-apps-grid,
.home-tools-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 1rem;
   margin-bottom: 1rem;
}

@keyframes fadeInUp {
   from { opacity: 0; transform: translateY(12px); }
   to { opacity: 1; transform: translateY(0); }
}

.home-card {
   display: flex;
   align-items: flex-start;
   gap: 1rem;
   padding: 1.25rem;
   border-radius: var(--radius-lg);
   text-decoration: none;
   color: #fff;
   transition: all var(--transition);
   box-shadow: 0 2px 8px var(--color-shadow);
   animation: fadeInUp 0.4s ease both;
}

.home-apps-grid .home-card:nth-child(1) { animation-delay: 0.05s; }
.home-apps-grid .home-card:nth-child(2) { animation-delay: 0.1s; }
.home-apps-grid .home-card:nth-child(3) { animation-delay: 0.15s; }
.home-apps-grid .home-card:nth-child(4) { animation-delay: 0.2s; }
.home-apps-grid .home-card:nth-child(5) { animation-delay: 0.25s; }

.home-card:hover {
   transform: translateY(-3px);
   box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
   color: #fff;
   outline: 2px solid rgba(255, 255, 255, 0.35);
   outline-offset: -2px;
}

.home-card-appicon {
   width: 64px;
   height: 64px;
   border-radius: 22.37%;
   flex-shrink: 0;
   box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.home-card-body h3 {
   font-size: 1.125rem;
   font-weight: 700;
   margin-top: 0;
   margin-bottom: 0.25rem;
   color: inherit;
}

.home-card-appicon-circle {
   border-radius: 50%;
}

.home-card-body p {
   font-size: 0.875rem;
   line-height: 1.5;
   opacity: 0.9;
   margin-bottom: 0.375rem;
}

.home-card-platforms {
   font-size: 0.75rem;
   opacity: 0.7;
   letter-spacing: 0.02em;
}

.platform-item i {
   margin-right: 0.25rem;
   font-size: 0.8em;
}

/* Individual app card colors — muted, icon-derived, cohesive */
.home-card-translatekit { background: linear-gradient(135deg, hsl(200, 50%, 42%), hsl(200, 50%, 36%)); }
.home-card-pleydia { background: linear-gradient(135deg, hsl(350, 45%, 42%), hsl(350, 45%, 36%)); }
.home-card-freemiumkit { background: linear-gradient(135deg, hsl(160, 45%, 38%), hsl(160, 45%, 32%)); }
.home-card-crosscraft { background: linear-gradient(135deg, hsl(220, 50%, 44%), hsl(220, 50%, 38%)); }
.home-card-focusbeats { background: linear-gradient(135deg, hsl(20, 50%, 42%), hsl(20, 50%, 36%)); }
.home-card-posters { background: linear-gradient(135deg, hsl(0, 45%, 42%), hsl(0, 45%, 36%)); }

/* Open Source grid */
.home-oss-grid {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
   gap: 0.75rem;
   margin-bottom: 1rem;
}

.home-oss-card {
   display: block;
   padding: 1rem 1.25rem;
   background: var(--color-bg-card);
   border: 1px solid var(--color-border);
   border-radius: var(--radius);
   text-decoration: none;
   color: var(--color-text);
   transition: all var(--transition);
   animation: fadeInUp 0.4s ease both;
   line-height: 1.5;
}

.home-oss-grid .home-oss-card:nth-child(1) { animation-delay: 0.05s; }
.home-oss-grid .home-oss-card:nth-child(2) { animation-delay: 0.1s; }
.home-oss-grid .home-oss-card:nth-child(3) { animation-delay: 0.15s; }
.home-oss-grid .home-oss-card:nth-child(4) { animation-delay: 0.2s; }
.home-oss-grid .home-oss-card:nth-child(5) { animation-delay: 0.25s; }
.home-oss-grid .home-oss-card:nth-child(6) { animation-delay: 0.3s; }

.home-oss-card:hover {
   border-color: var(--color-accent);
   box-shadow: 0 2px 12px var(--color-shadow);
   transform: translateY(-1px);
   color: var(--color-text);
}

.home-oss-header {
   display: flex;
   align-items: center;
   justify-content: space-between;
   margin-bottom: 0.25rem;
}

.home-oss-card strong {
   display: block;
   font-size: 1rem;
   color: var(--color-accent);
}

.home-oss-stars {
   display: inline-flex;
   align-items: center;
   gap: 0.25rem;
   font-size: 0.75rem;
   font-weight: 600;
   color: var(--color-text-muted);
   background: var(--color-bg-alt);
   padding: 0.125rem 0.5rem;
   border-radius: 100px;
   white-space: nowrap;
}

.home-oss-stars::before {
   content: "\2605";
   color: #eab308;
}

.home-oss-card > span {
   font-size: 0.875rem;
   color: var(--color-text-secondary);
   line-height: 1.5;
}

[data-theme="dark"] .home-card {
   color: #fff;
}

.sk-home-recent {
   margin-top: 1rem;
}

.sk-home-section-title {
   font-size: 1.5rem;
   margin-bottom: 1.25rem;
   margin-top: 0;
}

.sk-home-all-posts {
   text-align: center;
   margin-top: 2rem;
}

.sk-home-all-posts a {
   display: inline-block;
   padding: 0.75rem 2rem;
   background: var(--color-accent);
   color: #fff;
   border-radius: var(--radius);
   font-weight: 600;
   font-size: 1rem;
   transition: all var(--transition);
   box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.sk-home-all-posts a:hover {
   background: var(--color-accent-hover);
   color: #fff;
   transform: translateY(-1px);
   box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

[data-theme="dark"] .sk-home-all-posts a {
   background: #2563EB;
}

[data-theme="dark"] .sk-home-all-posts a:hover {
   background: #1D4ED8;
}

/* ============================================================
   Static Pages — Wider for about, privacy, etc.
   ============================================================ */
.sk-static-page {
   max-width: var(--wide-content-width);
   margin: 0 auto;
}

.sk-static-page .sk-article-body {
   font-size: 1.0625rem;
   line-height: 1.8;
}

.sk-static-page .sk-article-body table {
   font-size: 0.875rem;
}

.sk-static-page .sk-article-body .app-detail-icon {
   max-width: 80px;
   border-radius: 22.37%;
}

.sk-static-page .sk-article-body .app-detail-icon-circle {
   border-radius: 50%;
}

/* Snippet Mastodon source link */
.sk-snippet-source {
   margin-top: 2rem;
   font-size: 0.9rem;
   color: var(--color-text-muted);
}

.sk-snippet-source i {
   margin-right: 0.25rem;
   color: #6364ff;
}

.sk-snippet-source a {
   color: var(--color-text-secondary);
   text-decoration: none;
}

.sk-snippet-source a:hover {
   color: var(--color-accent);
   text-decoration: underline;
}

/* About page — full width + two-column grid */
body[data-slug="about"] .sk-static-page {
   max-width: var(--max-width);
}

/* Apps page — full width for 2-column grid */
body[data-slug="apps"] .sk-static-page {
   max-width: var(--max-width);
}

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

/* ============================================================
   Error Page (404)
   ============================================================ */
.sk-error-page {
   text-align: center;
   padding: 4rem 0;
}

.sk-error-code {
   font-size: 6rem;
   font-weight: 800;
   color: var(--color-accent);
   line-height: 1;
   margin-bottom: 0.5rem;
   letter-spacing: -0.04em;
}

.sk-error-message {
   font-size: 1.25rem;
   color: var(--color-text-secondary);
   margin-bottom: 2rem;
   max-width: 480px;
   margin-left: auto;
   margin-right: auto;
}

.sk-error-action a {
   display: inline-block;
   padding: 0.625rem 1.5rem;
   background: var(--color-accent);
   color: #fff;
   border-radius: var(--radius);
   font-weight: 500;
   transition: background var(--transition);
}

.sk-error-action a:hover {
   background: var(--color-accent-hover);
   color: #fff;
}

/* ============================================================
   Footer — Horizontal one-line layout
   ============================================================ */
.sk-site-footer {
   background: var(--color-bg-alt);
   border-top: 1px solid var(--color-border-light);
   padding: 1.25rem 0;
   padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
   margin-top: 3rem;
}

.sk-footer-inner {
   display: flex;
   align-items: center;
   justify-content: space-between;
   max-width: var(--max-width);
   margin: 0 auto;
   padding: 0 1.5rem;
   gap: 1.5rem;
}

.sk-footer-left {
   display: flex;
   align-items: center;
}

.sk-footer-center {
   display: flex;
   align-items: center;
   justify-content: center;
}

.sk-footer-right {
   display: flex;
   align-items: center;
}

.sk-footer-links {
   display: flex;
   gap: 1.25rem;
   list-style: none;
   margin: 0;
   line-height: 1;
}

.sk-footer-links a {
   color: var(--color-text-secondary);
   font-size: 0.8125rem;
   transition: color var(--transition);
}

.sk-footer-links a:hover {
   color: var(--color-accent);
}

.sk-social-links {
   display: flex;
   gap: 0.75rem;
   list-style: none;
   margin: 0;
   line-height: 1;
}

.sk-social-links a {
   display: inline-flex;
   align-items: center;
   gap: 0.375rem;
   color: var(--color-text-secondary);
   font-size: 0.8125rem;
   font-weight: 500;
   transition: color var(--transition);
}

.sk-social-links a:hover {
   color: var(--color-accent);
}

.sk-social-icon {
   flex-shrink: 0;
}

.sk-copyright {
   color: var(--color-text-secondary);
   font-size: 0.8125rem;
   white-space: nowrap;
   margin: 0;
   line-height: 1;
}

.sk-attribution-link {
   text-decoration: none;
}

/* ============================================================
   Empty state
   ============================================================ */
.sk-empty {
   color: var(--color-text-muted);
   font-style: italic;
   text-align: center;
   padding: 2rem;
}

/* ============================================================
   Ghost CMS Content Styling (kg-* classes)
   ============================================================ */

/* Callout Cards */
.kg-callout-card {
   display: flex;
   gap: 0.75rem;
   padding: 1.25rem 1.5rem;
   border-radius: var(--radius-lg);
   margin: 1.5rem 0;
}

.kg-callout-card-yellow {
   background: #fef9e7;
   border: 1px solid #f5e6b8;
}

.kg-callout-card-blue {
   background: #edf4ff;
   border: 1px solid #c7d9f5;
}

.kg-callout-card-grey {
   background: var(--color-bg-alt);
   border: 1px solid var(--color-border);
}

.kg-callout-card-green {
   background: #ecfdf5;
   border: 1px solid #a7f3d0;
}

.kg-callout-card-red {
   background: #fef2f2;
   border: 1px solid #fecaca;
}

.kg-callout-card-pink {
   background: #fdf2f8;
   border: 1px solid #fbcfe8;
}

.kg-callout-card-purple {
   background: #f5f3ff;
   border: 1px solid #ddd6fe;
}

.kg-callout-emoji {
   font-size: 1.25rem;
   line-height: 1.6;
   flex-shrink: 0;
}

.kg-callout-text {
   font-size: 0.9375rem;
   line-height: 1.6;
}

.kg-callout-text p:last-child {
   margin-bottom: 0;
}

/* Bookmark Cards (Link Previews) */
.kg-bookmark-card {
   margin: 1.5rem 0;
}

.kg-bookmark-container {
   display: flex;
   text-decoration: none;
   border: 1px solid var(--color-border);
   border-radius: var(--radius-lg);
   overflow: hidden;
   transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
   background: var(--color-bg);
}

.kg-bookmark-container:hover {
   border-color: var(--color-accent);
   box-shadow: 0 4px 12px var(--color-shadow);
   transform: translateY(-1px);
}

.sk-article-body .kg-bookmark-container,
.sk-article-body .kg-bookmark-container:hover,
.sk-article-body .kg-bookmark-container *,
.sk-article-body .kg-bookmark-container:hover * {
   text-decoration: none;
}

.kg-bookmark-content {
   flex: 1;
   padding: 1rem 1.25rem;
   display: flex;
   flex-direction: column;
   gap: 0.375rem;
   min-width: 0;
}

.kg-bookmark-title {
   font-size: 0.9375rem;
   font-weight: 600;
   color: var(--color-text);
   line-height: 1.4;
   display: -webkit-box;
   -webkit-line-clamp: 2;
   -webkit-box-orient: vertical;
   overflow: hidden;
}

.kg-bookmark-description {
   font-size: 0.8125rem;
   color: var(--color-text-secondary);
   line-height: 1.5;
   display: -webkit-box;
   -webkit-line-clamp: 2;
   -webkit-box-orient: vertical;
   overflow: hidden;
}

.kg-bookmark-metadata {
   display: flex;
   align-items: center;
   gap: 0.5rem;
   font-size: 0.75rem;
   color: var(--color-text-muted);
   margin-top: auto;
}

.kg-bookmark-metadata span {
   text-decoration: none;
}

.kg-bookmark-icon {
   width: 16px;
   height: 16px;
   border-radius: 2px;
   flex-shrink: 0;
}

.kg-bookmark-thumbnail {
   width: 160px;
   min-height: 100%;
   flex-shrink: 0;
}

.kg-bookmark-thumbnail img {
   width: 100%;
   height: 100%;
   object-fit: cover;
}

/* Hide thumbnail container when image is hidden via onerror */
.kg-bookmark-thumbnail:has(img[style*="display: none"]),
.kg-bookmark-thumbnail:has(img[style*="display:none"]) {
   display: none;
}

@media (max-width: 650px) {
   .kg-bookmark-container {
      flex-direction: column;
   }

   .kg-bookmark-thumbnail {
      width: 100%;
      height: 140px;
      order: -1;
   }
}

/* Link Cards (GitHub repos, etc.) */
.sk-link-card {
   display: block;
   padding: 1rem 1.25rem;
   border: 1px solid var(--color-border);
   border-radius: var(--radius-lg);
   text-decoration: none;
   color: var(--color-text);
   transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
   margin: 1.5rem 0;
}

.sk-link-card:hover {
   border-color: var(--color-accent);
   box-shadow: 0 4px 12px var(--color-shadow);
   transform: translateY(-1px);
}

.sk-article-body .sk-link-card,
.sk-article-body .sk-link-card:hover,
.sk-article-body .sk-link-card *,
.sk-article-body .sk-link-card:hover * {
   text-decoration: none;
}

.sk-link-card-source {
   display: flex;
   align-items: center;
   gap: 0.375rem;
   font-size: 0.75rem;
   color: var(--color-text-muted);
   margin-bottom: 0.375rem;
}

.sk-link-card-source svg {
   width: 16px;
   height: 16px;
   fill: currentColor;
}

.sk-link-card-title {
   display: block;
   font-size: 1rem;
   font-weight: 600;
   color: var(--color-accent);
   margin-bottom: 0.25rem;
}

.sk-link-card-description {
   display: block;
   font-size: 0.875rem;
   color: var(--color-text-secondary);
   line-height: 1.5;
}

/* Image Cards */
.kg-image-card {
   margin: 1.5rem 0;
}

.kg-image-card.kg-card-hascaption {
   text-align: center;
}

.kg-image {
   border-radius: var(--radius);
   margin: 0 auto;
}

/* Width modifiers */
.kg-width-wide {
   max-width: var(--wide-content-width);
   margin-left: auto;
   margin-right: auto;
}

.kg-width-full {
   max-width: 100vw;
   margin-left: calc(-50vw + 50%);
   margin-right: calc(-50vw + 50%);
}

/* Figure captions */
figcaption,
.kg-card figcaption {
   font-size: 0.8125rem;
   color: var(--color-text-muted);
   text-align: center;
   margin-top: 0.5rem;
   line-height: 1.5;
}

/* Video Cards */
.kg-video-card {
   margin: 1.5rem 0;
}

.kg-video-container {
   position: relative;
   border-radius: var(--radius-lg);
   overflow: hidden;
   background: #000;
}

.kg-video-container video {
   width: 100%;
   display: block;
   border-radius: var(--radius-lg);
}

.kg-video-overlay {
   position: absolute;
   inset: 0;
   display: flex;
   align-items: center;
   justify-content: center;
   background: rgba(0, 0, 0, 0.15);
   transition: opacity var(--transition);
   cursor: pointer;
}

.kg-video-large-play-icon {
   width: 64px;
   height: 64px;
   background: rgba(255, 255, 255, 0.9);
   border-radius: 50%;
   border: none;
   cursor: pointer;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: all var(--transition);
}

.kg-video-large-play-icon svg {
   width: 24px;
   height: 24px;
   fill: var(--color-text);
   margin-left: 3px;
}

.kg-video-large-play-icon:hover {
   transform: scale(1.05);
   background: #fff;
}

.kg-video-player-container {
   position: absolute;
   bottom: 0;
   left: 0;
   right: 0;
   padding: 0.5rem 1rem;
   background: linear-gradient(transparent, rgba(0,0,0,0.6));
}

.kg-video-hide {
   display: none;
}

.kg-video-player {
   display: flex;
   align-items: center;
   gap: 0.5rem;
   color: #fff;
   font-size: 0.75rem;
}

.kg-video-player button {
   background: none;
   border: none;
   cursor: pointer;
   padding: 0.25rem;
}

.kg-video-player svg {
   width: 16px;
   height: 16px;
   fill: #fff;
}

.kg-video-seek-slider,
.kg-video-volume-slider {
   flex: 1;
   height: 4px;
   -webkit-appearance: none;
   appearance: none;
   background: rgba(255,255,255,0.3);
   border-radius: 2px;
   outline: none;
}

.kg-video-volume-slider {
   flex: 0 0 60px;
}

/* Code Cards */
.kg-code-card {
   margin: 1.5rem 0;
}

.kg-code-card figcaption {
   font-size: 0.75rem;
   color: var(--color-text-muted);
   text-align: left;
   margin-top: 0.375rem;
   font-family: var(--font-mono);
}

/* Responsive iframes (YouTube embeds without wrapper) */
.sk-article-body iframe[src*="youtube"] {
   width: 100%;
   aspect-ratio: 16 / 9;
   height: auto;
   border: none;
   border-radius: var(--radius-lg);
   margin: 1.5rem 0;
   display: block;
}

/* Embed Cards (social media, etc.) */
.kg-embed-card {
   margin: 1.5rem 0;
   position: relative;
   padding-bottom: 56.25%; /* 16:9 aspect ratio */
   height: 0;
   overflow: hidden;
}

.kg-embed-card iframe {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
}

/* Ghost HTML card markers */
.kg-card {
   margin: 1.5rem 0;
}

/* Ghost video cards: strip custom player, show native controls */
.kg-video-card {
   max-width: 100%;
}

.kg-video-container {
   position: relative;
   max-width: 100%;
}

.kg-video-container video {
   width: 100%;
   height: auto;
   display: block;
   background-size: contain !important;
   background-position: center !important;
}

/* Hide Ghost's custom video player UI (Ghost JS not loaded) */
.kg-video-overlay,
.kg-video-player-container {
   display: none !important;
}

/* Prevent horizontal scroll from wide Ghost elements or embeds */
.sk-article-body {
   overflow-x: hidden;
}

.sk-article-body .kg-width-wide,
.sk-article-body .kg-width-full {
   max-width: 100%;
}

/* Social embeds: constrain width */
.sk-article-body .twitter-tweet,
.sk-article-body .bluesky-embed,
.sk-article-body iframe {
   max-width: 100% !important;
}

/* ============================================================
   Hide category badge on article cards (single-topic site)
   ============================================================ */
.sk-post-category {
   display: none;
}

/* ============================================================
   About Page
   ============================================================ */
.about-profile {
   display: flex;
   align-items: flex-start;
   gap: 2rem;
   margin-bottom: 2rem;
}

.about-avatar {
   width: 200px;
   height: auto;
   border-radius: 16px;
   flex-shrink: 0;
   border: 3px solid var(--color-border-light);
   box-shadow: 0 4px 12px var(--color-shadow);
   margin: 0;
   align-self: flex-start;
}

.about-intro p {
   font-size: 1.125rem;
   line-height: 1.7;
   margin-top: 0;
}

.about-social {
   display: flex;
   flex-wrap: wrap;
   gap: 0.75rem;
   margin-top: 1rem;
}

.about-social-link {
   display: inline-flex;
   align-items: center;
   gap: 0.5rem;
   padding: 0.625rem 1.25rem;
   background: var(--color-bg-card);
   border: 1px solid var(--color-border);
   border-radius: var(--radius);
   color: var(--color-text);
   font-weight: 500;
   font-size: 0.9375rem;
   transition: all var(--transition);
   text-decoration: none;
}

.about-social-link:hover {
   border-color: var(--color-accent);
   color: var(--color-accent);
   box-shadow: 0 2px 8px var(--color-shadow);
}

.sk-article-body .about-social-link {
   text-decoration: none;
}

.about-social-link svg {
   flex-shrink: 0;
}

/* ============================================================
   Apps Page
   ============================================================ */
.apps-page {
   max-width: var(--max-width);
}

.apps-section-grid {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 1.25rem;
}

.apps-section h2 {
   font-size: 1.5rem;
   margin-top: 2.5rem;
   margin-bottom: 1.25rem;
   padding-bottom: 0.5rem;
   border-bottom: 2px solid var(--color-accent-light);
}

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

.app-detail {
   display: flex;
   align-items: flex-start;
   gap: 1.5rem;
   padding: 1.5rem;
   margin-bottom: 1.25rem;
   background: var(--color-bg-card);
   border: 1px solid var(--color-border-light);
   border-radius: var(--radius-lg);
   transition: all var(--transition);
   position: relative;
   animation: fadeInUp 0.4s ease both;
}

/* Staggered animation delays for Developer Tools */
.apps-section:first-child .app-detail:nth-child(1) { animation-delay: 0.05s; }
.apps-section:first-child .app-detail:nth-child(2) { animation-delay: 0.1s; }

/* Staggered animation delays for Consumer Apps */
.apps-section:nth-child(2) .app-detail:nth-child(1) { animation-delay: 0.15s; }
.apps-section:nth-child(2) .app-detail:nth-child(2) { animation-delay: 0.2s; }
.apps-section:nth-child(2) .app-detail:nth-child(3) { animation-delay: 0.25s; }
.apps-section:nth-child(2) .app-detail:nth-child(4) { animation-delay: 0.3s; }
.apps-section:nth-child(2) .app-detail:nth-child(5) { animation-delay: 0.35s; }
.apps-section:nth-child(2) .app-detail:nth-child(6) { animation-delay: 0.4s; }

.app-detail:hover {
   border-color: var(--color-border);
   box-shadow: 0 4px 16px var(--color-shadow);
}

.app-detail-icon-link {
   flex-shrink: 0;
   line-height: 0;
   display: block;
   width: 96px;
   height: 96px;
}

.app-detail-icon {
   width: 96px;
   min-width: 96px;
   height: 96px;
   aspect-ratio: 1;
   border-radius: 22.37%;
   display: block;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
   object-fit: cover;
   margin: 0 !important;
}

.app-detail-icon-circle {
   border-radius: 50%;
}

.app-detail-body h3 {
   font-size: 1.25rem;
   margin-bottom: 0.25rem;
   margin-top: 0 !important;
}

.app-detail-body h3 a {
   color: var(--color-text);
   text-decoration: none;
}

.app-detail-body h3 a:hover {
   color: var(--color-accent);
}

.app-detail-tagline {
   font-size: 0.9375rem;
   color: var(--color-accent);
   font-style: italic;
   margin-bottom: 0.5rem;
   opacity: 0.7;
}

.app-detail-body > p {
   font-size: 0.9375rem;
   color: var(--color-text-secondary);
   line-height: 1.6;
   margin-bottom: 0.75rem;
}

.app-detail-meta {
   display: flex;
   flex-direction: column;
   align-items: flex-start;
   gap: 0.5rem;
}

.app-detail-platforms {
   font-size: 0.8125rem;
   color: var(--color-text-muted);
   font-weight: 500;
}

.app-detail-download {
   display: inline-block;
   padding: 0.375rem 1rem;
   background: var(--color-accent);
   color: #fff;
   border-radius: 100px;
   font-size: 0.8125rem;
   font-weight: 600;
   transition: all var(--transition);
   text-decoration: none !important;
}

.app-detail-download:hover {
   background: var(--color-accent-hover);
   color: #fff;
}

[data-theme="dark"] .app-detail-download {
   background: #2563EB;
}

[data-theme="dark"] .app-detail-download:hover {
   background: #1D4ED8;
}

/* ============================================================
   Responsive Design
   ============================================================ */
@media (max-width: 1050px) {
   .home-apps-grid,
   .home-tools-grid {
      grid-template-columns: repeat(2, 1fr);
   }
}

@media (max-width: 800px) {
   .home-apps-grid,
   .home-tools-grid {
      grid-template-columns: 1fr;
   }
}

@media (max-width: 900px) {
   :root {
      --header-height: 56px;
   }

   .sk-site-nav {
      padding: 0 1rem;
   }

   .sk-main {
      padding: 1.5rem 1rem;
   }

   h1 { font-size: 1.75rem; }
   h2 { font-size: 1.375rem; }

   .sk-article-title {
      font-size: 1.875rem;
   }

   .sk-article-summary {
      font-size: 1.125rem;
   }

   .sk-article-author-image {
      width: 38px;
      height: 38px;
   }

   .sk-home-hero {
      padding: 2rem 1rem 1.5rem;
   }

   .home-hero-profile {
      flex-direction: column;
      text-align: center;
      align-items: center;
   }

   .home-avatar {
      width: 80px;
      height: 80px;
   }

   .sk-home-title {
      font-size: 2rem;
   }

   .sk-home-subtitle {
      font-size: 1.0625rem;
   }

   .home-oss-grid {
      grid-template-columns: 1fr;
   }

   .apps-section-grid {
      grid-template-columns: 1fr;
   }

   .about-content-grid {
      grid-template-columns: 1fr;
   }

   .about-profile {
      flex-direction: column;
      align-items: center;
   }

   .about-intro {
      align-self: stretch;
   }

   .about-avatar {
      width: 320px;
      height: auto;
   }

   .about-social {
      justify-content: center;
   }

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

   .sk-post-list {
      grid-template-columns: 1fr;
   }

   .sk-article-nav {
      grid-template-columns: 1fr;
   }

   .sk-article-nav-next {
      text-align: left;
   }

   .sk-nav-list {
      gap: 0;
   }

   .sk-nav-item a {
      padding: 0.5rem 0.75rem;
      font-size: 0.875rem;
   }

   .sk-footer-inner {
      flex-direction: column;
      text-align: center;
      gap: 0.75rem;
   }

   .sk-footer-left,
   .sk-footer-center {
      flex-direction: column;
      gap: 0.5rem;
   }

   .sk-footer-links {
      flex-wrap: wrap;
      justify-content: center;
   }

   .sk-social-links {
      justify-content: center;
   }

   .sk-error-code {
      font-size: 4rem;
   }

   .kg-bookmark-container {
      flex-direction: column;
   }

   .kg-bookmark-thumbnail {
      width: 100%;
      height: 160px;
   }
}

/* Dark mode overrides for Ghost content */
[data-theme="dark"] .kg-callout-card-yellow {
   background: #3d3520;
   border-color: #5a4d2e;
}

[data-theme="dark"] .kg-callout-card-blue {
   background: #1e2a3d;
   border-color: #2d3f5a;
}

[data-theme="dark"] .kg-callout-card-green {
   background: #1a332a;
   border-color: #2a4d3e;
}

[data-theme="dark"] .kg-callout-card-red {
   background: #3d1e1e;
   border-color: #5a2d2d;
}

[data-theme="dark"] .kg-callout-card-pink {
   background: #3d1e2e;
   border-color: #5a2d44;
}

[data-theme="dark"] .kg-callout-card-purple {
   background: #2a1e3d;
   border-color: #3d2d5a;
}

@media (max-width: 650px) {
   .sk-site-logo-text {
      display: none;
   }

   .sk-site-logo img {
      height: 32px;
      width: 32px;
   }

   .sk-theme-toggle {
      display: none;
   }

   .sk-site-nav {
      height: auto;
      padding: 0.5rem 0.75rem;
      gap: 0.25rem;
   }

   .sk-nav-list {
      gap: 0;
      flex: 1;
      justify-content: flex-start;
   }

   .sk-nav-item a {
      padding: 0.375rem 0.5rem;
      font-size: 0.8125rem;
   }

   .sk-nav-icon {
      display: none;
   }

   .sk-lang-current {
      display: none;
   }

   .sk-post-image-container {
      height: auto;
      aspect-ratio: 16/9;
   }
}

/* ============================================
   Search Modal
   ============================================ */

.sk-search-btn {
   display: flex;
   align-items: center;
   background: none;
   border: 1px solid var(--color-border);
   border-radius: var(--radius);
   padding: 0.375rem 0.625rem;
   color: var(--color-text-secondary);
   cursor: pointer;
   font-size: 1rem;
   transition: all var(--transition);
   flex-shrink: 0;
   margin-left: 0.5rem;
   position: relative;
}

.sk-search-btn:hover {
   color: var(--color-accent);
   border-color: var(--color-accent);
}

.sk-search-btn .sk-tooltip {
   position: absolute;
   top: 100%;
   left: 50%;
   transform: translateX(-50%);
   margin-top: 0.5rem;
   background: var(--color-text);
   color: var(--color-bg);
   font-size: 0.75rem;
   font-weight: 500;
   padding: 0.25rem 0.5rem;
   border-radius: 4px;
   white-space: nowrap;
   opacity: 0;
   visibility: hidden;
   transition: opacity 0.15s, visibility 0.15s;
   pointer-events: none;
}

.sk-search-btn:hover .sk-tooltip {
   opacity: 1;
   visibility: visible;
}

.sk-search-overlay {
   position: fixed;
   inset: 0;
   background: rgba(0, 0, 0, 0.5);
   z-index: 1000;
   display: flex;
   align-items: flex-start;
   justify-content: center;
   padding-top: min(15vh, 120px);
   opacity: 0;
   transition: opacity 0.15s;
}

.sk-search-overlay.sk-search-visible {
   opacity: 1;
}

.sk-search-modal {
   background: var(--color-bg);
   border: 1px solid var(--color-border);
   border-radius: var(--radius-lg);
   box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
   width: min(600px, 90vw);
   max-height: min(500px, 70vh);
   display: flex;
   flex-direction: column;
   overflow: hidden;
   transform: translateY(-8px);
   transition: transform 0.15s;
}

.sk-search-visible .sk-search-modal {
   transform: translateY(0);
}

.sk-search-header {
   display: flex;
   align-items: center;
   gap: 0.75rem;
   padding: 1rem 1.25rem;
   border-bottom: 1px solid var(--color-border-light);
}

.sk-search-close {
   background: none;
   border: none;
   color: var(--color-text-muted);
   cursor: pointer;
   font-size: 1.25rem;
   padding: 0.25rem;
   line-height: 1;
   transition: color var(--transition);
   flex-shrink: 0;
}

.sk-search-close:hover {
   color: var(--color-text);
}

.sk-search-input {
   flex: 1;
   border: none;
   outline: none;
   font-size: 1.125rem;
   font-family: var(--font-sans);
   color: var(--color-text);
   background: transparent;
}

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

.sk-search-kbd {
   font-size: 0.6875rem;
   color: var(--color-text-muted);
   background: var(--color-bg-alt);
   border: 1px solid var(--color-border-light);
   border-radius: 4px;
   padding: 0.125rem 0.375rem;
   font-family: var(--font-mono);
   flex-shrink: 0;
}

.sk-search-results {
   overflow-y: auto;
   padding: 0.5rem 0;
   position: relative;
}

.sk-search-section {
   padding: 0.75rem 1.25rem 0.375rem;
   font-size: 0.6875rem;
   font-weight: 700;
   letter-spacing: 0.08em;
   text-transform: uppercase;
   color: var(--color-text-muted);
}

.sk-search-tag {
   display: block;
   padding: 0.5rem 1.25rem;
   color: var(--color-text);
   text-decoration: none;
   font-size: 0.9375rem;
   transition: background var(--transition);
}

.sk-search-tag:hover {
   background: var(--color-bg-alt);
}

.sk-search-tag::before {
   content: "# ";
   color: var(--color-accent);
   font-weight: 600;
}

.sk-search-post {
   display: block;
   padding: 0.625rem 1.25rem;
   text-decoration: none;
   transition: background var(--transition);
}

.sk-search-post:hover {
   background: var(--color-bg-alt);
}

.sk-search-post-title {
   display: block;
   color: var(--color-text);
   font-size: 0.9375rem;
   font-weight: 500;
   line-height: 1.4;
}

.sk-search-post-summary {
   display: block;
   color: var(--color-text-muted);
   font-size: 0.8125rem;
   line-height: 1.4;
   margin-top: 0.125rem;
   overflow: hidden;
   text-overflow: ellipsis;
   white-space: nowrap;
}

.sk-search-no-results {
   padding: 2rem 1.25rem;
   text-align: center;
   color: var(--color-text-muted);
   font-size: 0.9375rem;
}

.sk-search-app {
   display: block;
   padding: 0.625rem 2.5rem 0.625rem 1.25rem;
   text-decoration: none;
   transition: background var(--transition);
}

.sk-search-app:hover {
   background: var(--color-bg-alt);
}

.sk-search-app-name {
   display: block;
   color: var(--color-text);
   font-size: 0.9375rem;
   font-weight: 500;
}

.sk-search-app-tagline {
   display: block;
   color: var(--color-text-muted);
   font-size: 0.8125rem;
}

.sk-search-app-external {
   display: flex;
   align-items: center;
   justify-content: center;
   position: absolute;
   right: 0.75rem;
   width: 2rem;
   height: 2rem;
   margin-top: -2.25rem;
   color: var(--color-text-muted);
   font-size: 0.75rem;
   text-decoration: none;
   border-radius: var(--radius);
   transition: all var(--transition);
}

.sk-search-app-external:hover {
   color: var(--color-accent);
   background: var(--color-bg-alt);
}

mark.sk-search-highlight {
   background: transparent;
   color: inherit;
   font-weight: 700;
}

.sk-search-spinner {
   width: 16px;
   height: 16px;
   border: 2px solid var(--color-border-light);
   border-top-color: var(--color-accent);
   border-radius: 50%;
   animation: sk-spin 0.6s linear infinite;
   flex-shrink: 0;
}

.sk-search-header-spinner {
   margin-right: 0.25rem;
}

@keyframes sk-spin {
   to { transform: rotate(360deg); }
}
