@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;1,400;1,500&family=Jost:wght@300;400&display=swap');

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

:root {
  --bg: #F5F0E8;
  --surface: #EDE5D8;
  --rust: #7B3A2E;
  --rust-dim: #5a2920;
  --text: #2C1F14;
  --muted: #6B5B4E;
  --rule: rgba(44,31,20,0.12);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Jost', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.4rem 3.5rem;
  background: rgba(245,240,232,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

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

.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* PAGE ANIMATION */
main {
  flex: 1;
  animation: fadeUp 0.5s ease both;
}

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

/* LIST PAGES */
.list-page {
  padding: 10rem 3.5rem 5rem;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}

.page-title {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 3rem;
}

/* ENTRIES */
.entry {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  padding: 1.2rem 0;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  white-space: nowrap;
  overflow: hidden;
}

.entry:hover .entry-title { color: var(--rust); }
.entry:hover .entry-arrow { opacity: 1; transform: translateX(0); }

.entry-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  width: 220px;
  flex-shrink: 0;
}

.entry-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.35;
  flex: 1;
  transition: color 0.2s;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entry-arrow {
  font-size: 0.72rem;
  color: var(--muted);
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.2s;
}

/* FOOTER */
footer {
  padding: 2rem 3.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: center;
  margin-top: auto;
}

footer a {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover { color: var(--rust); }

/* MOBILE */
@media (max-width: 768px) {
  nav {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    gap: 1.8rem;
  }

  .list-page {
    padding: 7rem 1.5rem 3rem;
  }

  .page-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .entry {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    white-space: normal;
    padding: 0.9rem 0;
  }

  .entry-label {
    width: auto;
  }

  .entry-title {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .entry-arrow {
    display: none;
  }

  footer {
    padding: 1.5rem 1.5rem;
  }
}
