/* Hallmark · genre: editorial · macrostructure: Photographic Long Document
 * design-system: design.md · theme: Loops Salon · enrichment: existing photography
 * nav: N9 edge-minimal · footer: Ft4 dense colophon · designed-as-app
 * critique: P5 H4 E4 S5 R5 V4 · contrast: pass · mobile: pass (36, 59, 61–68)
 */

:root {
  --color-paper: oklch(98.5% 0.006 75);
  --color-paper-2: oklch(96.5% 0.009 75);
  --color-ink: oklch(35% 0.012 75);
  --color-ink-2: oklch(48% 0.012 75);
  --color-rule: oklch(85% 0.009 75);
  --color-rule-dark: oklch(65% 0.01 75);
  --color-accent: oklch(64% 0.19 43);
  --color-accent-hover: oklch(57% 0.19 43);
  --color-accent-soft: oklch(95% 0.035 55);
  --color-accent-ink: oklch(99% 0 0);
  --color-focus: oklch(48% 0.18 255);
  --color-footer: oklch(27% 0.008 75);
  --color-shadow: oklch(20% 0.02 75 / 0.18);
  --color-overlay: oklch(10% 0.01 75 / 0.76);
  --color-transparent: transparent;
  --font-display: "Inter", "Noto Sans JP", sans-serif;
  --font-body: "Inter", "Noto Sans JP", sans-serif;
  --space-3xs: .25rem;
  --space-2xs: .5rem;
  --space-xs: .75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --space-3xl: 7rem;
  --text-xs: .75rem;
  --text-sm: .875rem;
  --text-md: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.75rem;
  --text-display: clamp(3rem, 8vw, 7.5rem);
  --container-wide: 82rem;
  --container-copy: 66ch;
  --header-height: 4.5rem;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-short: 180ms;
  --dur-long: 700ms;
}

html,
body { overflow-x: clip; }
html { scroll-padding-block-start: calc(var(--header-height) + var(--space-md)); }
body { font-family: var(--font-body); font-size: var(--text-md); color: var(--color-ink); background: var(--color-paper); }
h1, h2, h3, h4 { font-family: var(--font-display); overflow-wrap: anywhere; min-width: 0; }

.skip-link {
  position: fixed;
  inset-block-start: var(--space-sm);
  inset-inline-start: var(--space-sm);
  z-index: 1000;
  padding: var(--space-xs) var(--space-sm);
  color: var(--color-accent-ink);
  background: var(--color-ink);
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

.header { height: var(--header-height); background: color-mix(in oklch, var(--color-paper) 94%, var(--color-transparent)); }
.header-inner { min-height: var(--header-height); }
.logo img { width: auto; height: 2.75rem; }
.nav a, .lang a, .btn, .mobile-toggle, .footer a, .mobile-book { white-space: nowrap; }
.nav a[aria-current="location"] { color: var(--color-ink); text-decoration: underline; text-underline-offset: .45em; }
.btn { min-height: 2.875rem; border-color: var(--color-ink); }
.btn-primary { color: var(--color-accent-ink); background: var(--color-accent); border-color: var(--color-accent); }
.mobile-toggle { min-width: 3rem; min-height: 3rem; color: var(--color-ink); background: var(--color-paper); }

.hero { min-height: calc(100svh - var(--header-height)); background: var(--color-ink); }
.hero-bg { transform: scale(1.01); animation: hero-settle var(--dur-long) var(--ease-out) both; }
.hero-overlay { background: linear-gradient(180deg, var(--color-transparent) 15%, var(--color-overlay) 100%); }
.hero-content { padding-block-end: clamp(var(--space-xl), 8vw, var(--space-3xl)); }
.hero h1 { max-width: 10ch; font-size: var(--text-display); letter-spacing: -.045em; line-height: .93; }
.hero-tagline { font-size: clamp(var(--text-lg), 2.2vw, var(--text-xl)); }
.hero .lede { font-size: var(--text-md); }

.section { padding-block: clamp(var(--space-2xl), 9vw, var(--space-3xl)); }
.container { max-width: var(--container-wide); }
.eyebrow { margin-block-end: var(--space-xl); color: var(--color-accent-hover); }
.section-lede { max-width: var(--container-copy); font-size: var(--text-md); }
.story-grid, .services-head, .gallery-head, .location-grid { grid-template-columns: minmax(0, 1fr); }
.story-text > p { max-width: var(--container-copy); font-size: clamp(var(--text-md), 1.35vw, 1.125rem); }
.story-img { aspect-ratio: 4 / 5; }

.stylists-grid { grid-template-columns: minmax(0, 1fr); }
.stylist-card { min-height: 10rem; padding: var(--space-lg) var(--space-md); }
.stylist-phone { min-height: 2.75rem; align-items: center; }
.salon-line { align-items: center; }
.reviews-grid { grid-template-columns: minmax(0, 1fr); }
.review-card { font-size: var(--text-md); background: var(--color-paper); }
.review-quote { font-size: var(--text-md); }

#services { background: var(--color-paper-2) !important; }
.services-grid { grid-template-columns: minmax(0, 1fr); }
.service-group { padding: var(--space-lg) var(--space-md); }
.service-item { grid-template-columns: minmax(0, 1fr) auto; }
.service-name, .service-price { font-size: var(--text-md); }
.services-note { background: var(--color-accent-soft); }

.ig-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xs);
}
.gallery-card {
  position: relative;
  min-width: 0;
  overflow: clip;
  color: var(--color-accent-ink);
  background: var(--color-ink);
}
.gallery-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform var(--dur-long) var(--ease-out), opacity var(--dur-short) var(--ease-out);
}
.gallery-card span {
  position: absolute;
  inset-inline: var(--space-sm);
  inset-block-end: var(--space-sm);
  padding-block: var(--space-2xs);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-block-end: 1px solid currentColor;
}

.location-info { border-inline-end: 0; }
.location-info dl { grid-template-columns: minmax(5.5rem, 7rem) minmax(0, 1fr); }
.location-map iframe { min-height: 24rem; }
.footer { padding-block-end: calc(var(--space-3xl) + env(safe-area-inset-bottom)); background: var(--color-footer); }
.footer-grid { grid-template-columns: minmax(0, 1fr); }
.footer-social a { min-width: 2.75rem; min-height: 2.75rem; align-items: center; }

.mobile-book {
  position: fixed;
  inset-inline: var(--space-sm);
  inset-block-end: max(var(--space-sm), env(safe-area-inset-bottom));
  z-index: 90;
  display: flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding-inline: var(--space-md);
  color: var(--color-accent-ink);
  font-weight: 700;
  background: var(--color-accent);
  box-shadow: 0 .75rem 2rem var(--color-shadow);
}

@keyframes hero-settle {
  from { opacity: .72; transform: scale(1.04); }
  to { opacity: 1; transform: scale(1.01); }
}

@media (min-width: 40rem) {
  .stylists-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ig-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-card:first-child { grid-row: span 2; }
  .gallery-card:first-child img { aspect-ratio: 4 / 5; }
  .gallery-card:not(:first-child) img { aspect-ratio: 16 / 10; }
  .footer-grid { grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 60rem) {
  .story-grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
  .story-img { aspect-ratio: 5 / 6; }
  .stylists-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .services-head { grid-template-columns: minmax(0, 1fr) minmax(0, .75fr); }
  .gallery-head { grid-template-columns: minmax(0, 1fr) auto; }
  .ig-grid { grid-template-columns: 1.35fr repeat(2, minmax(0, 1fr)); }
  .location-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .location-info { border-inline-end: 1px solid var(--color-rule); }
  .mobile-book { display: none; }
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); }
  .gallery-card:hover img { opacity: .78; transform: scale(1.025); }
}

.btn:active, .mobile-toggle:active, .mobile-book:active { transform: translateY(1px); }
[aria-disabled="true"], button:disabled { cursor: not-allowed; opacity: .5; }

@media (max-width: 56.25rem) {
  .nav { box-shadow: 0 1.25rem 2rem var(--color-shadow); }
  .nav a { min-height: 3rem; display: flex; align-items: center; }
  body.menu-open { overflow: clip; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

