/* Outside (owner: exterior): the greeting in the sky over the house, and the "Go inside" button.
   Loaded after house.css. Scope new rules to .hello (the header) so they cannot reach other rooms. */
.hello { position: relative; z-index: 3; height: 0; }
.hello__inner { position: fixed; left: clamp(20px, 5vw, 72px); top: clamp(22px, 7vh, 80px); max-width: 46rem; transition: opacity .4s ease; }
/* Drawn like the house, with no scrim over the sky: the name in near-white with a thin dark outline and a hard dark
   shadow, so every glyph carries its own contrast over sky, cloud and leaves alike; the line under it on a solid dark
   label (it wraps line by line: the intro is a span). The house's greys: --surface for the outline, shadow and label
   (the boxes' and the hint pill's grey), --ink-hi and --ink for the words (contrast in NOTES.md, Style) */
.hello h1 { margin: 0; font-weight: 600; font-size: clamp(2.6rem, 5.4vw, 5.2rem); line-height: 1.02; letter-spacing: -.005em; color: var(--ink-hi);
  -webkit-text-stroke: .085em var(--surface); paint-order: stroke fill; text-shadow: .05em .07em 0 var(--surface); }
.hello__intro { margin: .85rem 0 0; font-size: clamp(1.05rem, 1.6vw, 1.5rem); line-height: 1.75; color: var(--ink); max-width: 38rem; }
.hello__intro span { background: var(--surface); padding: .18em .5em; -webkit-box-decoration-break: clone; box-decoration-break: clone; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--edge); }
.hello__hint { margin: 1.3rem 0 0; display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .9rem .45rem .7rem; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--edge); font-size: .95rem; color: var(--ink); }
.hello__hint::before { content: ""; width: 12px; height: 19px; border: 2px solid var(--ink-2); border-radius: 7px; box-shadow: inset 0 5px 0 -3px var(--ink-2); }
/* the beat before the auto-advance: "Heading inside" and a line that fills while it waits */
.hint__going { display: none; align-items: center; gap: .65rem; }
.hint__going i { position: relative; display: block; width: 64px; height: 3px; border-radius: 2px; overflow: hidden; background: rgb(255 255 255 / .22); }
.hint__going i::after { content: ""; position: absolute; inset: 0; background: var(--ink-hi); transform: scaleX(0); transform-origin: left; }
.is-arming .hint__scroll, .is-entering .hint__scroll { display: none; }
.is-arming .hint__going, .is-entering .hint__going { display: inline-flex; }
.is-arming .hello__hint::before, .is-entering .hello__hint::before { display: none; }
.is-arming .hint__going i::after { animation: beat var(--beat, 1.5s) linear forwards; }
.is-entering .hint__going i::after { transform: none; }
@keyframes beat { to { transform: none; } }
/* inside the house the greeting stays in the document, only quiet */
.hello__inner.is-away { pointer-events: none; }
.go-inside { display: none; margin-top: 1.4rem; padding: .7rem 1.3rem; min-height: 44px; border: 0; border-radius: 999px; background: var(--ink-hi); color: var(--on-hi); font-weight: 600; font-size: 1.02rem; cursor: pointer; }
.go-inside:hover { background: #fff; }

/* phones */
@media (max-aspect-ratio: 4/5), (max-width: 760px) and (min-height: 501px) {
  /* (the control bar docks at the bottom: the greeting has the top and the whole width) */
  .hello__inner { left: 20px; right: 20px; top: calc(36px + env(safe-area-inset-top)); }
  .hello h1 { font-size: 2.15rem; -webkit-text-stroke-width: .1em; }
  .hello__intro { font-size: 1rem; }
}
/* phones on their side: a little smaller; the outline and the label carry it over the treetops */
@media (max-height: 500px) and (min-aspect-ratio: 4/5) {
  .hello__inner { top: calc(16px + env(safe-area-inset-top)); }
  .hello h1 { font-size: 2.4rem; -webkit-text-stroke-width: .1em; }
  /* (the hint beside the subtitle, not under it, so the greeting's block stays in the sky over the treetops and clear of
     the house's roofs on short screens) */
  .hello__intro { display: inline-block; margin-top: .5rem; font-size: 1rem; line-height: 1.6; vertical-align: middle; }
  .hello__hint { margin: .5rem 0 0 .6rem; vertical-align: middle; font-size: .9rem; padding: .35rem .8rem .35rem .6rem; }
}

/* reduced motion and no WebGL: no auto-advance, a "Go inside" button instead of the hint */
.reduced .hello__hint, .no-webgl .hello__hint { display: none; }
.reduced .go-inside, .no-webgl .go-inside { display: inline-flex; align-items: center; }
/* no WebGL: the greeting is a full first screen of the stacked page */
.no-webgl .hello { height: 100vh; height: 100svh; overflow: clip; }
.no-webgl .hello__inner { position: absolute; }
