/* Linden Hair Studio: chalk, aubergine and pale linden, with real hair-colour tones as the accents */

:root {
  --chalk: #f6f7f3;
  --aubergine: #2b1d29;
  --plum: #5b4656;
  --linden: #d4deb0;
  --leaf: #4f6335;
  --blush: #f3dcd3;
  --line: rgba(43, 29, 41, 0.14);
  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--chalk);
  color: var(--aubergine);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { margin: 0 0 0.4em; font-family: var(--display); font-weight: 400; line-height: 1.04; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.9rem, 6.6vw, 5.4rem); max-width: 15ch; }
h2 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
h3 { font-size: 1.7rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; }

.concept { margin: 0; padding: 8px 16px; background: var(--aubergine); color: var(--chalk); font-size: 0.82rem; text-align: center; }
.concept a { color: var(--linden); font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85em 1.45em;
  border: 1.5px solid var(--aubergine);
  border-radius: 999px;
  background: var(--aubergine);
  color: var(--chalk);
  font: 600 0.98rem var(--body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--plum); border-color: var(--plum); }
.btn-quiet { background: transparent; color: var(--aubergine); }
.btn-quiet:hover { background: var(--aubergine); color: var(--chalk); border-color: var(--aubergine); }
.btn-light { background: var(--chalk); border-color: var(--chalk); color: var(--aubergine); }
.btn-light:hover { background: var(--linden); border-color: var(--linden); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(246, 247, 243, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 74px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand-name { font-family: var(--display); font-size: 2.1rem; line-height: 1; }
.brand-name.small { font-size: 1.4rem; }
.brand-sub { font-size: 0.85rem; color: var(--plum); }
.site-nav { display: none; }
@media (min-width: 900px) {
  .site-nav { display: flex; gap: 32px; font-weight: 500; }
  .site-nav a { text-decoration: none; color: var(--plum); }
  .site-nav a:hover { color: var(--aubergine); text-decoration: underline; text-underline-offset: 4px; }
}
@media (max-width: 520px) {
  .brand-sub { display: none; }
  .header-inner .btn { padding: 0.7em 1.1em; font-size: 0.9rem; }
}

/* Hero */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.lede { max-width: 34em; margin-top: 1.4rem; font-size: 1.15rem; color: var(--plum); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (min-width: 900px) {
  .hero { padding: 84px 0 104px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 64px; }
}

/* The shade ring: strands hanging from a swatch-book ring */
.ring {
  position: relative;
  margin: 0;
  height: 440px;
  overflow: hidden;
  border-radius: 220px 220px 28px 28px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, #e3ebc6, var(--linden) 70%);
}
.ring-bar {
  position: absolute;
  top: 92px;
  left: 12%;
  right: 12%;
  height: 8px;
  border-radius: 4px;
  background: var(--aubergine);
}
.ring-bar span {
  position: absolute;
  left: -12px;
  top: -10px;
  width: 28px;
  height: 28px;
  border: 6px solid var(--aubergine);
  border-radius: 50%;
}
.strands {
  position: absolute;
  top: 98px;
  left: 14%;
  right: 14%;
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  list-style: none;
}
.strands li { display: flex; flex-direction: column; align-items: center; width: 11%; height: 280px; }
.strands i {
  display: block;
  width: 100%;
  height: var(--h);
  border-radius: 6px 6px 50% 50% / 6px 6px 18% 18%;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--c) 80%, #000) 0%, var(--c) 28%, color-mix(in srgb, var(--c) 82%, #fff) 100%);
  box-shadow: 0 10px 18px rgba(43, 29, 41, 0.18);
  transform-origin: top center;
  animation: hang 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.strands li:nth-child(2) i { animation-delay: 0.06s; }
.strands li:nth-child(3) i { animation-delay: 0.12s; }
.strands li:nth-child(4) i { animation-delay: 0.18s; }
.strands li:nth-child(5) i { animation-delay: 0.24s; }
.strands li:nth-child(6) i { animation-delay: 0.30s; }
.strands li:nth-child(7) i { animation-delay: 0.36s; }
.strands b { margin-top: 10px; font-size: 0.8rem; font-weight: 600; color: var(--aubergine); font-variant-numeric: tabular-nums; }
@keyframes hang { from { transform: scaleY(0.2); opacity: 0; } }
@media (min-width: 900px) { .ring { height: 520px; } .strands li { height: 340px; } }

/* Sections */
.section { padding: 84px 0; }
@media (min-width: 900px) { .section { padding: 112px 0; } }
.section-lede { max-width: 32em; color: var(--plum); }

/* Prices */
.prices-grid { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .prices-grid { grid-template-columns: 1fr 1fr 1fr; column-gap: 56px; row-gap: 48px; }
  .prices-grid h2 { grid-column: 1 / -1; }
}
.price-group h3 { padding-bottom: 10px; border-bottom: 2px solid var(--aubergine); }
.price-group dl { margin: 0; }
.price-group dl div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.price-group dt { font-weight: 500; }
.price-group dd { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--plum); }
.price-group dd:first-letter { text-transform: none; }
.note { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--blush); font-size: 0.95rem; }

/* Shade card */
.section-shade { background: var(--linden); }
.shade-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .shade-grid { grid-template-columns: 1.1fr 0.9fr; gap: 72px; } }
.shade-picker { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 28px; }
.shade-picker button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--aubergine);
  font: 600 0.8rem var(--body);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.shade-picker button::before {
  content: "";
  display: block;
  width: 40px;
  height: 120px;
  border-radius: 6px 6px 50% 50% / 6px 6px 18% 18%;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--c) 80%, #000), var(--c) 30%, color-mix(in srgb, var(--c) 82%, #fff));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.shade-picker button:hover::before { box-shadow: 0 0 0 3px var(--linden), 0 0 0 4px rgba(43, 29, 41, 0.35); }
.shade-picker button[aria-checked="true"]::before { box-shadow: 0 0 0 3px var(--linden), 0 0 0 5px var(--aubergine); }
.shade-card { padding: 30px; border-radius: 28px; background: var(--chalk); }
.shade-swatch {
  height: 140px;
  margin-bottom: 22px;
  border-radius: 18px;
  background: linear-gradient(100deg, color-mix(in srgb, var(--c) 78%, #000), var(--c) 45%, color-mix(in srgb, var(--c) 75%, #fff));
  transition: background 0.3s ease;
}
.shade-code { margin: 0; font-family: var(--display); font-size: 3.4rem; line-height: 1; }
.shade-name { margin: 6px 0 4px; font-size: 1.2rem; font-weight: 600; }
.shade-text { color: var(--plum); }

/* Team */
.team { display: grid; gap: 32px; margin: 36px 0 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .team { grid-template-columns: repeat(3, 1fr); } }
.team li { padding-top: 24px; border-top: 1px solid var(--line); }
.initial {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--c);
  color: var(--chalk);
  font-family: var(--display);
  font-size: 2.2rem;
}
.team h3 { margin-bottom: 0.15em; }
.team p { margin: 0; color: var(--plum); }

/* Visit */
.section-dark { background: var(--aubergine); color: var(--chalk); }
.section-dark .section-lede { color: #d9cfd6; }
.visit-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .visit-grid { grid-template-columns: 0.9fr 1.1fr; gap: 72px; } }
.book-msg { min-height: 1.5em; margin-top: 14px; color: var(--linden); font-weight: 500; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 14px 0; border-bottom: 1px solid rgba(246, 247, 243, 0.16); }
.hours th { text-align: left; font-weight: 500; }
.hours td { text-align: right; color: #d9cfd6; font-variant-numeric: tabular-nums; }

/* Studio photo band */
.studio img { display: block; width: 100%; height: clamp(260px, 42vw, 540px); object-fit: cover; object-position: center 40%; }

/* Colour ideas */
.ideas { margin-top: 72px; }
.ideas h3 { font-size: 2.1rem; }
.ideas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.ideas-grid figure { margin: 0; }
.ideas-grid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; }
.ideas-grid figcaption { margin-top: 10px; font-size: 0.95rem; color: var(--plum); }
@media (min-width: 900px) { .ideas-grid { max-width: 760px; } }

/* Footer */
.site-footer { padding: 36px 0; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--plum); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-inner p { margin: 0; }
.credits a { color: var(--plum); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .strands i { animation: none; }
  .shade-picker button::before, .shade-swatch, .btn { transition: none; }
}
