/* =========================================================
   TOLI — style.css
   Look: open field at golden hour. Pale sky, wheat, light wood
   racks, earth-tone clothes, wide-spaced classical capitals.
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root{
  /* colour — taken from sky, field, wood and the clothes */
  --sky:        #DCE5E1;   /* pale morning sky */
  --sky-deep:   #BFD0CC;
  --field:      #C9A46B;   /* wheat */
  --field-deep: #9C7A45;   /* wheat in shadow */
  --wood:       #C8996A;   /* rack frames */
  --linen:      #F3EFE7;   /* page ground */
  --paper:      #FBF9F5;   /* cards */
  --ink:        #241C16;   /* text, dark garments */
  --ink-soft:   #5E544B;   /* secondary text (7:1 on linen) */
  --line:       rgba(36,28,22,.14);
  --rust:       #A8482B;   /* the one accent */
  --olive:      #4F5A36;
  --cream:      #EDE6D8;

  /* type */
  --display: 'Forum', 'Cormorant Garamond', Georgia, serif;   /* wide classical caps, Cyrillic */
  --body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --track-caps: .32em;     /* the signature wide letter-spacing */

  /* scale */
  --t-cap: 13px;  --t-sm: 14px;  --t-body: 16px;  --t-lead: 18px;
  --t-h3: 24px;   --t-h2: clamp(32px, 6vw, 48px);  --t-h1: clamp(40px, 9vw, 76px);

  /* space — 8-point */
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 40px; --s6: 64px; --s7: 112px;

  --radius: 2px;            /* almost square, like wood and linen */
  --ease: cubic-bezier(.22,.61,.36,1);
  --wrap: 1120px;
}

/* ---------- 2. Base ---------- */
*,*::before,*::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body{
  margin: 0; background: var(--linen); color: var(--ink);
  font: 400 var(--t-body)/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg, video{ display: block; max-width: 100%; }
a{ color: inherit; }
:focus-visible{ outline: 2px solid var(--rust); outline-offset: 3px; }
.wrap{ width: min(100% - 2*var(--s4), var(--wrap)); margin-inline: auto; }

/* ---------- 3. Type ---------- */
.caps{
  font-family: var(--display); font-size: var(--t-cap);
  letter-spacing: var(--track-caps); text-transform: uppercase; line-height: 1.6;
}
.display{
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  letter-spacing: .18em; line-height: 1.25; margin: 0;
}
h1.display{ font-size: var(--t-h1); letter-spacing: .12em; }
h2.display{ font-size: var(--t-h2); }
h3{ font: 400 var(--t-h3)/1.3 var(--display); letter-spacing: .06em; margin: 0 0 var(--s2); }
p{ margin: 0 0 var(--s3); }
.lead{ font-size: var(--t-lead); color: var(--ink-soft); max-width: 46ch; }
.muted{ color: var(--ink-soft); }
.accent{ color: var(--rust); }

/* ---------- 4. Buttons ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 52px; padding: 0 var(--s5);
  font: 500 var(--t-sm)/1 var(--body); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; border-radius: var(--radius); cursor: pointer;
  background: var(--ink); color: var(--linen); border: 1px solid var(--ink);
  transition: background .4s var(--ease), color .4s var(--ease);
}
.btn:hover{ background: var(--rust); border-color: var(--rust); }
.btn--ghost{ background: transparent; color: var(--ink); }
.btn--ghost:hover{ background: var(--ink); color: var(--linen); border-color: var(--ink); }

/* ---------- 5. Navigation ---------- */
.nav{
  position: absolute; inset: 0 0 auto; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--s4);
}
.nav__logo{ font-size: 20px; text-decoration: none; color: inherit; }
.nav__links{ display: none; gap: var(--s5); }
.nav__links a{ text-decoration: none; }
@media (min-width: 860px){ .nav__links{ display: flex; } }

/* ---------- 6. Field hero (the signature scene) ---------- */
.field{
  --stage: clamp(320px, 52vh, 560px);
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: calc(var(--s7) + var(--s3)) var(--s4) 0;
  /* horizon sits 76% down the stage, so the ground is 0.76 × stage tall */
  background: linear-gradient(180deg, var(--sky-deep) 0%, var(--sky) 55%, #E8E3D2 calc(100% - var(--stage) * .76 - 1px), var(--field) calc(100% - var(--stage) * .76), var(--field-deep) 100%);
}
/* fine wheat texture — repeating thin strokes, no image needed */
.field::after{
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--stage) * .76);
  pointer-events: none; opacity: .35;
  background: repeating-linear-gradient(100deg, transparent 0 3px, rgba(110,80,40,.35) 3px 4px, transparent 4px 9px);
}
.field__copy{ position: relative; z-index: 2; display: grid; gap: var(--s3); justify-items: center; }
.field__stage{
  position: relative; z-index: 1; margin-top: auto;
  width: min(760px, 118vw); height: var(--stage); flex: none;
}
.rack{ position: absolute; bottom: 12%; width: 26%; height: 74%;
  border: 6px solid var(--wood); border-bottom: 0; }
.rack--l{ left: 3%; } .rack--r{ right: 3%; }
.rack::before{ /* hanger */
  content: ""; position: absolute; top: 9%; left: 50%; width: 44%; height: 10%;
  transform: translateX(-50%); border-top: 2px solid var(--wood);
  border-left: 2px solid var(--wood); border-right: 2px solid var(--wood); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }

/* model + changing outfits */
.model{ position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); width: 24%; height: 92%; }
.outfit{ opacity: 0; animation: outfit 16s infinite; }
.outfit:nth-of-type(2){ animation-delay: 4s; }
.outfit:nth-of-type(3){ animation-delay: 8s; }
.outfit:nth-of-type(4){ animation-delay: 12s; }
@keyframes outfit{ 0%{opacity:0} 4%{opacity:1} 25%{opacity:1} 29%{opacity:0} 100%{opacity:0} }
.field__label{ position: absolute; z-index: 3; left: 50%; bottom: var(--s3); transform: translateX(-50%); margin: 0;
  background: rgba(251,249,245,.85); padding: var(--s2) var(--s3); white-space: nowrap; }

/* optional: drop a generated hero film here */
.field__video{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }

/* ---------- 7. Sections ---------- */
.section{ padding: var(--s7) 0; }
.section--paper{ background: var(--paper); }
.section--ink{ background: var(--ink); color: var(--linen); }
.section--ink .muted{ color: #BDB3A7; }
.section__head{ display: grid; gap: var(--s3); margin-bottom: var(--s6); max-width: 720px; }

.steps{ display: grid; gap: var(--s5); grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 760px){ .steps{ grid-template-columns: repeat(3, 1fr); } }
.step{ border-top: 1px solid var(--line); padding-top: var(--s4); }
.step::before{ counter-increment: step; content: "0" counter(step);
  font-family: var(--display); font-size: 40px; color: var(--rust); display: block; margin-bottom: var(--s3); }

/* swatches, chips */
.swatches{ display: flex; gap: var(--s2); flex-wrap: wrap; margin: var(--s3) 0; }
.swatches span{ width: 40px; height: 56px; }
.chip{ display: inline-block; padding: 6px 12px; border: 1px solid var(--line); font-size: var(--t-sm); margin: 0 var(--s1) var(--s2) 0; }

/* split layout */
.split{ display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 860px){ .split{ grid-template-columns: 1fr 1fr; } }
.card{ background: var(--paper); border: 1px solid var(--line); padding: var(--s5); border-radius: var(--radius); }

/* pricing */
.prices{ display: grid; gap: var(--s3); grid-template-columns: 1fr; }
@media (min-width: 760px){ .prices{ grid-template-columns: repeat(4, 1fr); } }
.price{ border: 1px solid rgba(243,239,231,.2); padding: var(--s4); display: grid; gap: var(--s2); align-content: start; }
.price--hero{ background: var(--linen); color: var(--ink); border-color: var(--linen); }
.price b{ font: 400 28px/1.2 var(--display); letter-spacing: .04em; }
.price ul{ margin: 0; padding-left: 18px; font-size: var(--t-sm); }

/* footer */
.footer{ padding: var(--s6) 0; border-top: 1px solid var(--line); font-size: var(--t-sm); color: var(--ink-soft); }

/* ---------- 8. Reveal on scroll ---------- */
.reveal{ opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in{ opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .outfit:first-of-type{ opacity: 1; }
  .reveal{ opacity: 1; transform: none; }
}

/* ---------- 9. Boutique hero (engraved facade) ---------- */
.field{
  background:
    linear-gradient(180deg, var(--linen) 0%, rgba(243,239,231,.92) 38%, rgba(243,239,231,.55) 62%, rgba(243,239,231,.15) 100%),
    url(facade.jpg) center 70% / cover no-repeat;
}
.field::after{ display: none; }
.field__copy .btn + .btn{ margin-top: calc(-1 * var(--s2)); }
.tw{font-family:'Cormorant Garamond',serif;font-weight:500;letter-spacing:.18em;padding-left:.18em;white-space:nowrap;display:inline-block;line-height:1}
.tw .mo{display:inline-block;width:.66em;height:.9em;vertical-align:-.19em;margin-right:.18em;overflow:visible}