/* Desired Life Designs — brand tokens (from the Paper "Brand Colors" sheet) */
:root {
  --color-white: #FFFFFF;
  --color-moss: #3F5B3A;
  --color-loam: #6B4A33;
  --color-loam-tint: #F0EDEB;

  --color-fern: #4F7F3F;
  --color-fern-tint: #EDF2EC;
  --color-fern-soft: #D3DFCF;
  --color-fern-deep: #37592C;

  --color-lake: #2C5F8D;
  --color-lake-tint: #EAEFF4;
  --color-lake-soft: #CAD7E2;
  --color-lake-deep: #1F4263;

  --color-iris: #5B3A8C;
  --color-iris-tint: #EFEBF4;
  --color-iris-soft: #D6CEE2;
  --color-iris-deep: #402962;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --gutter: 96px;
  --max: 1440px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-white);
  color: var(--color-moss);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Small caps labels */
.label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.link-arrow {
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}
.link-arrow:hover { opacity: 0.7; }

/* The hidden attribute always wins over component display rules */
[hidden] { display: none !important; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 32px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn-primary { background: var(--color-iris); color: var(--color-white); }
.btn-primary:hover { background: var(--color-iris-deep); }
.btn-outline { border-color: var(--color-moss); color: var(--color-moss); }
.btn-outline:hover { background: var(--color-moss); color: var(--color-white); }

/* ---------- Nav ---------- */
.nav { background: var(--color-fern); }
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 28px;
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--color-white); }
.brand svg { width: 74px; height: 64px; flex-shrink: 0; }
.brand-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  line-height: 28px;
}
.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-links a:not(.btn) {
  color: var(--color-white);
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}
.nav-links a:not(.btn):hover { opacity: 0.75; }
.nav .btn {
  padding: 14px 24px;
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  background: var(--color-white);
  color: var(--color-fern-deep);
}
.nav .btn:hover { background: var(--color-fern-tint); }

/* ---------- Hero ---------- */
.hero {
  background: var(--color-white) url("assets/hero-texture.webp") center / cover no-repeat;
}
.hero .container {
  display: flex;
  align-items: flex-end;
  gap: 80px;
  padding-top: 72px;
}
.hero-copy {
  flex: 1 1 0;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 68px;
  line-height: 76px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--color-moss);
}
.hero h1 .hero-line { display: block; white-space: nowrap; }
.hero h1 em { font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
/* Headline lines reveal in order, then the tagline 1s after the last line lands */
.hero-line {
  opacity: 0;
  animation: line-in 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.hero-line:nth-child(1) { animation-delay: 0.3s; }
.hero-line:nth-child(2) { animation-delay: 1.3s; }
.hero-line:nth-child(3) { animation-delay: 2.3s; }
@keyframes line-in {
  from { opacity: 0; transform: translateY(0.3em); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-tagline {
  margin-top: -12px;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 38px;
  font-style: italic;
  color: var(--color-loam);
  animation: line-in 0.9s ease 4s both; /* last line lands at 3.0s + 1s pause */
}
@media (prefers-reduced-motion: reduce) {
  .hero-line, .hero-tagline { animation: none; opacity: 1; }
}

.em-lake { color: var(--color-lake); }
.em-iris { color: var(--color-iris); }
.em-fern { color: var(--color-fern); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 8px; }
.hero-portrait {
  width: 420px;
  height: 480px;
  margin-top: 80px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-portrait img { width: 364px; height: 580px; object-fit: contain; object-position: bottom; flex-shrink: 0; }

.hero-band { height: 24px; background: var(--color-fern); }

/* ---------- About ---------- */
.about { background: var(--color-fern-tint); }
.about .container {
  display: flex;
  align-items: center;
  gap: 96px;
  padding-block: 120px;
}
.photo-slot {
  display: flex;
  align-items: flex-end;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.about-copy { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 28px; max-width: 680px; margin-inline: auto; text-align: center; }
.about-copy h2, .about-copy .launch-form { width: 100%; max-width: 592px; }
.about-copy .label { color: var(--color-fern); }
.about h2 {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 52px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.body-lg { font-size: 17px; line-height: 28px; }
.about .link-arrow { color: var(--color-iris); }
.launch-form input { box-shadow: inset 0 0 0 1px var(--color-fern-soft); }
.launch-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.launch-form .btn[disabled] { opacity: 0.7; cursor: wait; }
.launch-status { min-height: 28px; font-size: 16px; line-height: 28px; color: var(--color-fern-deep); }
.launch-status.is-error { color: #A23B3B; }
.launch-done { font-family: var(--font-display); font-size: 28px; line-height: 36px; color: var(--color-iris); }

/* ---------- Paths (services) ---------- */
.paths .container {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding-block: 128px;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}
.display-lg {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 60px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.section-head p { width: 340px; flex-shrink: 0; font-size: 16px; line-height: 26px; }
.cards { display: flex; gap: 32px; }
.card { flex: 1 1 0; display: flex; flex-direction: column; gap: 24px; }
.card .photo-slot { height: 300px; padding: 20px; }
.card .rule { width: 48px; height: 3px; }
.card h3 {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 40px;
  font-weight: 500;
}
.card h3 em { font-style: italic; font-weight: 400; }
.card p { font-size: 16px; line-height: 26px; }
.card--lake .photo-slot { background: var(--color-lake-tint); color: var(--color-lake-deep); }
.card--lake .rule { background: var(--color-lake); }
.card--lake .link-arrow { color: var(--color-lake); }
.card--iris .photo-slot { background: var(--color-iris-tint); color: var(--color-iris-deep); }
.card--iris .rule { background: var(--color-iris); }
.card--iris .link-arrow { color: var(--color-iris); }
.card--fern .photo-slot { background: var(--color-fern-tint); color: var(--color-fern-deep); }
.card--fern .rule { background: var(--color-fern); }
.card--fern .link-arrow { color: var(--color-fern); }

/* ---------- Free guide ---------- */
.guide { background: var(--color-iris-deep); color: var(--color-white); }
.guide .container {
  display: flex;
  align-items: center;
  gap: 96px;
  padding-block: 112px;
}
.guide-mock-wrap {
  width: 420px;
  height: 520px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.guide-mock {
  width: 340px;
  height: 440px;
  padding: 40px 36px;
  border-radius: 4px;
  background: var(--color-white);
  box-shadow: 24px 24px 0 var(--color-iris);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.guide-mock .label { font-size: 11px; line-height: 14px; letter-spacing: 0.2em; color: var(--color-loam); }
.guide-mock h3 {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 46px;
  font-weight: 500;
  color: var(--color-moss);
}
.guide-mock .tagline {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 28px;
  font-style: italic;
  color: var(--color-iris);
}
.guide-copy { flex: 1 1 0; display: flex; flex-direction: column; gap: 28px; }
.guide-copy .label { color: var(--color-iris-soft); }
.guide-form { display: flex; gap: 12px; padding-top: 8px; }
.guide-form input {
  flex: 1 1 0;
  min-width: 0;
  padding: 18px 22px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 18px;
  color: var(--color-moss);
}
.guide-form input::placeholder { color: #7A7A85; }
.guide-form .btn { border-color: var(--color-iris-soft); }

/* ---------- Closing CTA ---------- */
.closing { background: var(--color-fern-tint); }
.closing .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  padding-block: 120px;
  text-align: center;
}
.closing svg { width: 120px; height: 104px; }
.closing h2 { max-width: 880px; line-height: 62px; }
.closing .btn { padding: 20px 36px; }

/* ---------- Footer ---------- */
.footer { background: var(--color-moss); color: var(--color-white); }
.footer .container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-top: 56px;
  padding-bottom: 48px;
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand .name { font-family: var(--font-display); font-size: 30px; line-height: 32px; font-weight: 500; }
.footer-brand .contact { font-size: 14px; line-height: 22px; color: var(--color-fern-soft); }
.footer-brand .contact a:hover { color: var(--color-white); }
.footer-meta { display: flex; align-items: center; gap: 32px; font-size: 13px; line-height: 16px; }
.footer-meta a { letter-spacing: 0.14em; text-transform: uppercase; }
.footer-meta a:hover { opacity: 0.75; }
.footer-meta .copy { color: var(--color-fern-soft); }

/* ---------- Resources page ---------- */
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

.res-hero { background: var(--color-fern-tint); }
.res-hero .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-block: 96px 80px;
}
.res-hero .label { color: var(--color-fern); }
.res-hero h1 { max-width: 820px; }
.res-hero h1 em, .res-head h2 em { font-style: italic; font-weight: 400; color: var(--color-iris); }
.res-hero .body-lg { max-width: 640px; }
.res-jump { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.res-jump a {
  padding: 12px 22px;
  border: 1px solid var(--color-moss);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color 0.2s, color 0.2s;
}
.res-jump a:hover { background: var(--color-moss); color: var(--color-white); }
.res-note { font-size: 13px; line-height: 20px; color: var(--color-loam); }

.res-section { scroll-margin-top: 24px; }
.res-section--tint { background: var(--color-loam-tint); }
.res-section .container {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding-block: 112px;
}
.res-head { display: flex; flex-direction: column; gap: 16px; }
.res-head .label { color: var(--color-loam); }

.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 48px; align-items: start; }
.res-grid--two { grid-template-columns: repeat(2, 1fr); }
.res-grid--books { display: block; columns: 2; column-gap: 48px; }
.res-grid--books .res-group { break-inside: avoid; margin-bottom: 56px; }
.res-grid--books .res-group:last-child { margin-bottom: 0; }

.res-group { display: flex; flex-direction: column; gap: 20px; }
.res-group .rule { width: 48px; height: 3px; }
.res-group h3 {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 38px;
  font-weight: 500;
}
.res-group--iris .rule { background: var(--color-iris); }
.res-group--iris h3, .res-group--iris .link-list a { color: var(--color-iris); }
.res-group--lake .rule { background: var(--color-lake); }
.res-group--lake h3, .res-group--lake .link-list a { color: var(--color-lake); }
.res-group--fern .rule { background: var(--color-fern); }
.res-group--fern h3, .res-group--fern .link-list a { color: var(--color-fern-deep); }
.res-group--loam .rule { background: var(--color-loam); }
.res-group--loam h3, .res-group--loam .link-list a { color: var(--color-loam); }

.book-list, .link-list { list-style: none; margin: 0; padding: 0; }
.book-list li, .link-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-block: 14px;
  border-top: 1px solid rgba(63, 91, 58, 0.15);
  font-size: 14px;
  line-height: 20px;
}
.book-list li:last-child, .link-list li:last-child { border-bottom: 1px solid rgba(63, 91, 58, 0.15); }
.book-list cite {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 26px;
  font-style: italic;
  color: var(--color-moss);
}
.book-list span, .link-list span { font-size: 14px; line-height: 20px; color: var(--color-loam); }
.link-list a {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 28px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: opacity 0.2s;
}
.res-sub { font-size: 15px; line-height: 24px; color: var(--color-loam); }
.book-list a { align-self: flex-start; transition: opacity 0.2s; }
.book-list a cite { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgba(63, 91, 58, 0.35); }
.book-list a::after { content: "↗"; margin-left: 4px; font-size: 13px; color: var(--color-loam); }
.book-list a:hover { opacity: 0.7; }
.link-list a::after { content: " ↗"; font-family: var(--font-body); font-size: 14px; }
.link-list a:hover { opacity: 0.7; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  :root { --gutter: 56px; }
  .hero h1 { font-size: 56px; line-height: 64px; }
  .hero .container, .about .container, .guide .container { gap: 56px; }
}

@media (max-width: 960px) {
  :root { --gutter: 32px; }
  .nav-links a:not(.btn) { display: none; }
  .hero .container { flex-direction: column; align-items: center; gap: 40px; padding-top: 56px; }
  .hero-copy { align-self: stretch; }
  .hero-portrait { margin-top: 0; width: 100%; height: auto; }
  .hero-portrait img { width: auto; height: 460px; }
  .about .container, .guide .container { flex-direction: column; align-items: stretch; padding-block: 88px; }
  .guide-mock-wrap { width: 100%; height: auto; padding-bottom: 24px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .section-head p { width: auto; }
  .cards { flex-direction: column; gap: 56px; }
  .paths .container { padding-block: 88px; }
  .display-lg { font-size: 44px; line-height: 50px; }
  .closing h2 { line-height: 50px; }
  .footer .container { flex-direction: column; align-items: flex-start; }
  .res-grid, .res-grid--two { grid-template-columns: 1fr; gap: 56px; }
  .res-grid--books { columns: 1; }
  .res-hero .container { padding-block: 72px 64px; }
  .res-section .container { padding-block: 88px; gap: 44px; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .nav .container { padding-block: 16px; }
  .brand svg { width: 52px; height: 45px; }
  .brand-name { font-size: 21px; line-height: 23px; }
  .nav .btn { padding: 12px 16px; font-size: 12px; }
  .hero h1 { font-size: 40px; line-height: 46px; }
  .hero h1 .hero-line { white-space: normal; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-portrait img { height: 380px; }
  .about h2 { font-size: 34px; line-height: 40px; }
  .display-lg { font-size: 36px; line-height: 42px; }
  .closing h2 { line-height: 42px; }
  .guide-mock { width: 100%; max-width: 300px; height: 390px; box-shadow: 14px 14px 0 var(--color-iris); }
  .guide-mock h3 { font-size: 36px; line-height: 38px; }
  .guide-form { flex-direction: column; }
  .footer-meta { flex-wrap: wrap; gap: 16px 24px; }
}
