*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #faf7f2;
  --warm-white: #fff9f4;
  --ink: #1c1a17;
  --ink-light: #4a4540;
  --ink-muted: #8a8078;
  --amber: #c8702a;
  --amber-light: #e8936a;
  --amber-pale: #f5e6d8;
  --sage: #7a8c72;
  --sage-pale: #eaf0e7;
  --card-bg: #ffffff;
  --border: #ede8e0;
  --blue: #001B5B;
  --blue-pale: #e1e8f9;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-name {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ink-light);
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-social {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-social a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}

.nav-social a:hover { color: var(--amber); }

/* ── HERO ── */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem 3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.hero-text { max-width: 580px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.25rem;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
}

.hero h1 {
  font-family: 'Lora', serif;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--amber);
}

.hero-bio {
  font-size: 1.05rem;
  color: var(--ink-light);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  background: var(--amber-pale);
  color: var(--amber);
  white-space: nowrap;
}

.tag.sage {
  background: var(--sage-pale);
  color: var(--sage);
}

.tag.blue {
  background: var(--blue-pale);
  color: var(--blue);
}

.hero-photo-wrap {
  perspective: 800px;
  flex-shrink: 0;
}

.hero-photo {
  width: 200px;
  height: 260px;
  border-radius: 12px;
  background: var(--amber-pale);
  position: relative;
  box-shadow: 0 8px 40px rgba(0,0,0,0.10);
  transform: rotate(1.5deg);
  transform-style: preserve-3d;
}

.hero-photo-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
}

.hero-photo-wrap:hover .hero-photo-inner {
  transform: rotateY(180deg);
}

.hero-photo-front,
.hero-photo-back {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hero-photo-back {
  transform: rotateY(180deg);
}

.hero-photo-front img,
.hero-photo-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── DIVIDER ── */
.divider {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
  border: none;
  border-top: 1px solid var(--border);
}

/* ── OVERVIEW GRID ── */
.overview {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 1.75rem;
  transition: box-shadow 0.25s, transform 0.25s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card:hover {
  box-shadow: 0 6px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.card-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.card-label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  display: inline-block;
}

.card-label-dot.sage { background: var(--sage); }

/* Blog card */
.card-blog { grid-column: 1; grid-row: 1; }

.blog-post-list { list-style: none; margin-top: 0.5rem; }

.blog-post-item {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}

.blog-post-item:last-child { border-bottom: none; padding-bottom: 0; }

.blog-post-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.blog-post-link:hover .blog-post-title { color: var(--amber); }

.blog-post-title {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.4;
}

.blog-post-date {
  font-size: 0.75rem;
  color: var(--ink-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.card-footer {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
}

.card-footer::after { content: '→'; }

/* Flying card */
.card-flying {
  grid-column: 2;
  grid-row: 1;
  background: linear-gradient(160deg, #1a2a3a 0%, #0e1c2c 100%);
  border-color: #1a2a3a;
  color: white;
  position: relative;
  overflow: hidden;
}

.card-flying .card-label { color: rgba(255,255,255,0.45); }
.card-flying .card-label-dot { background: #7eb8d4; }

.flying-heading {
  font-family: 'Lora', serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.flying-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 1.25rem;
}

.flying-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
}

.card-flying .card-footer { color: #7eb8d4; }

.sky-deco {
  position: absolute;
  bottom: -20px;
  right: -20px;
  font-size: 5rem;
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
}

/* Book card */
.card-book {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.book-spine {
  flex-shrink: 0;
}

.book-spine img {
  display: block;
  max-height: 100px;
  width: auto;
}

.book-content { flex: 1; }

.book-title {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.book-desc {
  font-size: 0.85rem;
  color: var(--ink-light);
  line-height: 1.6;
  font-weight: 300;
}

/* About card */
.card-about {
  grid-column: 2;
  grid-row: 2;
  background: var(--amber-pale);
  border-color: #e8d5c0;
}

.about-name {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.about-desc {
  font-size: 0.83rem;
  color: var(--ink-light);
  line-height: 1.65;
  font-weight: 300;
}

.card-about .card-footer { margin-top: 1rem; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

footer a { color: var(--ink-muted); text-decoration: none; }
footer a:hover { color: var(--amber); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-text  { animation: fadeUp 0.6s ease both; }
.hero-photo { animation: fadeUp 0.6s 0.15s ease both; }
.card       { animation: fadeUp 0.5s ease both; }
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

/* ── INNER PAGE LAYOUT ── */
.page-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 2rem 5rem;
}


/* ── PROSE (blog post body) ── */
.prose {
  max-width: 680px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink-light);
}

.prose h1, .prose h2, .prose h3,
.prose h4, .prose h5, .prose h6 {
  font-family: 'Lora', serif;
  color: var(--ink);
  margin: 2rem 0 0.75rem;
  line-height: 1.3;
}

.prose h1 { font-size: 1.9rem; }
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.25rem; }

.prose p { margin-bottom: 1.4rem; }

.prose ul, .prose ol {
  margin: 0 0 1.4rem 1.5rem;
}

.prose li { margin-bottom: 0.4rem; }

.prose blockquote {
  border-left: 3px solid var(--amber);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--ink-muted);
  font-style: italic;
}

.prose a { color: var(--amber); text-decoration: underline; }
.prose a:hover { color: var(--amber-light); }

.prose img,
.content-image {
  max-width: 100%;
  border-radius: 8px;
  margin: 1.5rem 0;
  display: block;
}

/* ── BLOG LISTING ── */
.post-list { list-style: none; }

.post-list-item {
  padding: 0 0;
  border-bottom: 1px solid var(--border);
}

.post-list-item:last-child { border-bottom: none; }

.post-list-title {
  font-family: 'Lora', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
  line-height: 1.35;
}

.post-list-title:hover { color: var(--amber); }

.post-list-meta {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
}

.post-list-excerpt {
  font-size: 0.95rem;
  color: var(--ink-light);
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 1rem;
}

.read-more {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--amber);
  text-decoration: none;
}

.read-more::after { content: ' →'; }
.read-more:hover { color: var(--amber-light); }

/* ── BLOG POST FULL ── */
.post-full { max-width: 680px; }

.post-full-header { margin-bottom: 2.5rem; }

.post-full-title {
  font-family: 'Lora', serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.post-full-meta {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.cover-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 2.5rem;
  display: block;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.back-link:hover { color: var(--amber); }
.back-link::before { content: '←'; }

/* ── ABOUT PAGE ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
  align-items: start;
}

.about-content h2 {
  font-family: 'Lora', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  margin: 2rem 0 0.75rem;
}

.about-content h2:first-child { margin-top: 0; }

.about-content p {
  font-size: 1rem;
  color: var(--ink-light);
  line-height: 1.75;
  margin-bottom: 1.2rem;
  font-weight: 300;
}

.about-photo-wrap {
  perspective: 800px;
}

.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.10);
  transform: rotate(-1deg);
  transform-style: preserve-3d;
  position: relative;
}

.about-photo-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
}

.about-photo-wrap:hover .about-photo-inner {
  transform: rotateY(180deg);
}

.about-photo-front,
.about-photo-back {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.about-photo-back {
  transform: rotateY(180deg);
}

.about-photo-front img,
.about-photo-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

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

.about-social a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--amber);
  text-decoration: none;
}

.about-social a:hover { color: var(--amber-light); }

/* ── PAGE HERO (shared across inner pages) ── */
.page-hero {
  background: linear-gradient(160deg, #1a2a3a 0%, #0e1c2c 100%);
  color: white;
  padding: 4rem 2rem;
  margin-bottom: 1.5rem;
}

.page-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.page-hero h1 {
  font-family: 'Lora', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  font-weight: 300;
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.flying-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.flying-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}

.flying-content {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.flying-content h2 {
  font-family: 'Lora', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  margin: 2.5rem 0 0.75rem;
}

.flying-content h2:first-child { margin-top: 0; }

.flying-content p {
  font-size: 1rem;
  color: var(--ink-light);
  line-height: 1.75;
  margin-bottom: 1.2rem;
  font-weight: 300;
  max-width: 680px;
}

/* ── BOOK PAGE ── */
.book-body {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.book-cover {
  width: 120px;
  border-radius: 4px;
  box-shadow: 4px 4px 16px rgba(0,0,0,0.18);
  display: block;
  margin-bottom: 2rem;
}

.book-body h2 {
  font-family: 'Lora', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  margin: 2.5rem 0 0.75rem;
}

.book-body h2:first-child { margin-top: 0; }

.book-body p {
  font-size: 1rem;
  color: var(--ink-light);
  line-height: 1.75;
  margin-bottom: 1.2rem;
  font-weight: 300;
  max-width: 680px;
}

/* ── EMPTY / NOT FOUND ── */
.empty-state {
  padding: 4rem 2rem;
  text-align: center;
  color: var(--ink-muted);
}

.empty-state p { margin-bottom: 1rem; }

.not-found {
  max-width: 480px;
  margin: 6rem auto;
  text-align: center;
  padding: 0 2rem;
}

.not-found h1 {
  font-family: 'Lora', serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--ink);
}

.not-found p {
  color: var(--ink-light);
  margin-bottom: 2rem;
}

/* ── PAGINATION ── */
.pagination {
  display: flex;
  gap: 0.5rem;
  margin-top: 3rem;
  justify-content: center;
}

.pagination a, .pagination span {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--ink-light);
  border: 1px solid var(--border);
  background: var(--card-bg);
  transition: all 0.2s;
}

.pagination a:hover { color: var(--amber); border-color: var(--amber); }
.pagination span { color: var(--ink-muted); cursor: default; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 3rem;
  }

  .hero-photo-wrap {
    order: -1;
    display: flex;
    justify-content: center;
  }

  .hero-photo {
    width: 150px;
    height: 190px;
  }

  .hero-tags { justify-content: center; }
  .hero-eyebrow { justify-content: center; }

  .overview {
    grid-template-columns: 1fr;
  }

  .card-blog,
  .card-flying,
  .card-book,
  .card-about {
    grid-column: 1;
    grid-row: auto;
  }

  .nav-links { display: none; }

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

  .about-photo {
    max-width: 240px;
    transform: none;
  }

}
