:root {
  --paper: #f7f1e5;
  --paper-deep: #efe2cb;
  --sand: #d6b98d;
  --clay: #a65e43;
  --clay-deep: #6b3526;
  --sage: #6d7d63;
  --moss: #465342;
  --ink: #31251f;
  --line: rgba(76, 61, 48, 0.16);
  --shadow: 0 32px 80px rgba(62, 43, 30, 0.12);
  --max-width: 72rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Alegreya Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 232, 183, 0.35), transparent 24%),
    radial-gradient(circle at 78% 16%, rgba(194, 220, 185, 0.28), transparent 26%),
    radial-gradient(circle at 50% 85%, rgba(202, 155, 109, 0.2), transparent 28%),
    linear-gradient(180deg, #f9f6ef 0%, #f1e8d7 42%, #f6f0e4 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.65;
  pointer-events: none;
  z-index: 0;
}

body::before {
  width: 22rem;
  height: 22rem;
  top: 5rem;
  left: -7rem;
  background: rgba(220, 171, 117, 0.28);
}

body::after {
  width: 20rem;
  height: 20rem;
  right: -6rem;
  bottom: 6rem;
  background: rgba(137, 168, 131, 0.22);
}

a {
  color: inherit;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3,
.brand {
  font-family: "Alegreya", serif;
}

.site-shell {
  position: relative;
  z-index: 1;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  padding: 1rem 0;
}

.header-inner,
.section-inner {
  width: min(var(--max-width), calc(100% - 2.4rem));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  border: 1px solid rgba(75, 60, 43, 0.12);
  border-radius: 999px;
  background: rgba(249, 245, 236, 0.7);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(54, 39, 27, 0.08);
}

.brand {
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.nav-link {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  color: rgba(49, 37, 31, 0.72);
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-current {
  background: rgba(166, 94, 67, 0.11);
  color: var(--clay-deep);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  padding: 7.8rem 0 3rem;
}

.hero-home {
  min-height: 100svh;
  display: grid;
  align-items: center;
}

.hero-grid,
.page-hero-grid,
.practice-split,
.story-grid,
.content-grid,
.split-intro {
  display: grid;
  gap: clamp(1.75rem, 4vw, 4rem);
}

.hero-grid,
.page-hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
  align-items: center;
}

.hero-copy,
.story-copy {
  max-width: 38rem;
}

.hero-kicker,
.section-label {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
}

h1 {
  font-size: clamp(3.6rem, 9vw, 7.1rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-wrap: balance;
  animation: fade-up 850ms ease 120ms both;
}

.hero-lead,
.section-copy,
.practice-panel p,
.flow-item p,
.line-item p,
.closing-band p:last-of-type {
  font-size: clamp(1.03rem, 1.8vw, 1.18rem);
  line-height: 1.7;
  color: rgba(49, 37, 31, 0.82);
}

.hero-lead {
  max-width: 34rem;
  margin-top: 1.3rem;
  animation: fade-up 900ms ease 220ms both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.button,
.text-link {
  font-weight: 700;
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.78rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  transform: translateY(-1px);
}

.button-solid {
  background: linear-gradient(135deg, var(--clay) 0%, #b07a4f 100%);
  color: #fff9f2;
  box-shadow: 0 16px 30px rgba(132, 73, 50, 0.22);
}

.button-ghost {
  border-color: rgba(76, 61, 48, 0.18);
  background: rgba(255, 251, 244, 0.56);
  color: var(--ink);
}

.hero-note {
  max-width: 30rem;
  margin-top: 1.4rem;
  font-size: 0.96rem;
  line-height: 1.6;
  color: rgba(49, 37, 31, 0.66);
}

.hero-art,
.page-symbol {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-art {
  min-height: 26rem;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
  animation: drift 9s ease-in-out infinite;
}

.glow-one {
  width: min(24rem, 72vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(235, 202, 148, 0.5), rgba(235, 202, 148, 0));
}

.glow-two {
  width: min(18rem, 58vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(139, 170, 135, 0.34), rgba(139, 170, 135, 0));
  transform: translate(18%, 18%);
  animation-duration: 11s;
}

.sand-dollar-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: min(24rem, 74vw);
  aspect-ratio: 1;
  border-radius: 42% 58% 56% 44% / 50% 47% 53% 50%;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0) 54%),
    linear-gradient(180deg, rgba(250, 246, 237, 0.9), rgba(240, 228, 205, 0.56));
  border: 1px solid rgba(76, 61, 48, 0.12);
  box-shadow: var(--shadow);
  animation: float-shape 8s ease-in-out infinite;
}

.sand-dollar-mark {
  width: 75%;
  filter: drop-shadow(0 14px 26px rgba(81, 57, 34, 0.1));
}

.hero-mantra {
  position: absolute;
  right: clamp(0rem, 2vw, 1rem);
  bottom: 0.6rem;
  display: grid;
  gap: 0.55rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(76, 61, 48, 0.1);
  border-radius: 1.25rem;
  background: rgba(251, 247, 239, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(54, 39, 27, 0.08);
}

.hero-mantra span {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(49, 37, 31, 0.7);
}

.section {
  padding: 1.6rem 0 2rem;
}

.split-intro {
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.9fr);
  align-items: end;
  padding-top: 0.6rem;
}

h2 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-copy {
  max-width: 38rem;
}

.section-wash {
  position: relative;
}

.section-wash::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 246, 228, 0.5), rgba(230, 241, 226, 0.34)),
    radial-gradient(circle at 82% 18%, rgba(182, 160, 118, 0.22), transparent 26%);
  z-index: -1;
}

.practice-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: clamp(1.5rem, 3vw, 2.2rem) 0;
}

.practice-panel,
.line-item,
.flow-item {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.practice-panel {
  min-height: 19rem;
  display: flex;
  flex-direction: column;
}

.practice-panel h2,
.content-grid h2,
.story-grid h2,
.closing-band h2 {
  margin-bottom: 1rem;
}

.text-link {
  display: inline-flex;
  margin-top: auto;
  padding-top: 1.4rem;
  color: var(--clay-deep);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

.story-grid,
.content-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
}

.line-cluster,
.flow-list {
  display: grid;
  gap: 1rem;
}

.line-title {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--moss);
}

.page-hero {
  min-height: 55svh;
}

.page-symbol {
  min-height: 18rem;
}

.page-symbol .sand-dollar-mark {
  width: min(16rem, 64vw);
  opacity: 0.9;
}

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

.flow-item h3 {
  margin-bottom: 0.55rem;
  font-size: 1.38rem;
  color: var(--moss);
}

.closing-band {
  padding: clamp(1.75rem, 3.2vw, 2.7rem);
  border: 1px solid rgba(76, 61, 48, 0.12);
  border-radius: 2rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 252, 245, 0.85), rgba(255, 252, 245, 0) 54%),
    linear-gradient(180deg, rgba(254, 250, 243, 0.72), rgba(245, 236, 220, 0.48));
  box-shadow: var(--shadow);
}

.site-footer {
  padding: 1rem 0 2.2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
  color: rgba(49, 37, 31, 0.72);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(0.98);
  }
  50% {
    transform: translate3d(0, -12px, 0) scale(1.02);
  }
}

@keyframes float-shape {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-2deg);
  }
  50% {
    transform: translate3d(0, -10px, 0) rotate(2deg);
  }
}

@media (max-width: 900px) {
  .hero-home {
    min-height: auto;
    padding-bottom: 2.5rem;
  }

  .hero-grid,
  .page-hero-grid,
  .practice-split,
  .story-grid,
  .content-grid,
  .split-intro,
  .flow-list {
    grid-template-columns: 1fr;
  }

  .header-inner {
    border-radius: 1.8rem;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .hero-mantra {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 1rem;
  }

  .practice-panel {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding-top: 0.75rem;
  }

  .header-inner,
  .section-inner {
    width: min(var(--max-width), calc(100% - 1.2rem));
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 9rem;
  }

  h1 {
    font-size: clamp(2.95rem, 13vw, 4.7rem);
  }

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

  .closing-band {
    border-radius: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
