/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V4
 * Hallmark · genre: editorial · macrostructure: Marquee Hero
 * H1 marquee knobs: size=xl(capped 5.5rem), alignment=left-bias, underlay=single rule below
 * nav: N6 Newspaper masthead (issue-line=below wordmark, rule=double)
 * footer: Ft6 Letter close (signoff=roman, postscript=yes, width=60ch)
 * section head: S2 Hanging · table: F3 Tabular spec sheet · cta: C1 outlined-slab (filled)
 * C4 sticky bar considered and cut — the page is ~2.5 screens, which fails
 * C4's own "use when the page is long" test. Page ships with zero JavaScript.
 * theme: custom · vibe: "dusty pink, terracotta, unhurried, warm"
 * paper: oklch(96.5% 0.010 40) · accent: oklch(45% 0.125 45)
 * display: Newsreader 200 · body: Geist · axes: light / roman-serif / warm
 * enrichment: none — client-supplied photography · studied: no · context: inferred
 * contrast: pass (40-41) · nav: N6 · footer: Ft6 · 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)
 */

/* ---------------------------------------------------------------------- *
 * Base
 * ---------------------------------------------------------------------- */

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

html,
body {
  /* clip, never hidden — preserves position: sticky on descendants */
  overflow-x: clip;
}

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

body {
  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;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 200;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  /* long Finnish compounds must break rather than push the layout */
  overflow-wrap: anywhere;
  min-width: 0;
}

p {
  margin: 0;
}

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

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

@media (hover: hover) and (pointer: fine) {
  a:hover {
    color: var(--color-ink);
    text-decoration-thickness: 2px;
  }
}

/* Focus rings are instant — never transitioned into existence. */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

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

.muted {
  color: var(--color-muted);
}

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

.skip-link {
  position: absolute;
  inset-inline-start: var(--space-md);
  inset-block-start: -100%;
  z-index: var(--z-sticky);
  background: var(--color-ink);
  color: var(--color-paper);
  padding: var(--space-xs) var(--space-md);
  text-decoration: none;
}

.skip-link:focus-visible {
  inset-block-start: var(--space-md);
}

/* ---------------------------------------------------------------------- *
 * N6 · Newspaper masthead
 * ---------------------------------------------------------------------- */

.mast {
  display: grid;
  justify-items: center;
  gap: var(--space-sm);
  padding-block: var(--space-lg) 0;
  text-align: center;
}

.mast__wordmark {
  display: block;
  line-height: 0;
}

.mast__wordmark img {
  width: clamp(11rem, 26vw, 15.5rem);
  height: auto;
}

.mast__line {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0;
}

.mast__line span + span::before {
  content: " · ";
}

/* On phones the line splits cleanly in two rather than stranding the middot
   at the end of the first line. */
@media (max-width: 30rem) {
  .mast__line span {
    display: block;
  }

  .mast__line span + span::before {
    content: none;
  }
}

.mast__nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  /* tight row gap so a wrapped nav still reads as one block, not two rows */
  gap: var(--space-xs) var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.mast__nav a {
  /* clickable text never wraps to two lines */
  white-space: nowrap;
  display: inline-block;
  padding-block: var(--space-2xs);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-2);
  text-decoration: none;
  border-bottom: var(--rule-hair) solid transparent;
  transition: border-color var(--dur-micro) var(--ease-out),
    color var(--dur-micro) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .mast__nav a:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
  }
}

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

/* ---------------------------------------------------------------------- *
 * H1 · Marquee fold — left-biased, bottom-anchored, no CTA in view
 * ---------------------------------------------------------------------- */

.marquee {
  /* Air above the statement is tuned with padding, not reserved with a tall
     min-height — a bottom-pinned line inside 64dvh leaves a void, not air.
     At 320x568 the whole fold (masthead, statement, rule) still clears. */
  min-height: min(40dvh, 24rem);
  display: grid;
  align-content: end;
  /* bottom-weighted: the fold pulls into the photograph's rhythm, not away */
  padding-block: var(--space-xl) var(--space-3xl);
}

.marquee__title {
  font-size: var(--text-display);
  font-weight: 200;
  line-height: 1.02;
  /* left-bias: the line stops short of the right edge on wide viewports */
  max-width: 15ch;
  margin-inline-end: auto;
}

.marquee__rule {
  border: 0;
  border-top: var(--rule-thick) solid var(--color-ink);
  margin: var(--space-xl) 0 0;
}

/* ---------------------------------------------------------------------- *
 * Photograph band — the hard change between fold and below-fold
 * ---------------------------------------------------------------------- */

.plate {
  position: relative;
  margin: 0;
}

.plate img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 62%;
}

.plate figcaption {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-scrim);
  color: var(--color-paper);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (min-width: 40rem) {
  .plate img {
    aspect-ratio: 21 / 9;
  }

  .plate figcaption {
    inset-block-end: var(--space-lg);
    inset-inline-start: var(--page-gutter);
  }
}

/* ---------------------------------------------------------------------- *
 * S2 · Hanging section heads
 * ---------------------------------------------------------------------- */

.head {
  display: grid;
  gap: var(--space-xs);
  padding-block: var(--space-3xl) var(--space-lg);
}

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

.head p {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* ---------------------------------------------------------------------- *
 * Intro
 * ---------------------------------------------------------------------- */

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

.intro p {
  font-size: var(--text-md);
  line-height: 1.55;
  color: var(--color-ink-2);
  max-width: var(--measure);
}

.intro p + p {
  margin-block-start: var(--space-md);
}

/* ---------------------------------------------------------------------- *
 * F3 · Tabular spec sheet — the hinnasto
 * ---------------------------------------------------------------------- */

.prices {
  padding-block-end: var(--space-3xl);
}

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

.prices caption {
  text-align: start;
  font-size: var(--text-sm);
  color: var(--color-muted);
  padding-block-end: var(--space-md);
}

.prices th,
.prices td {
  text-align: start;
  padding-block: var(--space-md);
  border-block-end: var(--rule-hair) solid var(--color-rule-2);
  vertical-align: baseline;
}

.prices thead th {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  border-block-end-color: var(--color-rule);
  padding-block: var(--space-xs);
}

.prices tbody th {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--text-md);
  letter-spacing: -0.01em;
  padding-inline-end: var(--space-md);
}

/* Column sizing is scoped to tbody — unscoped, `.prices .col-fee` (0,2,0)
   out-specifies `.prices thead th` (0,1,2) and leaks body type into the
   header row. */
.prices .col-time {
  width: 7rem;
  /* right-aligned so duration and fee read as one tidy numeric block */
  text-align: end;
  padding-inline-end: var(--space-lg);
}

.prices .col-fee {
  width: 5rem;
  text-align: end;
}

.prices tbody .col-time {
  color: var(--color-muted);
  font-size: var(--text-sm);
  white-space: nowrap;
}

.prices tbody .col-fee {
  font-size: var(--text-md);
  white-space: nowrap;
}

.prices tbody tr:last-child th,
.prices tbody tr:last-child td {
  border-block-end-color: var(--color-rule);
}

.prices .note {
  margin-block-start: var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* ---------------------------------------------------------------------- *
 * Booking — on the blush surface
 * ---------------------------------------------------------------------- */

.booking {
  background: var(--color-paper-2);
  padding-block-end: var(--space-3xl);
}

.booking__grid {
  display: grid;
  gap: var(--space-xl);
  align-items: start;
}

@media (min-width: 60rem) {
  /* asymmetric on purpose — details lead, action sits in the narrower column */
  .booking__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: var(--space-3xl);
  }
}

.details {
  display: grid;
  gap: 0;
  margin: 0;
}

.details > div {
  display: grid;
  gap: var(--space-3xs);
  padding-block: var(--space-md);
  border-block-start: var(--rule-hair) solid var(--color-paper-3);
}

.details > div:last-child {
  border-block-end: var(--rule-hair) solid var(--color-paper-3);
}

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

.details dd {
  margin: 0;
  font-size: var(--text-md);
  overflow-wrap: anywhere;
}

/* These two are real actions on a phone — give them a real tap target. */
.details dd a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.action {
  display: grid;
  gap: var(--space-md);
  justify-items: start;
}

.action p {
  font-size: var(--text-sm);
  color: var(--color-ink-2);
}

/* C1-flavoured primary — small filled slab, the only accent fill on the page */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  min-height: 48px;
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  border: 0;
  border-radius: var(--radius-sm);
  transition: transform var(--dur-micro) var(--ease-out),
    background-color var(--dur-short) var(--ease-out),
    color var(--dur-short) var(--ease-out);
}

/* One hover signal, not four: the fill swaps. The press carries the movement. */
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    background: var(--color-ink);
    color: var(--color-paper);
  }
}

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

.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------------------------------------------------------------------- *
 * Ft6 · Letter close
 * ---------------------------------------------------------------------- */

.close {
  max-width: 60ch;
  padding-block: var(--space-3xl) var(--space-2xl);
}

.close__line {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: var(--text-xl);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.close__sign {
  display: block;
  margin-block-start: var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--color-ink);
}

.close__ps {
  margin-block-start: var(--space-lg);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.colophon {
  border-block-start: var(--rule-hair) solid var(--color-rule);
  padding-block: var(--space-lg) var(--space-2xl);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--color-muted);
}

/* ---------------------------------------------------------------------- *
 * One orchestrated entrance — the fold only. Nothing else animates in.
 * ---------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: reveal var(--dur-long) var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}

@keyframes reveal {
  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 {
    transform: none;
    animation-delay: 0ms;
  }

  .btn:active {
    transform: none;
  }
}
