/* ============================================================
   NEYORA — storefront styles
   Mobile-first. Everything vector: SVG art, SVG creases, no rasters.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root{
  /* paper — blush, not candy. A light neutral ground is what keeps a
     pink palette on the luxury side of the line. */
  --paper:      #FAE7E3;
  --paper-2:    #F3D8D3;
  --paper-3:    #E8C3BE;
  --card:       #FEF4F2;

  /* ink — near-black oxblood. Never neutral grey; the warmth is the point. */
  --ink:        #2A141A;
  --ink-soft:   #5A3A3F;
  --ink-faint:  #7C565C;
  --rule:       #E4C3BE;

  /* accents: burgundy anchors, dusty rose softens */
  --wine:       #7E2B37;
  --rose:       #C08081;

  /* type */
  --display: "Fraunces", "Hoefler Text", Georgia, "Times New Roman", serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --script:  "Pinyon Script", "Snell Roundhand", "Apple Chancery", cursive;

  /* rhythm */
  --gutter: 22px;
  --maxw: 1180px;
  --section-y: 84px;
  --r: 3px;

  --ease: cubic-bezier(.22,.7,.28,1);
}

@media (min-width: 768px){
  :root{ --gutter: 40px; --section-y: 120px; }
}
@media (min-width: 1200px){
  :root{ --gutter: 56px; --section-y: 148px; }
}

/* ---------- 2. Reset ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--body);
  font-size:16px;
  line-height:1.65;
  font-weight:300;
  letter-spacing:.005em;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
body.locked{ overflow:hidden; }

img,svg{ display:block; max-width:100%; }
img{ height:auto; }
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer; }
input{ font:inherit; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4,p,figure,blockquote,ol,ul{ margin:0; }
ol,ul{ padding:0; list-style:none; }

::selection{ background:var(--ink); color:var(--paper); }

:focus-visible{
  outline:2px solid var(--wine);
  outline-offset:3px;
  border-radius:2px;
}

.skip-link{
  position:absolute; left:-9999px; top:0; z-index:200;
  background:var(--ink); color:var(--paper); padding:10px 16px;
}
.skip-link:focus{ left:12px; top:12px; }

/* ---------- 3. Wrinkled paper backdrop ----------
   Three fixed layers multiply down over everything, so every section —
   including the ones with their own background — reads as one crumpled
   sheet: heavy folds, a finer crumple across them, then paper tooth. */
.paper-defs{ position:absolute; width:0; height:0; }

.crease,.crease-fine,.tooth{
  position:fixed; inset:-12%;
  pointer-events:none;
  mix-blend-mode:multiply;
  background:#fff;
}

.crease     { z-index:87; filter:url(#crease);     opacity:.8; }
.crease-fine{ z-index:88; filter:url(#creaseFine); opacity:.7; }
.tooth      { z-index:89; filter:url(#tooth);      opacity:.28; }

/* phones: still creased, just a touch calmer under the copy */
@media (max-width:760px){
  .crease{ opacity:.7; }
  .crease-fine{ opacity:.55; }
  .tooth{ opacity:.2; }
}

/* Safari/iOS renders these filters heavily — soften there */
@supports (-webkit-touch-callout: none){
  .crease{ opacity:.6; }
  .crease-fine{ opacity:.45; }
  .tooth{ opacity:.16; }
}

/* ---------- 4. Layout ---------- */
.wrap{
  width:100%;
  max-width:var(--maxw);
  margin-inline:auto;
  padding-inline:var(--gutter);
}
.section{ padding-block:var(--section-y); position:relative; }

/* ---------- 5. Type scale ---------- */
h1,h2,h3,h4,.h2{
  font-family:var(--display);
  font-weight:400;
  letter-spacing:-.02em;
  line-height:1.06;
}
h1{
  font-size:clamp(2.65rem, 11.5vw, 6rem);
  font-variation-settings:"SOFT" 20, "opsz" 100;
}
h1 .line{ display:block; }
/* italic serif overhangs into the next word — give it room */
h1 em{ font-style:italic; font-weight:300; padding-right:.12em; }

.h2{ font-size:clamp(1.95rem, 6.6vw, 3.4rem); line-height:1.08; }
h3{ font-size:1.16rem; letter-spacing:-.01em; }

.eyebrow, .kicker{
  font-family:var(--body);
  font-size:.7rem;
  font-weight:500;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--ink-faint);
}
.kicker{ margin-bottom:20px; }
.kicker::before{
  content:""; display:inline-block;
  width:26px; height:1px; background:var(--rule);
  vertical-align:middle; margin-right:12px;
}

.lede{
  font-size:clamp(1rem, 4.1vw, 1.2rem);
  color:var(--ink-soft);
  max-width:36ch;
  line-height:1.62;
}
.br-desk{ display:none; }
@media (min-width:768px){ .br-desk{ display:inline; } }

/* ---------- 6. Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  min-height:50px;
  padding:0 26px;
  border-radius:var(--r);
  font-family:var(--body);
  font-size:.83rem; font-weight:500;
  letter-spacing:.1em; text-transform:uppercase; white-space:nowrap;
  transition:transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:active{ transform:translateY(1px); }

.btn-ink{ background:var(--ink); color:var(--card); }
.btn-ink:hover{ background:var(--wine); }

.btn-ghost{
  border:1px solid var(--rule);
  color:var(--ink);
  background:transparent;
}
.btn-ghost:hover{ border-color:var(--ink); background:rgba(42,20,26,.04); }

.btn-full{ width:100%; }

/* ---------- 7. Header ---------- */
.site-head{
  position:fixed; top:0; left:0; right:0; z-index:100;
  padding-top:env(safe-area-inset-top);
  background:rgba(250,231,227,0);
  transition:background .35s var(--ease), backdrop-filter .35s var(--ease);
}
.site-head.stuck{
  background:rgba(250,231,227,.88);
  backdrop-filter:saturate(120%) blur(10px);
  -webkit-backdrop-filter:saturate(120%) blur(10px);
}
.head-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px;
  height:64px;
}
.head-rule{
  height:1px; background:var(--rule);
  transform:scaleX(0); transform-origin:left;
  transition:transform .5s var(--ease);
}
.site-head.stuck .head-rule{ transform:scaleX(1); }

/* ---------- 7b. The mark ----------
   A geometric N inside a hairline ring. Reads at 20px, engraves well,
   and carries no mascot. */
.brand{ display:flex; align-items:center; gap:11px; }
.mark{ width:29px; height:29px; flex:none; }
.mark.lg{ width:44px; height:44px; }
.mk-ring{ fill:none; stroke:var(--ink); stroke-width:1.2; }
.mk-n{
  fill:none; stroke:var(--ink); stroke-width:2.2;
  stroke-linecap:square; stroke-linejoin:miter;
}

/* Script faces sit small on the body and carry a lot of side bearing, so
   the wordmark is set larger than its optical size and nudged off the
   baseline to sit level with the ring. Always lowercase — a copperplate
   script in caps loses the flourish that makes it read as premium. */
.wordmark{
  font-family:var(--script);
  font-size:1.85rem;
  line-height:1;
  letter-spacing:.01em;
  text-transform:lowercase;
  font-weight:400;
  transform:translateY(-.09em);
}
@media (min-width:900px){ .wordmark{ font-size:2rem; } }

.nav-desk{ display:none; gap:34px; }
.nav-desk a{
  font-size:.82rem; letter-spacing:.04em; color:var(--ink-soft);
  position:relative; padding-block:4px;
}
.nav-desk a::after{
  content:""; position:absolute; left:0; right:0; bottom:0;
  height:1px; background:var(--ink);
  transform:scaleX(0); transform-origin:right;
  transition:transform .38s var(--ease);
}
.nav-desk a:hover{ color:var(--ink); }
.nav-desk a:hover::after{ transform:scaleX(1); transform-origin:left; }
@media (min-width:900px){ .nav-desk{ display:flex; } }

.head-actions{ display:flex; align-items:center; gap:6px; }

.cart-btn{ position:relative; width:44px; height:44px; display:grid; place-items:center; }
.ico{ width:22px; height:22px; fill:none; stroke:var(--ink); stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; }
.cart-count{
  position:absolute; top:5px; right:4px;
  min-width:17px; height:17px; padding:0 4px;
  border-radius:9px;
  background:var(--wine); color:#fff;
  font-size:.63rem; font-weight:500; line-height:17px; text-align:center;
}

.burger{ width:44px; height:44px; display:grid; place-content:center; gap:6px; }
.burger span{
  display:block; width:22px; height:1.5px; background:var(--ink);
  transition:transform .35s var(--ease), opacity .2s;
}
.burger.open span:nth-child(1){ transform:translateY(3.75px) rotate(45deg); }
.burger.open span:nth-child(2){ transform:translateY(-3.75px) rotate(-45deg); }
@media (min-width:900px){ .burger{ display:none; } }

/* ---------- 8. Mobile sheet menu ---------- */
.sheet-menu{
  position:fixed; inset:0; z-index:99;
  background:var(--paper-2);
  padding:calc(88px + env(safe-area-inset-top)) var(--gutter) 40px;
  display:flex; flex-direction:column; justify-content:space-between;
  opacity:0; transform:translateY(-8px);
  transition:opacity .32s var(--ease), transform .32s var(--ease);
}
.sheet-menu[hidden]{ display:none; }
.sheet-menu.in{ opacity:1; transform:none; }
.sheet-menu nav{ display:flex; flex-direction:column; }
.sheet-menu a{
  font-family:var(--display);
  font-size:clamp(2rem,10vw,2.9rem);
  padding-block:16px;
  border-bottom:1px solid var(--rule);
  display:flex; align-items:baseline; gap:16px;
}
.sheet-menu em{
  font-family:var(--body); font-style:normal;
  font-size:.65rem; letter-spacing:.2em; color:var(--ink-faint);
}
.sheet-foot{ font-size:.8rem; color:var(--ink-faint); letter-spacing:.06em; }

/* ---------- 9. Hero ---------- */
.hero{
  position:relative;
  min-height:100svh;
  display:flex; align-items:center;
  padding-top:104px; padding-bottom:120px;
}
.eyebrow{ margin-bottom:22px; }
h1{ margin-bottom:26px; }
.hero-cta{ display:flex; flex-wrap:wrap; gap:12px; margin-top:34px; }

/* Centred by stretching edge to edge and letting the flex box centre its
   own children — NOT by translateX(-50%), which .reveal's translateY would
   overwrite, leaving this sitting half its own width right of centre. */
.scroll-hint{
  display:flex;
  position:absolute;
  bottom:calc(26px + env(safe-area-inset-bottom));
  left:0; right:0;
  flex-direction:column; align-items:center; gap:8px;
  font-size:.62rem; letter-spacing:.24em; text-transform:uppercase;
  color:var(--ink-faint);
}
/* letter-spacing adds a trailing gap after the last character, which drags
   the word visually left of centre — indent by the same amount to balance */
.scroll-hint span{ text-indent:.24em; }
.scroll-hint svg{ width:11px; height:34px; fill:none; stroke:var(--ink-faint); stroke-width:1.1; }
.scroll-hint svg path{ animation:nudge 2.6s var(--ease) infinite; }
@keyframes nudge{ 0%,100%{ transform:translateY(0); opacity:.5 } 50%{ transform:translateY(5px); opacity:1 } }

/* narrow phones: keep the eyebrow on one line, let the buttons share a row */
@media (max-width:479px){
  .hero .eyebrow{ font-size:.62rem; letter-spacing:.15em; }
  .hero-cta .btn{ flex:1 1 auto; padding-inline:14px; }
}

@media (min-width:900px){
  .hero{ padding-top:120px; text-align:center; }
  /* with the collection index gone the hero only filled the left half and
     read as an empty page, so on wide screens it centres instead */
  .hero .lede{ max-width:52ch; margin-inline:auto; }
  .hero-cta{ justify-content:center; }
  .hero h1{ margin-bottom:30px; }
}

/* ---------- 10. Ticker ---------- */
.ticker{
  border-block:1px solid var(--rule);
  background:var(--paper-2);
  padding-block:15px;
  overflow:hidden;
  position:relative;
}
.ticker-track{
  display:flex; align-items:center; gap:26px;
  width:max-content;
  animation:slide 44s linear infinite;
}
.ticker span{
  font-family:var(--display); font-style:italic;
  font-size:1.05rem; color:var(--ink-soft); white-space:nowrap;
}
.ticker i{ color:var(--wine); font-size:.62rem; font-style:normal; }
@keyframes slide{ to{ transform:translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .ticker-track{ animation:none; } }

/* ---------- 11. The idea ---------- */
.idea .h2{ margin-bottom:56px; }
.principles{ display:grid; gap:44px; }
.principles li{ position:relative; padding-top:24px; border-top:1px solid var(--rule); }
.num{
  display:block; margin-bottom:14px;
  font-family:var(--display); font-size:.86rem;
  letter-spacing:.14em; color:var(--wine);
}
.principles h3{ margin-bottom:10px; }
.principles p{ color:var(--ink-soft); font-size:.96rem; max-width:40ch; }
@media (min-width:768px){
  .principles{ grid-template-columns:repeat(3,1fr); gap:40px; }
}

/* ---------- 12. Page header (shop.html) ---------- */
.page-head{
  padding-top:calc(104px + env(safe-area-inset-top));
  padding-bottom:56px;
  border-bottom:1px solid var(--rule);
}
.page-head .h2{ margin-block:18px 20px; }
.page-head .lede{ max-width:46ch; }
.crumbs{
  font-size:.7rem; letter-spacing:.18em; text-transform:uppercase;
  color:var(--ink-faint);
}
.crumbs a:hover{ color:var(--ink); text-decoration:underline; text-underline-offset:4px; }
.crumbs span{ color:var(--rose); margin-inline:8px; }
@media (min-width:900px){
  .page-head{ padding-top:calc(150px + env(safe-area-inset-top)); padding-bottom:72px; }
}

/* the closing cross-link at the foot of the shop page */
.shop-more{
  border-top:1px solid var(--rule);
  padding-block:var(--section-y);
  text-align:center;
}
.shop-more .h2{ margin-bottom:24px; }

/* ---------- 13. Shop ---------- */
.shop{ background:var(--paper-2); border-block:1px solid var(--rule); }
/* the page head already supplies the breathing room above the grid */
.shop--page{
  background:transparent; border-block:0;
  padding-top:calc(var(--section-y) * .5);
}
.grid-products{ display:grid; gap:44px; }
@media (min-width:760px){ .grid-products{ grid-template-columns:repeat(3,1fr); gap:26px; } }

.card{ display:flex; flex-direction:column; }
.card-media{
  position:relative;
  background:var(--card);
  border:1px solid var(--rule);
  border-radius:var(--r);
  overflow:hidden;
  aspect-ratio:1/1;
  display:grid; place-items:center;
  transition:transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card-media img{ width:82%; height:auto; }
.card:hover .card-media{
  transform:translateY(-6px);
  box-shadow:0 18px 40px -24px rgba(42,20,26,.45);
}
.tag{
  position:absolute; top:12px; left:12px;
  background:var(--ink); color:var(--card);
  font-size:.6rem; letter-spacing:.16em; text-transform:uppercase;
  padding:5px 10px; border-radius:2px;
}
.card-body{ padding-top:20px; display:flex; flex-direction:column; flex:1; }
.card-row{ display:flex; align-items:baseline; justify-content:space-between; gap:14px; }
.price{ font-family:var(--display); font-size:1.05rem; }
.card p{ color:var(--ink-soft); font-size:.9rem; margin-top:9px; }
.spec{ margin-top:16px; display:flex; flex-direction:column; gap:7px; }
.spec li{
  font-size:.81rem; color:var(--ink-faint);
  display:flex; gap:10px; align-items:baseline;
}
.spec li::before{ content:"—"; color:var(--rose); flex:none; }
.btn-add{
  margin-top:18px;
  border:1px solid var(--ink);
  color:var(--ink);
  align-self:flex-start;
  min-height:46px; padding:0 22px;
}
.btn-add:hover{ background:var(--ink); color:var(--card); }
.btn-add.done{ background:var(--wine); border-color:var(--wine); color:#fff; }
.shop-foot{
  margin-top:52px; text-align:center;
  font-size:.78rem; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-faint);
}

/* ---------- 14. Ritual ---------- */
.ritual .h2{ margin-bottom:56px; }
.timeline{ display:grid; }
.step{
  position:relative;
  padding:28px 0 28px 34px;
  border-top:1px solid var(--rule);
}
.step:last-child{ border-bottom:1px solid var(--rule); }
.step::before{
  content:""; position:absolute; left:0; top:34px;
  width:9px; height:9px; border-radius:50%;
  background:var(--paper); border:1.5px solid var(--wine);
}
.step h3{ margin-bottom:10px; }
.step p{ color:var(--ink-soft); font-size:.95rem; max-width:52ch; }
@media (min-width:900px){
  .timeline{ grid-template-columns:repeat(3,1fr); }
  .step{ padding:34px 26px 0 0; border-top:1px solid var(--rule); }
  .step:last-child{ border-bottom:0; }
  .step::before{ top:-5px; left:0; }
}

/* ---------- 15. Quote band ---------- */
.quote-band{
  background:var(--ink);
  color:var(--paper);
  padding-block:calc(var(--section-y) * .95);
  text-align:center;
}
.quote-rule{
  display:block; width:54px; height:1px;
  margin:0 auto; background:var(--rose); opacity:.65;
}
.quote-band blockquote{
  font-family:var(--display); font-style:italic; font-weight:300;
  font-size:clamp(1.5rem,5.6vw,2.6rem);
  line-height:1.32; letter-spacing:-.015em;
  max-width:22ch; margin:34px auto;
}
@media (min-width:768px){ .quote-band blockquote{ max-width:30ch; } }

/* ---------- 16. Footer ---------- */
.site-foot{
  background:var(--paper-2);
  border-top:1px solid var(--rule);
  padding-top:64px;
  padding-bottom:calc(28px + env(safe-area-inset-bottom));
}
.foot-inner{ display:grid; gap:38px; }
.foot-word{
  font-family:var(--script); font-size:2.4rem; line-height:1;
  text-transform:lowercase; margin-top:16px;
}
.foot-tag{ font-size:.84rem; color:var(--ink-faint); margin-top:6px; }
.foot-col{ display:flex; flex-direction:column; gap:9px; }
.foot-col h4{
  font-family:var(--body); font-size:.68rem; font-weight:500;
  letter-spacing:.2em; text-transform:uppercase; color:var(--ink-faint);
  margin-bottom:6px;
}
.foot-col a{ font-size:.92rem; color:var(--ink-soft); width:fit-content; }
.foot-col a:hover{ color:var(--ink); text-decoration:underline; text-underline-offset:4px; }
.foot-base{
  display:flex; flex-wrap:wrap; gap:8px 24px; justify-content:space-between;
  margin-top:56px; padding-top:22px;
  border-top:1px solid var(--rule);
  font-size:.76rem; color:var(--ink-faint);
}
@media (min-width:760px){
  .foot-inner{ grid-template-columns:1.6fr 1fr 1fr 1fr; gap:32px; }
}

/* ---------- 18. Bag drawer ---------- */
.scrim{
  position:fixed; inset:0; z-index:110;
  background:rgba(42,20,26,.4);
  opacity:0; transition:opacity .35s var(--ease);
  -webkit-backdrop-filter:blur(2px); backdrop-filter:blur(2px);
}
.scrim[hidden]{ display:none; }
.scrim.in{ opacity:1; }

.bag{
  position:fixed; z-index:120;
  top:0; right:0; bottom:0;
  width:min(420px,100%);
  background:var(--paper);
  border-left:1px solid var(--rule);
  display:flex; flex-direction:column;
  transform:translateX(101%);
  transition:transform .45s var(--ease);
  padding-top:env(safe-area-inset-top);
  visibility:hidden;
}
.bag.in{ transform:none; visibility:visible; }
.bag-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:20px var(--gutter);
  border-bottom:1px solid var(--rule);
}
.bag-head h2{ font-size:1.3rem; }
.bag-close{ width:40px; height:40px; display:grid; place-items:center; margin-right:-10px; }
.bag-close svg{ width:20px; height:20px; fill:none; stroke:var(--ink); stroke-width:1.4; stroke-linecap:round; }
.bag-body{ flex:1; overflow-y:auto; padding:8px var(--gutter); -webkit-overflow-scrolling:touch; }
.bag-empty{ color:var(--ink-faint); font-size:.92rem; padding-block:40px; text-align:center; }

.bag-item{
  display:grid; grid-template-columns:1fr auto; gap:4px 14px;
  padding-block:20px; border-bottom:1px solid var(--rule);
}
.bag-item h3{ font-size:1rem; }
.bag-item .bi-price{ font-family:var(--display); font-size:.98rem; }
.bi-qty{ display:flex; align-items:center; gap:14px; margin-top:8px; }
.bi-qty button{
  width:28px; height:28px; border:1px solid var(--rule); border-radius:2px;
  display:grid; place-items:center; font-size:1rem; line-height:1;
}
.bi-qty button:hover{ border-color:var(--ink); }
.bi-qty span{ font-size:.9rem; min-width:14px; text-align:center; }
.bi-remove{
  grid-column:1; justify-self:start; margin-top:10px;
  font-size:.74rem; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-faint);
  text-decoration:underline; text-underline-offset:3px;
}
.bi-remove:hover{ color:var(--wine); }

.bag-foot{ padding:20px var(--gutter) calc(22px + env(safe-area-inset-bottom)); border-top:1px solid var(--rule); }
.bag-total{
  display:flex; justify-content:space-between; align-items:baseline;
  font-family:var(--display); font-size:1.1rem; margin-bottom:16px;
}
.bag-note{ margin-top:12px; font-size:.74rem; color:var(--ink-faint); text-align:center; }

/* ---------- 19. Toast ---------- */
.toast{
  position:fixed; z-index:130;
  left:50%; bottom:calc(24px + env(safe-area-inset-bottom));
  transform:translate(-50%,16px);
  background:var(--ink); color:var(--card);
  padding:12px 20px; border-radius:var(--r);
  font-size:.84rem;
  opacity:0; pointer-events:none;
  transition:opacity .3s var(--ease), transform .3s var(--ease);
  max-width:calc(100vw - 32px);
}
.toast.in{ opacity:1; transform:translate(-50%,0); }

/* ---------- 20. Reveal on scroll ---------- */
.reveal{
  opacity:0; transform:translateY(22px);
  transition:opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.seen{ opacity:1; transform:none; }
.d1{ transition-delay:.09s; }
.d2{ transition-delay:.18s; }
.d3{ transition-delay:.27s; }
.d4{ transition-delay:.36s; }

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  *{ animation-duration:.001ms!important; animation-iteration-count:1!important; }
}
