/* =============================================
   Minecraft-Inspired Pixel Theme
   Personal Website for Jaime Breitkreutz
   ============================================= */

/* Self-hosted Minecraft Font */
@font-face {
  font-family: 'Minecraft';
  src: url('../assets/fonts/Minecraft.woff2') format('woff2'),
       url('../assets/fonts/Minecraft.woff') format('woff'),
       url('../assets/fonts/Minecraft.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* =============================================
   CSS Custom Properties
   ============================================= */
:root {
  /* Colors - Warm, Stardew Valley inspired */
  --bg-primary: #fdf8f0;
  --bg-surface: #fff9f0;
  --bg-surface-hover: #fff5e6;
  --bg-warm: #f5ebe0;
  --text-primary: #5c4033;
  --text-secondary: #7a6555;
  --text-muted: #a08070;

  /* Accent Colors - Warm orange and blue */
  --accent-orange: #d4874c;
  --accent-orange-hover: #e09560;
  --accent-brown: #8b6914;
  --accent-blue: #5b8a9a;
  --accent-blue-hover: #6a9cad;
  --accent-red: #c25b4e;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Typography */
  --font-pixel: 'Minecraft', monospace;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --letter-spacing-pixel: 0.08em;

  /* Borders */
  --border-width: 3px;
  --border-color: var(--accent-brown);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;

  /* Container */
  --container-max: 1200px;
  --container-narrow: 800px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: #ffffff;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body.landing-page {
  background-color: var(--bg-primary);
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--accent-orange);
  color: white;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-size: 0.875rem;
  text-decoration: none;
  z-index: 1000;
  border: var(--border-width) solid var(--accent-brown);
}

.skip-link:focus {
  top: var(--space-md);
}

/* =============================================
   Typography
   ============================================= */
h1, h2 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: var(--space-md);
}

h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: 1.75rem;
  color: var(--accent-brown);
}

h2 {
  font-size: 1.25rem;
  color: var(--text-primary);
}

h3 {
  font-size: 1.25rem;
  color: var(--accent-blue);
}

h4 {
  font-size: 1.125rem;
  color: var(--text-primary);
}

p {
  margin-bottom: var(--space-md);
}

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

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

a:focus {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* =============================================
   Layout
   ============================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--container-narrow);
}

main {
  flex: 1;
  padding: var(--space-xl) 0;
}

/* Landing page - no padding on main */
.landing-page main {
  padding: 0;
}

/* =============================================
   Header & Navigation
   ============================================= */
.site-header {
  background: var(--bg-warm);
  border-bottom: var(--border-width) solid var(--accent-brown);
  padding: var(--space-md) 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.site-logo {
  font-family: var(--font-pixel);
  font-size: 1rem;
  letter-spacing: var(--letter-spacing-pixel);
  color: var(--accent-brown);
  text-decoration: none;
}

.site-logo:hover {
  color: var(--accent-orange);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

.nav-link {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: var(--space-sm) var(--space-md);
  border: 2px solid transparent;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-orange);
  background: rgba(212, 135, 76, 0.1);
  border-color: var(--accent-orange);
}

.nav-link:focus {
  outline: none;
  border-color: var(--accent-blue);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--accent-brown);
  color: var(--accent-brown);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
}

/* =============================================
   Footer
   ============================================= */
.site-footer {
  background: var(--bg-warm);
  border-top: var(--border-width) solid var(--accent-brown);
  padding: var(--space-xl) 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
}

.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--text-secondary);
  border-radius: 8px;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-link:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  transform: translateY(-2px);
}

.social-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.about-socials {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.about-social-link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border: 1.5px solid var(--accent-brown);
  border-radius: 999px;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.about-social-link:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  transform: translateY(-2px);
}

.about-social-icon {
  display: flex;
  align-items: center;
}

.about-social-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

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

/* =============================================
   Buttons
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  padding: var(--space-md) var(--space-lg);
  border: var(--border-width) solid;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  min-height: 44px;
}

.btn:focus {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: white;
}

.btn--primary:hover {
  background: var(--accent-orange-hover);
  border-color: var(--accent-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(212, 135, 76, 0.3);
}

.btn--secondary {
  background: transparent;
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.btn--secondary:hover {
  background: rgba(91, 138, 154, 0.1);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.btn--outline:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  transform: translateY(-2px);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* =============================================
   Cards
   ============================================= */
.card {
  background: var(--bg-surface);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(92, 64, 51, 0.1);
  overflow: hidden;
  padding: 0;
  transition: all var(--transition-fast);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(92, 64, 51, 0.18);
}

.card__image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.4rem;
}

.card__ribbon {
  position: absolute;
  top: 18px;
  left: -30px;
  width: 110px;
  background: #c8a227;
  color: white;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  padding: 5px 0;
  transform: rotate(-45deg);
  text-transform: uppercase;
  z-index: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.card__body {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
}

.card__title {
  margin-bottom: var(--space-xs);
}

.card__award {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.card__award strong {
  color: var(--accent-orange);
}

.card__description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.card__icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  color: white;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.card__icon-btn svg {
  fill: white;
}

.card__icon-btn:hover {
  opacity: 0.8;
  transform: scale(1.08);
}

.card__icon-btn--devpost {
  background: var(--accent-orange);
  color: white;
}

.card__icon-btn--youtube {
  background: #ff0000;
  color: white;
}

.card__icon-btn--link {
  background: #c94f4f;
  color: white;
}

.card__icon-btn--github {
  background: #1a1a2e;
  color: white;
}

/* =============================================
   Tags / Pills
   ============================================= */
.tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  background: var(--bg-warm);
  border: 1px solid var(--text-muted);
  border-radius: 4px;
  color: var(--text-secondary);
}

.tag--grass {
  background: rgba(212, 135, 76, 0.15);
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.tag--diamond {
  background: rgba(91, 138, 154, 0.15);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.tag--dirt {
  background: rgba(139, 105, 20, 0.15);
  border-color: var(--accent-brown);
  color: var(--accent-brown);
}

/* Filter tags */
.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.filter-tag {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  background: transparent;
  border: 2px solid var(--text-muted);
  border-radius: 4px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-tag:hover,
.filter-tag.active {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  background: rgba(212, 135, 76, 0.1);
}

/* =============================================
   Loading Screen
   ============================================= */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  pointer-events: none;
}

.loading-screen.active {
  pointer-events: auto;
}

.loading-screen.hidden .loading-screen__text {
  opacity: 0;
}

.loading-screen__text {
  font-family: var(--font-pixel);
  font-size: 1.5rem;
  color: #5c4033;
  letter-spacing: var(--letter-spacing-pixel);
  position: relative;
  z-index: 10000;
  transition: opacity 0.3s ease;
}

.loading-screen__text::after {
  content: '';
  animation: loading-dots 1.5s steps(4) infinite;
}

@keyframes loading-dots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
  100% { content: ''; }
}

.pixel-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  z-index: 9998;
  pointer-events: none;
}

.pixel {
  background: #f5ebe0;
}

.pixel.hidden {
  visibility: hidden;
}

/* =============================================
   Landing Page Hero
   ============================================= */
.landing-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 7%;
  background-image: url('../assets/images/sky_background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  position: relative;
  overflow: hidden;
}

/* Animated Clouds */
.cloud {
  position: absolute;
  opacity: 0.5;
  z-index: 1;
  image-rendering: pixelated;
  pointer-events: none;
}

.cloud--1 {
  top: 8%;
  height: 140px;
  animation: cloud-drift 53s linear infinite;
  animation-delay: -35s;
  z-index: 1;
}

.cloud--2 {
  top: 22%;
  height: 170px;
  animation: cloud-drift 79s linear infinite;
  animation-delay: -15s;
  z-index: 0;
}

.cloud--3 {
  top: 45%;
  height: 120px;
  animation: cloud-drift 67s linear infinite;
  animation-delay: -25s;
  z-index: 1;
}

.cloud--4 {
  top: 35%;
  height: 150px;
  animation: cloud-drift 61s linear infinite;
  animation-delay: -42s;
  z-index: 0;
}

@keyframes cloud-drift {
  0% {
    left: -20%;
  }
  100% {
    left: 120%;
  }
}

.landing-hero__image {
  max-width: 68%;
  max-height: 45vh;
  image-rendering: pixelated;
  position: relative;
  z-index: 2;
}

.landing-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.landing-nav__link {
  transition: transform var(--transition-fast);
}

.landing-nav__link:hover {
  transform: translateY(-4px);
}

.landing-nav__link:focus {
  outline: 3px solid var(--accent-orange);
  outline-offset: 4px;
}

.landing-nav__image {
  height: 150px;
  width: auto;
  image-rendering: pixelated;
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
  text-align: center;
  padding: var(--space-3xl) 0;
}

.hero__title {
  font-family: var(--font-pixel);
  font-size: 2.5rem;
  letter-spacing: var(--letter-spacing-pixel);
  margin-bottom: var(--space-md);
  color: var(--accent-brown);
}

.hero__image {
  max-width: 100%;
  height: auto;
  max-height: 350px;
  margin-top: -3rem;
  margin-bottom: var(--space-md);
  image-rendering: pixelated;
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--accent-orange);
  margin-bottom: var(--space-lg);
}

.hero__intro {
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* =============================================
   Status Bar
   ============================================= */
.status-bar {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-warm);
  border: 2px solid var(--accent-orange);
  border-radius: 6px;
  color: var(--accent-orange);
  margin-top: var(--space-xl);
}

.status-bar__icon {
  width: 8px;
  height: 8px;
  background: var(--accent-orange);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* =============================================
   Section Styles
   ============================================= */
.section {
  padding: var(--space-2xl) 0;
}

.section__title {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--accent-brown);
}

/* =============================================
   Grid Layouts
   ============================================= */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* =============================================
   News / Posts
   ============================================= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.news-card {
  background: var(--bg-surface);
  border: var(--border-width) solid var(--accent-brown);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.news-card:hover {
  border-color: var(--accent-orange);
  box-shadow: 0 4px 12px rgba(92, 64, 51, 0.1);
}

.news-card__image {
  width: 100%;
  height: 185px;
  overflow: hidden;
  background: var(--bg-warm);
}

.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__image--placeholder {
  background: linear-gradient(135deg, var(--bg-warm) 0%, #e8ddd0 100%);
}

.news-card__body {
  padding: var(--space-md);
}

.news-card__date {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.news-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

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

/* News Modal */
.news-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.news-modal.active {
  opacity: 1;
  visibility: visible;
}

.news-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.news-modal__content {
  position: relative;
  background: var(--bg-surface);
  border: var(--border-width) solid var(--accent-brown);
  border-radius: 12px;
  max-width: 860px;
  width: 92%;
  max-height: 72vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.news-modal.active .news-modal__content {
  transform: scale(1);
}

.news-modal__close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 36px;
  height: 36px;
  background: var(--bg-warm);
  border: var(--border-width) solid var(--accent-brown);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 1;
}

.news-modal__close:hover {
  background: var(--accent-orange);
  color: white;
}

.news-modal__image {
  width: 100%;
  height: 380px;
  overflow: hidden;
}

.news-modal__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

#project-modal .news-modal__image {
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

#project-modal .news-modal__image img {
  object-fit: contain;
  object-position: center;
  padding: 1rem;
}

.news-modal__body {
  padding: var(--space-lg);
}

.news-modal__date {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.news-modal__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.news-modal__text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.news-modal__text p {
  margin-bottom: 0.85rem;
}

.news-modal__text p:last-child {
  margin-bottom: 0;
}

.news-modal__link {
  margin-top: var(--space-md);
}

.news-modal__links-card {
  background: var(--bg-warm);
  border: var(--border-width) solid var(--accent-brown);
  border-radius: 8px;
  padding: 0.65rem var(--space-md);
}

.news-modal__links-heading {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.news-modal__link-entry {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.news-modal__link-entry a {
  color: var(--accent-orange);
  text-decoration: none;
  word-break: break-all;
}

.news-modal__link-entry a:hover {
  text-decoration: underline;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.post-item {
  background: var(--bg-surface);
  border: var(--border-width) solid var(--accent-brown);
  border-radius: 8px;
  padding: var(--space-lg);
  transition: all var(--transition-fast);
}

.post-item:hover {
  border-color: var(--accent-orange);
  box-shadow: 0 4px 12px rgba(92, 64, 51, 0.1);
}

.post-item__title {
  margin-bottom: var(--space-xs);
}

.post-item__title a {
  color: var(--text-primary);
}

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

.post-item__date {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.post-item__summary {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

/* Single Post View */
.post-single {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.post-single__header {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 2px solid var(--accent-brown);
}

.post-single__title {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.post-single__meta {
  color: var(--text-muted);
}

.post-single__content {
  line-height: 1.8;
}

.post-single__content p {
  margin-bottom: var(--space-lg);
}

.post-single__content h2 {
  margin-top: var(--space-xl);
}

.post-single__content code {
  background: var(--bg-warm);
  padding: var(--space-xs) var(--space-sm);
  font-family: monospace;
  font-size: 0.9em;
  border-radius: 3px;
}

.post-single__content pre {
  background: var(--bg-warm);
  padding: var(--space-md);
  overflow-x: auto;
  margin-bottom: var(--space-lg);
  border: 2px solid var(--accent-brown);
  border-radius: 6px;
}

/* =============================================
   CV Page
   ============================================= */

.cv-page h1 {
  font-family: var(--font-pixel);
  letter-spacing: var(--letter-spacing-pixel);
}

.cv-section {
  margin-bottom: var(--space-3xl);
}

.cv-section__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--accent-brown);
}

/* Two-column entry: date left, content right */
.cv-entry {
  display: flex;
  flex-direction: row;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  margin-left: -30px;
  align-items: flex-start;
}

.cv-entry__date {
  flex: 0 0 160px;
  min-width: 160px;
  white-space: nowrap;
  text-align: right;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding-top: 0.15rem;
}

.cv-entry__content {
  flex: 1;
  min-width: 0;
}

.cv-entry__title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.1rem;
}

.cv-entry__org {
  font-size: 0.9rem;
  color: var(--accent-orange);
  font-style: italic;
  margin-bottom: 0.2rem;
}

.cv-entry__loc {
  color: var(--accent-blue);
  font-style: normal;
}

.cv-entry__place {
  font-size: 0.875rem;
  color: #c49a14;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

/* Hackathon-specific title formatting */
.cv-hack__title {
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
  line-height: 1.4;
}

.cv-hack__name {
  font-weight: 700;
  color: var(--text-primary);
}

.cv-hack__proj {
  font-weight: 400;
  font-style: italic;
  color: var(--text-secondary);
}

.cv-hack__award {
  font-size: 0.8rem;
  color: var(--accent-orange);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.cv-hack__teammates {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.2rem;
}

.cv-hack__teammates span,
.cv-hack__teammates a {
  color: var(--accent-blue);
}

.cv-hack__teammates a {
  text-decoration: none;
}

.cv-hack__teammates a:hover {
  text-decoration: underline;
}

.cv-hack__description {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 0.2rem;
  margin-bottom: 0;
}

.cv-hack__description ul {
  padding-left: var(--space-lg);
}

.cv-hack__description li {
  margin-bottom: var(--space-xs);
}

.cv-entry__description {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: 0.3rem;
  margin-bottom: 0;
}

.cv-entry__description ul {
  margin-top: var(--space-sm);
  padding-left: var(--space-lg);
}

.cv-entry__description li {
  margin-bottom: var(--space-xs);
}

/* Mobile: stack date above content */
@media (max-width: 600px) {
  .about-socials {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

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

  .cv-entry {
    flex-direction: column;
    gap: var(--space-xs);
    margin-left: 0;
  }

  .cv-entry__date {
    flex: none;
    min-width: unset;
    text-align: left;
  }
}

.cv-skills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.cv-skill-group {
  flex: 1;
  min-width: 200px;
}

.cv-skill-group__title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-brown);
  margin-bottom: var(--space-sm);
}

.cv-skill-group__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

/* =============================================
   About Page
   ============================================= */

/* Dialogue box wrapper — positions text over the image's left panel */
.dialogue-box {
  position: relative;
  display: block;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto var(--space-xl);
  cursor: pointer;
  user-select: none;
  outline: none;
}

.dialogue-box:focus-visible {
  outline: 2px solid var(--accent-orange);
  outline-offset: 3px;
  border-radius: 12px;
}

.about-page .section {
  padding-top: 0;
  padding-bottom: var(--space-xl);
}

.content-page .section {
  padding-bottom: var(--space-lg);
}

.about-title-img {
  display: block;
  width: 100%;
  max-width: 700px;
  height: auto;
  margin: 0 auto var(--space-lg);
  pointer-events: none;
}

.content-page .about-title-img {
  max-width: min(100%, 900px);
  margin-top: -13rem;
  margin-bottom: -13rem;
}

.news-page .about-title-img {
  max-width: 630px;
}

.about-hero-img {
  display: block;
  width: 100%;
  border-radius: 12px;
  pointer-events: none;
}

/* Text overlay sits over the golden left panel of the image.
   Tweak left/top/width/height if text doesn't sit perfectly in the box. */
.dialogue-text-area {
  position: absolute;
  left: 3.5%;
  top: 14%;
  width: 56%;
  height: 70%;
  padding: 3% 5% 3% 4%;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
}

.dialogue-text-content {
  font-family: var(--font-pixel);
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  color: #3a2006;
  line-height: 1.85;
  letter-spacing: 0.04em;
  margin: 0;
  width: 100%;
}

/* Blinking continue arrow — bottom-right of the text panel */
.dialogue-arrow {
  position: absolute;
  bottom: 22%;
  left: 55.5%;
  font-size: clamp(0.55rem, 1vw, 0.75rem);
  color: #3a2006;
  animation: dialogue-bob 1.4s ease-in-out infinite;
  display: none;
  pointer-events: none;
}

@keyframes dialogue-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* Subtle "click to continue" hint below the box */
.dialogue-hint {
  position: absolute;
  bottom: -1.4rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  pointer-events: none;
}

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

.about-bio {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
}

.about-bio p {
  margin-top: var(--space-md);
  margin-bottom: 0;
}

.about-section-header {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: var(--space-3xl);
  margin-bottom: 0;
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--accent-brown);
}

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

.skills-section {
  margin-top: var(--space-2xl);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.skill-pill {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-warm);
  border: 2px solid var(--text-muted);
  border-radius: 4px;
  color: var(--text-primary);
}

/* =============================================
   Preview Section (Home)
   ============================================= */
.preview-section {
  background: var(--bg-warm);
  padding: var(--space-2xl);
  border: var(--border-width) solid var(--accent-brown);
  border-radius: 8px;
  margin-top: var(--space-2xl);
}

.preview-section__content {
  max-width: 600px;
}

.preview-section .read-more {
  display: inline-block;
  margin-top: var(--space-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
}

/* =============================================
   Social Icons Row
   ============================================= */
.social-row {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

/* =============================================
   Loading State
   ============================================= */
.loading {
  text-align: center;
  padding: var(--space-2xl);
  color: var(--text-muted);
}

.loading::after {
  content: '...';
  animation: dots 1.5s steps(4) infinite;
}

@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

/* =============================================
   Empty State
   ============================================= */
.empty-state {
  text-align: center;
  padding: var(--space-2xl);
  color: var(--text-muted);
}

/* =============================================
   Back Link
   ============================================= */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: var(--space-xl);
}

.back-link::before {
  content: '←';
}

/* =============================================
   Responsive Design
   ============================================= */

/* Small phones */
@media (max-width: 480px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  :root {
    --space-md: 0.75rem;
    --space-lg: 1rem;
    --space-xl: 1.5rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  .hero__title {
    font-size: 1.75rem;
  }

  .hero__tagline {
    font-size: 1rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .btn-group {
    flex-direction: column;
  }

  .nav-link {
    font-size: 0.875rem;
    padding: var(--space-sm);
  }

  .landing-hero__image {
    max-width: 95%;
    max-height: none;
  }

  .landing-nav {
    margin-top: 3rem;
  }

  .landing-nav__image {
    width: 43vw;
    height: auto;
  }

  .dialogue-text-content {
    font-size: 2.5vw;
    line-height: 1.6;
  }

  .content-page .about-title-img {
    margin-top: -5rem;
    margin-bottom: -5rem;
    transform: scale(1.25);
  }
}

/* Tablets */
@media (min-width: 481px) and (max-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__title {
    font-size: 2.25rem;
  }

  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop */
@media (min-width: 769px) {
  .nav-container {
    flex-direction: row;
    justify-content: center;
  }

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

  .nav-link {
    font-size: 1rem;
  }

  .hero {
    padding: var(--space-3xl) 0;
  }

  .hero__title {
    font-size: 3rem;
  }
}

/* Large Desktop */
@media (min-width: 1025px) {
  .hero__title {
    font-size: 3.5rem;
  }

  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =============================================
   Print Styles
   ============================================= */
@media print {
  .site-header,
  .site-footer,
  .btn,
  .social-links {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .card {
    border-color: #ccc;
  }
}
