/* v3 — Scandinavian Hygge */
:root {
  --cream: #f7f3ed;
  --brown: #8b7355;
  --blush: #e8dfd3;
  --ink: #3d3630;
  --mute: #8a8278;
  --white: #fffcf8;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-soft: 0 12px 40px rgba(61, 54, 48, 0.08);
  --shadow-pill: 0 8px 32px rgba(61, 54, 48, 0.1);
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.rail {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--cream);
  color: var(--mute);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

/* ── Ambient blobs ── */
.blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  filter: blur(2px);
}

.blob-a {
  width: min(52vw, 480px);
  top: -6%;
  right: -8%;
  opacity: 0.7;
  animation: drift-a 28s ease-in-out infinite alternate;
}

.blob-b {
  width: min(40vw, 360px);
  bottom: 18%;
  left: -10%;
  animation: drift-b 32s ease-in-out infinite alternate;
}

.blob-c {
  width: min(30vw, 280px);
  top: 42%;
  right: 28%;
  animation: drift-c 24s ease-in-out infinite alternate;
}

@keyframes drift-a {
  to { transform: translate(-24px, 32px) rotate(6deg); }
}

@keyframes drift-b {
  to { transform: translate(28px, -20px) rotate(-4deg); }
}

@keyframes drift-c {
  to { transform: translate(-16px, 24px) scale(1.06); }
}

.page {
  position: relative;
  z-index: 1;
  padding: 0 0 0;
}

.trust-ribbon {
  position: relative; z-index: 2;
  background: var(--white);
  border-bottom: 1px solid var(--blush);
  padding: 9px 0;
  font-size: 11px; font-weight: 500; color: var(--brown);
}
.trust-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
.trust-inner .dot { opacity: 0.4; }

/* ── Floating pill header ── */
.pill-header {
  padding: 16px 0 clamp(20px, 4vw, 32px);
}

.pill-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 12px 12px 12px 24px;
  box-shadow: var(--shadow-pill);
  border: 1px solid rgba(232, 223, 211, 0.8);
}

.logo img {
  height: 28px;
  width: auto;
}

.pill-inner nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 28px);
}

.pill-inner nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  transition: color 0.2s;
}

.pill-inner nav a:hover {
  color: var(--brown);
}

.nav-secondary a {
  color: var(--brown) !important;
}

/* ── Hero bento grid ── */
.hero-bento { margin-bottom: clamp(48px, 8vw, 80px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "text badge"
    "text visual"
    "chips visual";
  gap: clamp(16px, 3vw, 28px);
  min-height: clamp(440px, 65vh, 640px);
  align-items: start;
}

.hero-text { grid-area: text; align-self: end; padding-bottom: 8px; }
.hero-chips { grid-area: chips; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-chips span {
  padding: 6px 14px; font-size: 10px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brown);
  background: var(--white); border: 1px solid var(--blush); border-radius: var(--radius-pill);
}
.hero-sub {
  font-size: 15px; line-height: 1.65; max-width: 38ch;
  margin-bottom: 16px; color: var(--mute);
}
.hero-badge { grid-area: badge; justify-self: end; align-self: start;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brown); background: var(--white); border: 1px solid var(--blush);
  border-radius: var(--radius-pill); padding: 10px 18px; box-shadow: var(--shadow-soft);
}
.hero-visual { grid-area: visual; align-self: stretch; margin: 0;
  background: var(--white); border-radius: var(--radius-lg);
  padding: clamp(16px, 3vw, 28px); border: 1px solid var(--blush);
  box-shadow: var(--shadow-soft); display: flex; align-items: center; justify-content: center;
}
.hero-visual img {
  width: 100%; max-height: 520px; object-fit: contain;
  border-radius: calc(var(--radius-lg) - 8px);
  transition: transform 0.5s var(--ease);
}
.btn { grid-area: auto; margin-top: 8px; display: inline-flex;
  align-items: center; justify-content: center;
  background: var(--brown); color: var(--white);
  padding: 15px 34px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(139, 115, 85, 0.28); }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 14px;
}

.hero-text h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.85rem, 4.2vw, 3.1rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.15;
  max-width: 14ch;
}

/* ── Comfort ritual ── */
.ritual {
  margin-bottom: clamp(48px, 8vw, 80px);
}

.ritual-head {
  text-align: center;
  margin-bottom: clamp(28px, 5vw, 44px);
}

.ritual-head h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 10px;
}

.ritual-head p {
  font-size: 15px;
  max-width: 42ch;
  margin: 0 auto;
}

.ritual-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 28px);
}

.ritual-card {
  text-align: center;
  padding: clamp(24px, 4vw, 36px) 20px;
}

.ritual-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--blush);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brown);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease);
}

.ritual-card:hover .ritual-icon {
  transform: scale(1.04);
}

.ritual-icon svg {
  width: 44px;
  height: 44px;
}

.ritual-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 8px;
}

.ritual-card p {
  font-size: 14px;
  max-width: 26ch;
  margin: 0 auto;
}

/* ── Categories zigzag ── */
.categories {
  margin-bottom: clamp(48px, 7vw, 72px);
}
.cats-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 40px);
}

.zigzag-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--blush);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
html.js .zigzag-card:not(.vis) {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), box-shadow 0.35s;
}
.zigzag-card.vis { opacity: 1; transform: none; }
.zigzag-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(61,54,48,.1); }
.zigzag-card.vis:hover { transform: translateY(-3px); }

.zigzag-card--reverse {
  direction: rtl;
}

.zigzag-card--reverse > * {
  direction: ltr;
}

.zigzag-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: 0;
}

.zigzag-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 48px);
}

.zigzag-body h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 10px;
}
.zigzag-meta {
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brown); margin-bottom: 8px; display: block;
}
.zigzag-body p {
  font-size: 14px; line-height: 1.55; margin-bottom: 14px; max-width: 32ch;
}

.zigzag-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--brown);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.zigzag-link::after {
  content: '→';
  transition: transform 0.2s;
}

.zigzag-card:hover .zigzag-link::after {
  transform: translateX(4px);
}

/* ── Bento 2+1 gallery ── */
.gallery-section {
  margin-bottom: clamp(32px, 5vw, 48px);
}
.gallery-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400; color: var(--ink);
  margin-bottom: 8px;
}
.gallery-sub {
  font-size: 14px; margin-bottom: 24px; max-width: 42ch;
}

.bento-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: clamp(12px, 2vw, 18px);
}

.bento-gallery .bento-wide {
  grid-column: 1 / -1;
}

.bento-cell {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--blush);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.bento-cell:hover { box-shadow: 0 20px 48px rgba(61, 54, 48, 0.12); }
.bento-cell figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  background: linear-gradient(to top, rgba(61,54,48,.88), transparent);
  color: var(--white);
  display: flex; flex-direction: column; gap: 2px;
}
.bento-cell figcaption strong { font-size: 14px; font-weight: 600; }
.bento-cell figcaption em { font-size: 12px; opacity: 0.88; font-style: normal; }
.bento-tag { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }

.bento-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  aspect-ratio: 16 / 10;
}

.bento-gallery .bento-wide img {
  aspect-ratio: 21 / 9;
}

.bento-gallery:not(.bento-gallery--accent) .bento-cell:nth-child(2) img,
.bento-gallery:not(.bento-gallery--accent) .bento-cell:nth-child(3) img {
  aspect-ratio: 4 / 5;
}

.bento-gallery--accent .bento-cell img {
  aspect-ratio: 4 / 5;
}

.bento-gallery--accent .bento-wide img {
  aspect-ratio: 21 / 8;
}

/* ── Blog ── */
.blog { padding: clamp(48px, 7vw, 80px) 0 clamp(56px, 8vw, 88px); }
.blog h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 400; color: var(--ink);
  text-align: center; margin-bottom: 10px;
}
.blog-intro {
  text-align: center; font-size: 14px; max-width: 44ch;
  margin: 0 auto clamp(32px, 5vw, 48px);
}
.blog-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 24px); }
.blog-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--blush); overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.blog-card:nth-child(2) { transform: translateY(16px); }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(61,54,48,.1); }
.blog-card:nth-child(2):hover { transform: translateY(12px); }
.blog-thumb { display: block; aspect-ratio: 16/10; overflow: hidden; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s; }
.blog-card:hover .blog-thumb img { transform: scale(1.04); }
.blog-body { padding: 20px 22px 24px; }
.blog-meta {
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brown); margin-bottom: 12px;
}
.blog-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 12px;
}

.blog-card h3 a:hover {
  color: var(--brown);
}

.blog-card p {
  font-size: 14px;
  margin-bottom: 16px;
}

.blog-read {
  font-size: 13px;
  font-weight: 600;
  color: var(--brown);
}

/* ── Quote band ── */
.quote-band {
  margin-bottom: clamp(48px, 7vw, 72px);
  padding: 48px 0;
  background: var(--white);
  border-block: 1px solid var(--blush);
}
.quote-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.quote-inner blockquote { margin: 0; }
.quote-inner blockquote p {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-style: italic; line-height: 1.45; color: var(--ink);
  margin-bottom: 10px;
}
.quote-inner cite { font-size: 12px; color: var(--brown); font-style: normal; }
.quote-stats { display: flex; gap: clamp(24px, 4vw, 40px); }
.quote-stats div { text-align: center; }
.quote-stats strong {
  display: block; font-family: 'Fraunces', serif;
  font-size: 2rem; font-weight: 400; color: var(--ink); line-height: 1.1;
}
.quote-stats span { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }

/* ── Footer ── */
.foot { border-top: 1px solid var(--blush); padding-top: 48px; }
.foot-grid {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(24px, 4vw, 40px); padding-bottom: 32px;
}
.foot-brand img { height: 26px; margin-bottom: 12px; }
.foot-brand p { font-size: 13px; max-width: 26ch; line-height: 1.6; }
.foot-col h3 {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 12px;
}
.foot-col a { display: block; font-size: 13px; margin-bottom: 8px; transition: color 0.2s; }
.foot-col a:hover { color: var(--brown); }
.foot-bottom {
  padding: 20px 0 48px; border-top: 1px solid var(--blush);
  font-size: 12px; color: var(--mute);
}

/* ── Back link ── */
.back {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 99;
  background: var(--white);
  border: 1px solid var(--blush);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brown);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s;
}

.back:hover {
  transform: translateY(-2px);
}

/* ── Scroll reveal + motion (progressive — visible without JS) ── */
.reveal { transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
html.js .reveal:not(.vis) {
  opacity: 0;
  transform: translateY(28px);
}
.reveal.vis { opacity: 1; transform: none; }

.anim-item { transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
html.js .anim-item:not(.vis) {
  opacity: 0;
  transform: translateY(20px);
}
.anim-item.vis { opacity: 1; transform: none; }

.stagger-group > * { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
html.js .stagger-group > *:not(.vis) {
  opacity: 0;
  transform: translateY(16px);
}
.stagger-group > *.vis { opacity: 1; transform: none; }
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200;
  background: var(--brown); transform-origin: left; transform: scaleX(0);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal:not(.vis),
  html.js .anim-item:not(.vis),
  html.js .stagger-group > *:not(.vis),
  html.js .zigzag-card:not(.vis),
  .blob { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* legacy rv alias */
.rv { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.rv.vis { opacity: 1; transform: none; }

/* ── Mobile ── */
@media (max-width: 900px) {
  .pill-inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 16px 20px;
    border-radius: 28px;
  }

  .pill-inner nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-secondary {
    width: 100%;
    justify-content: center;
    padding-top: 4px;
    border-top: 1px solid var(--blush);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "badge" "text" "visual" "chips";
    min-height: unset;
  }
  .hero-badge { justify-self: start; }
  .hero-text h1 { max-width: none; }
  .hero-visual img { max-height: 360px; }
  .quote-inner { grid-template-columns: 1fr; text-align: center; }
  .quote-stats { justify-content: center; }
  .foot-grid { grid-template-columns: 1fr 1fr; }

  .ritual-row {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

  .zigzag-card,
  .zigzag-card--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .zigzag-media img {
    min-height: 220px;
    aspect-ratio: 16 / 10;
  }

  .bento-gallery {
    grid-template-columns: 1fr;
  }

  .bento-gallery .bento-wide {
    grid-column: 1;
  }

  .blog-row {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .blog-card:nth-child(2) {
    transform: none;
  }

  .blog-card:nth-child(2):hover {
    transform: translateY(-2px);
  }

  .foot-grid { grid-template-columns: 1fr; }
  .foot { text-align: center; }
}

@media (max-width: 520px) {
  .pill-inner nav {
    gap: 10px 16px;
  }

  .pill-inner nav a {
    font-size: 12px;
  }
}
