:root {
  --ink: #14201c;
  --ink-soft: #3d4f47;
  --muted: #6b7c73;
  --paper: #f3f6f2;
  --paper-deep: #e4ebe4;
  --teal: #1f6f5b;
  --teal-deep: #155445;
  --sand: #d8c4a4;
  --line: rgba(20, 32, 28, 0.12);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(31, 111, 91, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(216, 196, 164, 0.35), transparent 50%),
    linear-gradient(180deg, #f7faf6 0%, var(--paper) 40%, #eef3ee 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

.site-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  backdrop-filter: blur(10px);
  background: rgba(243, 246, 242, 0.82);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-mark {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 0.3rem;
  background:
    linear-gradient(135deg, var(--teal) 0%, #2f9a7d 55%, var(--sand) 120%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.bar-link {
  font-size: 0.92rem;
  font-weight: 560;
  color: var(--ink-soft);
}

.bar-link:hover {
  color: var(--teal-deep);
}

.hero {
  position: relative;
  min-height: min(100svh, 860px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 32, 28, 0.18) 0%, rgba(20, 32, 28, 0.55) 48%, rgba(20, 32, 28, 0.88) 100%),
    linear-gradient(90deg, rgba(20, 32, 28, 0.45) 0%, transparent 55%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 2.5rem));
  margin: 0 auto 3.5rem;
  padding: 0 0.25rem;
  color: #f5f8f4;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand-lockup {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 650;
  letter-spacing: -0.03em;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.lede {
  margin: 1rem 0 0;
  max-width: 38ch;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: rgba(245, 248, 244, 0.88);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.15rem;
  border-radius: 0.55rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn.primary {
  background: #f4f7f2;
  color: var(--ink);
}

.btn.primary:hover {
  background: #fff;
}

.btn.ghost {
  border: 1px solid rgba(244, 247, 242, 0.45);
  color: #f4f7f2;
}

.btn.ghost:hover {
  background: rgba(244, 247, 242, 0.1);
}

.section {
  width: min(920px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 4.5rem 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.25rem;
}

.section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  font-weight: 560;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.section-head p,
.habits-lede {
  margin: 0.85rem 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.technique-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.technique-list li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.step {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--teal);
  letter-spacing: -0.02em;
}

.technique-list h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.technique-list p {
  margin: 0;
  color: var(--ink-soft);
}

.habits {
  width: 100%;
  max-width: none;
  padding: 0 0 4.5rem;
}

.habits-panel {
  width: min(920px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  border-radius: 1.25rem;
  background:
    linear-gradient(145deg, rgba(31, 111, 91, 0.1), transparent 40%),
    linear-gradient(180deg, #eaf1ea, var(--paper-deep));
  border: 1px solid var(--line);
}

.habit-grid {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .habit-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1.5rem;
  }
}

.habit-grid li {
  display: grid;
  gap: 0.35rem;
  padding: 0.25rem 0;
}

.habit-grid strong {
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.habit-grid span {
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.checklist-inner {
  max-width: 34rem;
}

.checks {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.checks label {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.checks label:hover {
  border-color: rgba(31, 111, 91, 0.35);
}

.checks input {
  margin-top: 0.2rem;
  accent-color: var(--teal);
  width: 1.05rem;
  height: 1.05rem;
}

.checks label:has(input:checked) {
  background: rgba(31, 111, 91, 0.08);
  border-color: rgba(31, 111, 91, 0.35);
  text-decoration: line-through;
  color: var(--muted);
}

.progress {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--teal-deep);
}

.site-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
  align-items: center;
  width: min(920px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

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

.reveal.is-in {
  opacity: 1;
  transform: none;
}

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

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.2%, -0.8%, 0);
  }
}

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

  .hero-media img,
  .hero-copy,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
