/* Hallmark · genre: editorial · macrostructure: Marquee Hero · H1 knobs: size=xxl, alignment=left-bias, underlay=rule-below
 * theme: custom · vibe: "puuteroitu ruusu, hiljainen ylellisyys"
 * paper: oklch(97% 0.010 350) · accent: oklch(52% 0.12 352)
 * display: Bodoni Moda · body: Switzer · axes: light / roman-serif / chromatic-other (dusty-rose ~352°)
 * nav: N9 edge-aligned minimal · footer: Ft1 mast-headed
 * sections: S2 hanging · features: F3 tabular spec sheet · cta: C1 outlined chip + C4 sticky bar
 * enrichment: Tier-B hand-built SVG botanical (motif carried from the studio's printed hinnasto)
 *             + studio's own work photography, 3 images, 4:5 object-fit crop (2026-08-16)
 * motion: page-load reveal · CTA hover-lift (2 primitives)
 * tone: luxury · audience: Oulun asiakkaat · use: varaa aika · context: user-provided
 * studied: no · contrast: pass (40–41) · nav/footer/hero slop: pass (42–45)
 * honest: pass (46) · chrome: pass (47) · tokens: pass (48) · responsive: pass (49)
 * icons: pass (30) · mobile: pass (34, 49, 50–57) · v1.1.0
 *
 * Hallmark · pre-emit critique: P5 H5 E4 S5 R5 V4
 */

/* ---------------------------------------------------------------- reset */

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

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

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: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, p, dl, dd, figure, table { margin: 0; }

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

a { color: inherit; }

/* Focus is instant and never animated. */
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-xs);
  z-index: var(--z-toast);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-ink);
  color: var(--color-paper);
  font-size: var(--text-sm);
  text-decoration: none;
  white-space: nowrap;
}
.skip-link:focus-visible { left: var(--space-md); }

/* Clickable text is a one-line object at every width. */
.nav__cta,
.nav__wordmark,
.cta-chip,
.cta-sticky__link,
.foot__links a { white-space: nowrap; }

/* Anchors have no :disabled, so the off state is declared explicitly. */
.nav__cta[aria-disabled="true"],
.cta-chip[aria-disabled="true"],
.cta-sticky__link[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* -------------------------------------------------------- N9 · the nav */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg) var(--page-gutter);
}

/* Mixed-case Bodoni, no tracking: the full name must fit beside the CTA at 320 px. */
.nav__wordmark {
  min-width: 0;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
}

.nav__cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-xs) var(--space-md);
  border: var(--rule-hair) solid var(--color-accent-deep);
  border-radius: var(--radius-pill);
  color: var(--color-accent-deep);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition:
    background-color var(--dur-short) var(--ease-out),
    color var(--dur-short) var(--ease-out),
    transform var(--dur-micro) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .nav__cta:hover {
    background: var(--color-accent-deep);
    color: var(--color-accent-ink);
    transform: translateY(-1.5px);
  }
}
.nav__cta:active { transform: translateY(0); }

@media (min-width: 40rem) {
  .nav { padding-block: var(--space-xl); }
  .nav__wordmark { font-size: var(--text-md); }
  .nav__cta { font-size: var(--text-base); padding-inline: var(--space-lg); }
}

/* ---------------------------------------------------- H1 · marquee hero */

.hero {
  position: relative;
  min-height: 72dvh;
  display: grid;
  align-content: end;
  /* Bottom-heavy: the hero sits into the page instead of floating off it. */
  padding: var(--space-2xl) var(--page-gutter) var(--space-3xl);
  overflow: visible;
}

.hero__display {
  position: relative;
  z-index: var(--z-base);
  max-width: 15ch;
  margin-inline-end: auto;
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-style: normal;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  min-width: 0;
  text-wrap: balance;
}

.hero__meta {
  position: relative;
  z-index: var(--z-base);
  margin-top: var(--space-xl);
  color: var(--color-muted);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero__sep { margin-inline: var(--space-xs); color: var(--color-muted); }

/* Tier-B hand-built botanical — the hibiscus linework from the printed
   hinnasto, redrawn. One instance, bleeding off the right edge. */
.hero__motif {
  position: absolute;
  z-index: 0;
  inset-block-start: 4%;
  inset-inline-end: calc(var(--page-gutter) * -1);
  width: clamp(15rem, 34vw, 27rem);
  height: auto;
  color: var(--color-rule);
  pointer-events: none;
}

@media (min-width: 60rem) {
  .hero { min-height: 78dvh; }
  /* Keep it bleeding off the edge — fully on-screen it reads as a stray graphic. */
  .hero__motif {
    inset-block-start: 6%;
    inset-inline-end: clamp(-10rem, -6vw, -4rem);
  }
}

.rule-thick {
  height: var(--rule-thick);
  margin: 0 var(--page-gutter);
  border: 0;
  background: var(--color-ink);
}

/* ------------------------------------------------------------- sections */

.section { padding-inline: var(--page-gutter); }

/* Deliberately uneven vertical rhythm — sections are not equally padded. */
.section--price   { padding-block: var(--space-3xl) var(--space-2xl); }
.section--work    { padding-block: var(--space-2xl) var(--space-3xl); }
.section--about   { padding-block: var(--space-3xl) var(--space-xl); }
.section--contact { padding-block: var(--space-2xl); }
.section--cta     { padding-block: var(--space-4xl) var(--space-3xl); }

/* S2 · hanging head — stacked single column, no rule, no eyebrow. */
.head-hang { margin-bottom: var(--space-2xl); }

.head-hang__title {
  font-family: var(--font-display);
  font-size: var(--text-display-s);
  font-style: normal;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
  min-width: 0;
}

.head-hang__note {
  max-width: 48ch;
  margin-top: var(--space-md);
  color: var(--color-muted);
  font-size: var(--text-base);
}

/* --------------------------------------------- F3 · tabular price sheet */

.price-groups {
  display: grid;
  gap: var(--space-2xl) var(--space-3xl);
}

@media (min-width: 64rem) {
  .price-groups {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: start;
  }
}

.price-group { min-width: 0; }

.price-group__title {
  padding-bottom: var(--space-sm);
  border-bottom: var(--rule-thick) solid var(--color-ink);
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  min-width: 0;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.price-table thead th {
  padding: var(--space-sm) 0;
  border-bottom: var(--rule-hair) solid var(--color-rule);
  color: var(--color-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: start;
  white-space: nowrap;
}

.price-table tbody th {
  padding: var(--space-md) var(--space-md) var(--space-md) 0;
  font-size: var(--text-base);
  font-weight: 500;
  text-align: start;
  vertical-align: baseline;
}

.price-table tbody td {
  padding: var(--space-md) 0;
  vertical-align: baseline;
  white-space: nowrap;
}

.price-table tbody tr + tr th,
.price-table tbody tr + tr td {
  border-top: var(--rule-hair) solid var(--color-rule);
}

.price-table__num {
  text-align: end;
  font-variant-numeric: tabular-nums;
}

.price-table__desc {
  display: block;
  max-width: 48ch;
  margin-top: var(--space-2xs);
  color: var(--color-muted);
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1.5;
}

/* Below 40 rem a three-column table stops being a table. */
@media (max-width: 39.999rem) {
  .price-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .price-table,
  .price-table tbody,
  .price-table tr,
  .price-table th,
  .price-table td { display: block; }

  .price-table tbody tr {
    padding-block: var(--space-md);
    border-top: var(--rule-hair) solid var(--color-rule);
  }
  .price-table tbody tr + tr th,
  .price-table tbody tr + tr td { border-top: 0; }

  .price-table tbody th { padding: 0; }

  .price-table tbody td {
    display: inline-block;
    padding: var(--space-xs) 0 0;
    text-align: start;
    font-size: var(--text-base);
  }
  .price-table tbody td + td { margin-inline-start: var(--space-lg); }

  .price-table tbody td::before {
    content: attr(data-label) " ";
    color: var(--color-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: var(--text-sm);
  }
}

/* ----------------------------------------------------------- work slots */

.work-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 48rem) {
  .work-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-xl);
  }
}

.work-slot { min-width: 0; }

/* Real studio photography. Hairline only — no card, no shadow, no rounded
 * corner. The paper-2 fill is the pre-decode ground so the grid never flashes
 * white against the powdered-rose paper. */
.work-slot__img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--color-paper-2);
  border: var(--rule-hair) solid var(--color-rule);
}

/* Per-image framing. The three originals arrive at different aspect ratios,
 * so a single centred crop would cut fingertips off two of them. */
.work-slot__img--tall   { object-position: 50% 45%; }  /* 0.75:1 — light vertical crop */
.work-slot__img--wide   { object-position: 56% 50%; }  /* 1.13:1 — heavy side crop, nails sit right of centre */
.work-slot__img--square { object-position: 50% 48%; }  /* 0.97:1 — moderate side crop */

.work-slot__caption {
  margin-top: var(--space-sm);
  color: var(--color-muted);
  font-size: var(--text-sm);
}

/* ----------------------------------------------------------------- about */

.about__lede {
  max-width: 24ch;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: normal;
  font-weight: 400;
  line-height: 1.24;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  min-width: 0;
}

.about__cols {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.about__cols p { max-width: var(--measure); }

@media (min-width: 60rem) {
  .about {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: var(--space-3xl);
    align-items: start;
  }
  .about__cols { margin-top: 0; }
}

/* --------------------------------------------------------------- contact */

.contact {
  max-width: 52ch;
  border-top: var(--rule-hair) solid var(--color-rule);
}

.contact__row {
  display: grid;
  grid-template-columns: minmax(10ch, 15ch) minmax(0, 1fr);
  gap: var(--space-md);
  padding-block: var(--space-md);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.contact dt {
  color: var(--color-muted);
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.9;
}

.contact dd { margin: 0; }

.contact dd a {
  color: var(--color-accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
@media (hover: hover) and (pointer: fine) {
  .contact dd a:hover { text-decoration-thickness: 2px; }
}

.contact .is-pending { color: var(--color-muted); font-style: italic; }

/* -------------------------------------------------- C1 · outlined chip */

.section--cta {
  display: grid;
  justify-items: start;
  gap: var(--space-lg);
  border-top: var(--rule-hair) solid var(--color-rule);
}

.cta-line {
  max-width: 26ch;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: normal;
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
  min-width: 0;
}

.cta-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  min-height: 48px;
  padding: var(--space-sm) var(--space-xl);
  border: var(--rule-hair) solid var(--color-accent-deep);
  background: var(--color-accent-deep);
  color: var(--color-accent-ink);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition:
    background-color var(--dur-short) var(--ease-out),
    border-color var(--dur-short) var(--ease-out),
    transform var(--dur-micro) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .cta-chip:hover {
    background: var(--color-ink);
    border-color: var(--color-ink);
    transform: translateY(-1.5px);
  }
}
.cta-chip:active { transform: translateY(0); }

.cta-note { color: var(--color-muted); font-size: var(--text-sm); }

/* ---------------------------------------------- Ft1 · mast-headed foot */

.foot {
  padding: var(--space-2xl) var(--page-gutter) calc(var(--space-2xl) + env(safe-area-inset-bottom));
  background: var(--color-paper-2);
  border-top: var(--rule-hair) solid var(--color-rule);
}

.foot__wordmark {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  min-width: 0;
}

.foot__tagline {
  max-width: 48ch;
  margin-top: var(--space-2xs);
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs) var(--space-sm);
  margin-top: var(--space-lg);
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.foot__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-muted);
  line-height: 1;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
@media (hover: hover) and (pointer: fine) {
  .foot__links a:hover { color: var(--color-accent-deep); }
}

/* --------------------------------------- C4 · sticky bar, mobile only */

.cta-sticky {
  position: fixed;
  z-index: var(--z-sticky);
  inset-inline: 0;
  inset-block-end: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md) calc(var(--space-sm) + env(safe-area-inset-bottom));
  background: var(--color-paper);
  border-top: var(--rule-hair) solid var(--color-rule);
}

.cta-sticky[hidden] { display: none; }

.cta-sticky__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.cta-sticky__link {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--space-lg);
  background: var(--color-accent-deep);
  color: var(--color-accent-ink);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition:
    background-color var(--dur-short) var(--ease-out),
    transform var(--dur-micro) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .cta-sticky__link:hover {
    background: var(--color-ink);
    transform: translateY(-1.5px);
  }
}
.cta-sticky__link:active { transform: translateY(0); }

@media (min-width: 48rem) {
  .cta-sticky { display: none; }
}

/* The fixed bar must never cover the end of the footer — extend the
   footer's own band behind it rather than leaving a paper strip below. */
@media (max-width: 47.999rem) {
  .foot { padding-block-end: calc(var(--space-4xl) + env(safe-area-inset-bottom)); }
}

/* ------------------------------------------------- one page-load reveal */

.reveal {
  animation: reveal var(--dur-long) var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 150ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 150ms !important;
  }
  .reveal { animation: reveal-reduced 150ms linear both; }
  @keyframes reveal-reduced {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
}
