/* Sapthapadi, Jayanagara, Kolar.
 *
 * Rebuilt. The first version was seven steps around a fire, which came from
 * looking up what the name means in Sanskrit. That is a dictionary lookup,
 * not looking at the business. A concept applied TO them.
 *
 * What the business actually is: bridal jewellery you wear for a day and give
 * back. So the page is the SET, listed in the order it goes on the body,
 * forehead down to waist. A bride's mother knows those names cold. It is
 * structure carrying real information, and it is what a jeweller would think
 * of and a web page never does.
 *
 * The ground is a jeweller's tray. Every temple set in South India is
 * photographed on deep velvet red, so that is the field, with antique gold
 * type on it. Not the cream that design defaults to.
 *
 * The risk: Kannada set at the same weight as English rather than as a
 * subtitle. For this audience the Kannada is the name.
 */

:root {
  --velvet:   #4a0f1a;   /* the tray */
  --velvet-d: #35090f;
  --gold:     #c9a24a;   /* antique, not bright */
  --gold-d:   #8a6a24;
  --bone:     #f2e8d5;
  --dim:      #a8917a;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
           Georgia, "Noto Serif", serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto,
           "Noto Sans", "Noto Sans Kannada", sans-serif;

  --pad: clamp(1.25rem, 5vw, 4rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--velvet);
  color: var(--bone);
  font: 400 clamp(1rem, .95rem + .3vw, 1.1rem)/1.55 var(--sans);
}

body [lang="kn"] { display: none; }
:root[data-lang="kn"] body [lang="en"] { display: none; }
:root[data-lang="kn"] body [lang="kn"] { display: inline; }
.lang button[lang="kn"] { display: inline; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--bone); color: var(--velvet); padding: .7rem 1rem; }

/* ── bar ────────────────────────────────────────────────────────────── */

.bar {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; padding: 1.15rem var(--pad);
  border-bottom: 1px solid rgb(201 162 74 / .28);
}
.bar__n { font-family: var(--serif); font-size: 1.05rem; letter-spacing: .01em; }
.bar__n em { font-style: normal; color: var(--dim); font-size: .82em; letter-spacing: .1em; text-transform: uppercase; }

.lang { display: flex; align-items: center; gap: .5rem; font-size: .78rem; color: var(--dim); }
.lang button {
  background: none; border: 0; font: inherit; color: var(--dim); cursor: pointer;
  padding: .28rem .15rem; border-bottom: 2px solid transparent;
}
.lang button[aria-pressed="true"] { color: var(--bone); border-bottom-color: var(--gold); }

/* ── lead ───────────────────────────────────────────────────────────── */

.lead { padding: clamp(2.5rem, 8vw, 5rem) var(--pad) clamp(2rem, 6vw, 3.5rem); }
.first {
  margin: 0 0 1.1rem; color: var(--gold);
  font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; font-weight: 700;
}
h1 {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.4rem, 10vw, 5rem); line-height: 1; letter-spacing: -.03em;
}
.lead__sub { margin: 1.4rem 0 0; max-width: 30ch; color: var(--dim); font-size: clamp(1.02rem, 2.4vw, 1.2rem); }

/* ── THE SET, read down the body ────────────────────────────────────── */

.set {
  padding: clamp(2.5rem, 8vw, 4.5rem) var(--pad);
  border-top: 1px solid rgb(201 162 74 / .28);
}
.set__k {
  margin: 0 0 2rem; color: var(--gold);
  font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 700;
}

.body { list-style: none; margin: 0; padding: 0; position: relative; }
/* The thread the pieces hang from, drawn down the left. */
.body::before {
  content: ""; position: absolute; left: 5px; top: .8em; bottom: .8em; width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold-d) 12%, var(--gold-d) 88%, transparent);
}
.body li {
  position: relative; padding: .95rem 0 .95rem 2.2rem;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .9rem;
  opacity: 0; transform: translateX(-8px);
}
/* Each piece is a bead on the thread. */
.body li::before {
  content: ""; position: absolute; left: 0; top: 1.5rem;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 3px var(--velvet);
}
.set.is-on li {
  opacity: 1; transform: none;
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  transition-delay: calc(.11s * var(--i));
}

/* Kannada leads, at full size. English second, same line. */
.pt { font-size: clamp(1.5rem, 6vw, 2.3rem); line-height: 1.15; letter-spacing: -.01em; }
.pe { font-family: var(--serif); font-size: clamp(1.15rem, 4vw, 1.7rem); color: var(--gold); letter-spacing: -.01em; }
.pw {
  flex: 1 0 100%; color: var(--dim);
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
}

.set__note { margin: 2rem 0 0; color: var(--dim); font-size: .88rem; max-width: 36ch; }
.set__note::after {
  content: attr(data-slot); display: block; margin-top: .35rem;
  font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; opacity: .8;
}

/* ── the reviews, and what they are actually about ──────────────────── */

.face {
  background: var(--bone); color: var(--velvet);
  padding: clamp(2.5rem, 8vw, 4.5rem) var(--pad);
}
.face__n {
  margin: 0; font-family: var(--serif);
  font-size: clamp(3.2rem, 15vw, 6.5rem); line-height: .9; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.face__n small { font-size: .34em; color: var(--gold-d); margin: 0 .12em; }
.five { color: var(--gold-d); }
.face__l { margin: 1rem 0 0; max-width: 34ch; font-size: clamp(1rem, 2.4vw, 1.15rem); }

/* ── also at the same address ───────────────────────────────────────── */

.also { padding: clamp(2.5rem, 8vw, 4rem) var(--pad); }
.also__k {
  margin: 0 0 1.4rem; color: var(--gold);
  font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 700;
}
.also__g { display: grid; gap: 1.4rem; }
@media (min-width: 40rem) { .also__g { grid-template-columns: 1fr 1fr; } }
.also h2 {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.4rem, 5vw, 2.1rem); letter-spacing: -.02em;
}
.also p { margin: .35rem 0 0; color: var(--dim); font-size: .92rem; }

/* ── tray ───────────────────────────────────────────────────────────── */

.tray { display: grid; gap: .5rem; padding: 0 var(--pad); }
@media (min-width: 40rem) { .tray { grid-template-columns: 1fr 1fr; } }
[data-slot] { position: relative; }
.tray__s {
  aspect-ratio: 4 / 5; display: grid; place-items: center;
  border: 1px solid rgb(201 162 74 / .3);
  background: var(--velvet-d);
  color: var(--dim); font-size: .85rem;
}
.tray__s::after {
  content: attr(data-slot); position: absolute; left: .85rem; bottom: .75rem;
  font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
}

/* ── come ───────────────────────────────────────────────────────────── */

.come { padding: clamp(3rem, 9vw, 5rem) var(--pad); }
.come__h {
  margin: 0 0 .7rem; max-width: 20ch;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.5rem, 5vw, 2.3rem); line-height: 1.14; letter-spacing: -.025em;
}
.come__a { margin: 0 0 .35rem; color: var(--dim); }
.come__t { margin: 0 0 2rem; color: var(--bone); font-weight: 600; }

.come__b { display: flex; flex-wrap: wrap; gap: .7rem; }
.go {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: .95rem 1.6rem; background: var(--gold); color: var(--velvet-d);
  border: 1px solid var(--gold);
  transition: background .25s ease;
}
.go:hover { background: #dbb862; }
.go--o { background: none; color: var(--bone); border-color: rgb(242 232 213 / .45); }
.go--o:hover { background: var(--bone); color: var(--velvet); border-color: var(--bone); }

.come__s {
  margin: 2rem 0 0; color: var(--gold);
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700;
}

footer {
  padding: 2rem var(--pad) 3rem;
  border-top: 1px solid rgb(201 162 74 / .22);
  color: var(--dim); font-size: .85rem;
}
footer p { margin: 0 0 .3rem; }
.fine { font-size: .74rem; }

/* ── floor ──────────────────────────────────────────────────────────── */

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .body li { opacity: 1; transform: none; }
}

@media print { .lang, .skip { display: none; } }

/* ── depth, not a flat field ─────────────────────────────────────────
   Velvet has a sheen. A flat hex reads as a website; a soft radial and a
   fine weave read as the cloth their jewellery is photographed on.
   Emerald is in the palette because it is in their own photographs, sampled
   at #084838 from the silk their sets are shown against. */

:root { --emerald: #0e4a3a; }

body {
  background:
    radial-gradient(120% 80% at 20% -5%, #6a1a26 0%, transparent 55%),
    radial-gradient(90% 70% at 95% 15%, rgb(14 74 58 / .5) 0%, transparent 50%),
    var(--velvet);
  background-attachment: fixed;
}
/* a fine weave, so the ground has texture at close range */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgb(0 0 0 / .05) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg,  rgb(255 255 255 / .02) 0 1px, transparent 1px 3px);
}

/* ── their work ──────────────────────────────────────────────────────── */

.tray { grid-template-columns: 1fr 1fr; gap: .45rem; padding-block: clamp(2rem, 6vw, 3rem); }
@media (min-width: 46rem) { .tray { grid-template-columns: repeat(3, 1fr); } }
figure.tray__s { margin: 0; padding: 0; overflow: hidden; border: 1px solid rgb(201 162 74 / .25); }
figure.tray__s img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .7s var(--ease), filter .7s var(--ease);
}
figure.tray__s:hover img { transform: scale(1.045); filter: saturate(1.06); }

/* ── the numbers, straight off their own profile ─────────────────────── */

.nums {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgb(201 162 74 / .28);
  border-block: 1px solid rgb(201 162 74 / .28);
  margin-top: clamp(1.5rem, 5vw, 2.5rem);
}
.nu {
  background: var(--velvet-d); padding: clamp(1.3rem, 4vw, 2rem) .6rem;
  text-align: center; text-decoration: none; color: inherit;
  transition: background .3s ease;
}
.nu:hover { background: #45111c; }
.nu b {
  display: block; font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.7rem, 6vw, 2.6rem); line-height: 1; color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.nu span {
  display: block; margin-top: .45rem; color: var(--dim);
  font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
}

/* the gold line under the lead, drawn once on arrival */
.lead::after {
  content: ""; display: block; height: 1px; margin-top: clamp(2rem, 6vw, 3rem);
  background: linear-gradient(to right, var(--gold), transparent);
  transform: scaleX(0); transform-origin: left;
  animation: draw 1.4s var(--ease) .3s forwards;
}
@keyframes draw { to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  body { background-attachment: scroll; }
  .lead::after { transform: scaleX(1); animation: none; }
  figure.tray__s img { transition: none; }
}

/* Their own logo. It reads MAKEUP STUDIO & RENTAL JEWELLERY, in that order,
   which is the opposite of how they market themselves everywhere else. */
.bar__n { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: inherit; }
.bar__n img { width: 34px; height: 34px; display: block; }
@media (max-width: 30rem) { .bar__n em { display: none; } }
