/* Trend Setters Hair and Beauty Lounge. One line: a part in the hair that ends at 210 N Main. */

/* Tokens: palette, type scale, spacing and the Part's measurements. Read these, never retype hex values. */
:root {
  --ground: #f5efe4;
  --ink: #25201e;
  --ink-soft: #5c534e;
  --part: #b83c24;
  --oat: #ded3c3;
  --hair: color-mix(in srgb, var(--ink) 18%, transparent);
  --part-faint: color-mix(in srgb, var(--part) 24%, transparent);
  --display: Archivo, "Helvetica Neue", Arial, sans-serif;
  --text: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-mega: clamp(3rem, 1.1rem + 8.4vw, 9rem);
  --fs-xl: clamp(2.25rem, 1.2rem + 4.6vw, 5.25rem);
  --fs-l: clamp(1.625rem, 1.15rem + 2vw, 2.875rem);
  --fs-m: clamp(1.1875rem, 1.05rem + .6vw, 1.5rem);
  --fs-body: 1.0625rem;
  --fs-s: .875rem;
  --fs-label: .75rem;
  --gut: clamp(1.25rem, 5vw, 5rem);
  --col-gap: clamp(.75rem, 2vw, 2rem);
  --space: clamp(4rem, 9vw, 9rem);
  --max: 96rem;
  --top-h: 4.5rem;
  --mark: 2.25rem;
  --part-w: .1875rem;
  /* The x position of a rule that drops from the centre of the logo mark. */
  --part-x: calc(var(--gut) + var(--mark) / 2);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --draw: 1.6s;
}

/* Base elements. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 1rem); }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--text); font-size: var(--fs-body); line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, figure, dl, dd, ul, ol, blockquote { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: .96; letter-spacing: -.025em; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
address { font-style: normal; }
::selection { background: var(--part); color: var(--ground); }
:focus-visible { outline: var(--part-w) solid var(--part); outline-offset: .25rem; }
[hidden] { display: none !important; }
.menu-open, .menu-open body { overflow: hidden; }

/* Screen-reader-only text (.sr) and the skip link (.skip). */
.sr { position: absolute; width: .0625rem; height: .0625rem; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999rem; top: 0; z-index: 99; background: var(--ink); color: var(--ground); padding: .8rem 1.1rem; }
.skip:focus { left: .5rem; top: .5rem; }

/* Layout: .wrap centres content inside the gutters; .grid is 4 columns on mobile, 12 from 48rem. */
.wrap { width: min(100% - var(--gut) * 2, var(--max)); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--col-gap); }
@media (min-width: 48rem) { .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } }

/* Vertical rhythm: .section is a spaced block; .band is the same block on the oat panel. */
.section { padding-block: var(--space); }
.band { padding-block: var(--space); background: var(--oat); }

/* Type scale: .display (hero), .h-xl, .h-l, .h-m for headings; .lede for intros; .label for tracked small caps. */
.display { font-family: var(--display); font-weight: 800; font-size: var(--fs-mega); line-height: .9; letter-spacing: -.035em; text-wrap: balance; }
.h-xl { font-family: var(--display); font-weight: 800; font-size: var(--fs-xl); line-height: .94; letter-spacing: -.03em; }
.h-l { font-family: var(--display); font-weight: 800; font-size: var(--fs-l); line-height: 1; letter-spacing: -.02em; }
.h-m { font-family: var(--display); font-weight: 800; font-size: var(--fs-m); line-height: 1.1; letter-spacing: -.01em; }
.lede { font-size: var(--fs-m); line-height: 1.4; max-width: 34rem; }
.label {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: var(--fs-label); line-height: 1.3; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft);
}

/* Running copy: .prose limits the measure, spaces paragraphs and headings, and underlines its links. */
.prose { max-width: 38rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--fs-l); margin-top: 2.2em; }
.prose h3 { font-size: var(--fs-m); line-height: 1.1; margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li + li { margin-top: .4em; }

/* Text link with the persimmon underline: .link (also any link inside .prose). */
.link, .prose a {
  text-decoration: underline; text-decoration-color: var(--part);
  text-decoration-thickness: .1em; text-underline-offset: .24em;
  transition: text-decoration-thickness .25s var(--ease), text-underline-offset .25s var(--ease);
}
.link:hover, .link:focus-visible, .prose a:hover, .prose a:focus-visible { text-decoration-thickness: .22em; text-underline-offset: .3em; }

/* Sign-weight action link, e.g. "Get directions": .go (44px target, thick underline). */
.go {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  font-family: var(--display); font-weight: 800; font-size: var(--fs-m); line-height: 1.1; letter-spacing: -.01em;
  text-decoration: underline; text-decoration-color: var(--part);
  text-decoration-thickness: .14em; text-underline-offset: .28em;
  transition: text-decoration-thickness .25s var(--ease), text-underline-offset .25s var(--ease);
}
.go:hover, .go:focus-visible { text-decoration-thickness: .26em; text-underline-offset: .34em; }

/* Buttons: .btn is solid ink, .btn--line is outlined; square corners, underline appears on hover. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .5rem 1.5rem;
  background: var(--ink); color: var(--ground); border: .125rem solid var(--ink);
  font-size: var(--fs-s); letter-spacing: .12em; text-transform: uppercase; line-height: 1.2; text-align: center;
  text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: .16em; text-underline-offset: .4em;
  transition: text-decoration-color .25s var(--ease);
}
.btn--line { background: transparent; color: var(--ink); }
.btn:hover, .btn:focus-visible { text-decoration-color: var(--part); }
.btn:not(.btn--line):hover, .btn:not(.btn--line):focus-visible { text-decoration-color: var(--ground); }

/* THE PART, tick: a short persimmon stroke before a label or heading. .tick, .tick--short, .tick--down (vertical). */
.tick { display: inline-block; flex: none; width: 2.5rem; height: var(--part-w); background: var(--part); vertical-align: middle; }
.tick--short { width: 1.25rem; }
.tick--down { width: var(--part-w); height: 2.5rem; }

/* THE PART, rule: .part is a vertical rule filled by --p (0 to 1); .part--h is horizontal; add a .part-dot child that rides it. */
.part { position: relative; display: block; width: var(--part-w); min-height: 3rem; background: var(--part-faint); }
.part::before {
  content: ""; position: absolute; inset: 0; background: var(--part);
  transform-origin: 0 0; transform: scaleY(var(--p, 1));
}
.part--h { width: 100%; height: var(--part-w); min-height: 0; }
.part--h::before { transform: scaleX(var(--p, 1)); }
.part-dot {
  position: absolute; left: 50%; top: calc(var(--p, 1) * 100%);
  width: .875rem; height: .875rem; border-radius: 50%; background: var(--part);
  transform: translate(-50%, -50%);
}
.part--h .part-dot { left: calc(var(--p, 1) * 100%); top: 50%; }

/* THE PART, end dot: .dot is the dot where the line stops at the address. Use it once per view. */
.dot { display: inline-block; flex: none; width: .875rem; height: .875rem; border-radius: 50%; background: var(--part); }

/* THE PART, notches: an eight-notch rule; mark the current position with .is-on. <ol class="notches"><li>. */
.notches { display: flex; list-style: none; padding: 0; border-top: var(--part-w) solid var(--part-faint); }
.notches li { flex: 1; height: .625rem; border-left: .125rem solid var(--part); }
.notches li.is-on { height: 1.5rem; border-left-width: .375rem; }

/* THE PART, drawn: svg.draw with .draw-line (pathLength is set by site.js) and optional .draw-dot; draws once when seen. */
.draw { overflow: visible; }
.draw-line { fill: none; stroke: var(--part); stroke-width: var(--part-w); }
.draw-dot { fill: var(--part); }
.js .draw .draw-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .draw .draw-dot { opacity: 0; }
.js .draw.is-in .draw-line { stroke-dashoffset: 0; transition: stroke-dashoffset var(--draw) var(--ease); }
.js .draw.is-in .draw-dot { opacity: 1; transition: opacity .3s linear var(--draw); }

/* Reveal on scroll, for rules and ticks only (text and photographs stay still): .reveal grows from the left, .reveal--down from the top. */
.js .reveal { transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.1s var(--ease); }
.js .reveal--down { transform: scaleY(0); transform-origin: 50% 0; }
.js .reveal.is-in { transform: none; }

/* Hairline rules: .rule is ink at low strength, .rule--part is the persimmon line at full width. */
.rule { display: block; width: 100%; height: .0625rem; border: 0; margin: 0; background: var(--hair); }
.rule--part { height: var(--part-w); background: var(--part); }

/* Page opening: .opening wraps .opening-label (tick + label), .opening-title (the h1) and .opening-lede. */
.opening { padding-block: clamp(3rem, 8vw, 7rem) clamp(2.5rem, 6vw, 5rem); }
.opening-label { display: flex; align-items: center; gap: .75rem; font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.opening-title { margin-top: 1.25rem; font-size: var(--fs-mega); line-height: .9; letter-spacing: -.035em; max-width: 13ch; }
.opening-lede { margin-top: clamp(1.5rem, 3vw, 2.5rem); font-size: var(--fs-m); line-height: 1.4; max-width: 34rem; }

/* Figure and caption: .frame crops a photograph (4:5; .frame--wide 16:9, .frame--square 1:1); .caption sits under it. */
.frame { position: relative; overflow: hidden; background: var(--oat); aspect-ratio: 4 / 5; }
.frame--wide { aspect-ratio: 16 / 9; }
.frame--square { aspect-ratio: 1; }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.caption { display: flex; align-items: baseline; gap: .75rem; margin-top: .875rem; font-size: var(--fs-s); line-height: 1.4; color: var(--ink-soft); }
.caption::before { content: ""; flex: none; width: 1.25rem; height: var(--part-w); background: var(--part); transform: translateY(-.25em); }

/* Chrome, top bar: .top holds .brand (mark + wordmark), .top-nav, .top-call and .menu-btn. Solid ground, sticky. */
.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; flex-wrap: wrap; gap: 0 1.5rem;
  min-height: var(--top-h); padding: .5rem var(--gut);
  background: var(--ground); border-bottom: .0625rem solid transparent;
  transition: border-color .4s var(--ease);
}
.top.is-scrolled, .menu-open .top { border-bottom-color: var(--hair); }
.brand { display: inline-flex; align-items: center; gap: .7rem; min-height: 2.75rem; margin-right: auto; }
.brand-mark { flex: none; width: var(--mark); height: var(--mark); }
.brand-text { display: grid; gap: .28rem; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.25rem; line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
.brand-kind { font-size: .625rem; line-height: 1; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
.top-nav { display: flex; flex-wrap: wrap; gap: 0 clamp(1rem, 2vw, 2rem); font-size: .9375rem; }
.top-nav a, .top-call {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  text-decoration: underline; text-decoration-color: transparent;
  text-decoration-thickness: .16em; text-underline-offset: .45em;
  transition: text-decoration-color .25s var(--ease);
}
.top-nav a:hover, .top-nav a:focus-visible, .top-nav a[aria-current="page"], .top-call:hover, .top-call:focus-visible { text-decoration-color: var(--part); }
.top-call { display: none; gap: .6rem; font-size: .9375rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu-btn {
  display: none; align-items: center; gap: .6rem; min-height: 2.75rem; padding: 0 .25rem;
  font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase;
}
@media (max-width: 61.99rem) {
  .js .top-nav { display: none; }
  .js .menu-btn { display: inline-flex; }
}
@media (min-width: 62rem) {
  .top { flex-wrap: nowrap; }
  .top-call { display: inline-flex; }
}

/* Chrome, full-screen menu: #menu.menu opens when <html> has .menu-open; the Part runs down its left edge to the address. */
.menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column;
  padding: calc(var(--top-h) + 2rem) var(--gut) 2.5rem calc(var(--gut) + .5rem);
  background: var(--ground); overflow-y: auto;
  visibility: hidden; opacity: 0;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.menu-open .menu { visibility: visible; opacity: 1; transition-delay: 0s; }
.menu-line { position: relative; margin-block: auto; padding-left: 1.5rem; border-left: var(--part-w) solid var(--part); }
.menu-list { list-style: none; padding: 0; }
.menu-list a {
  display: flex; align-items: center; min-height: 3.5rem;
  font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 9vw, 3.25rem); line-height: 1; letter-spacing: -.03em;
  text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: .1em; text-underline-offset: .2em;
}
.menu-list a:hover, .menu-list a:focus-visible, .menu-list a[aria-current="page"] { text-decoration-color: var(--part); }
.menu-addr { display: grid; justify-items: start; margin-top: 2rem; font-size: 1rem; }
.menu-addr a { display: inline-flex; align-items: center; min-height: 2.75rem; overflow-wrap: anywhere; }
.menu-street { padding-top: .6rem; line-height: 1.4; }
.menu-dot { position: absolute; left: calc(var(--part-w) / -2); bottom: 0; transform: translate(-50%, -.2rem); }
@media (min-width: 62rem) { .menu { display: none; } }

/* Chrome, footer: .foot is the oat panel; .foot-grid lays out brand, address, pages and small print. */
.foot { background: var(--oat); padding: clamp(3rem, 7vw, 6rem) 0 2rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem var(--col-gap); }
.foot-brand { display: grid; gap: 1.25rem; align-content: start; }
.foot-name { font-family: var(--display); font-weight: 800; font-size: var(--fs-l); line-height: .98; letter-spacing: -.025em; max-width: 12ch; }
.foot-addr, .foot-nav { display: grid; align-content: start; justify-items: start; gap: .25rem; }
.foot-lines { display: grid; margin-block: .75rem .5rem; line-height: 1.5; }
.foot-list { list-style: none; padding: 0; margin-top: .5rem; }
.foot-link {
  display: inline-flex; align-items: center; min-height: 2.75rem; overflow-wrap: anywhere; text-align: left;
  text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: .14em; text-underline-offset: .4em;
  transition: text-decoration-color .25s var(--ease);
}
.foot-link:hover, .foot-link:focus-visible { text-decoration-color: var(--part); }
.foot-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.25rem; border-top: .0625rem solid var(--hair);
  font-size: var(--fs-s); color: var(--ink-soft);
}
@media (min-width: 40rem) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .foot-grid { grid-template-columns: 5fr 3fr 2fr 2fr; } }

/* Consent banner: #consent.consent is a small fixed panel at the bottom edge; both .consent-btn carry equal weight. */
.consent {
  position: fixed; z-index: 60; inset: auto 1rem 1rem 1rem;
  display: grid; gap: 1rem; padding: 1.25rem 1.25rem 1rem;
  background: var(--ink); color: var(--ground); border-top: var(--part-w) solid var(--part);
  font-size: var(--fs-s); line-height: 1.5;
}
.consent a { text-decoration: underline; text-decoration-thickness: .1em; text-underline-offset: .22em; }
.consent-acts { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.consent-btn {
  min-height: 2.75rem; padding: .5rem 1rem; border: .125rem solid var(--ground);
  font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: .16em; text-underline-offset: .4em;
}
.consent-btn:hover, .consent-btn:focus-visible { text-decoration-color: var(--ground); }
.consent :focus-visible { outline-color: var(--ground); }
@media (min-width: 40rem) { .consent { left: auto; width: 26rem; } }

/* Reduced motion: every line is drawn, every rule is shown, nothing travels. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01s !important; transition-delay: 0s !important;
    animation-duration: .01s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
  }
  .js .reveal { transform: none; }
  .js .draw .draw-line { stroke-dashoffset: 0; }
  .js .draw .draw-dot { opacity: 1; }
}

/* A page never scrolls sideways. */
html, body { overflow-x: clip; }
/* Past a full-HD window the whole page grows with the window - type, gaps and pictures
   together - so a very wide screen (or a page zoomed far out) shows the same composition,
   not a small column of text lost in an enormous picture. */
@media (min-width: 1921px) { html { font-size: calc(100vw / 120); } }
