/* Cascade Park Vista — the window you'll look out of. Shared system only. */

/* Palette, measures and timing from the art direction */
:root {
  --ground: #9BA3A6;   /* overcast loading tone, never a flat area */
  --cream: #F3EDE2;
  --ink: #221A2E;
  --violet: #6A3D9A;   /* one violet thing per screen */
  --moss: #7E8F7B;
  --dusk: #2B1B3D;     /* footer only */
  --edge: 1.25rem;
  --dock-h: 4.25rem;
  --knob: 4.5rem;
  --frame: .375rem;    /* violet inner edge of every arch */
  --sill-r: 2.5rem;
  --drift: cubic-bezier(.45, 0, .55, 1);
  --settle: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 68rem) {
  :root { --edge: 2rem; --dock-h: 4.75rem; --knob: 5.5rem; }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 1.125rem/1.6 Lexend, system-ui, sans-serif;
  padding-bottom: calc(var(--dock-h) + 1rem);
}
@media (min-width: 68rem) { body { font-size: 1.25rem; } }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: 'Krona One', Lexend, sans-serif; font-weight: 400; line-height: 1.25; margin: 0 0 .6em; text-wrap: balance; }
p { margin: 0 0 1em; }
:focus-visible { outline: .1875rem solid var(--violet); outline-offset: .1875rem; border-radius: .25rem; }

/* Type scale: h1 / .t-1 sign-size, h2 / .t-2, h3 / .t-3, .t-lead for the first sentence */
h1, .t-1 { font-size: clamp(1.75rem, 1.1rem + 2.8vw, 3.5rem); }
h2, .t-2 { font-size: clamp(1.4rem, 1rem + 1.6vw, 2.4rem); }
h3, .t-3 { font-size: clamp(1.1rem, .95rem + .6vw, 1.45rem); }
.t-lead { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.5rem); line-height: 1.5; }
.t-small { font-size: 1rem; }

/* Links: violet underline on ink text */
a { color: inherit; text-decoration: underline; text-decoration-color: var(--violet); text-decoration-thickness: .125rem; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .25rem; }

/* Skip link */
.skip { position: absolute; left: var(--edge); top: -10rem; z-index: 100; background: var(--cream); padding: .75rem 1.25rem; border-radius: 999rem; }
.skip:focus { top: 1rem; }

/* Name plate: arched cream plate, top left, scrolls away */
.top { position: relative; z-index: 30; }
.plate {
  position: absolute; top: 1.25rem; left: var(--edge); z-index: 30;
  display: flex; align-items: center; gap: .75rem; max-width: calc(100% - 2 * var(--edge));
  background: var(--cream); color: var(--ink); text-decoration: none;
  padding: 1rem 1.5rem .8rem; border-radius: 2.5rem 2.5rem .5rem .5rem;
}
.plate__mark { width: 2.25rem; height: 2.25rem; flex: none; }
.plate__name { font-family: 'Krona One', sans-serif; font-size: clamp(1.2rem, .6rem + 2.6vw, 3.2rem); line-height: 1.15; }
@media (min-width: 68rem) { .plate { top: 2rem; } .plate__mark { width: 3rem; height: 3rem; } }

/* Docked bottom bar: cream band with arched hump, round violet "Write" knob */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: var(--dock-h);
  background: var(--cream); color: var(--ink);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--edge);
  box-shadow: 0 -.25rem 1.25rem rgba(34, 26, 46, .14);
}
.dock::before {
  content: ""; position: absolute; left: 50%; top: -1.25rem; width: 9rem; height: 2.5rem;
  transform: translateX(-50%); background: var(--cream); border-radius: 999rem 999rem 0 0; z-index: -1;
}
.dock__links { display: none; }
.dock a, .dock button { font: inherit; font-size: 1.125rem; color: var(--ink); }
.dock__more, .dock__visit, .dock__links a {
  min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center;
  padding: .25rem 1rem; border: .125rem solid transparent; border-radius: 999rem;
  background: none; cursor: pointer; text-decoration: none;
}
.dock__more { justify-self: start; border-color: var(--ink); }
.dock__visit { justify-self: end; }
.dock__tel { display: none; }
.dock [aria-current="page"], .dock__more[aria-expanded="true"] { border-color: var(--moss); background: rgba(126, 143, 123, .14); }
.dock a:hover { text-decoration: underline; text-decoration-color: var(--violet); }

/* Round knob button: violet circle, cream label; .knob--cream for dark grounds */
.knob {
  width: var(--knob); height: var(--knob); flex: none; border-radius: 50%;
  display: inline-grid; place-items: center; background: var(--violet); color: var(--cream) !important;
  font: 400 1.125rem/1 Lexend, sans-serif; text-decoration: none;
  box-shadow: 0 .35rem .9rem rgba(34, 26, 46, .28); transition: background .25s var(--settle);
}
.dock .knob { transform: translateY(-.875rem); }
.knob:hover { background: var(--dusk); text-decoration: none; }
.knob--cream { background: var(--cream); color: var(--ink) !important; }
.knob--cream:hover { background: #fff; }

@media (min-width: 68rem) {
  .dock { display: flex; gap: 1rem; }
  .dock::before { left: 46%; width: 12rem; }
  .dock__links { display: flex; flex: 1; justify-content: space-evenly; list-style: none; margin: 0; padding: 0; }
  .dock__more, .dock__visit { display: none; }
  .dock__tel { display: inline-flex; align-items: center; min-height: 2.75rem; }
}

/* More sheet: arched cream sheet opening upward over the dock (phone) */
.sheet {
  position: fixed; left: .625rem; right: .625rem; bottom: calc(var(--dock-h) + .5rem); z-index: 39;
  background: var(--cream); color: var(--ink); border-radius: 50vw 50vw 1.25rem 1.25rem / 9rem 9rem 1.25rem 1.25rem;
  padding: 4.5rem 1.5rem 1.5rem; text-align: center; max-height: calc(100svh - var(--dock-h) - 2rem); overflow: auto;
  box-shadow: 0 -.5rem 2rem rgba(34, 26, 46, .25);
}
.sheet[hidden] { display: none; }
.sheet__lead { font-family: 'Krona One', sans-serif; font-size: 1.1rem; }
.sheet__links { list-style: none; margin: 0 0 1rem; padding: 0; }
.sheet__links a { display: block; padding: .6rem 0; font-size: 1.2rem; text-decoration: none; }
.sheet__links [aria-current="page"] { text-decoration: underline; text-decoration-color: var(--moss); }

/* Stage: one viewport-tall screen with a full-bleed photograph ground. Use .stage > .stage__ground > img, then .stage__grid for panels */
.stage { position: relative; min-height: 100svh; display: grid; align-items: end; padding: 7.5rem var(--edge) 3rem; }
.stage__ground { position: absolute; inset: 0; overflow: hidden; background: var(--ground); z-index: 0; }
.stage__ground img { width: 100%; height: 100%; object-fit: cover; animation: creep 30s var(--drift) infinite alternate; }
.stage__grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 1.25rem; row-gap: 2rem; width: 100%; }
.stage__grid > * { grid-column: 1 / -1; }
@keyframes creep { from { transform: scale(1); } to { transform: scale(1.03); } }

/* Sill: cream type plate, arched top, straight bottom. .sill--right to align right; .sill--long for long text */
.sill {
  position: relative; z-index: 3; background: var(--cream); color: var(--ink);
  border-radius: var(--sill-r) var(--sill-r) .375rem .375rem; padding: 2.5rem 1.5rem 1.75rem;
}
.sill > :last-child { margin-bottom: 0; }
.sill--round { border-radius: 50% 50% .375rem .375rem / 7rem 7rem .375rem .375rem; padding-top: 4.5rem; }
@media (min-width: 60rem) {
  .sill { grid-column: 1 / span 7; padding: 3rem 3rem 2.25rem; }
  .sill--narrow { grid-column: 1 / span 6; }
  .sill--right { grid-column: 6 / span 7; }
  .sill--long { grid-column: 1 / -1; }
}

/* Arch: the recurring window. .arch > img (or .arch__frame stack); .arch--frame adds the cream outer frame */
.arch { position: relative; overflow: hidden; border-radius: 999rem 999rem 0 0; background: var(--ground); isolation: isolate; }
.arch > img, .arch__frame { width: 100%; height: 100%; object-fit: cover; }
.arch::after { content: ""; position: absolute; inset: 0; border: var(--frame) solid var(--violet); border-radius: inherit; pointer-events: none; z-index: 3; }
.arch--frame { border: clamp(.75rem, 1.6vw, 1.5rem) solid var(--cream); border-bottom-width: 0; box-shadow: 0 1rem 2.5rem rgba(34, 26, 46, .22); }
.arch--tall { aspect-ratio: 4 / 5; }
.arch--wide { aspect-ratio: 5 / 4; }
/* Stacked frames inside one arch: .arch__frame on each img; .is-on is the shown one, others hidden */
.arch__frame { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.6s var(--drift), visibility 0s 1.6s; }
.arch__frame.is-on { opacity: 1; visibility: visible; transition: opacity 1.6s var(--drift), visibility 0s; }
.arch__frame:first-child:not(.is-off) { position: relative; }
/* Sill bar under an arch: .arch-sill, slightly wider than the arch */
.arch-sill { height: 1rem; margin: 0 -1rem; background: var(--cream); border-radius: .5rem; box-shadow: 0 .4rem .8rem rgba(34, 26, 46, .2); }

/* Snapshot: arched cut-out photo tucked into a frame. .snap with --tilt (-4deg..4deg); width 18–32vw desktop */
.snap {
  --tilt: 2deg; position: relative; z-index: 1; width: clamp(9rem, 26vw, 26rem);
  background: var(--cream); padding: .5rem .5rem 1.25rem; border-radius: 999rem 999rem .375rem .375rem;
  box-shadow: 0 .75rem 1.75rem rgba(34, 26, 46, .3); transform: rotate(var(--tilt));
  animation: sway 6s var(--drift) infinite alternate; transform-origin: 50% 0;
}
.snap .arch { aspect-ratio: 4 / 5; }
.snap figcaption { font-size: 1rem; line-height: 1.35; padding: .6rem .5rem 0; }
@keyframes sway { from { transform: rotate(calc(var(--tilt) - .25deg)); } to { transform: rotate(calc(var(--tilt) + .25deg)); } }
@media (max-width: 59.99rem) {
  .snap { width: min(70%, 18rem); --tilt: 1.5deg; margin: 1.5rem 0 1.5rem auto; }
  .snap:nth-of-type(even) { --tilt: -1.5deg; margin-left: 0; margin-right: auto; }
}
/* Tape strip holding a snapshot: .tape inside .snap (.tape--left for the other corner) */
.tape { position: absolute; top: -.5rem; right: 1.25rem; width: 4rem; height: 1.125rem; background: var(--violet); opacity: .9; transform: rotate(30deg); border-radius: .125rem; z-index: 4; }
.tape--left { right: auto; left: 1.25rem; transform: rotate(-30deg); }
/* Round moss sticker: label circle, .sticker (link or span) */
.sticker {
  display: inline-grid; place-items: center; text-align: center; width: 7.5rem; height: 7.5rem; padding: .75rem;
  border-radius: 50%; background: var(--moss); color: var(--ink); font-size: 1rem; line-height: 1.2; text-decoration: none;
  box-shadow: 0 .3rem .8rem rgba(34, 26, 46, .25);
}
.sticker.is-on, a.sticker:hover { outline: .1875rem solid var(--ink); outline-offset: .25rem; }

/* Figure and caption: picture with a small cream caption card below. .figure > .arch + figcaption.caption */
.figure { margin: 0; }
.caption { display: inline-block; margin-top: .75rem; background: var(--cream); color: var(--ink); padding: .5rem 1rem; border-radius: 1rem 1rem .25rem .25rem; font-size: 1rem; }

/* Page opening: inner page first screen — .opening (a .stage) with .opening__arch beside a .sill */
.opening { align-items: center; }
.opening__arch { max-width: 34rem; width: 100%; justify-self: center; }
.opening__arch .arch { aspect-ratio: 4 / 5; max-height: 62svh; margin-inline: auto; }
@media (min-width: 60rem) {
  .opening .stage__grid { align-items: end; }
  .opening__arch { grid-column: 8 / -1; }
}

/* Spec list on a sill: dl.specs with dt/dd pairs */
.specs { margin: 0; display: grid; gap: .9rem; }
.specs div { display: grid; gap: .1rem; }
.specs dt { font-family: 'Krona One', sans-serif; font-size: .95rem; }
.specs dd { margin: 0; }

/* Rule: a short rounded moss stroke between thoughts, never a hairline. hr.rule */
.rule { border: 0; width: 5rem; height: .3rem; background: var(--moss); border-radius: 999rem; margin: 1.75rem 0; }

/* Buttons: .btn pill (cream), .btn--violet for the screen's one violet thing */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem;
  padding: .6rem 1.6rem; border-radius: 999rem; border: .125rem solid var(--ink);
  background: var(--cream); color: var(--ink); font: inherit; font-size: 1.125rem; text-decoration: none; cursor: pointer;
  transition: background .25s var(--settle);
}
.btn:hover { background: #fff; text-decoration: none; }
.btn--violet { background: var(--violet); border-color: var(--violet); color: var(--cream); }
.btn--violet:hover { background: var(--dusk); }

/* Reveal-on-scroll for PICTURES only: .reveal fades in; type never waits */
.js .reveal { opacity: 0; transition: opacity 1.2s var(--drift); }
.js .reveal.is-seen { opacity: 1; }

/* Footer: deep-violet field, invitation, marquee of the name, centred stack */
.foot { position: relative; background: var(--dusk); color: var(--cream); min-height: 60vh; padding: 4rem var(--edge) calc(var(--dock-h) + 2.5rem); overflow: hidden; }
.foot a { color: var(--cream); text-decoration-color: var(--cream); }
.foot__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem 2.5rem; max-width: 56rem; margin: 0 auto; text-align: center; }
.foot__invite { font-size: 1.375rem; line-height: 1.5; margin: 0; flex: 1 1 22rem; }
.marquee { margin: 3rem calc(-1 * var(--edge)); white-space: nowrap; overflow: hidden; }
.marquee__track { display: inline-flex; animation: marquee 140s linear infinite; }
.marquee span { font-family: 'Krona One', sans-serif; font-size: 14vw; line-height: 1.1; padding-right: .3em; }
@keyframes marquee { to { transform: translateX(-50%); } }
.foot__stack { text-align: center; font-size: 1rem; }
.foot__stack p { margin: 0 0 .35rem; }
.foot__stack strong { font-weight: 400; }
.foot address { font-style: normal; margin-top: 1rem; }
.foot__hours { max-width: 32rem; margin: 1rem auto 0 !important; opacity: .9; }
.foot__nav { margin-top: 2.5rem; text-align: center; font-size: 1rem; }
.foot__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.25rem; }
.foot__nav a, .foot__nav button { display: inline-flex; align-items: center; min-height: 2.75rem; }
.foot__nav button { background: none; border: .125rem solid var(--cream); color: var(--cream); border-radius: 999rem; padding: .25rem 1rem; font: inherit; cursor: pointer; }
.foot__year { margin-top: 1rem; opacity: .85; }

/* Consent banner: cream sill above the dock, bottom left, never blocks the page */
#consent {
  position: fixed; left: .625rem; bottom: calc(var(--dock-h) + 1.75rem); z-index: 45;
  width: min(30rem, calc(100% - 1.25rem)); background: var(--cream); color: var(--ink);
  border-radius: 2rem 2rem .375rem .375rem; padding: 1.5rem 1.5rem 1.25rem; font-size: 1rem;
  box-shadow: 0 .75rem 2rem rgba(34, 26, 46, .3);
}
#consent[hidden] { display: none; }
.consent__buttons { display: flex; gap: .75rem; }
.consent__buttons button { flex: 1; min-height: 2.75rem; border-radius: 999rem; border: .125rem solid var(--ink); background: var(--cream); color: var(--ink); font: inherit; cursor: pointer; }
.consent__buttons button:hover { background: #fff; }

/* Offer slip (only when site.promo): violet ticket that drops from the top right */
#promo {
  position: fixed; top: .75rem; right: .75rem; z-index: 35; width: min(24rem, calc(100% - 1.5rem));
  display: flex; gap: .75rem; align-items: start; background: var(--violet); color: var(--cream);
  padding: 1rem 1rem 1rem 1.25rem; border-radius: 1.5rem 1.5rem .375rem .375rem; font-size: 1rem;
  transform: translateY(-130%); opacity: 0; transition: transform 1.1s var(--settle), opacity 1.1s var(--settle);
}
#promo.is-in { transform: none; opacity: 1; }
#promo p { margin: 0; }
#promo a { color: var(--cream); text-decoration-color: var(--cream); }
#promo button { flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: .125rem solid var(--cream); background: none; color: var(--cream); font: inherit; cursor: pointer; }

/* Reduced motion: all drift stops */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; }
  #promo { transform: none; }
}

/* A page never scrolls sideways. */
html, body { overflow-x: clip; }
/* Past a full-HD window the whole page grows with the window - type, gaps and pictures
   together - so a very wide screen (or a page zoomed far out) shows the same composition,
   not a small column of text lost in an enormous picture. */
@media (min-width: 1921px) { html { font-size: calc(100vw / 120); } }
/* What can be pressed in the chrome lies above the page: a huge headline's line box reaching
   into the navigation must not swallow the clicks meant for the links. */
header a, header button, nav a, nav button { position: relative; z-index: 2; }
