.welcome {
  width: min(100%,520px);
  height: 100vh;
  height: 100dvh;
  margin: auto;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(165deg, #393939 10%, #777777 46%, #949494 63%, #363636 90%);
  color: #fff;
  text-align: center;
}
.welcome-artwork, .welcome-photo, .welcome::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.welcome-artwork { z-index: -2; overflow: hidden; animation: welcome-photo-appear .68s cubic-bezier(.22,.7,.25,1) both; }
.welcome-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 44%; }
@keyframes welcome-photo-appear {
  from { opacity: 0; filter: blur(2px); transform: scale(1.035); }
  to { opacity: 1; filter: none; transform: none; }
}
@keyframes welcome-copy-appear { from { opacity: .35; filter: blur(1px); } to { opacity: 1; filter: none; } }
.welcome::after {
  content: '';
  z-index: -1;
  background: linear-gradient(180deg, #1116, transparent 27%, transparent 44%, #1119 72%, #111c);
}
.welcome-layout {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  padding: max(28px, calc(env(safe-area-inset-top) + 18px)) max(18px,env(safe-area-inset-right)) max(44px, calc(env(safe-area-inset-bottom) + 28px)) max(18px,env(safe-area-inset-left));
  animation: welcome-copy-appear .45s ease-out both;
}
.welcome-brand {
  display: inline-flex; gap: 7px; align-items: center; flex: none;
  min-height: 20px; font-size: 15px; line-height: 1;
  letter-spacing: .035em; font-weight: 600;
  text-shadow: 0 1px 5px #0007;
}
.welcome-brand .city-mark { width: 14px; height: 17px; }
.welcome-intro { width: 100%; margin-top: auto; padding-top: 40px; }
#welcome-title {
  margin: 0;
  font-size: clamp(29px, 7.3vw, 36px);
  line-height: 1.07; letter-spacing: -.045em; font-weight: 650;
  color: #fff; text-wrap: balance; text-shadow: 0 1px 7px #0005;
}
#welcome-title:focus { outline: none; }
.welcome-weather {
  min-height: 50px; margin: 13px 0 19px;
  line-height: 1.4; font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 5px #0009;
}
.welcome-now { margin: 0; font-size: 16px; font-weight: 550; color: #fff; }
.welcome-details { margin: 3px 0 0; font-size: 12px; color: #f3f3f3; }
.welcome-enter {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; padding: 0; border: 0;
  background: transparent; appearance: none; cursor: pointer; touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.welcome-enter:focus-visible { outline: 2px solid white; outline-offset: -5px; }
.welcome.welcome-leaving {
  position: fixed; inset: 0; z-index: 20; margin: auto;
  animation: welcome-blur-out .4s ease-in-out both;
}
#app.reader-entering { animation: reader-blur-in .4s ease-out both; }
@keyframes welcome-blur-out {
  from { opacity: 1; filter: blur(0); }
  to { opacity: 0; filter: blur(8px); }
}
@keyframes reader-blur-in {
  from { opacity: .35; filter: blur(6px); }
  to { opacity: 1; filter: none; }
}
#header { grid-area: 1 / 1; }
.reader-weather {
  display: none; position: relative; grid-area: 1 / 1; justify-self: start; z-index: 4;
  inset-inline-start: max(9px, env(safe-area-inset-left)); align-self: center;
  margin-block-start: env(safe-area-inset-top); max-width: 56px; min-height: 36px;
  grid-template-columns: auto auto; justify-content: start; align-content: center;
  align-items: center; column-gap: 3px; white-space: nowrap;
  color: var(--ink); font-size: 13px; font-variant-numeric: tabular-nums;
}
.app-header:has(.city-mark) + .reader-weather:not([hidden]) { display: grid; }
.reader-weather:hover { text-decoration: none; }
.reader-weather-symbol { display: flex; color: var(--accent); }
.reader-weather-symbol svg { width: 15px; height: 15px; }
.reader-weather small { grid-column: 1 / -1; color: var(--muted); font-size: 10px; line-height: 1; }
.reader-weather small:empty { display: none; }
@media (prefers-reduced-motion: reduce) {
  .welcome-artwork, .welcome-layout, .welcome.welcome-leaving, #app.reader-entering { animation: none; }
}
@media (max-height: 500px) {
  .welcome-layout { padding-top: max(12px,env(safe-area-inset-top)); padding-bottom: max(14px,env(safe-area-inset-bottom)); }
  .welcome-intro { padding-top: 14px; }
  #welcome-title { font-size: 26px; }
  .welcome-weather { min-height: 0; margin: 8px 0 12px; }
}

