/* Reset, typography, layout utilities. */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--fs-15);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
}
h1,
h2,
h3,
h4,
p,
figure,
ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}
ul,
ol {
  list-style: none;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 {
  font-size: var(--fs-28);
  letter-spacing: -0.02em;
}
h2 {
  font-size: var(--fs-22);
}
h3 {
  font-size: var(--fs-16);
}
h4 {
  font-size: var(--fs-14);
}
p {
  text-wrap: pretty;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
:focus {
  outline: none;
}
:focus-visible {
  box-shadow: var(--ring);
  border-radius: var(--r-sm);
}
::selection {
  background: var(--brand);
  color: var(--brand-on);
}
[hidden] {
  display: none !important;
}

/* text utilities */
.t-eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-11);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.t-muted {
  color: var(--muted);
}
.t-faint {
  color: var(--faint);
}
.t-sm {
  font-size: var(--fs-13);
}
.t-xs {
  font-size: var(--fs-12);
}
.t-lg {
  font-size: var(--fs-18);
}
.t-strong {
  font-weight: 600;
}
.t-num {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.t-good {
  color: var(--good);
}
.t-bad {
  color: var(--bad);
}
.t-warn {
  color: var(--warn);
}
.t-brand {
  color: var(--brand);
}
.t-right {
  text-align: right;
}
.t-center {
  text-align: center;
}
.t-clip {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.t-clamp-2,
.t-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.t-clamp-2 {
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.t-clamp-3 {
  -webkit-line-clamp: 3;
  line-clamp: 3;
}
.t-link {
  color: var(--brand-ink);
  font-weight: 600;
}
.t-link:hover {
  text-decoration: underline;
}

/* layout utilities */
.row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.row-top {
  align-items: flex-start;
}
.row-between {
  justify-content: space-between;
}
.row-wrap {
  flex-wrap: wrap;
}
.col {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.gap-1 {
  gap: var(--s-1);
}
.gap-2 {
  gap: var(--s-2);
}
.gap-4 {
  gap: var(--s-4);
}
.gap-6 {
  gap: var(--s-6);
}
.grow {
  flex: 1 1 0;
  min-width: 0;
}
.stack > * + * {
  margin-top: var(--s-4);
}
.stack-lg > * + * {
  margin-top: var(--s-6);
}
.grid {
  display: grid;
  gap: var(--s-4);
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid-auto {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.grid-auto-sm {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
/* main column + right rail, as on the home feed and the salon page */
.layout-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--s-6);
  align-items: start;
}
.layout-rail > .rail {
  position: sticky;
  top: calc(var(--topbar-h) + var(--s-6));
}
.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: var(--s-4) 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.only-mobile {
  display: none;
}

@media (max-width: 1100px) {
  .layout-rail {
    grid-template-columns: minmax(0, 1fr);
  }
  .layout-rail > .rail {
    position: static;
  }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  h1 {
    font-size: var(--fs-22);
  }
  h2 {
    font-size: var(--fs-18);
  }
  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .only-mobile {
    display: initial;
  }
  .hide-mobile {
    display: none !important;
  }
}

/* entrance motion: elements with .reveal start hidden and lift in once visible */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
