/* grndtech — Main Stylesheet */

:root {
  --black: #0C0C0C;
  --white: #FFFFFF;
  --gray: #999999;
  --coral: #F27062;
  --crimson: #DC2F5A;
  --teal: #6BA3B5;
  --gradient: linear-gradient(90deg, #F27062 0%, #DC2F5A 40%, #9B7D95 60%, #B5D2DC 100%);
  --border-light: rgba(0,0,0,0.08);
  --border-dark: rgba(255,255,255,0.08);
  --hover-light: rgba(0,0,0,0.03);
  --hover-dark: rgba(255,255,255,0.04);
  --font-sans: 'Manrope', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 14px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* ——— Navigation ——— */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 0 48px; height: 64px; transition: background var(--transition), border-color var(--transition); }
nav.light-nav { background: rgba(255,255,255,0.88); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
nav.dark-nav { background: rgba(12,12,12,0.88); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.nav-logo { cursor: pointer; user-select: none; }
.nav-logo a { text-decoration: none; }
.nav-wordmark { font-weight: 700; font-size: 21px; letter-spacing: -0.7px; transition: var(--transition); }
.nav-wordmark.black-text { color: var(--black); }
.nav-wordmark.gradient-text { -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; background-image: var(--gradient); }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a { font-family: var(--font-sans); font-size: 14px; font-weight: 500; padding: 7px 20px; border-radius: 100px; border: none; cursor: pointer; letter-spacing: -0.2px; transition: var(--transition); background: none; position: relative; text-decoration: none; display: inline-block; }
nav.light-nav .nav-links a { color: #666; }
nav.light-nav .nav-links a:hover { color: var(--black); background: var(--hover-light); }
nav.light-nav .nav-links a.active { color: var(--white); background: var(--black); }
nav.dark-nav .nav-links a { color: #bbb; }
nav.dark-nav .nav-links a:hover { color: var(--white); background: var(--hover-dark); }
nav.dark-nav .nav-links a.active { color: var(--white); background: rgba(255,255,255,0.1); }
.media-accent { position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%); width: 70%; height: 2.5px; border-radius: 2px; background: var(--gradient); opacity: 0; transition: opacity var(--transition); }
a[data-page="media"]:not(.active) .media-accent { opacity: 1; }

/* ——— Page Layout ——— */
.page { min-height: 100vh; padding-top: 64px; }
.page-light { background: var(--white); color: var(--black); }
.page-dark { background: var(--black); color: var(--white); }


/* ——— Hero ——— */
.hero { position: relative; padding: 20px 48px 32px; max-width: 1200px; margin: 0 auto; }
.hero-content { position: relative; }
.hero-contour-wave { width: 100vw; height: 48px; overflow: hidden; margin-left: calc(-50vw + 50%); margin-bottom: 36px; }
.hero-contour-wave svg { display: block; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gray); margin-bottom: 24px; }
.hero-tag::before { content: ''; width: 22px; height: 1px; background: var(--gray); }
.hero-tagline { font-size: 14px; font-weight: 400; color: var(--gray); line-height: 1.5; margin-bottom: 16px; }
.hero-cta { display: inline-block; margin-top: 24px; font-size: 13px; font-weight: 500; color: var(--gray); text-decoration: none; letter-spacing: -0.2px; transition: var(--transition); }
.hero-cta:hover { color: var(--black); }
.hero-title { font-size: clamp(36px, 5vw, 58px); font-weight: 700; letter-spacing: -2.5px; line-height: 1.06; margin-bottom: 18px; max-width: 680px; }
.page-light .hero-title { color: var(--black); }
.page-dark .hero-title { color: var(--white); }
.hero-sub { font-size: 14px; max-width: 520px; line-height: 1.6; }
.page-light .hero-sub { color: var(--gray); }
.page-dark .hero-sub { color: #999; }
.page-build .hero-title em { font-style: normal; color: var(--crimson); }
.page-learn .hero-title em { font-style: normal; color: var(--teal); }
.page-media .hero-title em { font-style: normal; color: var(--coral); }
.page-blog .hero-title em { font-style: normal; color: var(--coral); }

/* ——— Section Headings ——— */
.section-head { padding: 0 48px; max-width: 1200px; margin: 0 auto 20px; display: flex; align-items: baseline; justify-content: space-between; }
.section-count { font-family: var(--font-mono); font-size: 11px; color: var(--gray); letter-spacing: 0.3px; }
.section-head h2 { font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.page-light .section-head h2 { color: var(--black); }
.page-dark .section-head h2 { color: var(--white); }
.section-media-link { font-family: var(--font-sans); font-size: 13px; font-weight: 500; color: var(--gray); text-decoration: none; position: relative; transition: var(--transition); letter-spacing: -0.2px; }
.section-media-link::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 100%; height: 2.5px; border-radius: 2px; background: var(--gradient); }
.section-media-link:hover { color: var(--black); }

/* ——— Light Cards ——— */
.cards-row { display: grid; gap: 14px; max-width: 1200px; margin: 0 auto; padding: 0 48px 48px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.lcard { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-light); background: var(--white); display: flex; flex-direction: column; transition: var(--transition); cursor: pointer; text-decoration: none; }
.lcard:hover { border-color: rgba(0,0,0,0.12); box-shadow: 0 8px 28px rgba(0,0,0,0.05); transform: translateY(-2px); }
.lcard-thumb { width: 100%; aspect-ratio: 16/9; overflow: hidden; background: #F0F0F0; }
.lcard-body { padding: 16px 20px 20px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.lcard-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; font-family: var(--font-mono); color: var(--gray); letter-spacing: 0.3px; text-transform: uppercase; }
.lcard-title { font-size: 17px; font-weight: 600; letter-spacing: -0.4px; line-height: 1.3; color: var(--black); }
.lcard-desc { font-size: 14px; color: var(--gray); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ——— Featured Builds ——— */
.builds-container { max-width: 1200px; margin: 0 auto; padding: 0 48px 48px; display: flex; flex-direction: column; gap: 20px; }
.build-card { border-radius: var(--radius); border: 1px solid var(--border-light); overflow: hidden; display: flex; flex-direction: column; transition: var(--transition); background: var(--white); }
.build-card:hover { border-color: rgba(0,0,0,0.12); box-shadow: 0 8px 32px rgba(0,0,0,0.05); }
.build-visual { aspect-ratio: 16/9; overflow: hidden; background: #F0F0F0; }
.build-visual .th img { object-fit: contain; }
.build-video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.build-video-wrap { position: relative; width: 100%; height: 100%; cursor: pointer; }
.build-video-wrap .play { opacity: 1; }
.build-video-wrap:hover .play { background: rgba(0,0,0,0.55); }
.build-info { padding: 28px 32px 12px; display: flex; flex-direction: column; }
.build-header { margin-bottom: 16px; }
.build-status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.3px; text-transform: uppercase; margin-bottom: 12px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; }
.status-active .status-dot { background: var(--black); }
.status-active { color: var(--black); }
.status-beta .status-dot { background: var(--gray); }
.status-beta { color: var(--gray); }
.build-name { font-size: 24px; font-weight: 700; letter-spacing: -0.8px; line-height: 1.2; color: var(--black); margin-bottom: 8px; }
.build-name a { color: inherit; text-decoration: none; transition: var(--transition); }
.build-name a:hover { text-decoration: underline; text-underline-offset: 4px; }
.build-desc { font-size: 14px; color: #666; line-height: 1.6; margin-bottom: 16px; }
.build-features { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.feature-pill { font-size: 11px; font-weight: 500; padding: 5px 12px; border-radius: 100px; border: 1px solid var(--border-light); color: var(--black); letter-spacing: -0.1px; background: var(--white); }
.build-log { padding: 16px 32px 24px; }
.build-log-title { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase; color: #999; margin-bottom: 10px; }
.log-entries { display: flex; flex-direction: column; }
.log-entry { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(0,0,0,0.04); }
.log-entry:last-child { border-bottom: none; }
.log-date { font-family: var(--font-mono); font-size: 11px; color: #999; letter-spacing: 0.2px; white-space: nowrap; min-width: 62px; padding-top: 1px; }
.log-text { font-size: 13px; color: var(--black); line-height: 1.4; letter-spacing: -0.1px; }
.log-tag { display: inline-block; font-family: var(--font-mono); font-size: 9px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; padding: 3px 8px; border-radius: 5px; margin-right: 4px; position: relative; top: -1px; }
.log-tag-new { background: var(--black); color: var(--white); }
.log-tag-fix { background: rgba(0,0,0,0.04); color: var(--gray); }
.log-tag-update { background: rgba(0,0,0,0.04); color: var(--gray); }
.log-more { font-family: var(--font-mono); font-size: 11px; color: var(--gray); letter-spacing: 0.2px; padding-top: 8px; cursor: pointer; transition: var(--transition); }
.log-more:hover { color: var(--black); }

/* ——— Tools ——— */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 1200px; margin: 0 auto; padding: 0 48px 48px; }
.tool-block { border-radius: var(--radius); border: 1px solid var(--border-light); background: var(--white); overflow: hidden; display: flex; flex-direction: column; transition: var(--transition); cursor: pointer; }
.tool-block:hover { border-color: rgba(0,0,0,0.12); box-shadow: 0 8px 28px rgba(0,0,0,0.05); transform: translateY(-2px); }
.tool-block-body { padding: 24px 24px 0; display: flex; flex-direction: column; flex: 1; }
.tool-block-name { font-size: 17px; font-weight: 600; letter-spacing: -0.4px; color: var(--black); margin-bottom: 6px; }
.tool-block-desc { font-size: 14px; color: var(--gray); line-height: 1.55; margin-bottom: 14px; }
.tool-block-pills { display: flex; flex-wrap: wrap; gap: 5px; padding-bottom: 20px; }
.tool-block-pills .feature-pill { font-size: 11px; padding: 4px 10px; }
.tool-block-peek { margin-top: auto; border-top: 1px solid var(--border-light); overflow: hidden; }
.tool-block-peek-inner { aspect-ratio: 4/1.6; overflow: hidden; }
.peek-placeholder { width: 100%; height: 100%; position: relative; overflow: hidden; }
.peek-ui { width: 88%; margin: 12px auto 0; background: #FAFAFA; border-radius: 8px 8px 0 0; border: 1px solid rgba(0,0,0,0.06); border-bottom: none; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.peek-bar { height: 6px; border-radius: 3px; background: rgba(0,0,0,0.06); }
.peek-bar-short { width: 40%; }
.peek-bar-med { width: 65%; }
.peek-bar-long { width: 85%; }
.peek-row { display: flex; gap: 6px; align-items: center; }
.peek-dot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.peek-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; margin-top: 2px; }
.peek-cell { height: 16px; border-radius: 3px; background: rgba(0,0,0,0.04); }
.peek-accent-coral .peek-dot { background: rgba(242,112,98,0.25); }
.peek-accent-teal .peek-dot { background: rgba(107,163,181,0.3); }
.peek-accent-neutral .peek-dot { background: rgba(0,0,0,0.08); }
.peek-accent-crimson .peek-dot { background: rgba(220,47,90,0.2); }

/* ——— Badges ——— */
.badge { display: inline-block; padding: 3px 8px; border-radius: 5px; font-size: 9px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; font-family: var(--font-mono); width: fit-content; }
.badge-dark { background: var(--black); color: var(--white); }
.page-dark .badge-dark { background: rgba(255,255,255,0.15); color: var(--white); }
.badge-muted { background: rgba(0,0,0,0.04); color: var(--gray); }
.badge-muted-dark { background: rgba(255,255,255,0.1); color: #bbb; }

/* ——— Thumbnails ——— */
.th { width: 100%; height: 100%; }
.th-warm-1 { background: #F0F0F0; }
.th-warm-2 { background: #F0F0F0; }
.th-warm-3 { background: #F0F0F0; }
.th-cool-1 { background: #F0F0F0; }
.th-cool-2 { background: #F0F0F0; }
.th-neutral { background: #F0F0F0; }
.th-dark-1 { background: linear-gradient(145deg, #2C2C2C, #3A3A3A); }
.th-dark-2 { background: linear-gradient(145deg, #222, #333); }
.th img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ——— Dark Cards (Media) ——— */
.d-featured { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; max-width: 1200px; margin: 0 auto; padding: 0 48px 48px; }
.dcard { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-dark); background: rgba(255,255,255,0.02); display: flex; flex-direction: column; transition: var(--transition); cursor: pointer; text-decoration: none; color: inherit; }
.dcard:hover { border-color: rgba(255,255,255,0.1); box-shadow: 0 8px 28px rgba(0,0,0,0.25); transform: translateY(-2px); }
.dcard-thumb { width: 100%; aspect-ratio: 16/9; position: relative; overflow: hidden; background: #111; }
.dcard-thumb img { object-fit: contain; }
.dcard-body { padding: 16px 20px 20px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.dcard-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; font-family: var(--font-mono); color: #888; letter-spacing: 0.3px; text-transform: uppercase; }
.dcard-title { font-size: 17px; font-weight: 600; letter-spacing: -0.4px; line-height: 1.3; color: #eee; }
.dcard-desc { font-size: 13px; color: #999; line-height: 1.5; }
.d-side { display: flex; flex-direction: column; gap: 14px; }
.d-side .dcard { flex: 1; }
.d-side .dcard-thumb { aspect-ratio: 16/10; }
.d-side .dcard-title { font-size: 14px; }
.d-featured .dcard.large { justify-content: center; }
.d-featured .dcard.large .dcard-body { flex: 0; }
.d-featured .dcard.large .dcard-title { font-size: 21px; letter-spacing: -0.5px; }

/* ——— Filter Bar ——— */
.d-filter { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 0 48px 16px; margin-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.d-pills { display: flex; gap: 3px; }
.d-pill { font-family: var(--font-sans); font-size: 13px; font-weight: 500; padding: 6px 16px; border-radius: 100px; border: none; cursor: pointer; color: #888; background: none; transition: var(--transition); }
.d-pill:hover { color: #888; }
.d-pill.active { color: #ddd; background: rgba(255,255,255,0.06); }
.d-fcount { font-size: 11px; font-family: var(--font-mono); color: #777; }
.d-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 1200px; margin: 0 auto; padding: 0 48px 32px; }
.d-grid .dcard-title { font-size: 14px; }
.d-grid .dcard-body { padding: 12px 16px 16px; }

/* ——— Play Button + Duration ——— */
.play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,0.4); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; opacity: 0; transition: var(--transition); }
.dcard:hover .play { opacity: 1; }
.play svg { width: 15px; height: 15px; fill: white; margin-left: 2px; }
.dur { position: absolute; bottom: 8px; right: 8px; font-size: 10px; font-family: var(--font-mono); color: white; background: rgba(0,0,0,0.55); padding: 2px 6px; border-radius: 4px; }

/* ——— Load More ——— */
.loadmore { display: flex; justify-content: center; padding: 8px 0 56px; }
.loadmore button, .loadmore a { font-family: var(--font-sans); font-size: 13px; font-weight: 600; padding: 12px 32px; border-radius: 100px; border: none; cursor: pointer; transition: var(--transition); text-decoration: none; display: inline-block; }
.loadmore-light button, .loadmore-light a { background: var(--black); color: var(--white); }
.loadmore-light button:hover, .loadmore-light a:hover { background: #1a1a1a; box-shadow: 0 4px 16px rgba(0,0,0,0.12); transform: translateY(-1px); }
.loadmore-dark button, .loadmore-dark a { background: rgba(255,255,255,0.15); color: var(--white); }
.loadmore-dark button:hover, .loadmore-dark a:hover { background: rgba(255,255,255,0.25); transform: translateY(-1px); }

/* ——— Pagination (Media) ——— */
.pagination { display: flex; justify-content: center; gap: 16px; padding: 8px 0 24px; }
.pagination a { font-family: var(--font-sans); font-size: 13px; font-weight: 600; padding: 10px 24px; border-radius: 100px; text-decoration: none; transition: var(--transition); border: 1px solid rgba(255,255,255,0.1); color: #888; }
.pagination a:hover { color: #ddd; border-color: rgba(255,255,255,0.2); }

/* ——— Responsive ——— */
@media (max-width: 900px) { nav { padding: 0 24px; } .hero { padding: 24px 24px 32px; } .section-head, .cards-row, .d-featured, .d-filter, .d-grid, .builds-container, .tools-grid { padding-left: 24px; padding-right: 24px; } .cards-3, .d-grid { grid-template-columns: repeat(2, 1fr); } .d-featured { grid-template-columns: 1fr; } .tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards-3, .cards-2, .d-grid { grid-template-columns: 1fr; } .d-side { flex-direction: row; } .d-side .dcard { min-width: 0; } .hero-title { letter-spacing: -1.8px; } .tools-grid { grid-template-columns: 1fr; } .build-info { padding: 20px 24px; } }

/* ——— Animation ——— */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.anim { animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
.d1 { animation-delay: 0.06s; } .d2 { animation-delay: 0.12s; } .d3 { animation-delay: 0.18s; } .d4 { animation-delay: 0.24s; } .d5 { animation-delay: 0.30s; }

/* ——— Draft Banner ——— */
.draft-banner { background: #FFF3CD; color: #856404; text-align: center; padding: 10px 48px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; border-bottom: 1px solid #FFEEBA; }

/* ——— Video Embed (YouTube Lazy-load) ——— */
.video-embed { position: relative; width: 100%; aspect-ratio: 16/9; background: #111; border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.video-embed img { width: 100%; height: 100%; object-fit: cover; }
.video-embed .play { opacity: 1; }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* ——— Blog Post Body ——— */
.post-header { max-width: 720px; margin: 0 auto; padding: 64px 48px 32px; }
.post-header .post-date { font-family: var(--font-mono); font-size: 11px; color: var(--gray); letter-spacing: 0.3px; text-transform: uppercase; margin-bottom: 12px; }
.post-header .post-title { font-size: clamp(28px, 4vw, 42px); font-weight: 700; letter-spacing: -1.5px; line-height: 1.1; color: var(--black); margin-bottom: 16px; }
.post-header .badge { margin-bottom: 12px; }

.post-body { max-width: 720px; margin: 0 auto; padding: 0 48px 64px; color: #222; font-size: 16px; line-height: 1.75; }
.post-body h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.8px; color: var(--black); margin: 48px 0 16px; }
.post-body h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.4px; color: #222; margin: 32px 0 12px; }
.post-body p { margin-bottom: 20px; }
.post-body a { color: var(--crimson); text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { color: var(--coral); }
.post-body pre { background: #F5F5F5; border: 1px solid var(--border-light); border-radius: 10px; padding: 20px 24px; overflow-x: auto; font-family: var(--font-mono); font-size: 13px; line-height: 1.6; margin: 24px 0; color: #333; }
.post-body code { font-family: var(--font-mono); font-size: 0.9em; background: rgba(0,0,0,0.04); padding: 2px 6px; border-radius: 4px; color: #333; }
.post-body pre code { background: none; padding: 0; border-radius: 0; }
.post-body figure { margin: 32px 0; }
.post-body figure img { width: 100%; border-radius: var(--radius); }
.post-body figure figcaption { font-size: 12px; color: var(--gray); font-family: var(--font-mono); margin-top: 10px; text-align: center; }
.post-body img { max-width: 100%; border-radius: var(--radius); }
.post-body blockquote { border-left: 3px solid var(--crimson); padding-left: 20px; margin: 24px 0; color: #666; font-style: italic; }
.post-body ul, .post-body ol { margin: 16px 0; padding-left: 24px; }
.post-body li { margin-bottom: 8px; }
.post-body hr { border: none; border-top: 1px solid var(--border-light); margin: 40px 0; }

/* ——— Post Navigation (Prev / Next) ——— */
.post-nav { display: flex; justify-content: space-between; max-width: 720px; margin: 0 auto; padding: 32px 48px 64px; border-top: 1px solid var(--border-light); }
.post-nav a { text-decoration: none; color: var(--gray); font-size: 13px; font-weight: 500; transition: var(--transition); }
.post-nav a:hover { color: var(--black); }
.post-nav .post-nav-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--gray); margin-bottom: 4px; }
.post-nav .post-nav-title { font-size: 14px; font-weight: 600; color: #666; }
.post-nav a:hover .post-nav-title { color: var(--black); }

/* ——— Footer ——— */
footer { padding: 40px 48px; text-align: center; }
.page-dark ~ footer { background: var(--black); }
.page-dark ~ footer .footer-copy { color: #777; }
.page-dark ~ footer .newsletter-label { color: var(--white); }
.page-dark ~ footer .newsletter-desc { color: #999; }
footer .footer-copy { font-size: 11px; color: var(--gray); font-family: var(--font-mono); letter-spacing: 0.3px; }
.footer-link { color: inherit; text-decoration: none; transition: var(--transition); }
.footer-link:hover { color: var(--black); }
.page-dark ~ footer .footer-link:hover { color: var(--white); }

/* ——— 404 Page ——— */
.error-page { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: calc(100vh - 64px); text-align: center; padding: 48px; }
.error-page h1 { font-size: 72px; font-weight: 700; letter-spacing: -3px; color: var(--black); margin-bottom: 16px; }
.error-page p { font-size: 16px; color: var(--gray); margin-bottom: 32px; }
.error-page a { font-family: var(--font-sans); font-size: 13px; font-weight: 600; padding: 12px 32px; border-radius: 100px; background: var(--black); color: var(--white); text-decoration: none; transition: var(--transition); }
.error-page a:hover { background: #1a1a1a; box-shadow: 0 4px 16px rgba(0,0,0,0.12); transform: translateY(-1px); }

/* ——— Admin Page ——— */
.admin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 1200px; margin: 0 auto; padding: 0 48px 48px; }
.admin-card { border-radius: var(--radius); border: 1px solid var(--border-light); padding: 24px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; transition: var(--transition); }
.admin-card:hover { border-color: rgba(0,0,0,0.12); box-shadow: 0 8px 28px rgba(0,0,0,0.05); transform: translateY(-2px); }
.admin-card .admin-icon { font-size: 24px; margin-bottom: 4px; }
.admin-card .admin-label { font-size: 15px; font-weight: 600; letter-spacing: -0.3px; color: var(--black); }
.admin-card .admin-desc { font-size: 13px; color: var(--gray); line-height: 1.5; }

/* ——— Newsletter ——— */
.newsletter-section { max-width: 1200px; margin: 0 auto; padding: 48px; }
.newsletter-inner { max-width: 480px; margin: 0 auto; text-align: center; }
.newsletter-label { font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--black); margin-bottom: 8px; }
.page-dark .newsletter-label { color: var(--white); }
.newsletter-desc { font-size: 14px; color: var(--gray); line-height: 1.6; margin-bottom: 16px; }
.page-dark .newsletter-desc { color: #999; }
.newsletter-form { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.newsletter-input { width: 100%; max-width: 360px; font-family: var(--font-sans); font-size: 14px; padding: 10px 16px; border-radius: 100px; border: 1px solid rgba(0,0,0,0.25); background: var(--white); color: var(--black); outline: none; transition: var(--transition); text-align: center; }
.page-dark ~ footer .newsletter-input { background: rgba(255,255,255,0.06); border-color: var(--border-dark); color: #eee; }
.newsletter-input:focus { border-color: rgba(0,0,0,0.4); }
.page-dark ~ footer .newsletter-input:focus { border-color: rgba(255,255,255,0.2); }
.newsletter-btn { display: inline-block; font-family: var(--font-sans); font-size: 13px; font-weight: 600; padding: 10px 24px; border-radius: 100px; border: none; cursor: pointer; transition: var(--transition); background: var(--black); color: var(--white); white-space: nowrap; text-decoration: none; text-align: center; }
.page-dark ~ footer .newsletter-btn { background: rgba(255,255,255,0.15); color: var(--white); }
.page-dark ~ footer .newsletter-btn:hover { background: rgba(255,255,255,0.25); }
.newsletter-btn:hover { transform: translateY(-1px); }
.newsletter-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.newsletter-status { font-size: 13px; margin-top: 8px; min-height: 20px; font-family: var(--font-mono); }
.page-dark ~ footer .newsletter-label { color: var(--white); }
.page-dark ~ footer .newsletter-desc { color: #999; }
.page-dark ~ footer { background: var(--black); }
.page-dark ~ footer .footer-copy { color: #777; }
.footer-copy { text-align: center; font-size: 11px; color: var(--gray); font-family: var(--font-mono); letter-spacing: 0.3px; padding: 24px 48px; }
.footer-link { color: inherit; text-decoration: none; transition: var(--transition); }
.footer-link:hover { color: var(--black); }
.page-dark ~ footer .footer-link:hover { color: var(--white); }

@media (max-width: 900px) { .admin-grid { grid-template-columns: repeat(2, 1fr); padding-left: 24px; padding-right: 24px; } .post-body, .post-header, .post-nav { padding-left: 24px; padding-right: 24px; } .newsletter-section { padding: 32px 24px; } }
@media (max-width: 600px) { .admin-grid { grid-template-columns: 1fr; } }
