@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;1,8..60,300&display=swap');

:root {
  --navy: #0d1b2a;
  --ocean: #1b4965;
  --sea: #2e86ab;
  --foam: #f0f4f8;
  --sand: #e8dcc8;
  --white: #fafafa;
  --text: #1a1a2e;
  --text-light: #556070;
  --accent: #c9893a;
  --card-shadow: 0 4px 24px rgba(13,27,42,0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 300;
  background: var(--foam);
  color: var(--text);
  line-height: 1.8;
}

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
  background: var(--navy);
  border-bottom: 3px solid var(--accent);
}

.site-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav > a {
  color: var(--sand);
  text-decoration: none;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
  white-space: nowrap;
}
.site-nav > a:hover { color: var(--accent); }

/* ── NAV DROPDOWN ── */
.nav-dropdown { position: relative; }

.nav-dropdown-btn {
  background: none;
  border: none;
  color: var(--sand);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s;
  font-family: inherit;
  white-space: nowrap;
}
.nav-dropdown-btn:hover,
.nav-dropdown.open .nav-dropdown-btn { color: var(--accent); }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 3px);
  right: 0;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 3px solid var(--accent);
  min-width: 220px;
  max-height: 60vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 300;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }

.dropdown-year { border-bottom: 1px solid rgba(255,255,255,0.08); }

.year-btn {
  width: 100%;
  background: none;
  border: none;
  color: var(--sand);
  padding: 0.75rem 1.2rem;
  font-size: 0.9rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}
.year-btn:hover { background: rgba(255,255,255,0.05); color: var(--accent); }
.year-count { font-size: 0.75rem; opacity: 0.6; font-family: 'Source Serif 4', serif; font-weight: 300; }
.chevron { transition: transform 0.2s; }
.dropdown-year.open .chevron { transform: rotate(180deg); }

.year-months { display: none; background: rgba(0,0,0,0.2); }
.dropdown-year.open .year-months { display: block; }

.dropdown-month {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1.2rem 0.5rem 2rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.82rem;
  transition: all 0.2s;
}
.dropdown-month:hover { color: var(--accent); background: rgba(255,255,255,0.05); }
.dropdown-month span { font-size: 0.75rem; opacity: 0.5; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* ── HERO POST ── */
.hero-post {
  position: relative;
  height: 85vh;
  min-height: 500px;
  overflow: hidden;
}

.hero-post-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero-post:hover .hero-post-img { transform: scale(1); }

.hero-post-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,20,35,0.95) 0%, rgba(10,20,35,0.5) 50%, rgba(10,20,35,0.15) 100%);
  display: flex;
  align-items: flex-end;
}

.hero-post-content {
  padding: 3rem 4rem;
  max-width: 800px;
}

.hero-label {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  margin-bottom: 1rem;
  border-radius: 2px;
}

.hero-post-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.hero-post-content h1 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.hero-post-content h1 a:hover { color: var(--sand); }

.hero-date {
  font-size: 0.82rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-excerpt {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 560px;
  font-style: italic;
}

.hero-cta {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s;
}
.hero-cta:hover { background: #b57a2e; transform: translateY(-2px); }

/* ── RECENT SECTION ── */
.recent-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #d0d8e0;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--navy);
}

.view-all {
  color: var(--sea);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.view-all:hover { color: var(--accent); }

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

/* ── POST CARD ── */
.post-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(13,27,42,0.15);
}

.card-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--ocean);
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.post-card:hover .card-img img { transform: scale(1.05); }

.card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }

.card-date {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.6rem;
}
.card-title a { color: var(--navy); text-decoration: none; transition: color 0.2s; }
.card-title a:hover { color: var(--sea); }

.card-excerpt { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; flex: 1; margin-bottom: 1rem; }
.card-read { color: var(--sea); text-decoration: none; font-size: 0.83rem; transition: color 0.2s; }
.card-read:hover { color: var(--accent); }

/* ── ARCHIVE PAGE ── */
.archive-main { max-width: 900px; margin: 0 auto; padding: 3rem 2rem 5rem; }

.archive-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #d0d8e0;
}
.archive-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.archive-header p { color: var(--text-light); font-style: italic; }

.archive-year { margin-bottom: 3rem; }

.archive-year-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--navy);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.archive-year-title span {
  font-size: 0.85rem;
  color: var(--text-light);
  font-family: 'Source Serif 4', serif;
  font-weight: 300;
}

.archive-month { margin-bottom: 1.5rem; padding-left: 1rem; border-left: 3px solid #d0d8e0; }
.archive-month:hover { border-left-color: var(--sea); }

.archive-month-title {
  color: var(--ocean);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-family: 'Source Serif 4', serif;
}

.archive-list { list-style: none; }
.archive-list li { padding: 0.3rem 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
.archive-list a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.archive-list a:hover { color: var(--sea); }

/* ── POST PAGE ── */
.post-main { max-width: 780px; margin: 3rem auto; padding: 0 2rem 4rem; }

.post-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #d0d8e0;
}

.post-date {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.post-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.post-content p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 1.2rem;
}

.post-content figure { margin: 2rem -1rem; text-align: center; }
.post-content figure img {
  max-width: 100%;
  border-radius: 3px;
  box-shadow: 0 4px 20px rgba(13,27,42,0.12);
}

/* ── POST NAV ── */
.post-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #d0d8e0;
  gap: 1rem;
}
.post-nav a {
  color: var(--sea);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--sea);
  border-radius: 2px;
  transition: all 0.2s;
}
.post-nav a:hover { background: var(--sea); color: var(--white); }
.nav-home { background: var(--navy) !important; border-color: var(--navy) !important; color: var(--white) !important; }

/* ── FOOTER ── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.4);
  text-align: center;
  padding: 2rem;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .site-header { padding: 0 1.2rem; }
  .mobile-menu-btn { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 0;
    border-bottom: 2px solid var(--accent);
  }
  .site-nav.open { display: flex; }
  .site-nav > a, .nav-dropdown-btn { padding: 0.75rem 1.5rem; }
  .nav-dropdown-menu { position: static; max-height: none; border: none; box-shadow: none; }
  .hero-post-content { padding: 2rem 1.5rem; }
  .cards-container { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; gap: 0.5rem; }
  .post-nav { flex-direction: column; text-align: center; }
  .post-content figure { margin: 1.5rem 0; }
}
