@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&family=Cormorant+Garamond:wght@400;500;600&display=swap");

:root {
  color-scheme: dark;
  --ink: #d4cfc2;
  --deep: #050f0c;
  --emerald: #0b3b2d;
  --jade: #1f7a5a;
  --mist: rgba(8, 18, 15, 0.9);
  --lake-gradient: radial-gradient(
    120% 130% at 20% 20%,
    #1f5b47 0%,
    #0b241d 45%,
    #050f0c 100%
  );
  --line: rgba(122, 160, 140, 0.2);

  --text-primary: #e8e2d6;
  --text-body: #cfc7b8;
  --text-muted: #9fb3a6;
  --text-accent: #c6a76b;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Cormorant Garamond", serif;
  color: var(--text-body);
  background: var(--lake-gradient);
  position: relative;
  overflow-x: hidden;
  overflow-y: scroll;
  font-size: 22px;
  line-height: 1.6;
}

h1,
h2,
h3 {
  color: var(--text-primary);
}

p {
  font-size: 1.25rem;
  font-weight: 400;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--lake-gradient);
  filter: blur(28px) saturate(1.2);
  opacity: 0.75;
  pointer-events: none;
  z-index: 0;
}

.trail {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: normal;
  opacity: 0.9;
}

main {
  position: relative;
  z-index: 2;
  min-height: 100vh;
}

.hero {
  position: relative;
  padding: 2.2rem clamp(1.5rem, 5vw, 6rem) 3rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding-top: 4.8rem;
}

.hero__glow {
  position: absolute;
  inset: -20% 10% auto;
  height: 60%;
  background: radial-gradient(
    circle,
    rgba(60, 180, 140, 0.25),
    transparent 60%
  );
  filter: blur(20px);
  pointer-events: none;
}

.nav {
  position: absolute;
  top: 1.8rem;
  right: clamp(1.5rem, 5vw, 6rem);
  z-index: 5;
  min-width: 90vw;
}

.nav__toggle {
  display: none;
  align-items: center;
  gap: 0.8rem;
  background: rgba(10, 28, 23, 0.7);
  border: 1px solid rgba(150, 180, 160, 0.35);
  color: #e2d8c6;
  padding: 0.3rem;
  border-radius: 999px;
  font-family: "Cinzel", serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  z-index: 6;
}

.nav__hamburger {
  width: 20px;
  height: 20px;
  stroke: #c6a76b;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.nav__panel {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.6rem;
  justify-content: space-around;
  margin-top: 1rem;
  max-width: none;
  background: rgba(8, 18, 15, 0.9);
  border: 1px solid rgba(150, 180, 160, 0.25);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 18px 40px rgba(2, 8, 7, 0.35);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.nav__panel--open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.45rem 0.5rem;
  min-width: 250px;
  border-radius: 12px;
  text-decoration: none;
  color: #d4cfc2;
  position: relative;
  background-image: linear-gradient(90deg, #c6a76b, #c6a76b);
  background-position: left 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
  transition:
    color 0.3s ease,
    background-size 0.3s ease;
}

.nav__link:hover {
  color: #c6a76b;
  background-size: 100% 2px;
}

.nav__icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.nav__sigil {
  opacity: 0;
  transform: translateX(-2px);
  margin-left: auto;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.nav__link:hover .nav__sigil {
  opacity: 1;
  transform: translateX(0);
}

.hero__content {
  max-width: 720px;
  position: relative;
  z-index: 2;
  margin-top: 50px;
}

.hero__eyebrow {
  font-family: "Cinzel", serif;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 1.05rem;
  margin: 0 0 1rem;
  color: #9ab6a9;
}

.hero h1 {
  font-family: "Cinzel", serif;
  font-size: clamp(2.6rem, 4.6vw, 4rem);
  margin: 0 0 1rem;
}

.hero__lead {
  margin: 0 0 1.5rem;
  font-size: 1.55rem;
  font-weight: 450;
  color: var(--text-body);
  opacity: 0.9;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  font-size: 1.3rem;
}

.hero__meta a {
  color: #e2d8c6;
  text-decoration: none;
  border-bottom: 1px solid rgba(210, 198, 176, 0.35);
  padding-bottom: 2px;
}

.hero__meta a:hover {
  color: #c6a76b;
  border-bottom-color: rgba(198, 167, 107, 0.6);
}

.section {
  padding: 3.5rem clamp(1.5rem, 5vw, 6rem);
  display: grid;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.section__title h2 {
  font-family: "Cinzel", serif;
  margin: 0 0 0.6rem;
  font-size: clamp(2.1rem, 3.6vw, 3rem);
}

.section__title p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.5rem;
}

.card {
  background: rgba(18, 40, 32, 0.65);
  padding: 2rem;
  border-radius: 24px;
  border: 1px solid rgba(170, 190, 175, 0.2);
  box-shadow: 0 18px 40px rgba(2, 8, 7, 0.35);
}

.card p {
  margin: 0;
  color: var(--text-body);
  font-size: 1.5rem;
  font-weight: 450;
}

.post-list {
  display: grid;
  gap: 1.5rem;
}

.post-card {
  display: grid;
  gap: 0.8rem;
}

.post-card h3 {
  margin: 0;
  font-size: 1.7rem;
}

.post-card__link {
  color: #e6ddcf;
  text-decoration: none;
}

.post-card__link:hover {
  color: #c6a76b;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.post-meta--header {
  margin-top: 1rem;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.post-content {
  display: grid;
  gap: 1.2rem;
  font-size: 1.45rem;
  color: var(--text-body);
  line-height: 1.7;
}

.post-content h2 {
  font-family: "Cinzel", serif;
  margin: 1rem 0 0;
}

.post-content h3 {
  margin: 0.8rem 0 0;
}

.post-content p {
  margin: 0;
}

.post-content ul {
  margin: 0;
  padding-left: 1.4rem;
}

.post-back {
  justify-self: start;
  font-family: "Cinzel", serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #c6a76b;
}

.post-back:hover {
  color: #e6ddcf;
}

.timeline {
  display: grid;
  gap: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.3rem;
  bottom: 0.3rem;
  left: 0.2rem;
  width: 1px;
  background: var(--line);
}

.timeline__item {
  display: grid;
  grid-template-columns: 1.2rem 1fr;
  gap: 1rem;
  align-items: start;
}

.timeline__dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #b3c3b5;
  margin-top: 0.35rem;
  box-shadow: 0 0 0 6px rgba(120, 160, 140, 0.12);
}

.timeline__content {
  background: rgba(8, 22, 18, 0.62);
  border-radius: 18px;
  border: 1px solid rgba(190, 230, 215, 0.12);
  padding: 1.2rem 1.5rem;
}

.timeline__content h3 {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
}

.timeline__content span {
  display: block;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.timeline__content time {
  display: inline-block;
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.timeline__content p {
  margin: 0;
  color: #d6cec0;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.chip {
  background: rgba(15, 70, 55, 0.4);
  border: 1px solid rgba(150, 180, 160, 0.35);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 1.15rem;
}

.section--cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.section--cta h2 {
  margin: 0 0 0.4rem;
}

.cta {
  font-family: "Cinzel", serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(
    120deg,
    rgba(30, 96, 74, 0.95),
    rgba(10, 50, 38, 0.95)
  );
  color: #efe3cf;
  padding: 0.9rem 2.2rem;
  border-radius: 999px;
  border: 1px solid rgba(200, 240, 225, 0.25);
}

@media (max-width: 1080px) {
  body {
    font-size: 20px;
  }

  .hero {
    padding: 3rem 1.5rem 2.5rem;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav {
    margin-bottom: 1rem;
    left: 1.5rem;
    right: 1.5rem;
    min-width: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  .nav__panel {
    max-width: 100%;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .hero__lead {
    font-size: 1.3rem;
  }

  .hero__meta {
    gap: 0.6rem 1.2rem;
    font-size: 1.2rem;
  }

  .section--cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .timeline {
    padding-left: 0.8rem;
  }

  .timeline__item {
    grid-template-columns: 1rem 1fr;
    gap: 0.8rem;
  }

  .timeline__content {
    padding: 1rem 1.1rem;
  }
}

@media (min-width: 1081px) {
  .nav__panel {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    max-width: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 1rem;
  }

  .nav__link {
    padding: 0.3rem 0.5rem;
  }
}
