:root {
  --cream: #faf8f4;
  --sand: #f3ede3;
  --sand-dark: #e5ddd0;
  --warm-brown: #8b6f47;
  --dark-brown: #3d2e1f;
  --espresso: #2a1f14;
  --slate: #3c4f5c;
  --slate-light: #5a7385;
  --slate-pale: #8fa4b2;
  --caramel: #b8895a;
  --caramel-light: #d4a96a;
  --text: #3d2e1f;
  --text-mid: #5c4e3e;
  --text-light: #8a7d6f;
  --divider: #e5dfd5;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(139, 111, 71, 0.06);
}

nav .logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--espresso);
  text-decoration: none;
  font-weight: 400;
}

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

nav .nav-links a {
  text-decoration: none;
  color: var(--text-mid);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

nav .nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--warm-brown);
  transition: width 0.3s ease;
}

nav .nav-links a:hover { color: var(--dark-brown); }
nav .nav-links a:hover::after { width: 100%; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 3rem 4rem;
  max-width: 1140px;
  margin: 0 auto;
}

.hero-content {
  max-width: 700px;
  animation: fadeUp 1s ease forwards;
  opacity: 0;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-brown);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  line-height: 1.12;
  color: var(--espresso);
  letter-spacing: -0.02em;
  font-weight: 400;
  margin-bottom: 2rem;
}

.hero h1 .accent {
  color: var(--slate);
  font-style: italic;
}

.hero-bio {
  font-size: 1.1rem;
  color: var(--espresso);
  line-height: 1.85;
  font-weight: 300;
  max-width: 620px;
}

/* ===== CURRENT WORK ===== */
.current {
  background: var(--espresso);
  padding: 5.5rem 0;
  position: relative;
  overflow: hidden;
}

.current::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -8%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(139, 111, 71, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.current-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 3rem;
  position: relative;
  z-index: 1;
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.current .section-label { color: var(--caramel); }

.current-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--sand);
  letter-spacing: -0.01em;
  margin-bottom: 3rem;
  font-weight: 400;
  opacity: 1;
}

.current-heading span {
  color: var(--caramel-light);
}

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

.role-card {
  padding: 1.75rem 2rem;
  border: 1px solid rgba(196, 149, 106, 0.12);
  border-radius: 14px;
  transition: all 0.3s ease;
  background: rgba(243, 237, 227, 0.03);
}

.role-card:hover {
  border-color: rgba(196, 149, 106, 0.3);
  background: rgba(243, 237, 227, 0.05);
}

.role-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--sand);
  margin-bottom: 0.6rem;
}

.role-card-desc {
  font-size: 0.85rem;
  color: rgba(243, 237, 227, 0.9);
  line-height: 1.7;
  font-weight: 300;
}

.role-card-note {
  font-size: 0.7rem;
  color: rgba(196, 149, 106, 0.85);
  font-style: italic;
  margin-top: 0.5rem;
}

/* ===== CAREER TIMELINE ===== */
.timeline-section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 5.5rem 3rem;
}

.timeline-section .section-label {
  color: var(--warm-brown);
  margin-bottom: 3rem;
}

.timeline {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0;
}

.timeline-entry { display: contents; }

.timeline-year {
  font-size: 0.76rem;
  color: var(--dark-brown);
  padding: 1.75rem 0;
  font-weight: 400;
  letter-spacing: 0.02em;
  border-right: 1px solid var(--divider);
  padding-right: 2rem;
}

.timeline-content {
  padding: 1.75rem 0 1.75rem 2.5rem;
  border-bottom: 1px solid var(--divider);
  position: relative;
  transition: all 0.3s;
}

.timeline-entry:last-child .timeline-content { border-bottom: none; }
.timeline-entry:last-child .timeline-year { border-right-color: transparent; }

.timeline-content::before {
  content: '';
  position: absolute;
  left: -4.5px;
  top: 2rem;
  width: 8px;
  height: 8px;
  background: var(--cream);
  border: 2px solid var(--divider);
  border-radius: 50%;
  transition: all 0.3s;
}

.timeline-content:hover::before {
  border-color: var(--caramel);
  background: var(--caramel);
}

.timeline-role {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--espresso);
  margin-bottom: 0.2rem;
  font-weight: 400;
}

.timeline-company {
  font-size: 0.88rem;
  color: var(--slate-light);
  font-weight: 500;
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.timeline-desc {
  font-size: 0.86rem;
  color: var(--dark-brown);
  line-height: 1.75;
  font-weight: 300;
  max-width: 540px;
}

/* ===== TICKETMASTER STORY ===== */
.story-section {
  background: var(--sand);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.story-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.story-text .section-label {
  color: var(--warm-brown);
  margin-bottom: 1.5rem;
}

.story-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--espresso);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.story-text h3 em {
  font-style: italic;
  color: var(--slate);
}

.story-text p {
  font-size: 0.92rem;
  color: var(--espresso);
  line-height: 1.8;
  font-weight: 300;
}

.story-email {
  background: var(--cream);
  border-radius: 16px;
  padding: 2.25rem;
  border: 1px solid var(--divider);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--text-mid);
  position: relative;
  box-shadow: 0 8px 40px rgba(61, 46, 31, 0.06);
}

.story-email::before {
  content: 'NETCOM EMAIL \2014  JULY 22, 1994';
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-brown);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--divider);
  font-weight: 500;
}

.email-header {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--divider);
}

.email-header span {
  display: block;
  color: var(--text-mid);
}

.email-header .subject {
  color: var(--espresso);
  font-weight: bold;
}

.email-body { color: var(--espresso); }

.email-body .highlight {
  background: rgba(184, 137, 90, 0.12);
  padding: 0.15rem 0.3rem;
  border-radius: 3px;
  color: var(--dark-brown);
  font-weight: bold;
}

.email-record {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background: var(--sand);
  border-radius: 8px;
  border-left: 3px solid var(--caramel);
}

/* ===== WRITING ===== */
.writing {
  max-width: 1140px;
  margin: 0 auto;
  padding: 5.5rem 3rem;
}

.writing .section-label {
  color: var(--warm-brown);
  margin-bottom: 3rem;
}

.posts-list { list-style: none; }

.post-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--divider);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.post-item:first-child { border-top: 1px solid var(--divider); }
.post-item:hover { padding-left: 1.25rem; }

.post-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--espresso);
  font-weight: 400;
  transition: color 0.3s;
}

.post-item:hover .post-title { color: var(--slate); }

.post-date {
  font-size: 0.78rem;
  color: var(--dark-brown);
  white-space: nowrap;
  margin-left: 2rem;
  font-weight: 300;
}

.post-arrow {
  display: inline-block;
  margin-left: 0.6rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.3s ease;
  color: var(--warm-brown);
  font-size: 0.85rem;
}

.post-item:hover .post-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ===== FOOTER ===== */
footer {
  padding: 3.5rem 3rem;
  max-width: 1140px;
  margin: 0 auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 2rem;
  border-top: 1px solid var(--divider);
}

.footer-left h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--espresso);
  margin-bottom: 0.35rem;
  font-weight: 400;
}

.footer-left p {
  font-size: 0.82rem;
  color: var(--text-mid);
  font-weight: 300;
}

.footer-right {
  font-size: 0.72rem;
  color: var(--text-mid);
  text-align: right;
  letter-spacing: 0.04em;
}

/* ===== BLOG POST PAGE ===== */
.post-page {
  max-width: 740px;
  margin: 0 auto;
  padding: 8rem 3rem 4rem;
}

.post-page-header {
  margin-bottom: 3rem;
}

.post-page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--espresso);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.post-page-meta {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 300;
}

.post-page-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
  font-weight: 300;
}

.post-page-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--espresso);
  margin: 2.5rem 0 1rem;
  font-weight: 400;
}

.post-page-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--espresso);
  margin: 2rem 0 0.75rem;
  font-weight: 400;
}

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

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

.post-page-content a:hover {
  color: var(--warm-brown);
}

.post-page-content blockquote {
  border-left: 3px solid var(--caramel);
  padding: 0.5rem 1.5rem;
  margin: 1.5rem 0;
  color: var(--text-mid);
  font-style: italic;
}

.post-page-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.post-page-content code {
  background: var(--sand);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.post-page-content pre {
  background: var(--espresso);
  color: var(--sand);
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post-page-content pre code {
  background: none;
  padding: 0;
}

.post-page-tags {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--divider);
}

.post-page-tags span {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--warm-brown);
  background: var(--sand);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--slate);
  text-decoration: none;
}

.back-link:hover {
  color: var(--warm-brown);
}

/* ===== ARCHIVE PAGE ===== */
.archive-page {
  max-width: 740px;
  margin: 0 auto;
  padding: 8rem 3rem 4rem;
}

.archive-page h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--espresso);
  font-weight: 400;
  margin-bottom: 3rem;
}

/* ===== CV PAGE ===== */
.cv-page {
  max-width: 740px;
  margin: 0 auto;
  padding: 8rem 3rem 4rem;
}

.cv-page h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--espresso);
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.cv-page p {
  font-size: 1rem;
  color: var(--text-mid);
  font-weight: 300;
  margin-bottom: 2rem;
}

.cv-download {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--espresso);
  color: var(--sand);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: all 0.3s;
}

.cv-download:hover {
  background: var(--dark-brown);
}

/* ===== 404 PAGE ===== */
.not-found {
  max-width: 740px;
  margin: 0 auto;
  padding: 8rem 3rem 4rem;
  text-align: center;
}

.not-found h1 {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: var(--espresso);
  font-weight: 400;
  margin-bottom: 1rem;
}

.not-found p {
  font-size: 1.1rem;
  color: var(--text-mid);
  font-weight: 300;
  margin-bottom: 2rem;
}

.not-found a {
  color: var(--slate);
  text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .hero, .timeline-section, .writing, footer { padding-left: 1.5rem; padding-right: 1.5rem; }
  .current-inner, .story-inner { padding: 0 1.5rem; }
  .current-grid { grid-template-columns: 1fr; }
  .story-inner { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .timeline-year { border-right: none; padding-right: 0; padding-bottom: 0; }
  .timeline-content { padding-left: 0; }
  .timeline-content::before { display: none; }
  .post-page, .archive-page, .cv-page { padding-left: 1.5rem; padding-right: 1.5rem; }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
