/* CleanX — Pune
   Fraunces for display, Archivo for text. Warm palette. */

:root {
  --ink:      #14100D;
  --ink-soft: #4A423A;
  --muted:    #857B6E;
  --paper:    #F5F1E8;
  --paper-2:  #EDE7DA;
  --card:     #FCFAF4;
  --rule:     #D8D0C0;

  --accent:     #E2631A;
  --accent-ink: #B34608;
  --star:       #D9821A;

  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans:  'Archivo', system-ui, sans-serif;

  --shell: 1240px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --gap: clamp(2.75rem, 6vw, 6rem);
  --r: 5px;
}

*, *::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-soft);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

a { color: var(--accent-ink); text-decoration: none; text-underline-offset: .18em; }
a:hover { text-decoration: underline; }

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

/* ---------- Type ----------
   Fraunces is wide with a large x-height, so headings need looser
   line-height and smaller maximums than a condensed display face. */

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-variation-settings: 'SOFT' 0, 'WONK' 1;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -.005em;
  margin: 0;
}

h1 { font-size: clamp(2.35rem, 5.2vw, 4.15rem); line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.55rem);  line-height: 1.16; }
h3 { font-size: clamp(1.18rem, 1.6vw, 1.4rem);  line-height: 1.3; font-weight: 500; }

h1 em, h2 em { font-style: italic; }

p { margin: 0 0 1.1em; max-width: 64ch; }
p:last-child { margin-bottom: 0; }

.lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.55; color: var(--ink); max-width: 38ch; }
.big  { font-size: clamp(1.05rem, 1.4vw, 1.15rem); line-height: 1.62; }
.small { font-size: .9375rem; }
.muted { color: var(--muted); }

.label {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Shell & rhythm ---------- */

.shell { max-width: var(--shell); margin-inline: auto; padding-inline: var(--pad); }
.band  { padding-block: var(--gap); }
.band--tight { padding-block: clamp(2rem, 4vw, 3.5rem); }
.band--alt { background: var(--paper-2); }
.band--dark { background: var(--ink); color: #CFC6B8; }
.band--dark h1, .band--dark h2, .band--dark h3 { color: #FBF8F1; }
.rule-top { border-top: 1px solid var(--rule); }

.skip { position: absolute; left: -9999px; top: 0; z-index: 99; background: var(--ink); color: var(--paper); padding: .75rem 1.25rem; }
.skip:focus { left: 0; }

/* ---------- Asymmetric columns ---------- */

.cols { display: grid; gap: clamp(2rem, 4.5vw, 4.5rem); }
@media (min-width: 900px) {
  .cols       { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .cols--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .cols--wide { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
  .cols--end  { align-items: end; }
}

.inset { }
@media (min-width: 900px) { .inset { margin-left: 14%; } }

/* ---------- Header ---------- */

.top {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
/* The bar runs edge to edge so the wordmark cell can start at x=0 with no
   negative-margin trickery. Children stretch, so their side borders meet
   the bar's own top and bottom lines. */
.top .shell { max-width: none; padding-inline: 0; }
.top__in { display: flex; align-items: stretch; gap: 0; padding-block: 0; padding-right: var(--pad); min-height: 4.75rem; }
.top .drawer { padding-inline: var(--pad); }
.mark { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; color: var(--ink); line-height: 1.1; flex: none; }
.mark:hover { text-decoration: none; color: var(--accent-ink); }
.mark span { font-family: var(--sans); font-size: .64rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: block; margin-top: .35rem; }

/* The wordmark is the first cell of the bar: full height, closed off by a
   vertical rule that runs from the bar's top line to its bottom line. */
.top .mark {
  display: flex; flex-direction: column; justify-content: center;
  align-self: stretch;
  /* Starts flush at the left edge; the logo is centred in the cell. */
  align-items: center;
  justify-content: center;
  padding-inline: clamp(1rem, 2.5vw, 2rem);
  margin-right: clamp(1.25rem, 3vw, 2.25rem);
  border-right: 1px solid var(--rule);
  border-radius: 0;
  background: none;
  transition: background-color .15s;
}
.top .mark img {
  display: block;
  height: clamp(1.5rem, 2.6vw, 2rem);
  width: auto;
}
/* The logo's own colours only read on the light bar, so no ink fill on hover */
.top .mark:hover { background: none; }
.top .mark:hover img { opacity: .72; }

.menu { display: none; align-items: center; gap: 1.5rem; }
.menu > a { color: var(--ink-soft); font-size: .95rem; }
.menu > a:hover { color: var(--accent-ink); text-decoration: none; }
.menu > a[aria-current] { color: var(--ink); box-shadow: 0 1px 0 var(--accent); }
.menu > a.navbtn { box-shadow: none; }

/* Divider between the nav links and the contact buttons */
.vrule {
  display: none; width: 1px; align-self: stretch; flex: none;
  background: var(--rule);
  margin-left: auto;   /* pushes the divider and buttons to the right */
  margin-right: clamp(1.25rem, 3vw, 2.25rem);
}

/* Boxed header actions */
.navacts { display: none; gap: .55rem; align-items: center; }

.navbtn {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 3.0625rem;   /* keeps the single-line Home box level with the two-line ones */
  padding: .45rem .85rem;
  border: 1px solid var(--rule); border-radius: var(--r);
  background: var(--card); color: var(--ink);
  font-family: var(--sans); font-size: .9rem; font-weight: 500; line-height: 1.2;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.navbtn:hover { text-decoration: none; background: var(--ink); border-color: var(--ink); color: var(--paper); }
.navbtn small { display: block; font-size: .7rem; font-weight: 400; color: var(--muted); margin-top: .12rem; }
.navbtn:hover small { color: #B5AA99; }
.navbtn--wa:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.navbtn--wa:hover small { color: rgba(255,255,255,.78); }
.navbtn[aria-current] { border-color: var(--accent); }

.burger { margin-left: auto; align-self: center; background: none; border: 0; padding: .4rem 0; font-size: .8rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--ink); cursor: pointer; }
.drawer { display: none; padding-bottom: 1.75rem; }
.drawer.open { display: block; }
.drawer > a { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--ink); padding-block: .45rem; }
.drawer > a:hover { color: var(--accent-ink); text-decoration: none; }
.drawer__acts { display: flex; gap: .6rem; margin-top: 1.25rem; }
.drawer__acts .navbtn { flex: 1; }

@media (min-width: 860px) {
  .menu, .navacts { display: flex; }
  .vrule { display: block; }
  .burger, .drawer { display: none !important; }
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(2.75rem, 7vw, 6rem) clamp(2.25rem, 5vw, 4rem); }
.hero h1 { max-width: 17ch; }
.hero h1 .acc { color: var(--accent); }

.facts { display: grid; gap: 1.4rem; align-content: end; }
.facts dt { font-size: .7rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-bottom: .25rem; }
.facts dd { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 1.45rem; color: var(--ink); line-height: 1.25; }
.facts dd small { font-family: var(--sans); font-weight: 400; font-size: .875rem; color: var(--ink-soft); display: block; margin-top: .15rem; }

/* Small strip of numbers */
.strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem 2rem; }
@media (min-width: 760px) { .strip { grid-template-columns: repeat(4, 1fr); } }
.strip b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: var(--ink); line-height: 1.1; }
.strip span { font-size: .9rem; color: var(--muted); }

/* ---------- Actions ---------- */

.acts { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .82rem 1.5rem; border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  font-size: .95rem; font-weight: 500; cursor: pointer; border-radius: var(--r);
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; text-decoration: none; }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--ink); border-color: var(--ink); }
.btn--bare { background: none; border-color: var(--rule); color: var(--ink); }
.btn--bare:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--block { width: 100%; justify-content: center; }

.go { display: inline-block; color: var(--ink); font-size: .95rem; border-bottom: 1px solid var(--accent); padding-bottom: .15rem; }
.go:hover { text-decoration: none; color: var(--accent-ink); }
.go::after { content: ' →'; }

/* ---------- Boxes ---------- */

.box {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: clamp(1.35rem, 2.4vw, 1.9rem);
}
.box--dark { background: #1E1811; border-color: #2E261D; }
.box--dark h3, .box--dark strong { color: #FBF8F1; }

.boxes { display: grid; gap: 1.25rem; }
@media (min-width: 620px) { .boxes--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 620px) { .boxes--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .boxes--3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Editorial entries ---------- */

.entries { border-top: 1px solid var(--rule); }
.entry { display: grid; gap: .5rem 2.5rem; padding-block: clamp(1.6rem, 3vw, 2.4rem); border-bottom: 1px solid var(--rule); }
@media (min-width: 800px) { .entry { grid-template-columns: 3.5rem minmax(0, 20ch) minmax(0, 1fr); align-items: baseline; } }
.entry__no { font-family: var(--serif); font-weight: 500; font-size: 1.1rem; color: var(--accent); }
.entry p { margin-bottom: .8rem; }

.runs { columns: 2; column-gap: 2.5rem; }
@media (min-width: 720px) { .runs { columns: 3; } }
.runs li { break-inside: avoid; padding-block: .28rem; font-size: .95rem; }
.runs li::before { content: '· '; color: var(--accent); }

.run-on b { font-weight: 500; color: var(--ink); }

/* ---------- Steps ---------- */

.steps { counter-reset: s; display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .steps { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.steps li { counter-increment: s; padding-left: 2.75rem; position: relative; }
.steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: .05em;
  font-family: var(--serif); font-weight: 500; font-size: .95rem; color: var(--accent);
}
.steps strong { display: block; font-weight: 500; color: var(--ink); }
.band--dark .steps strong { color: #FBF8F1; }
.steps span { font-size: .95rem; }

/* ---------- Stars ---------- */

.stars { color: var(--star); font-size: .95rem; letter-spacing: .1em; line-height: 1; }
.stars .off { color: #C9BFAE; }

/* ---------- Reviews ---------- */

.rev { display: flex; flex-direction: column; }
.rev .stars { margin-bottom: .9rem; }
.rev p { font-size: 1rem; line-height: 1.6; color: var(--ink-soft); margin-bottom: 1.2rem; max-width: none; }
.rev__by { margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--rule); display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.rev__by b { font-weight: 500; color: var(--ink); font-size: .95rem; }
.rev__by span { font-size: .8125rem; color: var(--muted); white-space: nowrap; }
.rev--long p { font-size: 1.0625rem; }

/* A single oversized pull quote, used sparingly */
.pull { max-width: 30ch; }
.pull p { font-family: var(--serif); font-weight: 400; font-size: clamp(1.35rem, 2.4vw, 1.95rem); line-height: 1.3; color: var(--ink); max-width: none; }
.pull cite { font-style: normal; font-size: .85rem; color: var(--muted); }
.pull cite b { font-weight: 500; color: var(--ink-soft); }

/* ---------- Shops ---------- */

.shop address { font-style: normal; margin: .5rem 0 .9rem; }
.shop .label { display: block; margin-bottom: .5rem; }
.shop__hours { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; color: var(--ink); }

/* ---------- Table ---------- */

.rates { width: 100%; border-collapse: collapse; }
.rates th, .rates td { text-align: left; padding: .95rem 1rem .95rem 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.rates thead th { font-size: .7rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.rates tbody th { font-weight: 500; color: var(--ink); }
.rates tbody tr:hover { background: var(--card); }
.rates td:last-child, .rates th:last-child { text-align: right; padding-right: 0; white-space: nowrap; font-family: var(--serif); font-weight: 500; font-size: 1.1rem; color: var(--ink); }
.scroll-x { overflow-x: auto; }

/* ---------- Questions ---------- */

.qa { border-top: 1px solid var(--rule); }
.qa details { border-bottom: 1px solid var(--rule); }
.qa summary {
  cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font-family: var(--serif); font-weight: 500; font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink); line-height: 1.35;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; position: absolute; right: 0; top: 1.05rem; font-family: var(--sans); font-size: 1.1rem; color: var(--accent); transition: transform .18s; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa summary:hover { color: var(--accent-ink); }
.qa__a { padding: 0 2.5rem 1.4rem 0; }

/* ---------- Form ---------- */

.form { display: grid; gap: 1.5rem; }
.pair { display: grid; gap: 1.5rem; }
@media (min-width: 560px) { .pair { grid-template-columns: 1fr 1fr; } }

.f label { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.f input, .f select, .f textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r);
  padding: .7rem .8rem;
  transition: border-color .15s, background-color .15s;
}
.f textarea { min-height: 5rem; resize: vertical; }
.f select { appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 1.25em, calc(100% - 11px) 1.25em;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.f input::placeholder, .f textarea::placeholder { color: #B3A895; }

/* ---------- Footer ---------- */

.foot { background: var(--ink); color: #A99E8E; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; font-size: .95rem; }
.foot a { color: #A99E8E; }
.foot a:hover { color: var(--accent); text-decoration: none; }
.foot .mark, .foot h3 { color: #FBF8F1; }
.foot .mark span { color: #7C7365; }
.foot__grid { display: grid; gap: 2.5rem; }
@media (min-width: 780px) { .foot__grid { grid-template-columns: minmax(0,4fr) minmax(0,3fr) minmax(0,3fr); gap: 3.5rem; } }
.foot h3 { font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: #7C7365; margin-bottom: 1rem; }
.foot li { padding-block: .26rem; }
.foot address { font-style: normal; line-height: 1.65; }
.foot address + address { margin-top: 1.2rem; }
.foot strong { color: #FBF8F1; font-weight: 500; }
.foot__end { margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid #2B241D; font-size: .8125rem; color: #7C7365; display: flex; flex-wrap: wrap; gap: .4rem 2rem; justify-content: space-between; }

/* ---------- Mobile WhatsApp ---------- */

.wa { position: fixed; right: 1rem; bottom: 1rem; z-index: 30; background: var(--ink); color: var(--paper); padding: .7rem 1.1rem; border-radius: var(--r); font-size: .9rem; font-weight: 500; }
.wa:hover { text-decoration: none; background: var(--accent); color: #fff; }
@media (min-width: 860px) { .wa { display: none; } }

/* Phone-only contact bar. Hidden by default so desktop is untouched; the
   mobile block below switches it on. */
.mobile-cta { display: none; }

/* ---------- Misc ---------- */

.hide { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stack > * + * { margin-top: 1.25rem; }
.mt { margin-top: clamp(1.6rem, 2.6vw, 2.4rem); }
.mt-sm { margin-top: 1rem; }
.center { text-align: center; }

/* ---------- Gallery ---------- */

.gal { display: grid; gap: clamp(2.25rem, 5vw, 3.75rem); }

.job__pair {
  display: grid; gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  overflow: hidden;
}
@media (min-width: 620px) {
  .job__pair--two { grid-template-columns: 1fr 1fr; }
  /* A lone photo takes one column's width, not the whole row */
  .job__pair:not(.job__pair--two) { max-width: calc((100% - 1px) / 2); }
}

.job__shot { position: relative; background: var(--card); min-height: 120px; }
.job__shot img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.job__shot--tall img { aspect-ratio: 3 / 4; }
/* For a pair shot at different orientations: show the whole frame rather than
   cropping the shoes out of it. */
.job__shot--fit img { object-fit: contain; background: var(--card); }

.job__tag {
  position: absolute; top: .65rem; left: .65rem;
  font-family: var(--sans); font-size: .68rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .3rem .62rem; border-radius: 3px;
  background: rgba(20, 16, 13, .82); color: var(--paper);
}
.job__tag--after { background: var(--accent); color: #fff; }

/* If a photo hasn't been added yet, show the slot note rather than a broken icon.
   main.js adds .is-empty only when the image genuinely fails to load. */
.job__shot.is-empty img { display: none; }
.job__shot.is-empty::after {
  content: attr(data-empty);
  display: flex; align-items: center; justify-content: center;
  min-height: 220px; padding: 1.5rem;
  font-size: .875rem; line-height: 1.5; color: var(--muted); text-align: center;
}
.job__shot.is-empty .job__tag { opacity: .55; }

@media print { .top, .wa, .mobile-cta, .foot { display: none; } }

/* ==========================================================================
   MOBILE ONLY — everything below is scoped under 859.98px so the desktop
   layout above the nav breakpoint is byte-for-byte unchanged.
   ========================================================================== */
@media (max-width: 859.98px) {

  /* --- Rate table: three squeezed columns become one card per row --------- */
  .rates thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rates, .rates tbody, .rates tr, .rates tbody th, .rates td { display: block; width: 100%; }
  .rates tr {
    position: relative;
    padding: 1.05rem 6.5rem 1.05rem 0;
    border-bottom: 1px solid var(--rule);
  }
  .rates tbody th {
    border: 0; padding: 0;
    font-size: 1.05rem; font-weight: 500; color: var(--ink); line-height: 1.3;
  }
  .rates td {
    border: 0; padding: .3rem 0 0;
    font-size: .92rem; color: var(--muted); line-height: 1.45;
  }
  .rates td:last-child {
    position: absolute; top: 1.05rem; right: 0; width: 6rem;
    padding: 0; text-align: right;
    font-size: 1.05rem; color: var(--ink); white-space: normal;
  }

  /* --- Tap targets: nothing interactive smaller than ~44px --------------- */
  .burger { min-height: 44px; padding-block: .65rem; }

  .go { display: inline-flex; align-items: flex-end; min-height: 2.75rem; }

  .foot li { padding-block: 0; }
  .foot li a { display: flex; align-items: center; min-height: 44px; }
  .foot address a,
  .foot__grid > div > p a { display: inline-flex; align-items: center; min-height: 44px; }

  .drawer > a { padding-block: .6rem; }

  /* Small caps labels are hard to read at 11px on a phone */
  .label, .f label { font-size: .75rem; }

  /* --- Fixed call / WhatsApp bar ----------------------------------------- */
  .mobile-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; gap: 1px;
    background: var(--rule);
    border-top: 1px solid var(--rule);
  }
  .mobile-cta a {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 54px; padding: .5rem;
    font-size: 1rem; font-weight: 500; letter-spacing: .01em;
    background: var(--card); color: var(--ink);
  }
  .mobile-cta a:hover, .mobile-cta a:active { text-decoration: none; }
  .mobile-cta .m-wa { background: var(--accent); color: #fff; }
  .mobile-cta svg { width: 19px; height: 19px; flex: none; }

  /* keep the footer clear of the fixed bar */
  body { padding-bottom: 55px; }

  /* the old floating pill is replaced by the bar */
  .wa { display: none; }
}
