/* Hallmark · pre-emit critique: P5 H5 E5 S5 R4 V5
 *
 * Hallmark · genre: editorial · macrostructure: Stat-Led · theme: Riso
 * tone: print-poster warmth · anchor hue: cool cyan 220° (accent), warm peach 30° (paper)
 * enrichment: none — typography only
 * nav: N6 newspaper masthead · footer: Ft4 dense colophon
 * H4 stat knobs: figure=xxl, pairing=side-by-side, unit=suffix
 * F3 spec-sheet knobs: rules=hairline, price=right-tabular, note=sub-line
 * reveal: counter-tick + one orchestrated entrance
 * slop test 58/58 — contrast: pass (40–41) · slop: pass (42–45) · honest: pass (46)
 * chrome: pass (47) · tokens: pass (48) · responsive: pass (49) · mobile: pass (34, 50–57)
 * verified at 320 / 375 / 414 / 768 / 1024 / 1280 / 1600 / 1920 px
 */

/* ── Reset ──────────────────────────────────────────────────── */

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

html, body {
  overflow-x: clip;              /* clip, never hidden — gate 34 */
  max-width: 100%;
}

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

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

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--lh-relaxed);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-style: var(--display-style);      /* roman — never italic */
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
  overflow-wrap: anywhere;               /* gate 51 */
  min-width: 0;
  text-wrap: balance;
}

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

:focus-visible {
  outline: var(--rule-heavy) solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-input);
  /* Never transitioned — the ring is instant. */
}

::selection {
  background: var(--color-accent-2);
  color: var(--color-ink);
}

.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

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

/* Riso paper grain — a single fixed overlay, not decoration on any element. */
.grain {
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Shell ──────────────────────────────────────────────────── */

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

.label {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-neutral);
}

.lede {
  max-width: var(--measure);
  font-size: var(--text-lg);
  line-height: var(--lh-normal);
  color: var(--color-ink-2);
}

.mark {
  background: linear-gradient(
    to top,
    var(--color-accent-2) 0.62em,
    transparent 0.62em
  );
}

a {
  color: var(--color-accent-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: text-decoration-thickness var(--dur-micro) var(--ease-out),
              color var(--dur-micro) var(--ease-out);
}

a:hover { text-decoration-thickness: 3px; }

/* ── Buttons ────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 48px;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-label);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  text-decoration: none;
  white-space: nowrap;               /* gate 49 — affordances never wrap */
  border-radius: var(--radius-pill);
  border: var(--rule-heavy) solid var(--color-ink);
  cursor: pointer;
  transition: transform var(--dur-micro) var(--ease-out),
              box-shadow var(--dur-micro) var(--ease-out),
              background-color var(--dur-micro) var(--ease-out),
              color var(--dur-micro) var(--ease-out);
}

/* Primary — solid ink block with a riso-offset cyan plate behind it. */
.btn--primary {
  background: var(--color-ink);
  color: var(--color-ink-paper);
  box-shadow: 4px 4px 0 var(--color-accent);
}

.btn--primary:hover,
.btn--primary.is-hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--color-accent);
}

.btn--primary:active,
.btn--primary.is-active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--color-accent);
}

/* Secondary — outlined chip (C1). */
.btn--ghost {
  background: transparent;
  color: var(--color-ink);
}

.btn--ghost:hover,
.btn--ghost.is-hover { background: var(--color-paper-3); }
.btn--ghost:active,
.btn--ghost.is-active { transform: translateY(1px); }

/* Disabled — three channels, never opacity alone. */
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

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

/* ── N6 · Newspaper masthead ────────────────────────────────── */

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

.mast__line {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-neutral);
  margin-bottom: var(--space-sm);
}

.mast__name {
  font-size: clamp(2.5rem, 11vw, 6rem);
  letter-spacing: -0.045em;
  line-height: 1.02;                 /* all-caps floor — cap-tops collide below 1.0 (gate 55) */
  text-transform: uppercase;
}

.mast__sub {
  font-family: var(--font-label);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-ink-2);
  margin-top: var(--space-sm);
}

.mast__nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 var(--space-lg);
  margin-top: var(--space-md);
}

.mast__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;                  /* touch target, not just text height */
  font-family: var(--font-label);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-ink-2);
  text-decoration: none;
  white-space: nowrap;
  padding-inline: var(--space-2xs);
  box-shadow: inset 0 -2px 0 transparent;
  transition: box-shadow var(--dur-micro) var(--ease-out);
}

.mast__link:hover { box-shadow: inset 0 -2px 0 var(--color-ink); }

.mast__link--book {
  color: var(--color-accent-deep);
  box-shadow: inset 0 -2px 0 var(--color-accent);
}

.mast__link--book:hover { box-shadow: inset 0 -2px 0 var(--color-accent-deep); }

.mast__rule {
  border: 0;
  border-top: var(--rule-heavy) solid var(--color-ink);
  border-bottom: var(--rule-hair) solid var(--color-ink);
  height: 4px;
  margin-top: var(--space-lg);
}

/* ── H4 · Stat-led hero ─────────────────────────────────────── */

/* Bottom padding ≥ 1.3× top — the hero settles into the page rather than floating (gate 44). */
.hero {
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 8vw, 5.5rem);
}

.hero__grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
}

.hero__figure {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: var(--text-figure);
  line-height: 0.78;
  letter-spacing: -0.06em;
  color: var(--color-ink);
  padding-bottom: 0.14em;            /* clears the comma's descender */
  /* Riso CMYK misregistration — the theme's signature move, decorative only. */
  text-shadow:
     0.024em  0.020em 0 var(--color-accent-2),
    -0.020em -0.014em 0 var(--color-accent);
}

.hero__unit {
  font-size: 0.24em;
  letter-spacing: var(--tracking-tight);
  vertical-align: 0.9em;
  color: var(--color-muted);
  text-shadow: none;
}

.hero__count {
  display: block;
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: var(--rule-heavy) solid var(--color-ink);
  font-family: var(--font-label);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  line-height: var(--lh-snug);
  color: var(--color-neutral);
}

.hero__title {
  font-size: var(--text-display-s);
  max-width: 20ch;
}

.hero__lede { margin-top: var(--space-lg); }

@media (min-width: 60rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--space-2xl);
  }
}

/* ── S2 · Hanging section heads ─────────────────────────────── */

/* Rhythm is fluid — 10 rem of dead air is generous on a desktop and broken on a phone. */
.sec        { padding-block: clamp(3rem, 8vw, 6rem); }
.sec--tight { padding-block: clamp(2.5rem, 6vw, 4rem); }
.sec--deep  { padding-block: clamp(1.5rem, 4vw, 4rem) clamp(3rem, 8vw, 6rem); }

.head {
  display: grid;                     /* single column — gate 54 */
  gap: var(--space-md);
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.head h2 { font-size: var(--text-3xl); max-width: 16ch; }
.head .lede { max-width: 48ch; }

/* ── About ──────────────────────────────────────────────────── */

.prose {
  max-width: var(--measure);
  display: grid;
  gap: var(--space-lg);
  font-size: var(--text-md);
  line-height: var(--lh-relaxed);
}

.prose p:first-child {
  font-size: var(--text-lg);
  line-height: var(--lh-normal);
}

.about {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 60rem) {
  .about { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-4xl); }
}

/* Length key — reads the price list's vocabulary. */
.key {
  align-self: start;
  border-top: var(--rule-heavy) solid var(--color-ink);
  padding-top: var(--space-md);
}

.key__title {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.key dl { display: grid; gap: var(--space-sm); }

.key dt {
  font-family: var(--font-label);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.key dd {
  font-size: var(--text-sm);
  line-height: var(--lh-normal);
  color: var(--color-neutral);
  padding-bottom: var(--space-sm);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.key dl > div:last-child dd { border-bottom: 0; padding-bottom: 0; }

/* ── F3 · Tabular spec sheet (hinnasto) ─────────────────────── */

.price-group + .price-group { margin-top: var(--space-2xl); }

/* Single column — a qualifier never sits beside its heading on the same row (gate 54). */
.price-group__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2xs);
  padding-bottom: var(--space-sm);
  border-bottom: var(--rule-heavy) solid var(--color-ink);
}

.price-group__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--display-weight);
  letter-spacing: var(--tracking-display);
}

.price-group__note {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-neutral);
}

.sheet {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.sheet th, .sheet td {
  padding-block: var(--space-md);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  vertical-align: baseline;
  font-weight: 400;
}

.sheet tr:last-child th,
.sheet tr:last-child td { border-bottom: 0; }

.sheet__name {
  font-family: var(--font-label);
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  padding-right: var(--space-md);
}

.sheet__desc {
  display: block;
  margin-top: var(--space-2xs);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: var(--lh-normal);
  color: var(--color-neutral);
  max-width: 46ch;
}

.sheet__price {
  font-family: var(--font-label);
  font-size: var(--text-md);
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
  width: 1%;
}

.sheet__from {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-neutral);
  margin-right: var(--space-2xs);
}

/* ── Practical info ─────────────────────────────────────────── */

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

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

.fact {
  border-top: var(--rule-heavy) solid var(--color-ink);
  padding-top: var(--space-md);
}

.fact__label {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-neutral);
  margin-bottom: var(--space-sm);
}

.fact__body {
  font-size: var(--text-md);
  line-height: var(--lh-normal);
}

.fact__body a { font-family: var(--font-label); font-weight: 600; }

.hours {
  display: grid;
  gap: var(--space-2xs);
  font-variant-numeric: tabular-nums;
}

.hours > div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  font-size: var(--text-base);
}

.hours dt { font-family: var(--font-label); font-weight: 600; }
.hours dd { margin: 0; }

/* ── Inverted CTA band ──────────────────────────────────────── */

.band {
  background: var(--color-ink);
  color: var(--color-ink-paper);
  padding-block: clamp(3rem, 8vw, 6rem);
}

.band h2 {
  font-size: var(--text-3xl);
  max-width: 18ch;
  color: var(--color-ink-paper);
}

.band p {
  margin-top: var(--space-md);
  max-width: 46ch;
  color: var(--color-ink-muted);
  font-size: var(--text-md);
  line-height: var(--lh-normal);
}

.band a:not(.btn) { color: var(--color-accent-2); }

.band .btn--primary {
  background: var(--color-accent-2);
  color: var(--color-ink);
  border-color: var(--color-accent-2);
  box-shadow: 4px 4px 0 var(--color-accent);
}

.band .btn--ghost {
  color: var(--color-ink-paper);
  border-color: var(--color-ink-muted);
}

.band .btn--ghost:hover { background: var(--color-ink-2); }

.band :focus-visible { outline-color: var(--color-accent-2); }

/* ── Ft4 · Dense colophon ───────────────────────────────────── */

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

.colophon__text {
  font-family: var(--font-label);
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-neutral);
  max-width: 68ch;
}

.colophon__text strong {
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-size: var(--text-xs);
}

.colophon__text a { color: var(--color-accent-deep); white-space: nowrap; }

/* ── C4 · Sticky booking bar (small screens only) ───────────── */

.book-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: var(--z-sticky-nav);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-sm) var(--page-gutter);
  padding-bottom: calc(var(--space-sm) + env(safe-area-inset-bottom, 0px));
  background: var(--color-paper-2);
  border-top: var(--rule-heavy) solid var(--color-ink);
}

.book-bar__note {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: var(--lh-snug);
  color: var(--color-ink-2);
  min-width: 0;
}

.book-bar .btn { padding-inline: var(--space-md); }

@media (max-width: 59.9375rem) {
  .book-bar { display: flex; }
  body { padding-bottom: 5.5rem; }
}

/* ── Reveal · one orchestrated entrance, on load only ───────── */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: rise var(--dur-long) var(--ease-out) forwards;
  animation-delay: var(--reveal-delay, 0ms);
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .btn, a { transition-duration: 1ms; }
}
