:root {
  --bg: #fafaf8;
  --text: #0f0f0f;
  --muted: #6b6b6b;
  --accent: #0a2540;
  --border: #e5e5e0;
  --tag-bg: #f0ede8;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', sans-serif;
}

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

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleUp { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: slideInDown 0.6s ease-out;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: max-content;
}

.nav-logo:hover { opacity: 0.7; transform: scale(1.05); }
.nav-logo span { color: #0f0f0f; }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
  position: relative;
}

.nav-links a:hover { color: var(--text); transform: translateY(-2px); }

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

.nav-links a:hover::after { width: 100%; }

.nav-links a.nav-start-here {
  color: var(--accent);
  font-weight: 500;
  background: var(--tag-bg);
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.nav-links a.nav-start-here:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.nav-links a.nav-start-here::after { display: none; }

.tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--tag-bg);
  padding: 3px 10px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.article-item {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
  animation: slideInUp 0.6s ease-out forwards;
  display: block;
}

.article-item:nth-child(1) { animation-delay: 0.3s; }
.article-item:nth-child(2) { animation-delay: 0.4s; }
.article-item:nth-child(3) { animation-delay: 0.5s; }
.article-item:nth-child(4) { animation-delay: 0.6s; }
.article-item:nth-child(5) { animation-delay: 0.7s; }
.article-item:nth-child(6) { animation-delay: 0.8s; }
.article-item:nth-child(7) { animation-delay: 0.9s; }
.article-item:nth-child(8) { animation-delay: 1s; }

.article-item:hover { opacity: 0.7; transform: translateX(8px); }
.article-item:hover .tag { background: var(--accent); color: white; }

.article-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.article-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.article-desc {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.article-meta { font-size: 13px; color: #aaa; }

footer {
  border-top: 1px solid var(--border);
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer .footer-brand { font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--accent); }
footer .footer-copy { font-size: 13px; color: var(--muted); }

/* Mobile: hide nav links by default on homepage, show on other pages */
@media (max-width: 768px) {
  nav { padding: 0 20px; height: 60px; }
  .nav-logo { font-size: 18px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }

  /* Always hide nav links on mobile */
  .nav-links { display: none; }
}

@media (max-width: 600px) {
  nav { padding: 0 16px; }
  .nav-logo { font-size: 16px; }
  footer { padding: 24px 20px; flex-direction: column; gap: 8px; text-align: center; }
}
