/* Polished MPLS: Swatch Card design (prefix pm-) */
:root {
  --paper: oklch(98.5% 0.008 20);
  --paper-2: oklch(96% 0.014 20);
  --ink: oklch(24% 0.04 320);
  --ink-2: oklch(42% 0.04 320);
  --line: oklch(88% 0.02 320);
  --lilac: oklch(50% 0.17 305);
  --lilac-deep: oklch(40% 0.16 305);
  --lilac-soft: oklch(94% 0.03 305);
  --sw-rose: oklch(84% 0.08 10);
  --sw-peach: oklch(88% 0.07 55);
  --sw-butter: oklch(93% 0.08 95);
  --sw-mint: oklch(89% 0.07 165);
  --sw-sky: oklch(86% 0.06 230);
  --sw-lilac: oklch(84% 0.08 305);
  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 1.25rem;
  --gutter: clamp(1rem, 4vw, 1.5rem);
}
[data-sw="rose"] { --c: var(--sw-rose); }
[data-sw="peach"] { --c: var(--sw-peach); }
[data-sw="butter"] { --c: var(--sw-butter); }
[data-sw="mint"] { --c: var(--sw-mint); }
[data-sw="sky"] { --c: var(--sw-sky); }
[data-sw="lilac"] { --c: var(--sw-lilac); }

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; }
img, svg, iframe { max-width: 100%; }
a { color: var(--lilac-deep); text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; border-radius: 4px; }
.pm-skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; z-index: 100; }
.pm-skip:focus { left: 0.5rem; top: 0.5rem; }
.pm-wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; letter-spacing: -0.005em; margin: 0; overflow-wrap: anywhere; min-width: 0; }
h1 { font-size: clamp(2.5rem, 6.5vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin: 2.4rem 0 0.7rem; }
h3 { font-size: 1.35rem; margin: 1.5rem 0 0.3rem; }
p { margin: 0 0 1.05rem; }
ul, ol { padding-left: 1.3rem; margin: 0 0 1.1rem; }
li { margin-bottom: 0.35rem; }

/* Header: split wordmark */
.pm-top { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 30; }
.pm-top-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding-block: 0.7rem; }
.pm-left, .pm-right { display: flex; gap: 1.6rem; font-weight: 500; font-size: 0.98rem; }
.pm-right { justify-content: flex-end; }
.pm-left a, .pm-right a { color: var(--ink); text-decoration: none; padding: 0.4rem 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.pm-left a:hover, .pm-right a:hover, .pm-left a[aria-current], .pm-right a[aria-current] { border-bottom-color: var(--lilac); }
.pm-brand { display: flex; align-items: center; gap: 0.7rem; color: var(--ink); text-decoration: none; }
.pm-brand span { display: flex; flex-direction: column; font-family: var(--font-display); font-size: 1.75rem; line-height: 1; }
.pm-brand small { font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.04em; color: var(--ink-2); margin-top: 0.25rem; }
.pm-menu-btn { display: none; font: inherit; font-weight: 500; background: var(--ink); color: var(--paper); border: 0; border-radius: 999px; padding: 0.55rem 1.1rem; cursor: pointer; }

/* Menu panel */
.pm-panel { position: fixed; inset: 0; background: var(--paper); z-index: 60; overflow-y: auto; padding: 1rem var(--gutter) 3rem; display: none; }
.pm-panel.is-open { display: block; }
.pm-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.pm-panel-head a { font-family: var(--font-display); font-size: 1.7rem; color: var(--ink); text-decoration: none; }
.pm-panel h2 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin: 1.6rem 0 0.4rem; }
.pm-panel > a { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 1.1rem; }
.pm-dot, .pm-bulb { display: inline-block; width: 0.9rem; height: 1.3rem; border-radius: 0.45rem 0.45rem 0.35rem 0.35rem; background: var(--c, var(--sw-lilac)); flex: none; }

/* Hero */
.pm-home-hero { padding: clamp(2.5rem, 7vw, 5rem) 0 1rem; }
.pm-home-hero h1 { max-width: 14ch; }
.pm-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lilac-deep); margin: 0 0 0.8rem; }
.pm-lede { font-size: 1.25rem; line-height: 1.55; color: var(--ink-2); max-width: 40rem; margin-top: 1.1rem; }
.pm-swatch-row { display: flex; gap: 0.6rem; list-style: none; padding: 0; margin: 2rem 0 0; }
.pm-swatch-row li { width: 2.6rem; height: 4rem; border-radius: 1.3rem 1.3rem 0.9rem 0.9rem; background: var(--c); margin: 0; }
.pm-swatch-row li:nth-child(odd) { transform: translateY(0.5rem); }
.pm-hero { padding: clamp(1.8rem, 5vw, 3.2rem) 0 1.6rem; position: relative; }
.pm-hero::after { content: ""; display: block; width: 7rem; height: 0.65rem; border-radius: 999px; background: var(--c, var(--sw-lilac)); margin-top: 1.6rem; }
.pm-crumbs { font-size: 0.88rem; color: var(--ink-2); margin: 0 0 0.9rem; }
.pm-crumbs a { color: var(--ink-2); }

/* Sections and tiles */
.pm-section { padding: 1.6rem 0; }
.pm-h2 { margin-top: 0; }
.pm-measure { max-width: 44rem; }
.pm-section-note { color: var(--ink-2); margin-top: 1rem; }
.pm-tiles { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); gap: 1rem; }
.pm-tile { margin: 0; }
.pm-tile a { display: flex; flex-direction: column; gap: 0.5rem; min-height: 15rem; padding: 1.3rem; background: var(--c); color: var(--ink); text-decoration: none; border-radius: var(--radius) var(--radius) 2.6rem var(--radius); transition: transform 0.15s ease; }
.pm-tile a:hover { transform: translateY(-4px); color: var(--ink); }
.pm-tile strong { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; line-height: 1.1; }
.pm-tile span { font-size: 0.98rem; }
.pm-tile-no { font-size: 0.78rem !important; font-weight: 700; letter-spacing: 0.12em; opacity: 0.7; }
.pm-hoods { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.pm-hood { margin: 0; }
.pm-hood a { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.7rem 1.2rem 0.7rem 0.9rem; border: 2px solid var(--c); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; }
.pm-hood a:hover { background: var(--c); color: var(--ink); }
.pm-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
.pm-btn { display: inline-block; background: var(--lilac-deep); color: var(--paper); border: 2px solid var(--lilac-deep); border-radius: 999px; padding: 0.7rem 1.5rem; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.pm-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pm-btn-quiet { background: transparent; color: var(--lilac-deep); }
.pm-btn-quiet:hover { color: var(--paper); }

/* Photos: swatch-colored offset block behind each image */
.pm-photo { margin: 1.4rem 0.9rem 1.9rem 0; max-width: 48rem; }
.pm-photo img { display: block; width: 100%; height: auto; border-radius: var(--radius) var(--radius) 3.2rem var(--radius); box-shadow: 0.8rem 0.8rem 0 var(--c, var(--sw-lilac)); background: var(--paper-2); }
.pm-photo-wide { max-width: none; margin-top: 1.8rem; }
.pm-photo-wide img { border-radius: var(--radius) 4.5rem var(--radius) var(--radius); box-shadow: 1rem 1rem 0 var(--c, var(--sw-lilac)); }
.pm-home-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem; align-items: center; }
.pm-home-top .pm-home-hero { padding-bottom: 0; }
.pm-home-top + .pm-section { padding-top: 2.4rem; }
@media (min-width: 62rem) {
  .pm-home-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 3rem; }
  .pm-home-top .pm-photo-wide { margin: 2rem 1rem 2rem 0; }
  .pm-home-top .pm-photo-wide img { aspect-ratio: 1.3 / 1; object-fit: cover; object-position: 38% 50%; }
}
.pm-tile a { overflow: hidden; }
.pm-tile-img { display: block; margin: -1.3rem -1.3rem 0.5rem; }
.pm-tile-img img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; height: auto; }

/* Article */
.pm-art { max-width: 46rem; padding: 0.5rem 0 2rem 1.6rem; border-left: 0.5rem solid var(--c, var(--sw-lilac)); border-radius: 0.25rem; margin-top: 0.5rem; }
.pm-art h2:first-child { margin-top: 0.4rem; }
.pm-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 0 0 1.4rem; }
.pm-table th, .pm-table td { text-align: left; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.pm-table th { background: var(--paper-2); font-weight: 700; }
.pm-art .pm-table { display: block; overflow-x: auto; }
.pm-faq h3 { font-size: 1.3rem; }
.pm-sources { font-size: 0.85rem; color: var(--ink-2); margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.pm-sources a { margin-right: 0.6rem; white-space: nowrap; }
.pm-chips { list-style: none; padding: 0; margin: 1.2rem 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pm-chips li { margin: 0; }
.pm-chips a { display: inline-block; padding: 0.45rem 1rem; background: var(--lilac-soft); border-radius: 999px; text-decoration: none; font-size: 0.95rem; color: var(--ink); }
.pm-chips a:hover { background: var(--c, var(--sw-lilac)); }
.pm-note { font-size: 0.92rem; color: var(--ink-2); }
.pm-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0 3rem; }
.pm-pager a { display: block; padding: 1rem 1.2rem; border: 2px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.15; }
.pm-pager a:hover { border-color: var(--lilac); }
.pm-pager a span { display: block; font-family: var(--font-body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 0.3rem; }
.pm-next { text-align: right; }

/* Salons */
.pm-salons { list-style: none; padding: 0; margin: 1rem 0 1.4rem; display: grid; gap: 0.8rem; }
.pm-salons li { margin: 0; padding: 1rem 1.2rem; background: var(--paper-2); border-radius: var(--radius); display: grid; gap: 0.15rem; }
.pm-salons strong { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; }
.pm-salons em { font-style: normal; color: var(--ink-2); font-size: 0.95rem; }
.pm-web { color: var(--lilac-deep); font-size: 0.95rem; overflow-wrap: anywhere; }

/* Community block */
.pm-community { margin: 2.2rem 0; padding: 1.4rem 1.5rem; background: var(--lilac-soft); border-radius: var(--radius); }
.pm-community h2 { margin-top: 0; font-size: 1.7rem; }
.pm-community h3 { font-size: 1.2rem; margin-top: 1rem; }
.pm-entry { margin-bottom: 0.8rem; }
.pm-entry p { margin-bottom: 0.15rem; }
.pm-community address, .pm-addr { font-style: normal; font-size: 0.92rem; color: var(--ink-2); }

/* Forms and map */
.pm-form { display: grid; gap: 1rem; max-width: 34rem; padding: 1.5rem; border: 2px solid var(--line); border-radius: var(--radius); margin-bottom: 1.5rem; }
.pm-form h2 { margin: 0; font-size: 1.7rem; }
.pm-form label { display: grid; gap: 0.3rem; font-weight: 500; }
.pm-form input, .pm-form textarea { font: inherit; padding: 0.7rem 0.8rem; border: 2px solid var(--line); border-radius: 0.8rem; background: var(--paper); color: var(--ink); width: 100%; }
.pm-form input:focus, .pm-form textarea:focus { border-color: var(--lilac); outline: none; }
.pm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.pm-map { margin: 1rem 0 1.6rem; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--line); }
.pm-map iframe { display: block; width: 100%; height: 22rem; border: 0; }

/* Footer: swatch rail */
.pm-footer { background: var(--ink); color: var(--paper); margin-top: 3rem; padding: 2.5rem 0 2rem; }
.pm-footer a { color: oklch(90% 0.04 305); }
.pm-footer a:hover { color: var(--paper); }
.pm-rail { list-style: none; padding: 0 0 1.6rem; margin: 0 0 1.6rem; display: flex; flex-wrap: wrap; gap: 1.2rem 1.8rem; border-bottom: 1px solid oklch(40% 0.04 320); }
.pm-rail li { margin: 0; }
.pm-rail a { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-decoration: none; font-size: 0.9rem; }
.pm-rail .pm-bulb { width: 2rem; height: 3rem; border-radius: 1rem 1rem 0.7rem 0.7rem; }
.pm-foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.pm-foot-cols h3 { font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: oklch(80% 0.04 320); margin: 0 0 0.7rem; }
.pm-foot-cols ul { list-style: none; padding: 0; margin: 0; }
.pm-fine { font-size: 0.85rem; color: oklch(80% 0.04 320); margin: 2rem 0 0; }

@media (max-width: 62rem) {
  .pm-top-row { grid-template-columns: 1fr auto; }
  .pm-left, .pm-right { display: none; }
  .pm-menu-btn { display: inline-block; }
  .pm-brand span { font-size: 1.5rem; }
  .pm-split { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .pm-foot-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 36rem) {
  .pm-art { padding-left: 1rem; border-left-width: 0.35rem; }
  .pm-pager { grid-template-columns: minmax(0, 1fr); }
  .pm-brand small { display: none; }
  .pm-tile a { min-height: 11rem; }
}
@media (prefers-reduced-motion: reduce) { .pm-tile a { transition: none; } .pm-tile a:hover { transform: none; } }
