:root {
  --bg-deep: #0b2a2a;
  --bg-mid: #134040;
  --bg-card: rgba(244, 240, 230, 0.05);
  --ink: #f4f0e6;
  --muted: #b7c7c4;
  --accent: #d4a017;
  --accent-soft: rgba(212, 160, 23, 0.18);
  --line: rgba(244, 240, 230, 0.14);
  --link: #e6c35a;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 12% 10%, rgba(212, 160, 23, 0.14), transparent 55%),
    radial-gradient(700px 420px at 88% 0%, rgba(62, 140, 130, 0.28), transparent 50%),
    linear-gradient(155deg, var(--bg-deep) 0%, var(--bg-mid) 48%, #0d3330 100%);
  min-height: 100vh;
  line-height: 1.6;
}

a {
  color: var(--link);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.07;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0 1.75rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.25rem;
  animation: rise 0.7s ease-out both;
}

.logo {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.logo span { color: var(--accent); }
.logo:hover { text-decoration: none; }

.nav-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a { color: var(--muted); }
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); }

.hero-home {
  min-height: calc(100vh - 7rem);
  display: grid;
  align-content: center;
  animation: rise 0.9s ease-out both;
}

.brand-xl {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: clamp(2.8rem, 8vw, 4.6rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 1.4rem;
}
.brand-xl span {
  color: var(--accent);
  display: inline-block;
  animation: glow 3.5s ease-in-out infinite;
}

.headline {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: clamp(1.35rem, 3.4vw, 1.9rem);
  line-height: 1.25;
  max-width: 18ch;
  margin-bottom: 1rem;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 40ch;
  margin-bottom: 2rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 160, 23, 0.45);
  background: var(--accent-soft);
  color: var(--ink);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover {
  background: rgba(212, 160, 23, 0.28);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
  font-weight: 500;
}
.btn-ghost:hover { color: var(--ink); border-color: var(--muted); }

.page-title {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.65rem;
  animation: rise 0.7s ease-out both;
}

.page-desc {
  color: var(--muted);
  max-width: 44ch;
  margin-bottom: 2rem;
  animation: rise 0.8s 0.05s ease-out both;
}

.article-list {
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.article-card {
  display: block;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  animation: rise 0.75s ease-out both;
}
.article-card:hover {
  border-color: rgba(212, 160, 23, 0.4);
  background: rgba(212, 160, 23, 0.08);
  text-decoration: none;
  transform: translateY(-2px);
}
.article-card h2 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 0.45rem;
  color: var(--ink);
}
.article-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.article-card .meta {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  animation: rise 0.7s ease-out both;
}

.article-header h1 {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: clamp(1.85rem, 4.5vw, 2.55rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.tag {
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.prose {
  animation: rise 0.85s 0.08s ease-out both;
  font-size: 1.05rem;
  color: rgba(244, 240, 230, 0.92);
}
.prose > * + * { margin-top: 1rem; }
.prose h2,
.prose h3,
.prose h4 {
  font-family: "Fraunces", serif;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-top: 2rem;
}
.prose h2 { font-size: 1.55rem; }
.prose h3 { font-size: 1.25rem; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul,
.prose ol {
  padding-left: 1.35rem;
}
.prose li + li { margin-top: 0.35rem; }
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.75rem 0;
}
.prose a { text-decoration: underline; text-underline-offset: 2px; }

.back {
  display: inline-block;
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.back:hover { color: var(--ink); }

.footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

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

@keyframes glow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.18); }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 1.5rem, 920px); }
  .nav-links { gap: 0.85rem; font-size: 0.88rem; }
  .headline { max-width: none; }
}
