/* Simran Patil — the couture house site. Shared styles for every page.
   Layout: a lookbook in chapters. Large Didone type beside framed photographs, wide margins, a credit line under every image.
   Colours from Simran's moodboard: ivory and stone grounds, black ink, camel and gold as the only warmth.
   One light theme only. Pages fade and rise into each other. */
:root {
  color-scheme: light;
  --ivory: #f8f5f0;
  --stone: #ede7df;
  --ink: #1b1617;
  --ink-soft: #6a5f58;
  --line: #ddd4c8;
  --black: #151213;
  --camel: #a2724a;
  --on-dark: #f3ede5;
  --on-dark-soft: #c9bcae;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --body: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.78rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
  --step-3: clamp(2.2rem, 1.4rem + 3.2vw, 3.6rem);
  --step-4: clamp(2.5rem, 1.4rem + 5.2vw, 5.6rem);
  --ease: cubic-bezier(.22, .61, .36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--body); font-weight: 300; font-size: var(--step-0); line-height: 1.7; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); } }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--camel); outline-offset: 3px; }
.label { font-family: var(--body); font-weight: 400; font-size: var(--step--1); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
img { display: block; max-width: 100%; height: auto; }

/* ---------- Page transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: page-out .32s var(--ease) both; }
::view-transition-new(root) { animation: page-in .55s var(--ease) both; }
@keyframes page-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(16px); } }
/* Fallback for browsers without cross-page view transitions: main fades and rises in, and fades out on leave */
main { animation: page-in .6s var(--ease) both; }
html.vt main { animation: none; }
body.leaving main { opacity: 0; transform: translateY(-10px); transition: opacity .28s var(--ease), transform .28s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  main { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  * { transition: none !important; }
}

/* ---------- Header ---------- */
header.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--ivory); border-bottom: 1px solid var(--line); view-transition-name: site-header; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--ivory); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.wordmark { font-family: var(--display); font-size: 1.3rem; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.menu-btn { font: inherit; font-size: var(--step--1); letter-spacing: 0.2em; text-transform: uppercase; background: none; border: 1px solid var(--line); color: var(--ink); padding: 8px 14px; cursor: pointer; }
nav.primary { display: none; }
nav.primary.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--ivory); border-bottom: 1px solid var(--line); padding: 8px max(20px, env(safe-area-inset-left, 0px)) 20px; }
nav.primary a { font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; font-weight: 400; padding: 13px 0; border-bottom: 1px solid var(--line); }
nav.primary a[aria-current="page"] { color: var(--camel); }
@media (min-width: 820px) {
  .menu-btn { display: none; }
  nav.primary, nav.primary.open { display: flex; flex-direction: row; position: static; padding: 0; border: 0; gap: clamp(16px, 3vw, 36px); background: none; }
  nav.primary a { padding: 4px 0; border-bottom: 1px solid transparent; font-size: var(--step--1); transition: border-color .25s var(--ease); }
  nav.primary a:hover, nav.primary a[aria-current="page"] { border-bottom-color: currentColor; }
}

/* ---------- Buttons ---------- */
.btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; text-align: center; font-family: var(--body); font-weight: 400; font-size: var(--step--1); letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; padding: 15px 26px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.btn:hover { background: var(--ink); color: var(--ivory); }
.btn.solid { background: var(--black); border-color: var(--black); color: var(--on-dark); }
.btn.solid:hover { background: var(--camel); border-color: var(--camel); color: var(--on-dark); }
@media (max-width: 520px) { .btns .btn { flex: 1 1 100%; } }

/* ---------- Frames and captions ---------- */
figure { margin: 0; display: grid; gap: 10px; min-width: 0; }
figcaption { font-size: 0.72rem; letter-spacing: 0.06em; color: var(--ink-soft); line-height: 1.5; }
figcaption b { font-weight: 500; color: var(--ink); letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.68rem; }
.frame { background: var(--stone); padding: 14px; border: 1px solid var(--line); }
.frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .8s var(--ease); }
.frame { overflow: hidden; }
.frame:hover img { transform: scale(1.02); }

/* ---------- Chapter heads (inner pages) ---------- */
.chapter-head { background: var(--stone); }
.chapter-head .wrap { padding-block: clamp(48px, 8vw, 104px) clamp(40px, 6vw, 72px); display: grid; gap: 16px; }
.chapter-head h1 { font-size: var(--step-4); overflow-wrap: break-word; }
.chapter-head h1 em { font-style: italic; color: var(--camel); }
.chapter-head .lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 44ch; }

/* ---------- Hero (home) ---------- */
.hero .wrap { display: grid; gap: clamp(32px, 6vw, 80px); padding-block: clamp(40px, 8vw, 104px); grid-template-columns: 1fr; align-items: end; }
.hero .wrap > * { min-width: 0; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.25fr 0.75fr; } }
.hero-text { display: grid; gap: 26px; min-width: 0; }
.hero h1 { font-size: var(--step-4); overflow-wrap: break-word; }
.hero h1 em { font-style: italic; color: var(--camel); }
.hero .lede { font-size: var(--step-1); max-width: 34ch; color: var(--ink-soft); }
.coords { font-size: var(--step--1); letter-spacing: 0.18em; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.hero figure { max-width: 380px; justify-self: center; width: 100%; }
@media (max-width: 859px) { .hero figure { max-width: 320px; justify-self: start; } }

/* ---------- Sections ---------- */
section.block { border-top: 1px solid var(--line); }
section.block.stone { background: var(--stone); border-top: 0; }
section.block > .wrap { padding-block: clamp(56px, 9vw, 120px); display: grid; gap: clamp(32px, 5vw, 56px); }
.head { display: grid; gap: 14px; max-width: 46rem; }
.head h2 { font-size: var(--step-3); }
.head p { color: var(--ink-soft); max-width: 60ch; }

/* Point of view */
@media (min-width: 860px) { .pov > .wrap { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }
.pov p.big { font-family: var(--display); font-size: var(--step-2); line-height: 1.3; }
.pov .body { display: grid; gap: 18px; max-width: 60ch; color: var(--ink-soft); min-width: 0; }

/* House codes: a row on laptops, swipe on phones */
.codes { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 64%; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; border-top: 1px solid var(--line); padding-bottom: 6px; }
.codes li { scroll-snap-align: start; padding: 24px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.codes .num { font-family: var(--display); font-size: var(--step-1); color: var(--camel); }
.codes h3 { font-size: var(--step-1); }
.codes p { font-size: 0.94rem; color: var(--ink-soft); }
.swipe-hint { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
@media (min-width: 760px) {
  .codes { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; padding-bottom: 0; }
  .codes li { padding-right: 20px; }
  .swipe-hint { display: none; }
}

/* Next chapter link at the foot of each page */
.next-chapter { background: var(--black); color: var(--on-dark); text-decoration: none; display: block; }
.next-chapter .wrap { padding-block: clamp(48px, 8vw, 96px); display: grid; gap: 10px; }
.next-chapter .label { color: var(--on-dark-soft); }
.next-chapter .title { font-family: var(--display); font-size: var(--step-4); line-height: 1; display: flex; align-items: baseline; gap: 0.3em; flex-wrap: wrap; }
.next-chapter .title i { color: var(--camel); transition: transform .35s var(--ease); display: inline-block; }
.next-chapter:hover .title i { transform: translateX(10px); }

/* ---------- Work ---------- */
.story { display: grid; gap: clamp(24px, 4vw, 48px); grid-template-columns: 1fr; }
@media (min-width: 860px) { .story { grid-template-columns: 0.8fr 1.2fr; align-items: start; } }
.story-text { display: grid; gap: 16px; align-content: start; min-width: 0; }
.story-text h2 { font-size: var(--step-2); }
.story-text p { color: var(--ink-soft); max-width: 52ch; }
.credit-line { font-size: 0.74rem; letter-spacing: 0.05em; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 12px; }
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery figure { overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .8s var(--ease); }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figure.tall { grid-row: span 2; }
.gallery figure.tall img { aspect-ratio: auto; height: 100%; }
.chapters { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.chapter { border: 1px solid var(--line); padding: 28px; display: grid; gap: 12px; align-content: start; background: var(--ivory); }
.chapter h3 { font-size: var(--step-2); }
.chapter p { color: var(--ink-soft); font-size: 0.96rem; }
.chapter ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.chapter li { border-top: 1px solid var(--line); padding-top: 10px; font-size: 0.94rem; }
.chapter li b { font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.74rem; display: block; }
.chapter.soon { background: var(--stone); }
.tag { justify-self: start; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; border: 1px solid var(--camel); color: var(--camel); padding: 4px 10px; }

/* ---------- The House ---------- */
.about > .wrap { grid-template-columns: 1fr; }
@media (min-width: 860px) { .about > .wrap { grid-template-columns: 0.7fr 1.3fr; align-items: start; } .about figure { position: sticky; top: 110px; } }
.about figure { max-width: 360px; }
.about .text { display: grid; gap: 22px; min-width: 0; }
.about .text h2 { font-size: var(--step-3); }
.about .text p { max-width: 62ch; }
.about .text p.first::first-letter { font-family: var(--display); float: left; font-size: 4.2rem; line-height: 0.85; padding: 6px 10px 0 0; color: var(--camel); }
.process { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.process li { counter-increment: step; display: grid; grid-template-columns: 3.2rem 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.process li::before { content: counter(step, upper-roman); font-family: var(--display); font-size: var(--step-1); color: var(--camel); }
.process b { font-weight: 500; }
@media (min-width: 960px) { .process.two { grid-template-columns: 1fr 1fr; column-gap: 56px; } }
.sig { font-family: var(--display); font-style: italic; font-size: var(--step-2); }
.belief { font-family: var(--display); font-size: var(--step-2); line-height: 1.3; max-width: 30ch; }

/* ---------- The Menu ---------- */
.menu-groups { display: grid; gap: clamp(32px, 5vw, 56px); }
.group { display: grid; grid-template-columns: 1fr; }
@media (min-width: 860px) { .group { grid-template-columns: 0.35fr 1fr; gap: 32px; } .group > .label { padding-top: 22px; } }
.items { display: grid; border-top: 1px solid var(--line); }
details.item { border-bottom: 1px solid var(--line); }
details.item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 22px 0; }
details.item summary::-webkit-details-marker { display: none; }
details.item summary h3 { font-size: var(--step-1); }
details.item summary .plus { font-family: var(--display); font-size: 1.5rem; line-height: 1; color: var(--camel); transition: transform .3s var(--ease); }
details.item[open] summary .plus { transform: rotate(45deg); }
details.item p { color: var(--ink-soft); max-width: 60ch; padding-bottom: 22px; }
@media (min-width: 860px) {
  details.item { display: grid; grid-template-columns: 0.42fr 1fr; gap: 28px; padding: 22px 0; }
  details.item summary { padding: 0; pointer-events: none; }
  details.item summary .plus { display: none; }
  details.item p { padding-bottom: 0; }
}
.notes { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.notes p { font-size: 0.92rem; color: var(--ink-soft); border-left: 1px solid var(--camel); padding-left: 14px; }

/* ---------- Book ---------- */
.book > .wrap { grid-template-columns: 1fr; }
@media (min-width: 860px) { .book > .wrap { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }
.book .intro { display: grid; gap: 22px; min-width: 0; }
.next { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.next li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 8px; }
.next li span { font-family: var(--display); color: var(--camel); font-size: var(--step-1); line-height: 1.4; }
.contact { display: grid; gap: 6px; font-size: 0.94rem; border-top: 1px solid var(--line); padding-top: 18px; }
form { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--stone); padding: clamp(20px, 4vw, 36px); }
.field { display: grid; gap: 6px; grid-column: span 2; min-width: 0; }
@media (min-width: 600px) { .field.half { grid-column: span 1; } }
label { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 400; }
input, select, textarea { font: inherit; font-size: 16px; font-weight: 300; color: var(--ink); background: var(--ivory); border: 1px solid var(--line); border-radius: 0; padding: 12px 14px; width: 100%; transition: border-color .2s var(--ease); }
input:focus, select:focus, textarea:focus { border-color: var(--camel); outline: none; }
textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-foot { grid-column: span 2; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.status { font-size: 0.9rem; color: var(--camel); }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--line); }
footer.site .wrap { padding-block: 36px; display: flex; gap: 14px 24px; justify-content: space-between; flex-wrap: wrap; font-size: var(--step--1); color: var(--ink-soft); letter-spacing: 0.06em; }
footer.site .wordmark { font-size: 1rem; color: var(--ink); }

/* ---------- Photo placements ---------- */
/* Hero: words left, one framed portrait right, with real space between */
.hero .wrap { align-items: center; gap: clamp(40px, 7vw, 120px); }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.15fr 0.85fr; } }
.hero h1 { font-size: clamp(2.5rem, 1.2rem + 4vw, 5rem); }
.hero-figure { width: 100%; max-width: 480px; justify-self: end; }
@media (max-width: 859px) { .hero-figure { max-width: 360px; justify-self: start; } }

/* Point of view: photo left, words right, centred on each other */
.pov > .wrap { grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .pov > .wrap { grid-template-columns: 0.85fr 1.15fr; column-gap: clamp(48px, 7vw, 112px); } }
.pov-figure { width: 100%; max-width: 480px; }
.pov .body { gap: 20px; }
.pov .body h2 { font-size: var(--step-3); color: var(--ink); margin-bottom: 8px; }

/* How I work: words left, the seven steps right */
.how { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .how { grid-template-columns: 0.85fr 1.15fr; column-gap: clamp(48px, 7vw, 112px); align-items: start; } .how-text { position: sticky; top: 110px; } }
.how-text { display: grid; gap: 22px; align-content: start; }
.how-text > p:not(.label):not(.belief):not(.sig) { color: var(--ink-soft); }

/* Work: rows of three 4:5 photographs, swipe on phones */
.story { grid-template-columns: 1fr; }
@media (min-width: 860px) {
  .story { grid-template-columns: 1fr; }
  .story-text { grid-template-columns: 0.8fr 1.2fr; column-gap: 56px; align-items: start; }
  .story-text > .label { grid-column: 1; grid-row: 1; }
  .story-text > h2 { grid-column: 1; grid-row: 2; }
  .story-text > p:not(.label):not(.credit-line) { grid-column: 2; grid-row: 1 / span 2; }
  .story-text > .credit-line { grid-column: 2; grid-row: 3; }
}
.row3 { display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.row3 figure { scroll-snap-align: start; overflow: hidden; background: var(--stone); }
.row3 img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .8s var(--ease); }
.row3 figure:hover img { transform: scale(1.03); }
@media (min-width: 760px) { .row3 { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; padding-bottom: 0; } }
