:root {
  --ink: #3d3832;
  --muted: #756d63;
  --cream: #f4eadb;
  --paper: #fbf6ee;
  --night: #273142;
  --blue: #596b7e;
  --gold: #b98b5b;
  --rose: #a9786f;
  --sage: #87927e;
  --line: rgba(61, 56, 50, 0.12);
  --shadow: 0 22px 58px rgba(52, 42, 33, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(169, 120, 111, 0.12), transparent 34rem),
    radial-gradient(circle at 88% 6%, rgba(185, 139, 91, 0.12), transparent 32rem),
    linear-gradient(180deg, #efe2d1 0%, var(--cream) 42%, #e8e3d8 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.62' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E");
}

a { color: inherit; }

.site-header {
  width: min(1120px, calc(100% - 32px));
  margin: 22px auto 0;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(251, 246, 238, 0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  position: sticky;
  top: 14px;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff7e8;
  background: var(--night);
  border-radius: 50%;
  box-shadow: inset -5px -6px 0 rgba(185, 139, 91, 0.42);
}

.nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  padding: 9px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav a:hover,
.nav a.active {
  background: rgba(89, 107, 126, 0.1);
  color: var(--blue);
}

main { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.74fr);
  gap: 54px;
  align-items: center;
  padding: 64px 0 46px;
}

.eyebrow,
.tag,
.product-type {
  margin: 0 0 12px;
  color: var(--rose);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: Fraunces, Georgia, serif;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0;
  color: #38342f;
}

h1 { font-size: clamp(2.35rem, 4.8vw, 4.05rem); max-width: 16ch; font-weight: 500; }
h2 { font-size: clamp(2rem, 4.2vw, 3.55rem); font-weight: 500; }
h3 { font-size: 1.48rem; font-weight: 500; }

.subheading {
  margin: 24px 0 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  color: var(--blue);
}

.hero-text,
.page-hero p,
.stacked-copy p,
.card p,
.activity-card p,
.post-card p,
.product-card p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text { max-width: 650px; font-size: 1.08rem; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}

.button.primary { background: #313746; color: #fff7ea; box-shadow: 0 16px 34px rgba(39, 49, 66, 0.18); }
.button.secondary { background: rgba(251, 246, 238, 0.64); border-color: var(--line); color: var(--blue); }

.memory-card {
  min-height: 500px;
  position: relative;
  overflow: hidden;
  border-radius: 44px;
  background: linear-gradient(180deg, #202a3a, #47546a 54%, #c99f72 55%, #ead1a9 100%);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.memory-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: radial-gradient(ellipse at center, rgba(255,246,228,.38), transparent 62%);
}

.memory-card p {
  position: absolute;
  left: 28px;
  bottom: 24px;
  z-index: 3;
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.8rem;
  color: #5a4337;
}

.moon {
  position: absolute;
  top: 54px;
  right: 62px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: #f1d7a6;
  box-shadow: 0 0 34px rgba(241, 215, 166, 0.48);
}

.stars span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f7edce;
}
.stars span:nth-child(1){ left: 64px; top: 82px; }
.stars span:nth-child(2){ left: 42%; top: 120px; }
.stars span:nth-child(3){ right: 32%; top: 48px; }
.stars span:nth-child(4){ left: 30%; top: 210px; }

.window-scene {
  position: absolute;
  left: 50%;
  bottom: 128px;
  width: 250px;
  height: 250px;
  transform: translateX(-50%);
  border: 16px solid rgba(251, 246, 238, 0.88);
  border-radius: 36px 36px 18px 18px;
  background: linear-gradient(#f4dfba, #d7aa78);
  box-shadow: 0 20px 54px rgba(0,0,0,.16);
}

.window-scene::before,
.window-scene::after {
  content: "";
  position: absolute;
  background: rgba(90, 67, 55, 0.16);
}
.window-scene::before { width: 100%; height: 12px; top: 50%; left: 0; }
.window-scene::after { width: 12px; height: 100%; left: 50%; top: 0; }

.parent,
.child {
  position: absolute;
  bottom: 36px;
  width: 62px;
  height: 92px;
  border-radius: 36px 36px 14px 14px;
  background: var(--blue);
  z-index: 2;
}
.parent { left: 54px; }
.child { right: 54px; height: 66px; background: var(--rose); }
.parent::before,
.child::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -34px;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #71513f;
}
.child::before { width: 36px; height: 36px; top: -28px; }
.book {
  position: absolute;
  left: 98px;
  bottom: 24px;
  width: 58px;
  height: 24px;
  border-radius: 4px;
  background: #fbf6ee;
  transform: rotate(-5deg);
  z-index: 4;
}

.truth-strip,
.section,
.page-hero,
.activity-card,
.post-card,
.product-card,
.card,
.ritual-panel {
  background: rgba(251, 246, 238, 0.74);
  border: 1px solid var(--line);
  box-shadow: 0 16px 46px rgba(52, 42, 33, 0.07);
}

.truth-strip {
  margin: 10px 0 38px;
  border-radius: 30px;
  padding: 24px 30px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.22rem, 2.4vw, 1.8rem);
  line-height: 1.35;
}
.truth-strip p { margin: 0; }
.truth-strip strong { color: var(--blue); }

.section { border-radius: 38px; padding: clamp(28px, 5vw, 52px); margin: 28px 0; }
.split { display: grid; grid-template-columns: .82fr 1fr; gap: 46px; align-items: start; }
.stacked-copy p:first-child { margin-top: 0; }

.cards-grid,
.activity-layout,
.blog-list,
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.card,
.activity-card,
.post-card,
.product-card {
  border-radius: 30px;
  padding: 26px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  margin-bottom: 24px;
  background: rgba(185, 139, 91, 0.18);
  color: var(--blue);
  font-size: 1.5rem;
}

.card a,
.activity-card a,
.post-card a,
.product-card a,
.site-footer a {
  font-weight: 700;
  color: var(--blue);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.ritual-panel {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 34px;
  border-radius: 38px;
  padding: clamp(28px, 5vw, 52px);
  margin: 28px 0 70px;
  background: linear-gradient(135deg, rgba(49,55,70,.96), rgba(89,107,126,.88));
  color: #fff7ea;
}
.ritual-panel h2,
.ritual-panel .eyebrow { color: #f1dfbd; }
.ritual-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ritual-list li { display: flex; gap: 14px; line-height: 1.55; color: rgba(255,247,234,.86); }
.ritual-list span { color: #d6b27f; font-weight: 800; }

.page-hero {
  margin: 64px 0 28px;
  padding: clamp(34px, 6vw, 68px);
  border-radius: 42px;
}
.page-hero.narrow h1 { max-width: 840px; font-size: clamp(2.25rem, 4.4vw, 3.6rem); }
.page-hero.narrow p { max-width: 760px; font-size: 1.06rem; }

.activity-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.activity-card.featured { grid-column: span 2; background: linear-gradient(135deg, rgba(251,246,238,.86), rgba(235,218,194,.78)); }
.prompt { color: var(--blue) !important; font-weight: 700; }

.blog-list { grid-template-columns: 1.2fr .8fr; }
.large-post { grid-row: span 3; background: linear-gradient(160deg, rgba(49,55,70,.96), rgba(89,107,126,.88)); }
.large-post h2,
.large-post p,
.large-post a { color: #fff7ea; }
.large-post .tag { color: #ead0a4; }

.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card { background: rgba(251, 246, 238, 0.78); }
.product-type { color: var(--sage); }
.product-proof {
  color: var(--gold) !important;
  font-size: .86rem;
  font-weight: 800;
}

.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 28px;
  padding: 28px 8px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer p { margin: 0; }

@media (max-width: 860px) {
  .site-header { align-items: flex-start; border-radius: 28px; flex-direction: column; }
  .nav { justify-content: flex-start; }
  .hero,
  .split,
  .ritual-panel,
  .blog-list { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 46px; }
  h1 { max-width: 12ch; }
  .cards-grid,
  .product-grid,
  .activity-layout { grid-template-columns: 1fr; }
  .activity-card.featured { grid-column: span 1; }
  .site-footer { flex-direction: column; }
}

@media (max-width: 520px) {
  main,
  .site-header,
  .site-footer { width: min(100% - 22px, 1120px); }
  .nav a { padding: 8px 9px; font-size: .85rem; }
  .memory-card { min-height: 410px; border-radius: 30px; }
  .window-scene { width: 210px; height: 220px; bottom: 112px; }
}

/* Deep-night calming refresh */
:root {
  --ink: #f3ecff;
  --muted: #c9bdd9;
  --cream: #171735;
  --paper: #211d45;
  --night: #0d1028;
  --blue: #b7c4ff;
  --gold: #f0c98b;
  --rose: #e7a9c6;
  --sage: #b7c9bd;
  --line: rgba(238, 226, 255, 0.14);
  --shadow: 0 26px 70px rgba(2, 3, 18, 0.42);
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(88, 54, 132, 0.42), transparent 34rem),
    radial-gradient(circle at 88% 6%, rgba(40, 72, 136, 0.34), transparent 32rem),
    radial-gradient(circle at 50% 110%, rgba(96, 54, 112, 0.28), transparent 42rem),
    linear-gradient(180deg, #0a102a 0%, #151338 48%, #221844 100%);
}

body::before { opacity: 0.09; }

.site-header,
.truth-strip,
.section,
.page-hero,
.activity-card,
.post-card,
.product-card,
.card {
  background: rgba(24, 22, 55, 0.76);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.site-header { backdrop-filter: blur(20px); }

.brand,
h1,
h2,
h3,
.truth-strip { color: var(--ink); }

.nav a { color: #bfb4d2; }
.nav a:hover,
.nav a.active {
  background: rgba(183, 196, 255, 0.13);
  color: #eef0ff;
}

.eyebrow,
.tag,
.product-type { color: var(--rose); }

.subheading,
.card a,
.activity-card a,
.post-card a,
.product-card a,
.site-footer a,
.prompt { color: var(--blue) !important; }

.hero-text,
.page-hero p,
.stacked-copy p,
.card p,
.activity-card p,
.post-card p,
.product-card p,
.site-footer { color: var(--muted); }

.button.primary {
  background: linear-gradient(135deg, #6b5cff, #9b6bd3);
  color: #fffaf0;
  box-shadow: 0 18px 44px rgba(74, 60, 178, 0.34);
}

.button.secondary {
  background: rgba(238, 226, 255, 0.08);
  border-color: var(--line);
  color: #e9e4ff;
}

.random-activity-button { margin-top: 24px; cursor: pointer; }

.memory-card.hero-image-card {
  min-height: 500px;
  margin: 0;
  background: #11142f;
  border: 1px solid rgba(238, 226, 255, 0.14);
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  display: block;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.04) brightness(0.9);
}

.hero-image-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(9, 12, 35, 0.04), rgba(9, 12, 35, 0.46));
  pointer-events: none;
}

.hero-image-card figcaption {
  position: absolute;
  left: 28px;
  bottom: 24px;
  z-index: 3;
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.8rem;
  color: #fff4da;
  text-shadow: 0 3px 18px rgba(0,0,0,.55);
}

.activity-card.featured {
  background:
    radial-gradient(circle at 88% 12%, rgba(240, 201, 139, 0.16), transparent 16rem),
    linear-gradient(135deg, rgba(39, 35, 86, 0.96), rgba(26, 32, 76, 0.9));
}

.ritual-panel,
.large-post {
  background: linear-gradient(135deg, rgba(36, 31, 82, .98), rgba(18, 28, 68, .92));
}

.card-icon {
  background: rgba(240, 201, 139, 0.14);
  color: var(--gold);
}

@media (max-width: 520px) {
  .memory-card.hero-image-card,
  .hero-image-card img { min-height: 410px; }
}


/* Warm rounded text boxes + blog modal reader */
.site-header,
.truth-strip,
.section,
.page-hero,
.activity-card,
.post-card,
.product-card,
.card,
.ritual-panel {
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 213, 145, 0.12), transparent 18rem),
    rgba(34, 28, 68, 0.82);
  border-color: rgba(255, 222, 166, 0.2);
  box-shadow:
    0 0 0 1px rgba(255, 231, 184, 0.06),
    0 0 28px rgba(255, 190, 112, 0.12),
    0 24px 70px rgba(2, 3, 18, 0.44);
}

.page-hero,
.truth-strip,
.section,
.activity-card,
.post-card,
.product-card,
.card,
.ritual-panel {
  position: relative;
}

.page-hero::after,
.truth-strip::after,
.section::after,
.activity-card::after,
.post-card::after,
.product-card::after,
.card::after,
.ritual-panel::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 244, 218, 0.08), 0 0 22px rgba(255, 205, 138, 0.1);
}

.blog-library {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-preview {
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 222, 166, 0.2);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.post-preview:hover,
.post-preview:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 222, 166, 0.42);
  box-shadow:
    0 0 0 1px rgba(255, 231, 184, 0.1),
    0 0 36px rgba(255, 190, 112, 0.2),
    0 28px 76px rgba(2, 3, 18, 0.5);
  outline: none;
}

.post-preview.large-post {
  grid-column: span 2;
  grid-row: span 2;
}

.post-title {
  display: block;
  font-family: Fraunces, Georgia, serif;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.post-title.as-h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.post-title.as-h3 { font-size: 1.48rem; }
.post-excerpt { color: var(--muted); line-height: 1.7; }
.read-link { color: var(--blue); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }

.post-modal[aria-hidden="true"] { display: none; }
.post-modal[aria-hidden="false"] {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
}

.post-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 24, 0.72);
  backdrop-filter: blur(8px);
}

.post-modal-box {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  max-height: min(82vh, 840px);
  overflow: auto;
  border-radius: 34px;
  padding: clamp(26px, 5vw, 52px);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 216, 154, 0.18), transparent 18rem),
    linear-gradient(145deg, rgba(45, 35, 82, 0.98), rgba(24, 25, 64, 0.96));
  border: 1px solid rgba(255, 226, 178, 0.28);
  box-shadow:
    0 0 0 1px rgba(255, 244, 218, 0.08),
    0 0 48px rgba(255, 194, 117, 0.22),
    0 32px 110px rgba(0, 0, 0, 0.58);
}

.post-modal-box:focus { outline: none; }
.post-modal-box h2 { padding-right: 38px; color: #fff4df; }
.modal-body { margin-top: 24px; display: grid; gap: 16px; }
.modal-body p { margin: 0; color: #ddd2e9; line-height: 1.82; font-size: 1.05rem; }

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 226, 178, 0.26);
  border-radius: 999px;
  background: rgba(255, 244, 218, 0.1);
  color: #fff4df;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
  outline: none;
  background: rgba(255, 212, 148, 0.2);
}

body.modal-open { overflow: hidden; }

@media (max-width: 860px) {
  .blog-library { grid-template-columns: 1fr; }
  .post-preview.large-post { grid-column: span 1; grid-row: span 1; }
}



/* Tiny dream sheep: intentionally rare, soft, and mostly behind panels. */
main,
.site-footer { position: relative; z-index: 2; }
.sleep-sheep {
  position: fixed;
  left: var(--sheep-x, 6vw);
  top: var(--sheep-y, 72vh);
  width: var(--sheep-size, 54px);
  height: calc(var(--sheep-size, 54px) * .72);
  z-index: var(--sheep-layer, 0);
  opacity: 0;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  animation: sheep-drift var(--sheep-speed, 18s) ease-in-out forwards;
}
.sleep-sheep::before,
.sleep-sheep::after,
.sleep-sheep span,
.sleep-sheep i {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 249, 235, .86);
  box-shadow: 0 0 16px rgba(255, 225, 166, .24);
}
.sleep-sheep::before { width: 58%; height: 62%; left: 22%; top: 22%; }
.sleep-sheep::after { width: 30%; height: 34%; right: 8%; top: 18%; background: rgba(238, 226, 246, .9); }
.sleep-sheep span:nth-child(1) { width: 32%; height: 44%; left: 10%; top: 18%; }
.sleep-sheep span:nth-child(2) { width: 34%; height: 46%; left: 36%; top: 4%; }
.sleep-sheep span:nth-child(3) { width: 22%; height: 28%; left: 24%; bottom: -2%; background: rgba(199, 184, 219, .7); }
.sleep-sheep span:nth-child(4) { width: 22%; height: 28%; left: 58%; bottom: -1%; background: rgba(199, 184, 219, .7); }
.sleep-sheep i { width: 5px; height: 5px; right: 15%; top: 31%; background: rgba(39, 49, 66, .58); box-shadow: none; }
.sleep-sheep.front-sheep { filter: drop-shadow(0 10px 24px rgba(7, 8, 24, .24)); }
@keyframes sheep-drift {
  0% { opacity: 0; transform: translate3d(0, 12px, 0) rotate(-3deg); }
  12% { opacity: .52; }
  48% { transform: translate3d(16vw, -5vh, 0) rotate(4deg); }
  72% { opacity: .44; transform: translate3d(28vw, -2vh, 0) rotate(-2deg); }
  100% { opacity: 0; transform: translate3d(40vw, -9vh, 0) rotate(3deg); }
}
@media (prefers-reduced-motion: reduce) {
  .sleep-sheep { display: none; }
}
