/* Hallmark · genre: editorial · macrostructure: Photographic
 * H6 hero knobs: image=full-bleed, caption=lower-left, text=overlaid
 * F3 spec-sheet knobs: columns=2 (key/value), rules=every row, numbers=tabular
 * nav: N6 Newspaper masthead (issue-line=below wordmark, wordmark=logo mark, rule=double)
 * footer: Ft2 Inline rule single line (order=wordmark/meta/credit, sep=middot, density=spaced)
 * section head: S2 Hanging · CTA: C3 Typographic link + C4 Sticky bottom bar (mobile, after fold)
 * theme: custom (tuned) · vibe: "salon green, printed price card, Oulu"
 * paper: oklch(97% 0.008 141) · accent: oklch(65% 0.143 141) — sampled from logo.jpg
 * display: Instrument Serif · body: IBM Plex Sans
 * axes: light / roman-serif / chromatic-green ~141°
 * enrichment: none — real photography only · studied: no · context: inferred (use + tone)
 * pre-emit critique: P5 H5 E5 S5 R5 V4
 * contrast: pass (40–41) · 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)
 */

@import url("tokens.css");

/* ========================================================================
   Base
   ======================================================================== */

*, *::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: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-style: normal;          /* headers are roman. always. */
  font-weight: 400;
  line-height: var(--leading-display);
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;     /* Finnish compounds are long */
  min-width: 0;
  margin: 0;
}

p { margin: 0; }

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Focus is a first-class state — instant, never animated. */
:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Disabled affordance (used when a service is temporarily unbookable):
   three channels — opacity, cursor, and the aria state itself. */
[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  text-decoration-color: var(--color-muted);
}

/* ---- Utilities ---- */

.u-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.u-nowrap { white-space: nowrap; }

.skip {
  position: absolute;
  inset-inline-start: var(--space-md);
  top: var(--space-md);
  z-index: var(--z-modal);
  padding: var(--space-xs) var(--space-md);
  transform: translateY(-200%);
  background: var(--color-paper);
  border: var(--rule-hair) solid var(--color-ink-2);
  border-radius: var(--radius-md);
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.skip:focus-visible { transform: none; }

.shell {
  width: 100%;
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

/* ========================================================================
   N6 · Newspaper masthead
   ======================================================================== */

.mast {
  padding: var(--space-lg) var(--page-gutter) 0;
  text-align: center;
}

.mast__mark {
  width: 76px;
  height: 76px;
  margin-inline: auto;
  border-radius: var(--radius-md);
}

.mast__line {
  margin-top: var(--space-sm);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.mast__nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs) var(--space-lg);
  list-style: none;
  margin: var(--space-md) 0 0;
  padding: 0;
}

.mast__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;              /* affordances never wrap */
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-ink-2);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  transition: color var(--dur-micro) var(--ease-out),
              text-decoration-color var(--dur-micro) var(--ease-out),
              transform var(--dur-micro) var(--ease-out);
}

.mast__link:hover {
  color: var(--color-accent-deep);
  text-decoration-color: var(--color-accent-deep);
}

.mast__link:active { transform: translateY(1px); }

.mast__link--book { color: var(--color-accent-deep); font-weight: 600; }

.mast__rule {
  border: 0;
  border-top: var(--rule-hair) solid var(--color-rule);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  height: var(--space-3xs);
  margin: var(--space-md) 0 0;
}

/* ========================================================================
   H6 · Photographic fold
   ======================================================================== */

.hero {
  position: relative;
  isolation: isolate;
}

.hero__img {
  width: 100%;
  height: clamp(24rem, 68dvh, 40rem);
  object-fit: cover;
  object-position: 50% 28%;
}

.hero__caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: var(--space-3xl) var(--page-gutter) var(--space-xl);
  background: linear-gradient(to top, var(--color-scrim), transparent);
  color: var(--color-band-ink);
}

.hero__caption-inner {
  width: 100%;
  max-width: 68rem;
  margin-inline: auto;
}

.hero__title {
  font-size: var(--text-display);
  color: var(--color-band-ink);
  max-width: 16ch;
}

.hero__meta {
  margin-top: var(--space-xs);
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-band-muted);
}

/* ========================================================================
   Text folds
   ======================================================================== */

.fold { padding-block: var(--space-3xl) var(--space-2xl); }

.lede {
  font-size: var(--text-lg);
  line-height: 1.35;
  max-width: 46ch;
  color: var(--color-ink);
}

.lede__note {
  margin-top: var(--space-md);
  max-width: var(--measure);
  color: var(--color-ink-2);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-xl);
  margin-top: var(--space-xl);
}

/* C3 · Typographic link — underline is text-decoration, so it tracks the
   baseline instead of floating at the bottom of the 44 px hit area. */
.link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--color-accent-deep);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  transition: color var(--dur-micro) var(--ease-out),
              text-decoration-color var(--dur-micro) var(--ease-out),
              transform var(--dur-micro) var(--ease-out);
}

.link:hover { color: var(--color-ink); text-decoration-color: var(--color-ink); }
.link:active { transform: translateY(1px); }

.link--quiet {
  font-size: var(--text-base);
  color: var(--color-ink-2);
  text-decoration-color: var(--color-rule);
}

.link--quiet:hover {
  color: var(--color-accent-deep);
  text-decoration-color: var(--color-accent-deep);
}

/* Inline link inside prose */
.tlink {
  color: var(--color-accent-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--dur-micro) var(--ease-out);
}

.tlink:hover { color: var(--color-ink); }
.tlink:active { color: var(--color-accent-deep); }

/* ========================================================================
   Photo bands — the image edge IS the divider
   ======================================================================== */

.band-photo { margin: 0; }

.band-photo__img {
  width: 100%;
  height: clamp(18rem, 52dvh, 32rem);
  object-fit: cover;
}

.band-photo__img--a { object-position: 50% 22%; }
.band-photo__img--b { object-position: 50% 30%; }
.band-photo__img--c { object-position: 55% 25%; }

.band-photo figcaption {
  padding: var(--space-sm) var(--page-gutter);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  background: var(--color-paper-2);
}

/* ========================================================================
   S2 · Hanging section head — single column, no eyebrow
   ======================================================================== */

.head {
  display: block;
  padding-block: 0 var(--space-xl);
  max-width: 46ch;
}

.head__title { font-size: var(--text-2xl); }

.head__sub {
  margin-top: var(--space-sm);
  color: var(--color-ink-2);
  max-width: var(--measure);
}

/* ========================================================================
   F3 · Tabular spec sheet — the price card
   ======================================================================== */

.tariff { padding-block: var(--space-3xl) var(--space-2xl); }

.tariff__group + .tariff__group { margin-top: var(--space-xl); }

.tariff__group-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 var(--space-xs);
}

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

.rows tr { border-top: var(--rule-hair) solid var(--color-rule); }
.rows tr:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }

.rows th,
.rows td {
  padding-block: var(--space-sm);
  vertical-align: baseline;
  text-align: start;
}

.rows th {
  font-weight: 500;
  padding-inline-end: var(--space-md);
  overflow-wrap: anywhere;
}

.rows .price {
  width: 1%;
  white-space: nowrap;
  text-align: end;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.rows .desc {
  display: block;
  margin-top: var(--space-3xs);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-muted);
  max-width: 58ch;
}

.flag {
  display: inline-block;
  margin-top: var(--space-2xs);
  padding: var(--space-3xs) var(--space-xs);
  border: var(--rule-hair) solid var(--color-accent-deep);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-deep);
}

.surcharge {
  margin-top: var(--space-md);
  padding-inline-start: var(--space-md);
  border-inline-start: 2px solid var(--color-accent);
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  max-width: var(--measure);
}

/* Disclosure groups — native <details>, no JS, no height animation */
.disc { border-top: var(--rule-hair) solid var(--color-rule); }
.disc:last-of-type { border-bottom: var(--rule-hair) solid var(--color-rule); }

.disc__summary {
  display: block;
  padding-block: var(--space-md);
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  transition: color var(--dur-micro) var(--ease-out);
}

.disc__summary::-webkit-details-marker { display: none; }
.disc__summary:hover { color: var(--color-accent-deep); }
.disc__summary:active { color: var(--color-ink); }

/* The heading carries the row so <summary> holds exactly one heading element,
   which keeps the price categories reachable by heading navigation. */
.disc__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  margin: 0;
}

.disc__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.2;
  overflow-wrap: anywhere;
  min-width: 0;
}

.disc__from {
  flex: none;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  color: var(--color-muted);
}

.disc__from::after {
  content: " +";
  font-weight: 600;
  color: var(--color-accent-deep);
}

.disc[open] .disc__from::after { content: " –"; }

.disc__body { padding-bottom: var(--space-lg); }

/* ========================================================================
   Visit — deep green band (surface flips, so ink flips with it)
   ======================================================================== */

.visit {
  padding-block: var(--space-3xl);
  background: var(--color-band);
  color: var(--color-band-ink);
}

.visit h2 { font-size: var(--text-2xl); color: var(--color-band-ink); }

.visit__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.visit__item dt {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-band-muted);
}

.visit__item dd {
  margin: var(--space-xs) 0 0;
  font-size: var(--text-base);   /* steps up at 40rem — keeps the email on one line at 320 px */
  color: var(--color-band-ink);
  overflow-wrap: anywhere;
}

.visit__item dd a {
  color: var(--color-accent-lite);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
  transition: color var(--dur-micro) var(--ease-out);
}

.visit__item dd a:hover { color: var(--color-band-ink); }
.visit__item dd a:active { color: var(--color-accent-lite); }

.visit__pending { color: var(--color-band-muted); font-style: normal; }

.visit__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: var(--space-xl);
  white-space: nowrap;
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--color-band-ink);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  transition: color var(--dur-micro) var(--ease-out),
              text-decoration-color var(--dur-micro) var(--ease-out),
              transform var(--dur-micro) var(--ease-out);
}

.visit__link:hover {
  color: var(--color-accent-lite);
  text-decoration-color: var(--color-accent-lite);
}

.visit__link:active { transform: translateY(1px); }
.visit :focus-visible { outline-color: var(--color-accent-lite); }

/* ========================================================================
   Ft2 · Inline-rule single line
   ======================================================================== */

.foot {
  border-top: var(--rule-hair) solid var(--color-rule);
  padding-block: var(--space-lg) var(--space-2xl);
}

.foot__line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-xs) var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.foot__wordmark {
  font-family: var(--font-display);
  font-size: var(--text-md);
  color: var(--color-ink);
}

.foot__link {
  white-space: nowrap;
  color: var(--color-ink-2);
  text-decoration: underline;
  text-decoration-color: var(--color-rule);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--dur-micro) var(--ease-out),
              text-decoration-color var(--dur-micro) var(--ease-out);
}

.foot__link:hover {
  color: var(--color-accent-deep);
  text-decoration-color: var(--color-accent-deep);
}

.foot__link:active { color: var(--color-ink); }

.foot__sep { color: var(--color-rule); }

/* ========================================================================
   C4 · Sticky bottom bar — narrow viewports only, after the fold
   ======================================================================== */

.callbar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: var(--z-sticky);
  display: none;
  align-items: stretch;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md)
           max(var(--space-sm), env(safe-area-inset-bottom));
  background: var(--color-paper);
  border-top: var(--rule-hair) solid var(--color-rule);
  opacity: 0;
  transform: translateY(100%);
  transition: opacity var(--dur-short) var(--ease-out),
              transform var(--dur-short) var(--ease-out);
}

.callbar[data-shown="true"] { opacity: 1; transform: none; }

.callbar__btn {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding-inline: var(--space-sm);
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background-color var(--dur-micro) var(--ease-out),
              color var(--dur-micro) var(--ease-out),
              transform var(--dur-micro) var(--ease-out);
}

.callbar__btn--call {
  color: var(--color-ink);
  border: var(--rule-hair) solid var(--color-ink-2);
}

.callbar__btn--call:hover { background: var(--color-paper-3); }

.callbar__btn--book {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  border: var(--rule-hair) solid var(--color-accent-deep);
}

.callbar__btn--book:hover { background: var(--color-accent-lite); }

.callbar__btn:active { transform: translateY(1px); }

@media (max-width: 59.99rem) {
  .callbar { display: flex; }
  body { padding-bottom: var(--callbar-height); }
}

/* ========================================================================
   Breakpoints
   ======================================================================== */

@media (min-width: 40rem) {
  .visit__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visit__item dd { font-size: var(--text-md); }
  .rows th { padding-inline-end: var(--space-xl); }
}

@media (min-width: 60rem) {
  .mast { padding-top: var(--space-xl); }
  .visit__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* one deliberate grid-break: the tariff sits inset from the page's edge */
  .tariff__inset { padding-inline-start: var(--space-2xl); }
}

/* ========================================================================
   Reduced motion — every transform and transition has a fallback
   ======================================================================== */

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

  *, *::before, *::after {
    animation-duration: 150ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 150ms !important;
  }

  .link:active,
  .mast__link:active,
  .visit__link:active,
  .callbar__btn:active { transform: none; }

  .callbar { transform: none; }
  .skip { transform: none; opacity: 0; pointer-events: none; }
  .skip:focus-visible { opacity: 1; pointer-events: auto; }
}
