/* Portfolio foundation. */
:root {
  --gentle-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --interface-font-size: 13px;
  --foreground: #202428;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  font-family: Arial, sans-serif;
}
body {
  overflow: hidden;
}
/* Let the sky paint through the larger viewport behind browser controls.
   Fixed UI stays attached to the visible viewport, independent of the page. */
html:has(body.homepage) {
  overflow-x: clip;
  overflow-y: visible;
  overscroll-behavior: none;
}
html body.homepage {
  position: relative;
  inset: 0;
  height: 100%;
  height: 100dvh;
  min-height: 0;
  contain: none;
  overflow: visible;
  overscroll-behavior: none;
}
/* These containers have no visual surface on the homepage. An empty fixed
   box can still make Safari extend a solid toolbar backdrop over the sky. */
html body.homepage #sky-hud,
html body.homepage #place-picker {
  display: contents !important;
}
/* Safari needs real paintable content above and below its visible viewport.
   Only the background receives this reserve; fixed controls retain their
   safe-area positions. The page is a sky surface, not a scrolling article. */
html[data-sky-reserve] body.homepage .lake {
  top: 0;
  min-height: calc(100lvh + var(--sky-reserve) * 2);
}
html[data-sky-reserve] { scrollbar-width: none; }
html[data-sky-reserve]::-webkit-scrollbar { display: none; }
button,
input,
select {
  font: inherit;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
summary {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: none;
  background: #80808020;
}
button:disabled {
  opacity: 0.4;
}
button svg {
  flex: none;
}
h1,
h2,
p {
  margin: 0;
}
summary {
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
.lake {
  position: fixed;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  /* The sky is a gesture surface, not selectable page content. Keep this
     scoped here so reading panels and their links retain native selection. */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.lake canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y;
}
html body.homepage .lake {
  position: absolute;
  bottom: auto;
  height: 100%;
  min-height: 100lvh;
}
/* The full-screen sky owns cloud movement on both axes; reading panels keep
   native scrolling, and browser pinch zoom remains available. */
.lake #water {
  touch-action: pinch-zoom;
}
.lake .interface {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.interface button,
.interface input {
  pointer-events: auto;
}
.time-control {
  display: flex;
  align-items: center;
  justify-content: center;
}
.time-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  min-height: 44px;
}
.time-label,
.time-label-value {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.time-meridiem {
  margin-left: 0.3em;
}
.sky-fallback {
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
  }
}
html body.homepage .time-label-value {
  font-size: 18px;
  line-height: 28px;
  overflow: hidden;
}
.sky-clock-slot {
  display: inline-block;
  min-width: 0.64em;
  text-align: center;
  white-space: pre;
}
.sky-clock-slot:nth-child(3) {
  min-width: 0.28em;
}
.sky-clock-slot.is-empty {
  min-width: 0;
  width: 0;
  overflow: hidden;
}
.sky-clock-period {
  min-width: 0;
  margin-left: 0.3em;
}
.lake canvas.is-dragging {
  cursor: grabbing !important;
}
