/* POSTHOC — site styles */

:root {
  color-scheme: dark;
  --bg: #0B0B0A;
  --text: #EDE8DF;
  --heading: #F2EDE4;
  --body-strong: #D9D3C8;
  --body-soft: #E6E0D5;
  --muted: #BDB6AA;
  --nav: #A39D92;
  --caption: #8E887E;
  --rule: #2A2723;
  --accent: #D7A852;

  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Montserrat', Helvetica, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--text); }
a:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

h1, h2, p, ul, figure, blockquote { margin: 0; }

/* ---------- Layout ---------- */

.page { padding: 0 clamp(20px, 6%, 96px); }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

/* ---------- Header & nav ---------- */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 28px 0;
}

.site-header--home { justify-content: flex-end; }

.site-logo { line-height: 0; }
.site-logo img { height: 88px; width: auto; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-nav a { color: var(--nav); padding: 15px 0; }
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--accent); }

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 36px 0 52px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  font-weight: 400;
  color: var(--caption);
}

.site-footer a { padding: 14px 0; letter-spacing: 0.04em; }

/* ---------- Shared type ---------- */

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--muted);
}

/* Quotes */
.quote { display: flex; flex-direction: column; gap: 18px; }

.quote__mark {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 0.6;
  color: var(--accent);
}

.quote blockquote {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.4;
  color: var(--body-soft);
}

.quote figcaption { font-size: 14px; color: var(--caption); }

/* ---------- Home ---------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
  padding: 56px 0 160px;
}

.hero__logo { height: clamp(200px, 22vw, 300px); width: auto; }

.hero h1 {
  margin-top: 24px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--heading);
}

.hero p {
  max-width: 760px;
  font-size: clamp(1.15rem, 1.9vw, 1.55rem);
  line-height: 1.55;
  color: var(--muted);
}

.hero__link {
  margin-top: 8px;
  padding: 14px 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-wrap: balance;
}

/* ---------- About ---------- */

.about {
  padding: 72px 0 104px;
  display: flex;
  flex-wrap: wrap;
  gap: 56px 80px;
  align-items: flex-start;
}

.portrait {
  flex: 1 1 320px;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.portrait figcaption { font-size: 12px; font-weight: 400; color: var(--caption); }

.about__body {
  flex: 999 1 480px;
  min-width: 0;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about__title { display: flex; flex-direction: column; gap: 12px; }

.about__title h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1.1;
  color: var(--heading);
}

.about__body > p {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--body-strong);
}

.about__block {
  margin-top: 16px;
  padding-top: 36px;
  border-top: 1px solid var(--rule);
}

.services { display: flex; flex-direction: column; gap: 8px; }

.services ul {
  list-style: none;
  padding: 0;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.35;
  color: var(--body-soft);
}

.services li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.services li:last-child { border-bottom: 0; }

.about .quote blockquote { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.45; }

/* ---------- Experience ---------- */

.experience {
  padding: 96px 0 112px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.page-title { display: flex; flex-direction: column; gap: 20px; }

.page-title h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 1.05;
  color: var(--heading);
}

.clients {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  column-gap: 48px;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.3;
  color: var(--body-soft);
}

.clients li { padding: 24px 0; border-top: 1px solid var(--rule); }

.press {
  margin-top: 32px;
  padding-top: 80px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 56px 72px;
  align-items: start;
}

.press .quote { gap: 20px; }
.press .quote__mark { font-size: 64px; }
.press .quote blockquote { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.45; }
.press .quote--large blockquote {
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  line-height: 1.3;
  color: var(--heading);
}

/* ---------- Salons ---------- */

.salons-intro {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 112px 0 96px;
  max-width: 860px;
}

.salons-intro h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.5vw, 4.75rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--heading);
}

.salons-intro p {
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  line-height: 1.65;
  color: var(--muted);
}

.salons-intro p.strong { color: var(--body-strong); }

.button {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 30px;
  border: 1px solid var(--accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: border-color .2s, color .2s;
}

.button:hover { color: var(--text); border-color: var(--text); }

.text-link {
  align-self: flex-start;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.testimonials {
  border-top: 1px solid var(--rule);
  padding: 72px 0 112px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 64px 56px;
  align-items: start;
}

/* ---------- Tablets: keep the portrait beside the text ---------- */

@media (min-width: 701px) and (max-width: 1000px) {
  .about { flex-wrap: nowrap; gap: 48px; }
  .portrait { flex: 0 0 38%; }
  .about__body { flex: 1 1 0; }
}

/* ---------- Small tablets and phones: name, then portrait, then text ---------- */

@media (max-width: 700px) {
  .about {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 28px;
    padding: 32px 0 72px;
  }
  .about__body { display: contents; }
  .about__title { order: -1; }
  .portrait { flex: none; width: 100%; max-width: 440px; }
}

/* ---------- Small screens ---------- */

@media (max-width: 600px) {
  .site-logo img { height: 64px; }
  .hero { padding-top: 24px; padding-bottom: 72px; }
  .clients, .testimonials, .press { grid-template-columns: 1fr; }
  .clients li { padding: 18px 0; }
  .experience { padding-top: 40px; padding-bottom: 72px; gap: 40px; }
  .salons-intro { padding-top: 40px; padding-bottom: 64px; }
  .testimonials { padding-top: 56px; padding-bottom: 72px; }
  .press { padding-top: 56px; }
}

/* ---------- Phones: logo above a single-row nav ---------- */

@media (max-width: 540px) {
  .site-header { gap: 4px; padding: 20px 0 4px; }
  .site-logo img { height: 56px; }
  .site-nav {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 8px;
    letter-spacing: 0.12em;
  }
  .hero__link { letter-spacing: 0.18em; }
  .button { padding: 16px 20px; letter-spacing: 0.14em; }
}
