/* Hallmark · pre-emit critique: P5 H5 E4 S5 R4 V4 */
/* Hallmark · genre: editorial · macrostructure: Marquee Hero · theme: Garden
 * tone: soft, practical · audience: App Store readers · use: read the features
 * enrichment: Tier-B map · nav: N9 · footer: Ft2
 * H1 knobs: size=xxl, alignment=left-bias, underlay=rule-below
 * N9 knobs: cta=text+arrow, wordmark=serif, padding=spacious
 * F3 knobs: columns=2, rules=every-row, numbers=proportional
 * Ft2 knobs: order=wordmark/links/credit, separator=middot, density=spaced
 * studied: reference-shape · source: https://mag.hello-beauty-wellness.com
 * anchor hue: rose · paper: sage
 */

@import url("./home-tokens.css");

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

html,
body {
  overflow-x: clip;
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--lh-relaxed);
}

body {
  min-height: 100dvh;
}

a {
  color: var(--color-accent-ink);
  text-decoration-thickness: var(--rule-hair);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: var(--rule-focus);
}

a:focus {
  outline: none;
}

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

a:active {
  opacity: 0.72;
}

.skip {
  position: absolute;
  left: var(--page-gutter);
  top: var(--space-sm);
  z-index: var(--z-skip);
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-paper);
  color: var(--color-ink);
  transform: translateY(-150%);
}

.skip:focus {
  transform: none;
}

.nav-edge {
  position: absolute;
  z-index: var(--z-sticky-nav);
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: max(var(--space-lg), env(safe-area-inset-top)) var(--page-gutter) var(--space-md);
}

.wordmark,
.nav-read,
.foot-line a {
  white-space: nowrap;
}

.wordmark {
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: var(--tracking-display);
  line-height: 1;
  text-decoration: none;
}

.nav-read {
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1;
}

.hero {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 100dvh;
  min-width: 0;
  overflow: clip;
}

.map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.wash {
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(
    to top,
    var(--color-paper) 0%,
    var(--color-paper) 28%,
    var(--color-paper-clear) 100%
  );
  pointer-events: none;
}

.hero-copy {
  position: relative;
  min-width: 0;
  padding: 0 var(--page-gutter) max(var(--space-2xl), env(safe-area-inset-bottom));
}

.caption {
  margin: 0 0 var(--space-xs);
  color: var(--color-muted);
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-style: italic;
  font-weight: 500;
  line-height: var(--lh-snug);
}

h1 {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 600;
  letter-spacing: var(--tracking-display);
  line-height: var(--lh-tight);
}

.break {
  height: 0.375rem;
  margin: 0;
  border: 0;
  background: var(--color-ink);
}

.sheet {
  max-width: 46rem;
  min-width: 0;
  padding: var(--space-3xl) var(--page-gutter) var(--space-2xl);
}

.head-hang {
  margin: 0 0 var(--space-lg);
  padding: 0;
}

h2 {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: var(--text-display-s);
  font-weight: 600;
  letter-spacing: var(--tracking-display);
  line-height: var(--lh-snug);
}

.lede {
  max-width: var(--measure);
  margin: 0 0 var(--space-xl);
}

.spec {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: proportional-nums;
}

.spec th,
.spec td {
  padding: var(--space-sm) var(--space-md) var(--space-sm) 0;
  border-bottom: var(--rule-hair) solid var(--color-rule);
  vertical-align: top;
  text-align: left;
}

.spec th {
  width: 5.5rem;
  color: var(--color-ink);
  font-weight: 500;
  white-space: nowrap;
}

.spec td {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--color-ink-2);
}

.note {
  max-width: var(--measure);
  margin: var(--space-lg) 0 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.more {
  margin: var(--space-xl) 0 0;
}

.foot-line {
  padding: var(--space-lg) var(--page-gutter) max(var(--space-xl), env(safe-area-inset-bottom));
  border-top: var(--rule-hair) solid var(--color-rule);
}

.foot-line p {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-sm);
  align-items: baseline;
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.sep {
  color: var(--color-rule-2);
}

@media (max-width: 36rem) {
  .spec,
  .spec tbody,
  .spec tr,
  .spec th,
  .spec td {
    display: block;
    width: auto;
  }

  .spec tr {
    padding: var(--space-sm) 0;
    border-bottom: var(--rule-hair) solid var(--color-rule);
  }

  .spec th,
  .spec td {
    padding: 0;
    border-bottom: 0;
  }

  .spec th {
    margin-bottom: var(--space-3xs);
  }
}

@media (prefers-reduced-motion: reduce) {
  a:active {
    opacity: 1;
  }
}