@import url('https://fonts.googleapis.com/css2?family=Libre+Bodoni:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Public+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --ink: #12241c;
  --ink-soft: #1e3a2f;
  --gold: #b68a3a;
  --gold-bright: #d4a84b;
  --sage: #e8efe6;
  --mist: #f2f6f1;
  --paper: #fafbf8;
  --muted: #5c6b63;
  --line: #d5e0d6;
  --cta: #1f6b4a;
  --cta-hover: #18553a;
  --danger: #9b2c2c;
  --radius: 4px;
  --shadow: 0 18px 50px rgba(18, 36, 28, 0.12);
  --font-display: "Libre Bodoni", Georgia, serif;
  --font-body: "Public Sans", "Tahoma", sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(182, 138, 58, 0.14), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(31, 107, 74, 0.1), transparent 50%),
    linear-gradient(180deg, var(--mist), var(--paper) 40%, var(--sage));
  line-height: 1.85;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cta);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(242, 246, 241, 0.86);
  border-bottom: 1px solid rgba(213, 224, 214, 0.8);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}

.brand span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--cta);
  color: #fff;
  box-shadow: 0 10px 24px rgba(31, 107, 74, 0.28);
}

.btn-primary:hover {
  background: var(--cta-hover);
  color: #fff;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: #12241c;
  box-shadow: 0 10px 24px rgba(182, 138, 58, 0.28);
}

.btn-gold:hover {
  color: #12241c;
  filter: brightness(1.05);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(18, 36, 28, 0.25);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 18s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(18, 36, 28, 0.25) 0%, rgba(18, 36, 28, 0.55) 45%, rgba(18, 36, 28, 0.88) 100%),
    linear-gradient(90deg, rgba(18, 36, 28, 0.55), transparent 55%);
}

.hero-inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 4.5rem;
  animation: rise 0.9s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  line-height: 0.95;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.hero-brand em {
  font-style: italic;
  color: var(--gold-bright);
}

.hero p {
  max-width: 34rem;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.section {
  padding: 4.5rem 0;
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  margin: 0 0 0.6rem;
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.prose {
  max-width: 46rem;
}

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  line-height: 1.25;
  margin: 2.4rem 0 0.9rem;
}

.prose h2 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.prose h3 {
  font-size: 1.25rem;
}

.prose p {
  margin: 0 0 1.1rem;
}

.prose ul,
.prose ol {
  padding-inline-start: 1.3rem;
  margin: 0 0 1.2rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.figure {
  margin: 2rem 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
}

.figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.figure:hover img {
  transform: scale(1.03);
}

.figure figcaption {
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  background: #fff;
}

.cta-band {
  background: linear-gradient(135deg, var(--ink), var(--ink-soft));
  color: #fff;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(182, 138, 58, 0.35), transparent 65%);
  pointer-events: none;
}

.cta-band h2 {
  font-family: var(--font-display);
  margin: 0 0 0.7rem;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
}

.cta-band p {
  margin: 0 0 1.3rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 36rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.post-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: rise 0.7s ease both;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.post-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.post-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.post-card .body {
  padding: 1.1rem 1.15rem 1.35rem;
}

.post-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.45rem;
  line-height: 1.35;
}

.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2rem;
  background: rgba(255, 255, 255, 0.55);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.site-footer h3 {
  font-family: var(--font-display);
  margin: 0 0 0.8rem;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
}

.socials {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  height: 2.6rem;
  padding: 0 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
}

.socials a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.legal {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 1.4rem 0 1rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--gold);
}

.toc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin: 1.5rem 0 2rem;
}

.toc h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.6rem;
}

.toc ol {
  margin: 0;
  padding-inline-start: 1.2rem;
}

.page-hero {
  padding: 2.5rem 0 1rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 0.8rem;
  line-height: 1.15;
}

.keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
}

.keywords span {
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  padding: 0.25rem 0.55rem;
  border-radius: 2px;
}

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

@keyframes heroZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .post-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .post-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 78vh;
  }

  .hero-inner {
    margin-bottom: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
