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

:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #737373;
  --border: rgba(0, 0, 0, 0.1);
  --card-bg: #f5f5f5;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --max-w: 1600px;
  --transition: 0.3s ease;
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --fg: #fafafa;
  --muted: #a3a3a3;
  --border: rgba(255, 255, 255, 0.1);
  --card-bg: #171717;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition), color var(--transition);
}

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

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

button {
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
}

/* ===== Header / Navigation ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}

[data-theme="dark"] .site-header {
  background-color: rgba(10, 10, 10, 0.95);
}

/* Transparent header on homepage (over hero) */
.site-header.header-transparent {
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}

.site-header.header-transparent .site-logo {
  color: white;
}

.site-header.header-transparent .nav-links a,
.site-header.header-transparent .theme-toggle {
  color: rgba(255, 255, 255, 0.55);
}

.site-header.header-transparent .mobile-menu-btn {
  color: white;
}

.site-header.header-transparent .nav-links a:hover,
.site-header.header-transparent .nav-links a.active {
  color: white;
  opacity: 1;
}

/* When scrolled past hero, header becomes solid */
.site-header.header-scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header.header-scrolled .site-logo,
.site-header.header-scrolled .nav-links a,
.site-header.header-scrolled .theme-toggle,
.site-header.header-scrolled .mobile-menu-btn {
  color: var(--fg);
}

.site-header.header-scrolled .nav-links a {
  color: var(--muted);
}

.site-header.header-scrolled .nav-links a:hover,
.site-header.header-scrolled .nav-links a.active {
  color: var(--fg);
  opacity: 1;
}

[data-theme="dark"] .site-header.header-scrolled {
  background-color: rgba(10, 10, 10, 0.95);
}

.nav-container {
  width: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

@media (min-width: 768px) {
  .nav-container {
    height: 64px;
    padding: 0 2.5rem;
  }
}

@media (min-width: 1024px) {
  .nav-container {
    padding: 0 4rem;
  }
}

.site-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 3rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--fg);
}

.theme-toggle {
  padding: 0.5rem;
  border-radius: 50%;
  transition: opacity var(--transition);
}

.theme-toggle:hover {
  opacity: 0.7;
}

.theme-toggle svg {
  width: 22px;
  height: 22px;
}

/* Mobile controls wrapper — hidden on desktop so nav has only 2 flex children */
.mobile-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .mobile-controls {
    display: none;
  }
}

/* Mobile menu */
.mobile-menu-btn {
  display: flex;
  padding: 0.5rem;
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg);
  z-index: 49;
  padding: 2rem 1.5rem;
}

.mobile-nav.open {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav a {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
}

@media (min-width: 768px) {
  .hero-image {
    width: 120%;
    height: 120%;
    object-position: center top;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.4));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  max-width: 900px;
  padding: 0 1.5rem;
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 500;
  margin-bottom: -0.3rem;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 6rem;
    margin-bottom: -0.6rem;
  }
}

.hero-subtitle {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.25rem;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
  }
}

.hero-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: #ffffff;
  opacity: 1;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .hero-quote {
    font-size: 1.75rem;
  }
}

.hero-description {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  opacity: 1;
  line-height: 1.8;
  max-width: 650px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 1.05rem;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: white;
  opacity: 0.6;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== Section Styles ===== */
.section {
  padding: 5rem 1.5rem;
}

@media (min-width: 768px) {
  .section {
    padding: 6rem 2.5rem;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 5rem 4rem;
  }
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-bordered {
  border-top: 1px solid var(--border);
}

.section-dark {
  background-color: var(--fg);
  color: var(--bg);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3.5rem;
  }
}

.section-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 3rem;
  max-width: 650px;
}

.section-centered {
  text-align: center;
}

.section-centered .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ===== Link Arrows ===== */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: gap var(--transition);
}

.link-arrow:hover {
  gap: 0.75rem;
}

.link-arrow svg {
  width: 16px;
  height: 16px;
}

/* ===== Photo Grid ===== */
.photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

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

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

.photo-card {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
  group: true;
}

.photo-card .photo-img-wrapper {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--card-bg);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.photo-card:hover img {
  transform: scale(1.05);
}

.photo-card .photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  opacity: 0;
  transition: opacity var(--transition);
}

.photo-card:hover .photo-overlay {
  opacity: 1;
}

.photo-overlay h3 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.photo-overlay p {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* ===== Category Grid (Photography page) ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.category-card .cat-img-wrapper {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: var(--card-bg);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover img {
  transform: scale(1.05);
}

.category-card h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin-top: 0.75rem;
}

/* ===== Thought Pieces Cards ===== */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.article-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .article-card {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

.article-card .article-img-wrapper {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--card-bg);
  border-radius: 2px;
}

.article-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

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

.article-meta .tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.article-meta .read-time {
  font-size: 0.75rem;
  color: var(--muted);
}

.article-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .article-card h3 {
    font-size: 1.5rem;
  }
}

.article-card .article-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Homepage article cards (3 column) */
.article-grid-home {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.article-card-home .article-img-wrapper {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--card-bg);
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.article-card-home img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card-home:hover img {
  transform: scale(1.02);
}

.article-card-home h3 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .article-card-home h3 {
    font-size: 1.25rem;
  }
}

.article-card-home .article-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== About Page ===== */
.about-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .about-intro {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.about-intro img {
  width: 100%;
  border-radius: 2px;
}

.about-text h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-section {
  margin-bottom: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.about-section h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.about-section p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  max-width: 700px;
}

/* Tools grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

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

.tool-item {
  padding: 1.25rem;
  background-color: var(--card-bg);
  border-radius: 4px;
}

.tool-item .tool-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.tool-item .tool-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
}

/* ===== Contact Page ===== */
.contact-intro {
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.contact-intro p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.contact-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.form-group label .required {
  color: #ef4444;
  margin-left: 0.25rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--fg);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  background-color: var(--fg);
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: opacity var(--transition);
}

.btn-submit:hover {
  opacity: 0.85;
}

/* ===== Article Detail Page ===== */
.article-hero-img {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  margin-top: 80px;
}

@media (min-width: 768px) {
  .article-hero-img {
    padding: 0 2.5rem;
  }
}

@media (min-width: 1024px) {
  .article-hero-img {
    padding: 0 4rem;
  }
}

.article-hero-img img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: 2px;
}

.article-header {
  max-width: 900px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .article-header {
    padding: 0 2.5rem;
  }
}

@media (min-width: 1024px) {
  .article-header {
    padding: 0 4rem;
  }
}

.article-header .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 2rem;
  transition: color var(--transition);
}

.article-header .back-link:hover {
  color: var(--fg);
}

.article-header h1 {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .article-header h1 {
    font-size: 3rem;
  }
}

.article-header .article-lead {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
}

.article-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

@media (min-width: 768px) {
  .article-body {
    padding: 0 2.5rem 4rem;
  }
}

@media (min-width: 1024px) {
  .article-body {
    padding: 0 4rem 4rem;
  }
}

.article-body h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-body p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

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

.article-body li {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.article-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.article-tags span {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 100px;
}

/* ===== Photo Detail Page ===== */
.photo-detail {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 1.5rem 4rem;
}

@media (min-width: 768px) {
  .photo-detail {
    padding: 80px 2.5rem 4rem;
  }
}

@media (min-width: 1024px) {
  .photo-detail {
    padding: 80px 4rem 4rem;
  }
}

.photo-detail .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  transition: color var(--transition);
}

.photo-detail .back-link:hover {
  color: var(--fg);
}

.photo-detail .photo-main-img {
  width: 100%;
  border-radius: 2px;
  margin-bottom: 2rem;
}

.photo-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .photo-info {
    grid-template-columns: 1fr 1fr;
  }
}

.photo-info h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.photo-info .photo-description {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.photo-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.photo-meta-item .meta-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.photo-meta-item .meta-value {
  font-size: 0.95rem;
}

.photo-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.photo-nav a {
  font-size: 0.8rem;
  color: var(--muted);
  transition: color var(--transition);
}

.photo-nav a:hover {
  color: var(--fg);
}

/* ===== Gallery Grid (Category page) ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

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

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

.gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 4rem 1.5rem;
}

@media (min-width: 768px) {
  .site-footer {
    padding: 4rem 2.5rem;
  }
}

@media (min-width: 1024px) {
  .site-footer {
    padding: 4rem 4rem;
  }
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
  }
}

.footer-brand .site-logo {
  margin-bottom: 0.5rem;
}

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

.footer-nav h4 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 0.5rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--fg);
}

.footer-connect p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.footer-connect a {
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ===== Page Header (inner pages) ===== */
.page-header {
  padding-top: 8rem;
  padding-bottom: 2rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 768px) {
  .page-header {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .page-header {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

.page-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.page-header h1 {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--muted);
  opacity: 0.4;
}

@media (min-width: 768px) {
  .page-header h1 {
    font-size: 4.5rem;
  }
}

/* ===== Fade-in Animation ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Hero Entrance Animation ===== */
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content.hero-entrance > * {
  opacity: 0;
  animation: heroFadeIn 1s ease forwards;
}

.hero-content.hero-entrance > *:nth-child(1) { animation-delay: 0.3s; }
.hero-content.hero-entrance > *:nth-child(2) { animation-delay: 0.6s; }
.hero-content.hero-entrance > *:nth-child(3) { animation-delay: 0.9s; }
.hero-content.hero-entrance > *:nth-child(4) { animation-delay: 1.2s; }

/* ===== Article Entrance Animation ===== */
@keyframes articleFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.article-animate {
  opacity: 0;
  animation: articleFadeIn 0.8s ease forwards;
}

.article-animate:nth-child(1) { animation-delay: 0.1s; }
.article-animate:nth-child(2) { animation-delay: 0.3s; }
.article-animate:nth-child(3) { animation-delay: 0.5s; }

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-4 { margin-bottom: 2rem; }
