/* === TOKENS === */
:root {
  --navy:    #1B2A4A;
  --gold:    #B8963E;
  --cream:   #F7F5F0;
  --charcoal:#2E2E2E;
  --mid:     #6B7280;
  --rule:    #D6CFC3;
  --white:   #FFFFFF;

  --serif:   'EB Garamond', Georgia, serif;
  --sans:    'Inter', system-ui, sans-serif;

  --max: 1100px;
  --section-gap: 5rem;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* === NAV === */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 2px solid var(--gold);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: 0.04em;
}
.nav-logo span { color: var(--gold); }
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* === HERO === */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 7rem 2rem 6rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "headline portrait"
    "desc     portrait"
    "actions  portrait";
  column-gap: 4rem;
  align-items: center;
}
.hero-headline { grid-area: headline; }
.hero-desc-area { grid-area: desc; }
.hero-actions { grid-area: actions; }
.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  font-family: var(--sans);
  font-weight: 600;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  line-height: 1.08;
  font-weight: 400;
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
}
.hero-desc {
  grid-area: desc;
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.72);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 2.25rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover { background: #c9a34a; border-color: #c9a34a; }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.hero-portrait {
  grid-area: portrait;
  width: 220px;
  height: 280px;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--gold);
}

/* === SECTION WRAPPER === */
.section {
  padding: var(--section-gap) 2rem;
}
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--navy);
  font-weight: 400;
  margin-bottom: 1rem;
  line-height: 1.15;
}
.rule {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 2rem;
}

/* === ABOUT SECTION (home) === */
.about { background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-text p {
  color: var(--charcoal);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 1rem;
}
.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.pillar {
  border-left: 3px solid var(--gold);
  padding: 0.75rem 1rem;
  background: var(--white);
}
.pillar-title {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
}
.pillar p {
  font-size: 0.8125rem;
  color: var(--mid);
  line-height: 1.5;
}

/* === RESUME PAGE === */
.page-hero {
  background: var(--navy);
  padding: 4rem 2rem;
  color: var(--white);
}
.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.page-hero .section-label { margin-bottom: 0.75rem; }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
}
.page-hero p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9375rem;
}

.resume-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}
.resume-section { margin-bottom: 3rem; }
.resume-section-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--navy);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.entry { margin-bottom: 1.75rem; }
.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.entry-title {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--navy);
}
.entry-date {
  font-size: 0.8125rem;
  color: var(--mid);
  white-space: nowrap;
}
.entry-org {
  font-size: 0.875rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.entry ul {
  list-style: none;
  padding: 0;
}
.entry ul li {
  font-size: 0.875rem;
  color: var(--charcoal);
  line-height: 1.65;
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.35rem;
}
.entry ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.75rem;
  top: 0.05em;
}

/* Sidebar */
.sidebar-card {
  background: var(--cream);
  border-top: 3px solid var(--gold);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-card-title {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 1rem;
  font-weight: 600;
}
.skill-tag {
  display: inline-block;
  font-size: 0.75rem;
  background: var(--white);
  border: 1px solid var(--rule);
  color: var(--charcoal);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  margin: 0.2rem;
  font-weight: 500;
}
.contact-line {
  font-size: 0.8125rem;
  color: var(--charcoal);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.contact-line a { color: var(--navy); }
.contact-line a:hover { color: var(--gold); }
.contact-icon {
  color: var(--gold);
  font-size: 0.875rem;
  width: 16px;
}

/* === BLOG === */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}
.blog-card {
  border: 1px solid var(--rule);
  padding: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.blog-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 24px rgba(27,42,74,0.07);
}
.blog-tag {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.blog-card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.blog-card p {
  font-size: 0.875rem;
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.blog-meta {
  font-size: 0.75rem;
  color: var(--mid);
}
.blog-coming-soon {
  text-align: center;
  padding: 5rem 2rem;
  background: var(--cream);
}
.blog-coming-soon h2 {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
  font-weight: 400;
}
.blog-coming-soon p { color: var(--mid); }

/* === CONTACT === */
.contact-section { background: var(--cream); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-info p {
  color: var(--charcoal);
  line-height: 1.75;
  margin-bottom: 2rem;
  font-size: 0.9375rem;
}
.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.contact-detail-icon {
  width: 36px;
  height: 36px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.875rem;
  flex-shrink: 0;
}
.contact-detail-text strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  margin-bottom: 0.15rem;
}
.contact-detail-text span,
.contact-detail-text a {
  font-size: 0.9rem;
  color: var(--mid);
}
.contact-detail-text a:hover { color: var(--gold); }

.contact-form { background: var(--white); padding: 2.5rem; border-top: 3px solid var(--gold); }
.form-row { margin-bottom: 1.25rem; }
.form-row label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 1px;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--charcoal);
  background: var(--cream);
  outline: none;
  transition: border-color 0.2s;
}
.form-row input:focus,
.form-row textarea:focus { border-color: var(--gold); background: var(--white); }
.form-row textarea { resize: vertical; min-height: 130px; }
.form-submit { width: 100%; }

/* === FOOTER === */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  padding: 2.5rem 2rem;
  border-top: 2px solid var(--gold);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--white);
}
.footer-logo span { color: var(--gold); }
.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.footer-links a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 0.75rem; }

/* === MOBILE === */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 1rem 2rem 1.5rem;
    gap: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open { display: flex; }
  .hero {
    padding: 4rem 1.5rem 3.5rem;
  }
  .hero-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "headline portrait"
      "desc     desc"
      "actions  actions";
    column-gap: 1.25rem;
    align-items: center;
  }
  .hero-headline { align-self: center; }
  .hero-portrait {
    width: 110px;
    height: 140px;
    border-width: 2px;
  }
  .hero-desc { margin-top: 1.5rem; max-width: 100%; }
  .hero h1 { font-size: clamp(2.25rem, 11vw, 3rem); }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .pillars { grid-template-columns: 1fr; }
  .resume-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
