/* Rodolfo's Hair Beauty Boutique: black and white only, no hue anywhere. */

:root {
  --paper: #ffffff;
  --ink: #0a0a0a;
  --muted: #525252;
  --faint: #737373;
  --line: #e5e5e5;
  --band: #0a0a0a;
  --band-ink: #fafafa;
  --band-muted: #a3a3a3;
  --band-line: #262626;

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

  --gutter: clamp(16px, 5vw, 48px);
  --measure: 68ch;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0a0a0a;
    --ink: #fafafa;
    --muted: #a3a3a3;
    --faint: #8a8a8a;
    --line: #262626;
    --band: #fafafa;
    --band-ink: #0a0a0a;
    --band-muted: #525252;
    --band-line: #d4d4d4;

    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Theme-aware artwork: the black file on light, the white file on dark. */
.art {
  height: 100%;
  width: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4.5rem;
}

.brand {
  display: block;
  height: 2.5rem;
  transition: opacity 200ms var(--ease);
}

.brand:hover {
  opacity: 0.7;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  transition: color 200ms var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms var(--ease);
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* Buttons: filled black is the primary action, outline the secondary. */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 200ms var(--ease),
    color 200ms var(--ease),
    transform 200ms var(--ease);
}

.button:active {
  transform: scale(0.98);
}

.button-filled {
  background: var(--ink);
  color: var(--paper);
}

.button-filled:hover {
  background: transparent;
  color: var(--ink);
}

.button-outline {
  background: transparent;
  color: var(--ink);
}

.button-outline:hover {
  background: var(--ink);
  color: var(--paper);
}

.icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
}

/* Story */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
}

.story {
  padding: clamp(3.5rem, 9vw, 7.5rem) 0;
}

.story .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.story h1 {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.story h1 em {
  display: block;
  font-weight: 400;
  color: var(--muted);
}

.place {
  margin: 0 0 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

.lead {
  margin: 0 0 1.25rem;
  font-size: clamp(1.125rem, 2vw, 1.3rem);
  font-weight: 300;
  line-height: 1.6;
}

.story p {
  max-width: 38rem;
}

.body-muted {
  color: var(--muted);
}

.quote {
  margin: 2.25rem 0;
  padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 2px solid var(--ink);
}

.quote p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-style: italic;
  line-height: 1.5;
}

.quote footer {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}

.facts li:first-child {
  padding-left: 0;
  border-left: 0;
}

.facts strong {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.1;
}

.facts span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.emblem {
  display: flex;
  justify-content: center;
}

.emblem picture {
  width: min(100%, 22rem);
  animation: rise 900ms var(--ease) both;
}

.emblem img {
  width: 100%;
  height: auto;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Booking: the inverted band. */

.booking {
  background: var(--band);
  color: var(--band-ink);
  padding: clamp(3.5rem, 9vw, 6.5rem) 0;
  --ink: var(--band-ink);
  --paper: var(--band);
  --muted: var(--band-muted);
  --line: var(--band-line);
}

.booking .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.booking h2 {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
}

.booking h2 em {
  display: block;
  font-weight: 400;
  color: var(--muted);
}

.booking .intro {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 32rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.details {
  margin: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.detail {
  display: grid;
  grid-template-columns: 1.15rem 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.detail .icon {
  margin-top: 0.2rem;
  color: var(--muted);
}

.detail dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail dd {
  margin: 0.25rem 0 0;
  overflow-wrap: anywhere;
}

.detail a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: opacity 200ms var(--ease);
}

.detail a:hover {
  opacity: 0.7;
}

/* Footer */

.site-footer {
  padding: 3.5rem 0 2.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
}

.site-footer .brand {
  height: 2.25rem;
  margin-bottom: 1rem;
}

.site-footer h2 {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}

.site-footer p,
.site-footer ul {
  margin: 0;
  overflow-wrap: anywhere;
}

.site-footer ul {
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.site-footer a {
  text-decoration: none;
  transition: color 200ms var(--ease);
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--faint);
}

/* Pending details: a dashed outline marks what the salon still has to give. */

.pending {
  padding: 0 0.3em;
  border: 1px dashed currentColor;
  border-radius: 0.25rem;
}

/* Privacy notice */

.document {
  padding: clamp(2.5rem, 7vw, 5rem) 0;
}

.document article {
  max-width: var(--measure);
}

.document h1 {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
}

.document .updated {
  margin: 0 0 2.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.document h2 {
  margin: 2.75rem 0 0.75rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.25;
}

.document p,
.document li {
  color: var(--ink);
}

.document ul,
.document ol {
  padding-left: 1.25rem;
}

.document li + li {
  margin-top: 0.4rem;
}

.document .back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

/* Small screens */

@media (max-width: 860px) {
  .story .wrap,
  .booking .wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .emblem {
    order: -1;
  }

  .emblem picture {
    width: min(55%, 13rem);
  }

  .site-footer .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .nav .nav-link {
    display: none;
  }

  .brand {
    height: 2.1rem;
  }

  .button {
    width: 100%;
  }

  .nav .button {
    width: auto;
  }

  .facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .facts li {
    padding-left: 0;
    border-left: 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
