:root {
  --ink: #f6f5ef;
  --paper: #f7f6f1;
  --charcoal: #060706;
  --forest: #133d2f;
  --sage: #86a889;
  --gold: #caa378;
  --clay: #a86e52;
  --muted: #656b66;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--charcoal);
}

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

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

.hero-animate {
  animation: riseIn 0.8s ease both;
}

.hero-animate:nth-child(2) {
  animation-delay: 0.08s;
}

.hero-animate:nth-child(3) {
  animation-delay: 0.16s;
}

.hero-animate:nth-child(4) {
  animation-delay: 0.24s;
}

.hero-animate:nth-child(5) {
  animation-delay: 0.34s;
}

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

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal>* {
  transition: transform 0.8s ease, opacity 0.8s ease;
}

.reveal.is-visible>* {
  transition-delay: 0.08s;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 28px;
  width: min(1180px, calc(100% - 48px));
  margin: 20px auto 0;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(4, 7, 6, 0.58);
  backdrop-filter: blur(14px);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  animation: dropIn 0.7s ease both;
}

.site-header:hover,
.site-header.menu-open {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(4, 7, 6, 0.76);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.brand img,
.footer-brand img {
  width: 105px;
  height: auto;
}

.nav-links,
.footer nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 26px);
  font-size: 13px;
  font-weight: 600;
}

.nav-links a,
.footer nav a {
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.footer nav a:hover {
  color: #ffffff;
}

.header-button,
.button,
.newsletter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.header-button:hover,
.button:hover,
.newsletter button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.header-button:active,
.button:active,
.newsletter button:active {
  transform: translateY(0);
}

.header-button {
  color: #101411;
  background: #ffffff;
}

.button-primary,
.button-warm,
.newsletter button {
  color: #15100d;
  background: var(--gold);
}

.button-secondary {
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  min-height: 720px;
  padding: 128px 24px 76px;
  overflow: hidden;
}

.hero-bg,
.book-feature::before {
  position: absolute;
  inset: 0;
  content: "";
  background-position: center;
  background-size: cover;
}

.hero-bg {
  background-image: linear-gradient(180deg, rgba(1, 5, 6, 0.3), rgba(1, 5, 6, 0.68) 72%, #000000 100%), url("assets/banner-3.jpeg");
  transform: scale(1.03);
  animation: slowZoom 18s ease-in-out infinite alternate;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  text-align: center;
}

.eyebrow,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  color: #20160f;
  background: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.hero h1,
h2 {
  margin: 14px 0 0;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 0.96;
}

.hero h1 {
  font-size: clamp(58px, 12vw, 150px);
}

.hero-copy {
  width: min(620px, 100%);
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-books {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 330px;
  margin-top: 48px;
}

.book-cover {
  width: clamp(135px, 18vw, 255px);
  border-radius: 4px;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, filter 0.35s ease;
  will-change: transform;
}

.book-one {
  transform: translateX(34px) rotate(-2deg);
}

.book-two {
  z-index: 2;
  width: clamp(160px, 21vw, 310px);
}

.book-three {
  transform: translateX(-34px) rotate(2deg);
}

.hero-books:hover .book-one {
  transform: translateX(20px) translateY(-10px) rotate(-5deg);
}

.hero-books:hover .book-two {
  transform: translateY(-18px);
}

.hero-books:hover .book-three {
  transform: translateX(-20px) translateY(-10px) rotate(5deg);
}

.section-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.about-section {
  padding: 72px 0;
  color: #1a1d1a;
  background: var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 460px) minmax(0, 1fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
}

.author-frame {
  overflow: hidden;
  border-radius: 8px;
  background: #d9d9d9;
}

.author-frame img {
  width: 100%;
  height: min(620px, 74vw);
  object-fit: cover;
  transition: transform 0.7s ease;
}

.author-frame:hover img {
  transform: scale(1.04);
}

.about-copy h2,
.section-heading h2,
.inside-copy h2 {
  font-size: clamp(38px, 5vw, 72px);
}

.about-copy p:not(.pill),
.book-text p:not(.pill),
.section-heading p:not(.pill),
.footer p,
.inside-copy li,
.article-card p,
.path-grid p {
  line-height: 1.72;
}

.about-copy p:not(.pill) {
  color: #4d554f;
}

.book-feature {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 128px) 0;
}

.book-feature::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.74));
}

.feature-roots::before {
  background-image: url("assets/banner-3.jpeg");
}

.feature-home::before {
  background-image: url("assets/banner-2.jpeg");
}

.feature-escape::before {
  background-image: url("assets/banner-1.jpeg");
}

.book-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 330px);
  gap: clamp(32px, 8vw, 110px);
  align-items: center;
}

.book-layout.reverse {
  grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
}

.book-text h2 {
  max-width: 680px;
  font-size: clamp(42px, 7vw, 88px);
  text-transform: uppercase;
}

.book-text p:not(.pill) {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.78);
}

.feature-cover {
  width: min(100%, 330px);
  border-radius: 4px;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.feature-cover:hover {
  transform: translateY(-12px) rotate(1deg);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.54);
}

.inside-section,
.articles-section,
.footer {
  background: #000000;
}

.inside-section {
  overflow: hidden;
  padding: 88px 0 74px;
}

.inside-grid {
  display: grid;
  grid-template-columns: minmax(260px, 480px) minmax(0, 520px);
  gap: clamp(36px, 8vw, 104px);
  align-items: center;
}

.open-book {
  width: min(100%, 480px);
  justify-self: center;
  filter: drop-shadow(0 28px 44px rgba(255, 255, 255, 0.1));
  animation: floatBook 5s ease-in-out infinite;
}

.inside-copy ul {
  margin: 24px 0 0;
  padding-left: 22px;
  color: rgba(255, 255, 255, 0.78);
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 72px;
}

.path-grid article {
  min-height: 170px;
  padding: 28px;
  border-radius: 8px;
  color: #20160f;
  background: var(--gold);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.path-grid article:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.32);
}

.path-grid article:nth-child(2) {
  color: #161916;
  background: var(--paper);
}

.path-grid h3,
.article-card h3,
.footer h3 {
  margin: 0 0 12px;
}

.articles-section {
  padding: 86px 0;
}

.section-heading {
  text-align: center;
}

.section-heading p:not(.pill) {
  max-width: 590px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.72);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}

.article-card {
  color: rgba(255, 255, 255, 0.78);
}

.article-image {
  min-height: 205px;
  margin-bottom: 22px;
  border-radius: 4px;
  background:
    linear-gradient(rgba(247, 246, 241, 0.82), rgba(247, 246, 241, 0.82)),
    url("assets/banner-1.jpeg") center / cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.article-card:hover .article-image {
  transform: translateY(-8px);
  filter: brightness(1.06);
}

.article-card:nth-child(2) .article-image {
  background:
    linear-gradient(rgba(247, 246, 241, 0.82), rgba(247, 246, 241, 0.82)),
    url("assets/banner-2.jpeg") center / cover;
}

.article-card:nth-child(3) .article-image {
  background:
    linear-gradient(rgba(247, 246, 241, 0.82), rgba(247, 246, 241, 0.82)),
    url("assets/banner-3.jpeg") center / cover;
}

.article-card h3 {
  color: #ffffff;
}

.footer {
  padding: 64px 0 30px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: grid;
  justify-items: center;
  gap: 34px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 6vw, 80px);
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.footer p,
.footer label {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.newsletter div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 12px;
}

.newsletter input {
  min-width: 0;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.newsletter input:focus {
  outline: 0;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(202, 163, 120, 0.18);
}

.form-note {
  min-height: 22px;
  margin: 10px 0 0;
  color: var(--sage);
}

.copyright {
  margin: 28px 0 0;
  text-align: center;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slowZoom {
  from {
    transform: scale(1.03);
  }

  to {
    transform: scale(1.08);
  }
}

@keyframes floatBook {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    width: min(100% - 28px, 680px);
    gap: 12px;
  }

  .menu-toggle {
    display: block;
    order: 3;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    overflow: hidden;
    max-height: 0;
    border: 0 solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(4, 7, 6, 0.94);
    text-align: left;
    transition: max-height 0.25s ease, border-width 0.25s ease;
  }

  .site-header.menu-open .nav-links {
    max-height: 360px;
    border-width: 1px;
  }

  .nav-links a {
    padding: 15px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: 680px;
  }

  .about-grid,
  .book-layout,
  .book-layout.reverse,
  .inside-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .path-grid,
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .path-grid article:last-child,
  .article-card:last-child {
    grid-column: 1 / -1;
  }

  .about-copy,
  .book-text,
  .inside-copy,
  .footer-grid {
    max-width: 680px;
  }

  .feature-cover {
    justify-self: center;
  }

  .book-layout.reverse .feature-cover {
    order: 2;
  }

  .book-layout.reverse .book-text {
    order: 1;
  }
}

@media (max-width: 560px) {
  .site-header {
    margin-top: 12px;
    padding: 10px 12px;
    width: calc(100% - 24px);
  }

  .brand img {
    width: 92px;
  }

  .header-button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }

  .menu-toggle {
    width: 38px;
    height: 38px;
    padding: 8px;
  }

  .hero {
    min-height: 650px;
    padding: 106px 16px 48px;
  }

  .hero h1 {
    font-size: clamp(48px, 16vw, 76px);
  }

  .hero-copy {
    font-size: 15px;
    line-height: 1.55;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 310px);
    margin-left: auto;
    margin-right: auto;
  }

  .hero-books {
    min-height: 230px;
    margin-top: 34px;
    width: calc(100% + 28px);
    margin-left: -14px;
  }

  .book-cover {
    width: clamp(112px, 34vw, 142px);
  }

  .book-two {
    width: clamp(132px, 40vw, 170px);
  }

  .book-one {
    transform: translateX(18px) rotate(-2deg);
  }

  .book-three {
    transform: translateX(-18px) rotate(2deg);
  }

  .hero-books:hover .book-one {
    transform: translateX(14px) translateY(-6px) rotate(-3deg);
  }

  .hero-books:hover .book-two {
    transform: translateY(-10px);
  }

  .hero-books:hover .book-three {
    transform: translateX(-14px) translateY(-6px) rotate(3deg);
  }

  .section-inner {
    width: min(100% - 32px, 1120px);
  }

  .about-section,
  .inside-section,
  .articles-section {
    padding: 54px 0;
  }

  .book-feature {
    padding: 58px 0;
  }

  .author-frame img {
    height: min(520px, 112vw);
  }

  .about-copy h2,
  .section-heading h2,
  .inside-copy h2 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .book-text h2 {
    font-size: clamp(34px, 12vw, 54px);
  }

  .feature-cover {
    width: min(78vw, 290px);
  }

  .path-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .path-grid article:last-child,
  .article-card:last-child {
    grid-column: auto;
  }

  .article-image {
    min-height: 180px;
  }

  .footer nav {
    flex-wrap: wrap;
  }

  .newsletter div {
    grid-template-columns: 1fr;
  }
}

/* Contact Page Specific Styles */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: start;
}

.contact-form-wrapper {
  background: var(--paper);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
  color: #1a1d1a;
}

.contact-form {
  display: grid;
  gap: 20px;
}

.contact-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form-group label {
  color: #4d554f;
  font-weight: 600;
  font-size: 14px;
}

.contact-form-group input,
.contact-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  background: #ffffff;
  color: #1a1d1a;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(202, 163, 120, 0.2);
}

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

/* Inner Hero for Contact Page */
.inner-hero {
  min-height: 440px;
  padding: 180px 24px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Custom Cursor */
@media (pointer: fine) {
  body, a, button, input, textarea {
    cursor: none;
  }
  
  .custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.05s linear;
  }
  
  .custom-cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 34px;
    height: 34px;
    border: 1.5px solid rgba(202, 163, 120, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.25s ease, height 0.25s ease, background 0.25s ease;
  }
}

@media (max-width: 360px) {
  .brand img {
    width: 78px;
  }

  .header-button {
    padding: 0 10px;
  }

  .hero {
    min-height: 610px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .book-cover {
    width: 106px;
  }

  .book-two {
    width: 128px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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