/* ==========================================================================
   Vellumine Ghost Theme — screen.css
   Dark-first design with amber/stone color palette
   ========================================================================== */

/* ---------- Custom Properties ---------- */
:root {
  /* Backgrounds */
  --bg-primary: oklch(21.6% 0.006 56.043);
  --bg-secondary: #1c1917;
  --bg-elevated: #292524;
  --bg-accent: #44403c;

  /* Text */
  --text-primary: #fafaf9;
  --text-secondary: #d6d3d1;
  --text-muted: #a8a29e;

  /* Borders */
  --border-color: #44403c;
  --border-subtle: #292524;

  /* Accent — Amber */
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --accent-muted: rgba(245, 158, 11, 0.15);
  --accent-glow: rgba(245, 158, 11, 0.25);

  /* Neutral — Stone */
  --neutral: #78716c;
  --neutral-light: #a8a29e;

  /* Layout */
  --content-width: 720px;
  --wide-width: 1200px;
  --header-height: 64px;

  /* Transitions */
  --transition: 120ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Radii */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family:
    "Public Sans",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

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

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

/* ---------- Layout ---------- */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
}

.container {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(21.6% 0.006 56.043 / 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  height: var(--header-height);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-primary);
}

.site-logo .logo-mark {
  height: 28px;
  width: auto;
  flex-shrink: 0;
}

/* Header actions container */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
}

.site-nav a:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

/* Search toggle */
.search-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-toggle:hover {
  color: var(--accent);
  background: var(--accent-muted);
}

.search-toggle svg {
  width: 20px;
  height: 20px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.nav-toggle:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  z-index: 99;
  padding: 1.5rem;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav a {
  display: block;
  color: var(--text-secondary);
  padding: 0.75rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border-subtle);
  transition: color var(--transition);
}

.mobile-nav a:hover {
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }
}

/* ---------- Hero / Archive Header ---------- */
.archive-header {
  text-align: center;
  padding: 4rem 0 3rem;
}

.archive-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.archive-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Post Grid ---------- */
.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding-bottom: 3rem;
}

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

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

/* ---------- Post Card ---------- */
.post-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  border-color: var(--border-color);
  box-shadow: 0 0 20px var(--accent-muted);
}

.post-card a {
  color: inherit;
  text-decoration: none;
}

.post-card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-elevated);
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.post-card:hover .post-card-image img {
  transform: scale(1.02);
}

.post-card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

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

.post-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.5rem;
  transition: color var(--transition);
}

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

.post-card-excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.post-card-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-card-author img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.post-card-meta .sep {
  color: var(--border-color);
}

/* ---------- Featured Posts ---------- */
.featured-posts {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.featured-posts-title {
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.featured-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .featured-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .featured-posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.featured-post-card {
  background: linear-gradient(
    135deg,
    var(--bg-secondary) 0%,
    var(--bg-elevated) 100%
  );
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.featured-post-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent-hover) 100%
  );
}

.featured-post-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-2px);
}

.featured-post-card a {
  color: inherit;
  text-decoration: none;
}

.featured-post-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-elevated);
}

.featured-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.featured-post-card:hover .featured-post-image img {
  transform: scale(1.05);
}

.featured-post-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.featured-post-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.featured-post-tag:hover {
  color: var(--accent-hover);
}

.featured-post-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 0.75rem;
  transition: color var(--transition);
}

.featured-post-card:hover .featured-post-title {
  color: var(--accent);
}

.featured-post-excerpt {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.featured-post-meta .sep {
  color: var(--border-color);
}

/* ---------- Single Post ---------- */
.post-header {
  text-align: center;
  padding: 3rem 0 2rem;
}

.post-header .post-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.post-header h1 {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.post-meta .author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-meta .author img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.post-meta .author a {
  color: var(--text-secondary);
  font-weight: 500;
}

.post-meta .sep {
  color: var(--border-color);
}

/* Feature image */
.post-feature-image {
  margin-bottom: 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.post-feature-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ---------- Post Content (Ghost editor output) ---------- */
.post-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.post-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.post-content h3 {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.post-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.post-content p {
  margin-bottom: 1.25rem;
}

.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.post-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.post-content em {
  font-style: italic;
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.post-content li {
  margin-bottom: 0.375rem;
}

.post-content li::marker {
  color: var(--accent);
}

.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-muted);
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 2rem 0;
}

/* Code */
.post-content code {
  background: var(--bg-elevated);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  color: var(--accent);
  font-family: "JetBrains Mono", "Fira Code", monospace;
}

.post-content pre {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post-content pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Tables */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.post-content th,
.post-content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

.post-content th {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Images in content */
.post-content figure {
  margin: 2rem 0;
}

.post-content figcaption {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* ---------- Ghost Card Styles ---------- */
.kg-card {
  margin: 1.5rem 0;
}

/* Full-width & wide cards */
.kg-width-wide {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Image card */
.kg-image-card img,
.kg-gallery-image img {
  border-radius: var(--radius);
}

/* Gallery */
.kg-gallery-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.kg-gallery-row {
  display: flex;
  gap: 0.75rem;
}

.kg-gallery-image {
  flex: 1;
  overflow: hidden;
}

.kg-gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bookmark card */
.kg-bookmark-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}

.kg-bookmark-card:hover {
  border-color: var(--accent-muted);
}

.kg-bookmark-container {
  display: flex;
  text-decoration: none;
  color: inherit;
}

.kg-bookmark-content {
  flex: 1;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.kg-bookmark-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

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

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

.kg-bookmark-icon {
  width: 16px;
  height: 16px;
}

.kg-bookmark-thumbnail {
  width: 200px;
  flex-shrink: 0;
}

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

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

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

/* Callout card */
.kg-callout-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

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

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

/* Toggle card */
.kg-toggle-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.kg-toggle-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.kg-toggle-heading h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.kg-toggle-content {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* Button card */
.kg-button-card {
  text-align: center;
  margin: 2rem 0;
}

.kg-button-card a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--bg-primary);
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--transition);
}

.kg-button-card a:hover {
  background: var(--accent-hover);
  color: var(--bg-primary);
}

/* Header card */
.kg-header-card {
  padding: 4rem 2rem;
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
}

.kg-header-card h2 {
  margin: 0;
}

/* Video & audio cards */
.kg-video-card,
.kg-audio-card {
  border-radius: var(--radius);
  overflow: hidden;
}

/* Embed card */
.kg-embed-card {
  margin: 1.5rem 0;
}

.kg-embed-card iframe {
  width: 100%;
  border-radius: var(--radius);
}

/* ---------- Author Box ---------- */
.author-box {
  display: flex;
  gap: 1.25rem;
  padding: 2rem;
  margin-top: 3rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.author-box img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-box-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.author-box-content h4 a {
  color: var(--text-primary);
}

.author-box-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ---------- Tags List ---------- */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.post-tags a {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: var(--accent-muted);
  color: var(--accent);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all var(--transition);
}

.post-tags a:hover {
  background: var(--accent-glow);
  color: var(--accent-hover);
}

/* ---------- Related Posts ---------- */
.related-posts {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.related-posts h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

/* ---------- Author Archive ---------- */
.author-header {
  text-align: center;
  padding: 4rem 0 3rem;
}

.author-header img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 2px solid var(--border-color);
}

.author-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.author-header p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

.author-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.author-social a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color var(--transition);
}

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

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 0 4rem;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
}

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

.pagination .page-number {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.footer-tagline {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--neutral);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-right a {
  color: var(--text-muted);
  transition: color var(--transition);
}

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

/* ---------- Error Page ---------- */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem;
}

.error-code {
  font-size: 6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-message {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.error-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--bg-primary);
  font-weight: 600;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.error-link:hover {
  background: var(--accent-hover);
  color: var(--bg-primary);
}

/* ---------- Page Template ---------- */
.page-header {
  text-align: center;
  padding: 3rem 0 2rem;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .archive-header h1 {
    font-size: 1.875rem;
  }

  .post-header h1 {
    font-size: 2rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .post-content {
    font-size: 1rem;
  }

  .post-content h2 {
    font-size: 1.5rem;
  }

  .post-content h3 {
    font-size: 1.25rem;
  }

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