/* ==========================================================================
   On The Verge — site styles
   Palette and type are matched to the original Universe site.
   ========================================================================== */

:root {
  --cream: #ece3d2;          /* page background (sampled from original) */
  --ink: #1a1a1a;            /* body text */
  --logo: #2b2b2b;           /* wordmark */
  --orange: #f85f00;         /* button text / accents */
  --orange-solid: #ff7a00;   /* solid "Book Now" button */
  --peach: #ffecdb;          /* pill button background */
  --glow: #ff8a1f;           /* radial glow behind buttons */
  --yellow: #f0e74b;         /* stylist name overlay text */

  --font-wordmark: "Monfem", "Anton", "Impact", sans-serif;           /* ON THE VERGE wordmark (drop monfem.woff2 into fonts/) */
  --font-display: "Anton", "Impact", "Arial Narrow", sans-serif;      /* SERVICES / HAIRCUT headings */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-button: "Orbitron", "Michroma", "Arial Black", sans-serif;   /* pill buttons (Apex on original) */
  --font-names: "Poppins", "Inter", sans-serif;                        /* stylist names */

  --max: 768px;   /* content column width on the original site */
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.45;
  text-align: center;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  max-width: none;                 /* full-bleed bar; nav centers itself */
  padding: 12px 0;
  background: var(--cream);
  border-bottom: 1px solid rgba(26, 26, 26, .1);
}
.site-header .brand { display: inline-block; }
.site-header .brand img { width: 220px; }
.site-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin: 0; padding: 0; list-style: none; }
.site-nav a { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; text-decoration: none; padding: 6px 4px; }
.site-nav a[aria-current="page"] { color: var(--orange); }
.site-nav a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Buttons (pill style from original)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-button);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--orange);
  background: var(--peach);
  border-radius: 999px;
  padding: 11px 26px;
  line-height: 1.2;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover, .btn:focus-visible { background: #fff3e8; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(248, 95, 0, .18); }
.btn.btn-wide { padding: 16px 48px; min-width: 60%; }
.btn.btn-solid { background: var(--orange-solid); color: #fff; }
.btn.btn-solid:hover, .btn.btn-solid:focus-visible { background: #ff8a1f; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3 { margin: 0; font-weight: 400; }

/* Avoid lonely last words: equal-ish lines for short display text, no orphans in copy */
h1, h2, h3, .tagline, .note { text-wrap: balance; }
p, li { text-wrap: pretty; }

.display {                      /* SERVICES / HAIRCUT / HAIR COLOR */
  font-family: var(--font-display);
  font-size: clamp(56px, 11vw, 88px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: #000;
}
.display-sm { font-size: clamp(38px, 7vw, 56px); }

.caps {                         /* tracked uppercase body copy from the original images */
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 500;
  font-size: clamp(15px, 2.2vw, 19px);
  line-height: 1.6;
}

.tagline { margin: 22px auto 0; max-width: 560px; }
.tagline span { display: block; text-wrap: balance; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
section { padding: 48px 0; }
.section-tight { padding-top: 24px; padding-bottom: 24px; }

.hero { padding-top: 40px; }
.hero .wordmark { width: min(88%, 660px); margin: 0 auto; }

/* Text wordmark (replaces the hand-lettered logo image) */
.wordmark-text {
  font-family: var(--font-wordmark);
  color: var(--logo);
  text-transform: uppercase;
  font-size: clamp(64px, 16vw, 140px);
  line-height: 0.95;
  letter-spacing: 0.02em;
}
.wordmark-text span { display: block; }
.hero .salon-photo { margin: 44px auto 0; }
.hero .salon-photo img { width: 100%; }
.hero .note { margin: 40px auto 0; }

.menu { padding-top: 72px; }

/* Services menu */
.menu { margin: 0 auto; max-width: 640px; }
.menu-intro { margin: 18px auto 0; }
.menu h2 { margin-top: 56px; }
.menu h2:first-child { margin-top: 0; }
.menu-list { list-style: none; margin: 24px 0 0; padding: 0; }
.menu-item { margin: 0 0 30px; }
.menu-item:last-child { margin-bottom: 0; }
.menu-item h3 { font-size: inherit; letter-spacing: inherit; }
.menu-item h3::before, .menu-item h3::after { content: "\2022"; margin: 0 4px; }  /* •ITEM• as on the original */
.menu-item p { margin: 0; }
.menu-item .price { font-weight: 600; color: var(--orange); }
.note-box { margin: 56px auto 0; max-width: 620px; }

/* Long-form menu copy reads in sentence case; service names stay uppercase */
.menu-intro, .note-box, .menu-item p { text-transform: none; letter-spacing: 0.03em; }

/* --------------------------------------------------------------------------
   Team page
   -------------------------------------------------------------------------- */
.stylist { padding: 40px 0 56px; }
.stylist + .stylist { border-top: 1px solid rgba(26, 26, 26, .12); }

.stylist-card {
  display: grid;
  grid-template-columns: 1fr 1.75fr;
  gap: 12px;
  align-items: stretch;
  text-align: left;
}
.stylist-work { display: grid; grid-template-rows: repeat(4, 1fr); gap: 12px; }
.stylist-work figure { margin: 0; overflow: hidden; border-radius: 4px; }
.stylist-work img { width: 100%; height: 100%; object-fit: cover; }
.stylist-portrait { position: relative; overflow: hidden; border-radius: 4px; }
.stylist-portrait img { width: 100%; height: 100%; object-fit: cover; }
.stylist-id {
  position: absolute; top: 26px; right: 22px; text-align: right;
  font-family: var(--font-names); font-weight: 300; color: var(--yellow);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .55), 0 0 2px rgba(0, 0, 0, .7);
  letter-spacing: 0.14em;
}
.stylist-id h2 { font-family: inherit; font-weight: 300; font-size: clamp(34px, 6vw, 52px); letter-spacing: 0.12em; line-height: 1.1; margin: 0 0 8px; }
.stylist-id .pronouns, .stylist-id .specialties { margin: 0; font-size: clamp(15px, 2.4vw, 21px); line-height: 1.5; }
.stylist-bio { margin: 22px auto 0; max-width: 700px; }
.stylist-bio p { margin: 0 0 10px; }
.stylist-bio p:last-child { margin-bottom: 0; }
.stylist-ig { margin-top: 26px; }
.stylist-ig .btn { text-transform: none; }

@media (max-width: 560px) {
  .stylist-card { grid-template-columns: 1fr; }
  .stylist-work { grid-template-rows: none; grid-template-columns: repeat(2, 1fr); order: 2; }
  .stylist-portrait { order: 1; aspect-ratio: 3 / 4; }
  .stylist-portrait img { object-position: 50% 0%; }  /* new portraits have little headroom — anchor to top */
  .stylist-id { top: auto; bottom: 22px; }  /* keep the name off the face; torso clothing gives better contrast */
}

/* --------------------------------------------------------------------------
   Booking page
   -------------------------------------------------------------------------- */
.policy { text-align: left; max-width: 640px; margin: 0 auto; }
.policy h2 { font-family: var(--font-display); font-size: clamp(30px, 5.5vw, 42px); text-align: center; letter-spacing: 0.01em; }
.policy ul { margin: 22px 0 0; padding-left: 26px; }
.policy li { margin: 0 0 12px; font-size: 18px; line-height: 1.5; }
.policy-safe { text-align: center; }
.policy-safe h2 { font-size: clamp(26px, 5vw, 36px); line-height: 1.15; }
.policy-safe p { margin: 20px auto 0; max-width: 560px; font-size: 18px; line-height: 1.5; }

/* Continuous scroll: appended pages get a soft divider */
.stream-page { margin-top: 56px; border-top: 1px solid rgba(26, 26, 26, .12); padding-top: 40px; }

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */
.contact-block { margin: 18px auto 0; font-style: normal; }
.contact-block a { text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { padding: 40px 0 44px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.site-footer img { width: 230px; margin: 0 auto 18px; }
.site-footer nav a { text-decoration: none; margin: 0 8px; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer p { margin: 14px 0 0; opacity: .75; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
