/* =========================================================
   Naenaesthetics — design foundation v1
   Mobile-first. Colours, type and spacing live in :root.
   ========================================================= */
:root {
  --cream:  #FBF6EE;
  --paper:  #FFFDF9;
  --ink:    #2B2420;
  --cocoa:  #6F6259;
  --rose:   #A84E44;
  --blush:  #F6DCD4;
  --sage:   #E3EADB;
  --sage-2: #B9CBB0;
  --butter: #F8EBC2;
  --sand:   #F3ECE1;
  --line:   #EADFD0;

  --serif: "Lora", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --hdr-h: 60px;
  --gutter: 20px;
  --r-sm: 14px;
  --r-md: 18px;
  --r-lg: 26px;
  --ease-out: cubic-bezier(.22,.8,.24,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--cream); padding: 8px 14px; border-radius: 999px; z-index: 200; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--cocoa); }
.small { font-size: 12.5px; }

/* ---------- Type ---------- */
.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow--rose { color: var(--rose); }
.h2 { font: 500 22px/1.25 var(--serif); }
.link-rose { color: var(--rose); font-size: 13px; font-weight: 500; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sec-head--stack { display: block; }
.sec-head--stack .small { margin-top: 4px; }

/* ---------- Wordmark ---------- */
.wordmark { font: 500 21px/1 var(--serif); letter-spacing: .01em; color: var(--ink); }
.wordmark i { color: var(--rose); }
.wordmark--sm { font-size: 17px; }

/* ---------- Buttons & chips ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px;
  font: 500 14px/1 var(--sans); white-space: nowrap;
  transition: transform .2s var(--ease-out), background-color .2s;
}
.pill:active { transform: scale(.97); }
.pill--ink   { background: var(--ink); color: var(--cream); }
.pill--ink:hover { background: #3d332e; }
.pill--out   { border: 1px solid #CDBFAE; }
.pill--paper { background: var(--paper); color: var(--ink); }
.pill--sm    { min-height: 40px; padding: 0 16px; font-size: 13px; }
.pill--block { display: flex; width: 100%; min-height: 52px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 12.5px; }
.chip--sage   { background: var(--sage); }
.chip--butter { background: var(--butter); }
.chip--blush  { background: var(--blush); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin: 0 -10px; padding: 0;
  background: none; border: 0; color: var(--ink); cursor: pointer;
}
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================
   Header: narrow, hides on scroll down, returns on scroll up.
   On the homepage it starts transparent over the carousel.
   ========================================================= */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--hdr-h); padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  transition: transform .35s var(--ease-out), background-color .3s, box-shadow .3s;
}
.hdr.is-solid { background: rgba(251,246,238,.96); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hdr.is-hidden { transform: translateY(-100%); }
body:not(:has(.hdr--overlay)) main { padding-top: var(--hdr-h); }

/* ---------- Full-screen menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 100;
  background: var(--cream);
  display: flex; flex-direction: column;
  padding: 8px var(--gutter) 32px;
  opacity: 0; transform: translateY(-8px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; transform: none; }
.menu__top { height: 52px; display: flex; align-items: center; justify-content: space-between; }
.menu__nav { display: flex; flex-direction: column; gap: 6px; margin-top: 40px; }
.menu__nav a { font: 500 32px/1.25 var(--serif); padding: 6px 0; border-bottom: 1px solid var(--line); }
.menu__nav a:hover { color: var(--rose); }
.menu__foot { margin-top: auto; }
body.menu-open { overflow: hidden; }

/* =========================================================
   1. Carousel
   ========================================================= */
.hero { position: relative; height: clamp(480px, 82svh, 640px); overflow: hidden; background: #e9dfd2; }
.hero::before { /* header melts into the photo */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 170px; z-index: 2; pointer-events: none;
  background: linear-gradient(to bottom, var(--cream) 0%, var(--cream) 30%, rgba(251,246,238,.75) 55%, rgba(251,246,238,0) 100%);
}
.hero__track {
  display: flex; height: 100%;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.hero__track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 60%; pointer-events: none;
  background: linear-gradient(to top, rgba(30,22,16,.66), rgba(30,22,16,0));
}
.slide__copy { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 96px; z-index: 1; color: var(--paper); }
.slide__title { font: 500 34px/1.08 var(--serif); margin-top: 8px; max-width: 14ch; }
.hero__bar {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 26px; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
}
.dots { display: flex; gap: 2px; }
.dot { width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.dot::before {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 6px; height: 3px; border-radius: 2px; background: rgba(255,253,249,.55);
  transition: width .35s var(--ease-out), background-color .3s;
}
.dot.is-on::before { width: 20px; background: var(--paper); }

/* =========================================================
   2. Intro
   ========================================================= */
.intro { padding-top: 40px; }
.intro__title { font: 500 31px/1.18 var(--serif); margin-top: 12px; max-width: 18ch; }
.intro__title i { color: var(--rose); }
.swash { position: relative; display: inline-block; }
.swash svg { position: absolute; left: 0; bottom: -7px; width: 100%; height: 10px; overflow: visible; }
.swash path { fill: none; stroke: var(--rose); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; transition: stroke-dashoffset 1.1s .2s var(--ease-out); }
.swash.is-in path { stroke-dashoffset: 0; }
.intro__lede { color: var(--cocoa); font-size: 15px; margin-top: 16px; max-width: 46ch; }

/* =========================================================
   3. Featured grid (staggered, like a cookbook spread)
   ========================================================= */
.featured { margin-top: 36px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; margin-top: 16px; }
.rcard { display: block; min-width: 0; }
.rcard__img { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; background: var(--sand); }
.rcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.rcard:hover .rcard__img img { transform: scale(1.04); }
.rcard__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag {
  position: absolute; left: 8px; top: 8px;
  height: 24px; padding: 0 9px; border-radius: 999px;
  display: inline-flex; align-items: center;
  background: rgba(255,253,249,.92); font-size: 10.5px; font-weight: 500;
}
.rcard__title { display: block; font: 500 15.5px/1.3 var(--serif); margin-top: 8px; }
.rcard__meta  { display: block; font-size: 11.5px; color: var(--cocoa); margin-top: 3px; }

/* =========================================================
   4. How much should I weigh? card
   ========================================================= */
.weigh-wrap { margin-top: 26px; }
.wcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; max-width: 560px; margin: 0 auto; }
.wcard__photo { position: relative; height: 230px; }
.wcard__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 20% 30%; }
.wcard__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(255,253,249,0) 45%, var(--paper) 100%); }
.wcard__body { position: relative; padding: 0 22px 24px; margin-top: -30px; }
.wcard__title { font: 500 30px/1.12 var(--serif); margin-top: 10px; }
.wcard__title i { color: var(--rose); }
.wcard__line { color: var(--cocoa); font-size: 14.5px; margin-top: 10px; }
.wcard__line .sign { font: italic 400 15px var(--serif); color: var(--ink); white-space: nowrap; }
.wcard .chips { margin-top: 18px; }
.wcard .pill--block { margin-top: 18px; }

.dial { position: relative; max-width: 304px; margin: 18px auto 0; }
.dial svg { display: block; width: 100%; height: auto; overflow: visible; }
.dial__rim   { fill: none; stroke: var(--line); stroke-width: 2; }
.dial__range { fill: none; stroke: var(--sage-2); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s .3s var(--ease-out); }
.tick { stroke: var(--ink); stroke-width: 1; opacity: .45; }
.tick--big { stroke-width: 1.5; opacity: 1; }
.dial__num { font: 10px var(--sans); fill: var(--cocoa); text-anchor: middle; }
.dial__needle { transform-box: view-box; transform-origin: 152px 150px; transform: rotate(0deg); transition: transform 1.6s .25s cubic-bezier(.34,1.45,.5,1); }
.dial__needle line { stroke: var(--rose); stroke-width: 2.4; stroke-linecap: round; }
.dial__needle circle { fill: var(--rose); }
.is-in .dial__range  { stroke-dashoffset: 0; }
.is-in .dial__needle { transform: rotate(var(--to)); }
.dial__readout { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; }
.dial__kg   { display: block; font: 500 26px/1.1 var(--serif); }
.dial__kg small { font-size: 18px; }
.dial__note { display: block; font-size: 11.5px; color: var(--cocoa); margin-top: 2px; }

/* =========================================================
   5. Fresh from Instagram
   ========================================================= */
.insta { margin-top: 44px; }
.reels {
  display: flex; gap: 10px; margin: 16px 0;
  padding: 0 var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  scroll-padding-left: var(--gutter);
}
.reels::-webkit-scrollbar { display: none; }
.reel { position: relative; flex: 0 0 140px; aspect-ratio: 9 / 15; border-radius: var(--r-md); overflow: hidden; scroll-snap-align: start; background: var(--sand); }
.reel img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.reel:hover img { transform: scale(1.04); }
.reel__play { position: absolute; left: 9px; bottom: 9px; width: 30px; height: 30px; }
.reel__play circle { fill: rgba(255,253,249,.92); }
.reel__play path { fill: var(--ink); }

/* =========================================================
   Footer: narrow, the same on every page
   ========================================================= */
.ftr { background: var(--sand); border-top: 1px solid var(--line); margin-top: 44px; padding: 24px 0 calc(22px + env(safe-area-inset-bottom)); }
.ftr__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 13px; }
.ftr__links a:hover { color: var(--rose); }
.ftr__social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ftr__small { font-size: 11px; color: var(--cocoa); margin-top: 14px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Larger screens
   ========================================================= */
@media (min-width: 760px) {
  :root { --gutter: 32px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
  .intro__title { font-size: 40px; }
  .slide__title { font-size: 46px; }
}
@media (min-width: 900px) {
  .hero { height: 640px; }
  .slide__copy, .hero__bar { left: max(var(--gutter), calc((100vw - 1120px) / 2 + var(--gutter))); right: max(var(--gutter), calc((100vw - 1120px) / 2 + var(--gutter))); }
  .wcard { max-width: 980px; display: grid; grid-template-columns: 1fr 1fr; }
  .wcard__photo { height: auto; min-height: 100%; }
  .wcard__photo::after { background: linear-gradient(to right, rgba(255,253,249,0) 60%, var(--paper) 100%); }
  .wcard__body { margin-top: 0; padding: 40px 40px 36px 28px; }
  .reels { max-width: 1120px; margin-left: auto; margin-right: auto; display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; }
  .reel { flex: none; }
  .insta .pill--block { max-width: 360px; margin: 0 auto; }
}

/* ---------- Respect reduced-motion settings ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
