/* Book a Chair, bookachair.sg. Plain CSS, no build, no script.
   Light neutral ground, clear glass, and gold kept for the one button that matters. */

:root {
  --ground: #f5f4f1;
  --ink: #1b1612;          /* Atelier espresso: words and drawings */
  --ink-soft: #564b40;     /* 8:1 on white */
  --gold: #c9a96a;         /* Atelier champagne gold: the main button only */
  --gold-light: #dfc68d;
  --edge: rgba(27, 22, 18, .09);

  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-xl: 32px;
  --r-lg: 24px;
  --pad: 16px;
  --ease-out: cubic-bezier(.22, .8, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font: 400 1.0625rem/1.55 var(--sans);
  color: var(--ink);
  background-color: var(--ground);
  /* Quiet light and shade for the glass to catch. Almost no colour. */
  background-image:
    radial-gradient(52rem 30rem at 100% 0, #fff, transparent 70%),
    radial-gradient(40rem 34rem at 0 38rem, rgba(214, 208, 198, .55), transparent 70%),
    radial-gradient(44rem 30rem at 100% 78rem, rgba(226, 214, 190, .45), transparent 70%);
  background-repeat: no-repeat;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, figure, address { margin: 0; }
ol, ul { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: max(var(--pad), env(safe-area-inset-left, 0px)) max(var(--pad), env(safe-area-inset-right, 0px));
}

.ico {
  width: 1.5em; height: 1.5em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 30;
  padding: 12px 16px; border-radius: 12px;
  background: var(--ink); color: #fff; text-decoration: none;
}
.skip:focus { top: 12px; }

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

/* ---------- Glass ---------- */
/* Without backdrop-filter the surface is nearly solid white, so words keep their contrast. */
.glass {
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow:
    0 0 0 1px var(--edge),
    inset 0 1px 0 #fff,
    0 1px 2px rgba(27, 22, 18, .04),
    0 22px 44px -26px rgba(27, 22, 18, .28);
}
.glass-thick { background: rgba(255, 255, 255, .94); }

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass {
    background: linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .5));
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
  }
  /* Thicker where it lies on a photograph, so the words stay easy to read. */
  .glass-thick {
    background: linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .76));
    -webkit-backdrop-filter: blur(34px) saturate(170%);
    backdrop-filter: blur(34px) saturate(170%);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px;
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none; text-align: center;
  touch-action: manipulation;
  user-select: none; -webkit-user-select: none;
  transition: transform 120ms var(--ease-out), box-shadow 160ms var(--ease-out), background-color 160ms;
}
.btn:active { transform: scale(.97); }
.btn .ico { width: 1.25em; height: 1.25em; }

.btn-gold {
  color: var(--ink);
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  border: 1px solid #b3934f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 12px 22px -12px rgba(122, 92, 34, .8);
}
.btn-glass {
  color: var(--ink);
  background: rgba(255, 255, 255, .75);
  border: 1px solid rgba(27, 22, 18, .2);
}
.btn-small { min-height: 44px; padding: 10px 18px; font-size: .9375rem; }
.btn-large { min-height: 58px; padding: 16px 30px; font-size: 1.125rem; }

@media (hover: hover) and (pointer: fine) {
  .btn-gold:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 16px 26px -12px rgba(122, 92, 34, .95); }
  .btn-glass:hover, .tile:hover { background: #fff; }
  .foot a:hover { text-decoration-thickness: 2px; }
}

/* ---------- Top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  padding: calc(10px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px));
}
.bar-in {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1096px; margin-inline: auto;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; min-width: 0;
  font: 600 1.125rem/1 var(--serif);
  letter-spacing: -.01em;
  text-decoration: none; white-space: nowrap;
}
.brand span { overflow: hidden; text-overflow: ellipsis; }
.brand-mark { width: 26px; height: 26px; }
.bar .btn { flex-shrink: 0; white-space: nowrap; }

/* ---------- Hero: a photograph with one sheet of glass on it ---------- */
.hero { padding: 14px 0 0; }
.hero-in { display: grid; }
.hero-photo {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--r-xl);
  aspect-ratio: 5 / 4;
  background: #d9d2c6;
  box-shadow: 0 0 0 1px var(--edge);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 84% 50%; }
.hero-panel {
  position: relative;
  min-width: 0;
  margin: -64px 10px 0;
  padding: 22px 20px 18px;
  border-radius: var(--r-lg);
}
h1 {
  font: 500 clamp(2.25rem, 10vw, 4rem)/1.04 var(--serif);
  letter-spacing: -.025em;
  text-wrap: balance;
}
.lede { margin-top: 10px; color: var(--ink-soft); text-wrap: pretty; }
.hero-panel .btn { width: 100%; margin-top: 18px; }

/* The four choices, as one line of drawings. */
.flow {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--edge);
}
.flow li {
  position: relative;
  display: grid; justify-items: center; gap: 4px;
  min-width: 0;
  font-size: .875rem; font-weight: 600;
  overflow-wrap: anywhere; text-align: center;
}
.flow .ico { width: 26px; height: 26px; }
.flow li + li::before {
  content: ""; position: absolute; left: -4px; top: 9px;
  width: 8px; height: 8px;
  border-top: 2px solid rgba(27, 22, 18, .35); border-right: 2px solid rgba(27, 22, 18, .35);
  transform: rotate(45deg);
}

/* ---------- What would you like ---------- */
h2 {
  font: 500 clamp(1.5rem, 5.6vw, 2.125rem)/1.15 var(--serif);
  letter-spacing: -.02em;
}
.pick { padding: 40px 0 0; }
.tiles {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  margin-top: 16px;
}
.tile {
  display: grid; justify-items: center; align-content: center; gap: 8px;
  min-height: 100px; padding: 14px 6px;
  border-radius: var(--r-lg);
  font-size: .9375rem; font-weight: 600;
  text-decoration: none; text-align: center;
  overflow-wrap: anywhere;
  touch-action: manipulation;
  user-select: none; -webkit-user-select: none;
  transition: transform 120ms var(--ease-out);
}
.tile:active { transform: scale(.96); }
.tile .ico { width: 34px; height: 34px; stroke-width: 1.8; }
/* Five tiles: three on the first row, two wider ones under them. */
.tiles li { grid-column: span 2; }
.tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tiles li:nth-child(n+4) { grid-column: span 3; }

/* ---------- The shop ---------- */
.shop { padding: 40px 0 0; }
.venue {
  margin-top: 16px;
  padding: 10px;
  border-radius: var(--r-xl);
}
.reel {
  display: flex; gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  border-radius: var(--r-lg);
  scrollbar-width: none;
}
.reel::-webkit-scrollbar { display: none; }
.reel li {
  flex: 0 0 86%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: #d9d2c6;
  scroll-snap-align: start;
}
.reel img { width: 100%; height: 100%; object-fit: cover; }
.venue-info { min-width: 0; padding: 18px 10px 10px; }
h3 { font: 600 1.125rem/1.3 var(--sans); }
.venue-info h3 { font: 500 1.625rem/1.15 var(--serif); letter-spacing: -.02em; }
.venue-text { margin-top: 8px; color: var(--ink-soft); }
.venue-info address {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 12px; font-weight: 600;
}
.venue-info address .ico { width: 22px; height: 22px; margin-top: 2px; }
.venue-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.venue-actions .btn-gold { flex: 1 1 auto; }

/* ---------- Kept simple ---------- */
.why { padding: 40px 0 0; }
.points { display: grid; gap: 10px; margin-top: 16px; }
.point {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-items: center;
  padding: 16px 18px;
  border-radius: var(--r-lg);
}
.point .ico { grid-row: span 2; width: 34px; height: 34px; stroke-width: 1.8; justify-self: center; }
.point p { color: var(--ink-soft); font-size: 1rem; }

/* ---------- Own a salon ---------- */
.owner { padding: 40px 0 0; }
.owner-card {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 20px 18px;
  border-radius: var(--r-lg);
}
.owner-ico { width: 36px; height: 36px; stroke-width: 1.8; justify-self: center; margin-top: 2px; }
.owner-card h2 { font-size: 1.5rem; }
.owner-card p { margin-top: 6px; color: var(--ink-soft); }
.owner-card .btn { grid-column: 1 / -1; }

/* ---------- Footer ---------- */
.foot {
  margin-top: 44px;
  padding: 24px 0 calc(28px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--edge);
  color: var(--ink-soft);
  font-size: .9375rem;
}
.foot-in { display: grid; gap: 4px; }
.foot-brand { font: 600 1.0625rem/1.3 var(--serif); color: var(--ink); }
.foot a {
  display: inline-flex; align-items: center;
  min-height: 44px; min-width: 44px;
  font-weight: 600; color: var(--ink);
  text-underline-offset: 4px;
}

/* ---------- Wider screens ---------- */
@media (min-width: 620px) {
  .tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
  .tiles li, .tiles li:nth-child(n+4) { grid-column: auto; }
  .tile { min-height: 120px; }
  .reel li { flex-basis: 62%; }
  .points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .point { grid-template-columns: 1fr; row-gap: 8px; align-content: start; padding: 22px 20px; }
  .point .ico { grid-row: auto; justify-self: start; }
  .owner-card { grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; padding: 24px 26px; }
  .owner-card .btn { grid-column: auto; }
  .hero-in > * { grid-area: 1 / 1; }
  .hero-photo { aspect-ratio: auto; height: 500px; }
  .hero-photo img { object-position: 92% 50%; }
  .hero-panel { justify-self: start; align-self: center; max-width: 430px; margin: 24px; }
}

@media (min-width: 900px) {
  :root { --pad: 32px; }
  .bar { padding-top: 16px; }
  .bar-in { padding: 10px 10px 10px 22px; }

  .hero { padding-top: 20px; }
  .hero-photo { height: 520px; }
  .hero-photo img { object-position: 88% 50%; }
  .hero-panel { max-width: 440px; margin: 32px; padding: 30px 30px 22px; }
  h1 { font-size: 3.5rem; }
  .lede { font-size: 1.1875rem; margin-top: 14px; }
  .hero-panel .btn { margin-top: 24px; }
  .flow { margin-top: 22px; padding-top: 18px; }
  .flow li { font-size: .9375rem; }

  .pick { padding-top: 64px; }
  .tiles { gap: 16px; margin-top: 22px; }
  .tile { min-height: 136px; font-size: 1rem; }
  .tile .ico { width: 40px; height: 40px; }

  .shop { padding-top: 64px; }
  .venue {
    display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center;
    margin-top: 22px; padding: 14px;
  }
  .reel li { flex-basis: 78%; }
  .venue-info { padding: 12px 26px 12px 34px; }
  .venue-info h3 { font-size: 2.125rem; }
  .venue-actions { margin-top: 24px; }

  .why, .owner { padding-top: 64px; }
  .points { gap: 16px; margin-top: 22px; }
  .foot { margin-top: 64px; }
  .foot-in { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px; }
}

/* ---------- Motion: the glass settles once, on load ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-panel { animation: settle 600ms var(--ease-out) both; }
  @keyframes settle {
    from { opacity: 0; transform: translateY(12px) scale(.985); }
    to { opacity: 1; transform: none; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .tile { transition: none; }
  .btn:active, .tile:active { transform: none; }
}

/* ---------- Less transparency, more contrast ---------- */
@media (prefers-reduced-transparency: reduce) {
  .glass, .glass-thick { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .glass, .glass-thick { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; border-color: var(--ink); }
  .btn-gold, .btn-glass { border-color: var(--ink); }
  .lede, .venue-text, .point p, .owner-card p, .foot { color: var(--ink); }
}
