/* Guroo homepage: tokens, type, navigation, buttons and the hero copy.
   The painted scene has its own sheet, hero_scene.css. */
@font-face { font-family: 'Gloock'; src: url('../fonts/gloock-latin.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geist Sans'; src: url('../fonts/geist-sans-variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --sky: #1d55b4;
  --sky-deep: #123d8c;
  --night: #141a46;
  --awning: #cf3c29;
  --awning-deep: #c4351f;
  --ink: #2b1a0c;
  --ink-soft: #5a4532;
  --paper: #f8eedd;
  --paper-warm: #ead9bd;
  --lamp: #ffd08a;
  --white: #fffaf1;
  --serif: 'Gloock', Georgia, serif;
  --sans: 'Geist Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --frame: 1480px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  /* Small white text sits on a sky stippled with white, so it carries a soft shadow of the sky's own blue. */
  --on-sky: 0 1px 3px rgb(12 44 112 / .6);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.012em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
::selection { background: var(--awning); color: var(--white); }
:focus-visible { outline: 3px solid var(--ink); box-shadow: 0 0 0 3px var(--white) !important; outline-offset: 3px; border-radius: 6px; }
input { caret-color: var(--awning); }

/* ---------- navigation over the painting ---------- */
.site-nav { position: absolute; left: 0; right: 0; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 78px; max-width: var(--frame); margin-inline: auto; padding: 18px var(--gutter); color: var(--white); }
.wordmark { font: 400 1.75rem/1 var(--serif); letter-spacing: -.015em; text-decoration: none; }
/* Extend the nav hit areas without moving the painted composition. */
.site-nav a { position: relative; }
.site-nav a::before { content: ''; position: absolute; inset: 50% 0 auto; height: 44px; translate: 0 -50%; }
@media (max-width: 760px) { .site-nav .site-nav__booking { display: none; } }

/* ---------- buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 26px; border: 0; border-radius: 999px; font: 500 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: transform .16s var(--ease-out), background-color .16s ease, box-shadow .2s ease; }
.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease-out); }
.button:active { transform: scale(.97); }
/* The main button is the awning's red, flat like the paint, with one soft shadow under it. */
.button--primary { background: var(--awning); color: var(--white); box-shadow: 0 14px 22px -14px rgb(8 24 70 / .85); }
.button--light { background: var(--white); color: var(--ink); }
.button--small { min-height: 42px; padding: 9px 18px; font-size: .92rem; }
@media (hover: hover) and (pointer: fine) {
  .button--primary:hover { background: var(--awning-deep); box-shadow: 0 18px 26px -14px rgb(8 24 70 / .9); }
  .button:hover svg { transform: translateX(3px); }
  .button--light:hover { background: #fff; }
}

/* ---------- hero copy in the sky ----------
   Wide screens: the shop holds the right half of the painting, so the copy sits in the open sky on the left.
   Tall screens: the shop sits at the bottom, so the copy is centered in the sky above it. */
.hero { --hero-height: clamp(620px, 100svh, 1400px); position: relative; isolation: isolate; height: var(--hero-height); overflow: clip; background: var(--sky); color: var(--white); }
.hero__copy { position: relative; z-index: 3; max-width: var(--frame); margin: 0 auto; padding: clamp(92px, 13vh, 164px) var(--gutter) 0; }
.hero h1 { max-width: 19ch; font-size: clamp(2.5rem, min(4.7vw, 7.4vh), 4.9rem); line-height: 1.02; }
.hero__lede { max-width: 34ch; margin-top: 18px; font-size: clamp(1.1rem, 1.5vw, 1.36rem); line-height: 1.4; text-shadow: var(--on-sky); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 26px; }
/* The proof is a register receipt: paper, a dotted leader between the name and the amount, and a torn lower edge.
   The shadow sits on the link because a mask would cut it off the paper. */
.receipt { overflow: hidden; display: block; width: fit-content; margin-top: 24px; color: var(--ink); text-decoration: none; rotate: -1.3deg; filter: drop-shadow(0 9px 9px rgb(8 24 70 / .4)); transition: rotate .3s var(--ease-out), translate .3s var(--ease-out); }
.receipt__paper { --tooth: 6px; display: grid; justify-items: start; gap: 2px; padding: 10px 16px calc(11px + var(--tooth)); background: var(--paper); font-size: .88rem; line-height: 1.4; font-variant-numeric: tabular-nums;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth)) no-repeat, conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / calc(var(--tooth) * 2) var(--tooth) repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth)) no-repeat, conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / calc(var(--tooth) * 2) var(--tooth) repeat-x; }
.receipt__source { font-size: .86em; }
.receipt strong { font-weight: 650; }
@media (hover: hover) and (pointer: fine) { .receipt:hover { rotate: 0deg; translate: 0 -2px; } }

@media (orientation: portrait) {
  .hero { --hero-height: clamp(680px, 100svh, 1500px); }
  .hero__copy { padding-top: clamp(88px, 12svh, 150px); text-align: center; }
  .hero h1 { max-width: 13ch; margin-inline: auto; font-size: clamp(2.15rem, 9.6vw, 3.7rem); }
  .hero__lede { max-width: 30ch; margin-inline: auto; margin-top: 16px; text-shadow: var(--on-sky), 0 0 1px rgb(12 44 112 / .12); }
  .hero__actions { justify-content: center; margin-top: 24px; }
  .receipt { margin-inline: auto; margin-top: 22px; }
}
@media (width < 768px) {
  .hero:has(.scene-time[aria-pressed='false']) .hero__lede {
    text-shadow: 0 1px 4px rgb(8 35 90 / .82), 0 0 2px rgb(12 44 112 / .3);
  }
}

/* Arrival: the headline is on screen from the first frame. The rest follows inside half a second and is never blurred,
   so the button can be read the moment it shows. The painting never waits for any of it. */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .5s var(--ease-out) both; }
  .rise:nth-child(3) { animation-delay: 70ms; }
  .rise:nth-child(4) { animation-delay: 140ms; }
}
@keyframes rise { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }

/* The receipt feeds out of the register in short steps, the way a thermal printer does. */
@media (prefers-reduced-motion: no-preference) {
  .receipt__paper { animation: receipt-print .75s steps(10, end) .3s both; }
}
@keyframes receipt-print { from { transform: translateY(-102%); } to { transform: none; } }

/* The painting is a sheet lying on the page: its lower edge is torn, and the paper below shows through the tear. */
.hero__edge { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 4; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='18' viewBox='0 0 640 18'%3E%3Cpolygon fill='%23f8eedd' points='0,18 0.0,7.4 4.0,6.6 8.0,8.8 12.0,6.2 16.0,8.3 20.0,5.9 24.0,7.5 28.0,6.1 32.0,6.0 36.0,7.0 40.0,4.1 44.0,3.9 48.0,6.1 52.0,4.5 56.0,3.0 60.0,5.4 64.0,5.0 68.0,2.4 72.0,3.2 76.0,2.3 80.0,2.9 84.0,3.9 88.0,2.7 92.0,4.5 96.0,2.9 100.0,3.6 104.0,5.9 108.0,5.1 112.0,5.6 116.0,6.6 120.0,6.7 124.0,6.9 128.0,6.3 132.0,8.8 136.0,9.9 140.0,10.3 144.0,9.6 148.0,9.0 152.0,9.2 156.0,10.3 160.0,10.4 164.0,8.8 168.0,9.2 172.0,9.6 176.0,10.0 180.0,10.8 184.0,9.8 188.0,8.3 192.0,10.6 196.0,9.4 200.0,9.6 204.0,8.6 208.0,9.2 212.0,9.1 216.0,10.2 220.0,8.2 224.0,9.5 228.0,8.4 232.0,9.9 236.0,7.9 240.0,8.5 244.0,8.7 248.0,9.4 252.0,7.5 256.0,8.5 260.0,7.6 264.0,7.5 268.0,7.8 272.0,8.9 276.0,7.0 280.0,8.0 284.0,5.2 288.0,7.0 292.0,4.8 296.0,3.8 300.0,5.0 304.0,5.1 308.0,2.0 312.0,2.4 316.0,3.6 320.0,2.1 324.0,1.6 328.0,1.2 332.0,1.2 336.0,2.7 340.0,4.0 344.0,4.2 348.0,3.0 352.0,1.9 356.0,3.2 360.0,5.0 364.0,5.6 368.0,5.6 372.0,4.8 376.0,6.2 380.0,6.5 384.0,7.4 388.0,6.7 392.0,9.1 396.0,9.3 400.0,7.4 404.0,8.0 408.0,9.8 412.0,8.1 416.0,10.2 420.0,8.9 424.0,9.4 428.0,9.3 432.0,7.7 436.0,7.8 440.0,7.6 444.0,8.8 448.0,8.7 452.0,6.9 456.0,9.0 460.0,7.6 464.0,7.0 468.0,7.6 472.0,9.2 476.0,8.0 480.0,8.3 484.0,9.3 488.0,9.5 492.0,9.0 496.0,8.1 500.0,8.7 504.0,9.8 508.0,9.5 512.0,9.0 516.0,8.3 520.0,8.3 524.0,9.4 528.0,8.8 532.0,7.0 536.0,9.0 540.0,9.4 544.0,8.8 548.0,8.9 552.0,8.7 556.0,7.3 560.0,7.9 564.0,6.4 568.0,5.4 572.0,6.0 576.0,5.7 580.0,7.4 584.0,6.6 588.0,6.2 592.0,6.4 596.0,5.0 600.0,6.3 604.0,6.9 608.0,6.2 612.0,5.9 616.0,6.6 620.0,6.5 624.0,7.8 628.0,6.3 632.0,6.3 636.0,7.0 640,7.4 640,18'/%3E%3C/svg%3E") repeat-x left bottom / 640px 18px; pointer-events: none; }

/* Time and motion share the same controls and the hero copy's frame. */
.scene-controls { position: absolute; inset-inline: 0; bottom: 34px; z-index: 5; display: flex; gap: 8px; max-width: var(--frame); margin-inline: auto; padding-inline: var(--gutter); pointer-events: none; }
.scene-controls[hidden], .hero:not(:has(.scene-stage.is-alive)) .scene-controls { display: none; }
.scene-control { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 250 241 / .16); color: var(--white); cursor: pointer; box-shadow: inset 0 0 0 1.5px rgb(255 250 241 / .5); transition: background-color .2s ease, transform .16s var(--ease-out); pointer-events: auto; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.scene-control svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.scene-time svg { transition: transform .6s var(--ease-out); }
.scene-time[aria-pressed='true'] svg { transform: rotate(90deg); }
.scene-time[aria-pressed='true'] svg circle { fill: currentColor; }
.scene-control:active:not(:disabled) { transform: scale(.94); }
.scene-control:disabled { cursor: default; opacity: .65; }
@media (hover: hover) and (pointer: fine) { .scene-control:hover:not(:disabled) { background: rgb(255 250 241 / .28); } }
.scene-control[hidden], .hero[data-scene-paused] .scene-motion__pause, .hero:not([data-scene-paused]) .scene-motion__play { display: none; }
/* Keep the original painting and its fixed details visible while hiding motion layers. */
.hero[data-scene-paused] :is(.scene-canvas, .scene-gulls, .scene-leaves, .scene-wind-debug, .scene-doorway, .scene-door-light, .scene-door-glow, .scene-sign__tint) { visibility: hidden !important; }
.hero[data-scene-paused] :is(.scene-boat, .scene-sign, .scene-sign__swing) { transform: none !important; filter: none; }
.hero[data-scene-paused] :is(.scene, .rise) { animation: none; }
.hero[data-scene-paused] .receipt__paper { animation: none; visibility: visible; transform: none; }

/* Motion preferences also apply to interactive transitions outside the painted scene. */
@media (prefers-reduced-motion: reduce) {
  .scene-controls { display: none; }
  .button, .button svg, .receipt, main *, main *::before, main *::after, main *::details-content, footer * { animation: none !important; transition: none !important; }
  main .is-waiting { opacity: 1; transform: none; }
}
