/* ============================================================
   Fonts
   ============================================================ */

@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/playfair-display-v40-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/playfair-display-v40-latin-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/playfair-display-v40-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/playfair-display-v40-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Merriweather';
  src: url('/fonts/merriweather-v33-latin-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Merriweather';
  src: url('/fonts/merriweather-v33-latin-300italic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Merriweather';
  src: url('/fonts/merriweather-v33-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Merriweather';
  src: url('/fonts/merriweather-v33-latin-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Merriweather';
  src: url('/fonts/merriweather-v33-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   Design Tokens
   ============================================================ */

:root {
  --color-navy:   #110E38;
  --color-sage:   #9DD1A7;
  --color-teal:   #16a085;
  --color-bg:     #f2f6ff;
  --color-bg-alt: #ffffff;
  --color-border: #d5dce3;

  --font-headline: 'Playfair Display', Georgia, serif;
  --font-body:     'Merriweather', Georgia, serif;

  --nav-height: 5rem;
  --container:  80rem;
}

/* ============================================================
   Reset & Base
   ============================================================ */

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

html {
  font-size: 18px;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-navy);
  line-height: 1.75;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-navy);
  text-decoration: none;
}

/* ============================================================
   Navigation
   ============================================================ */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(242, 246, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.5rem 2rem;
}

.site-brand {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--color-navy);
  text-decoration: none;
}

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

.nav-links a {
  font-family: var(--font-headline);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: rgba(17, 14, 56, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--color-navy);
}

.nav-links a[aria-current="page"] {
  font-weight: 700;
  color: var(--color-navy);
  border-bottom: 2px solid var(--color-sage);
  padding-bottom: 0.15rem;
}


/* ============================================================
   Main content — offset for fixed nav
   ============================================================ */

main {
  padding-top: var(--nav-height);
}

/* ============================================================
   Hero Section
   ============================================================ */

.hero {
  padding: 6rem 2rem 8rem;
  max-width: var(--container);
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-text {
  grid-column: 1 / 9;
}

.hero-portrait {
  grid-column: 10 / 13;
}

.hero-headline {
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-navy);
  margin: 0 0 2rem;
}

.hero-accent {
  width: 6rem;
  height: 4px;
  background: var(--color-sage);
  margin-bottom: 2rem;
}

.hero-description {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(17, 14, 56, 0.8);
  line-height: 1.8;
  max-width: 36rem;
  margin: 0;
}

.portrait-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--color-bg-alt);
  padding: 0.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  border: 1px solid rgba(213, 220, 227, 0.5);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   Articles Section (home page)
   ============================================================ */

.articles-section {
  background: var(--color-bg-alt);
  border-top: 1px solid rgba(213, 220, 227, 0.5);
  padding: 6rem 2rem;
}

.articles-inner {
  max-width: var(--container);
  margin: 0 auto;
}


.articles-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.article-item {
}

.article-title {
  font-family: var(--font-headline);
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}

.article-title a {
  color: var(--color-navy);
  text-decoration: none;
  transition: color 0.3s;
}

.article-title a:hover {
  color: var(--color-teal);
}

.article-excerpt {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: rgba(17, 14, 56, 0.7);
  line-height: 1.8;
  margin: 0;
}

/* ============================================================
   Writing index
   ============================================================ */

.writing-index {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.writing-index h1 {
  font-family: var(--font-headline);
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 3rem;
}

.writing-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 40rem;
}

.writing-list li {
  margin-bottom: 1.25rem;
}

.writing-list a {
  font-family: var(--font-headline);
  font-size: 1.2rem;
  color: var(--color-navy);
  text-decoration: none;
  transition: color 0.2s;
}

.writing-list a:hover {
  color: var(--color-teal);
}

/* ============================================================
   Article page
   ============================================================ */

.article-page {
  max-width: 40rem;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.article-page h1 {
  font-family: var(--font-headline);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 2rem;
}

.article-page p {
  margin: 0 0 1.5rem;
  font-weight: 300;
  line-height: 1.8;
}

.article-page img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
}


/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(17, 14, 56, 0.5);
}

.footer-profiles {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-profile-link {
  color: rgba(17, 14, 56, 0.4);
  display: flex;
  transition: color 0.2s;
}

.footer-profile-link:hover {
  color: var(--color-navy);
}

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

@media (max-width: 768px) {
  .nav-links {
    gap: 1.5rem;
  }

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

  .hero-text {
    grid-column: 1 / -1;
  }

  .hero-portrait {
    grid-column: 1 / -1;
    max-width: 14rem;
  }
}
