/* eepydog . a sky that falls asleep */

@font-face { font-family: 'Fredoka'; src: url('/assets/fonts/fredoka-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url('/assets/fonts/fredoka-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'DM Mono'; src: url('/assets/fonts/dm-mono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  /* coolors: 7fb6f2-cfe4fb-fff6e4-14204a-f2b98a */
  --ink: #14204a;
  --cream: #fff6e4;
  --fur: #f2b98a;
  --text: var(--ink);
  --soft: rgba(20, 32, 74, .62);
  --glass: rgba(255, 255, 255, .5);
  --line: rgba(20, 32, 74, .14);
  --word: #ffffff;
  --pad: clamp(18px, 3.4vw, 48px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --slow: 2.6s;
}
body.night {
  --text: var(--cream);
  --soft: rgba(255, 246, 228, .62);
  --glass: rgba(255, 246, 228, .08);
  --line: rgba(255, 246, 228, .16);
  --word: #ffe9b8;
}

*, *::before, *::after { box-sizing: border-box; }
img, svg, canvas, video { -webkit-user-select: none; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
::selection { background: var(--fur); color: var(--ink); }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  background: #7fb6f2;
  font-family: 'Fredoka', ui-rounded, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: color var(--slow) var(--ease);
}
body.night { background: #0f1838; }

/* ---------- the sky: two fixed layers, crossfaded ---------- */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; transition: opacity var(--slow) var(--ease); }
.sky--day {
  background:
    radial-gradient(120% 70% at 50% 108%, #fff6e4 0%, rgba(255, 246, 228, 0) 55%),
    linear-gradient(to bottom, #5a9de8 0%, #7fb6f2 38%, #b2d4f8 70%, #dceafc 100%);
}
.sky--night {
  opacity: 0;
  background:
    radial-gradient(90% 60% at 50% 100%, rgba(255, 214, 150, .28) 0%, rgba(255, 214, 150, 0) 60%),
    linear-gradient(to bottom, #070d24 0%, #0f1838 45%, #1f2c63 100%);
}
body.night .sky--night { opacity: 1; }

/* ---------- top bar ---------- */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: var(--pad);
  padding-bottom: 0;
  pointer-events: none;
}
.bar > * { pointer-events: auto; }
.mark { margin: 0; font-weight: 600; font-size: 18px; letter-spacing: .02em; }
.bar__right { display: flex; gap: 8px; }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px;
  border: 1px solid var(--line); border-radius: 99px;
  font: 400 12.5px/1 'DM Mono', ui-monospace, monospace; letter-spacing: .04em;
  color: inherit; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .4s var(--ease), color var(--slow) var(--ease), border-color var(--slow) var(--ease), transform .3s var(--ease);
}
.pill:hover { transform: translateY(-1px); }
.pill--ghost { background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.pill--solid { background: var(--ink); color: var(--cream); border-color: transparent; }
body.night .pill--solid { background: var(--cream); color: var(--ink); }
.pill--big { padding: 15px 26px; font-size: 14px; }

.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.eq i { width: 2px; height: 3px; background: currentColor; border-radius: 1px; }
body.night .eq i { animation: bob 2.9s ease-in-out infinite; }
body.night .eq i:nth-child(2) { animation-duration: 3.7s; animation-delay: -1.1s; }
body.night .eq i:nth-child(3) { animation-duration: 4.3s; animation-delay: -2.4s; }
@keyframes bob { 0%, 100% { height: 3px; } 50% { height: 10px; } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100svh; min-height: 560px;
  overflow: hidden;
}

/* the word sleeps too: each letter drifts on its own slow breath */
.word {
  position: absolute; left: 0; right: 0; top: 7svh;
  margin: 0;
  display: flex; justify-content: center;
  font-weight: 600;
  font-size: min(36vw, 58svh);
  line-height: .9;
  letter-spacing: -.045em;
  color: var(--word);
  text-shadow: 0 .02em .12em rgba(20, 60, 120, .12);
  transition: color var(--slow) var(--ease), text-shadow var(--slow) var(--ease);
}
body.night .word { text-shadow: 0 0 .18em rgba(255, 210, 140, .45), 0 0 .5em rgba(255, 190, 110, .18); }
.word span { display: inline-block; animation: drift 6.4s ease-in-out infinite; animation-delay: calc(var(--i) * -1.15s); }
@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(.07em) rotate(calc((var(--i) - 1.5) * 1.6deg)); }
}

.pup {
  position: absolute; left: 50%; bottom: 0;
  width: min(100vw, calc(76svh / .872), 1000px);
  margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
  transform: translateX(-50%);
  -webkit-tap-highlight-color: transparent;
}
.pup img {
  display: block; width: 100%; height: auto;
  transform-origin: 50% 100%;
  animation: breathe 4.8s ease-in-out infinite;
  filter: drop-shadow(0 -10px 50px rgba(255, 246, 228, .55));
  transition: filter var(--slow) var(--ease);
}
body.night .pup img { filter: brightness(.86) saturate(.92) drop-shadow(0 -8px 46px rgba(255, 200, 120, .4)); }
@keyframes breathe { 0%, 100% { transform: scale(1, 1); } 45% { transform: scale(1.008, 1.018); } }
.pup.patted img { animation: pat .8s var(--ease), breathe 4.8s ease-in-out .8s infinite; }
@keyframes pat { 0% { transform: none; } 25% { transform: rotate(-1.4deg) scale(1.02); } 55% { transform: rotate(1deg); } 100% { transform: none; } }

/* three letters z, beside him, never on him */
.zs {
  position: absolute; z-index: 2;
  left: calc(50% + min(50vw, calc(38svh / .872), 500px) * .62);
  bottom: calc(min(100vw, calc(76svh / .872), 1000px) * .872 * .72);
  font-weight: 600; color: var(--ink);
  transition: color var(--slow) var(--ease);
}
body.night .zs { color: #b9c8ff; text-shadow: 0 0 12px rgba(20, 32, 74, .6); }
.zs span {
  position: absolute; left: 0; bottom: 0;
  font-size: clamp(22px, 3vw, 44px);
  opacity: 0;
  animation: z 5.4s ease-in infinite;
}
.zs span:nth-child(2) { animation-delay: 1.8s; font-size: clamp(28px, 3.8vw, 56px); }
.zs span:nth-child(3) { animation-delay: 3.6s; font-size: clamp(34px, 4.6vw, 70px); }
@keyframes z {
  0% { opacity: 0; transform: translate(0, 0) rotate(-8deg); }
  15% { opacity: .95; }
  100% { opacity: 0; transform: translate(.9em, -2.6em) rotate(10deg); }
}

.say {
  position: absolute; left: var(--pad); bottom: calc(var(--pad) * 1.2);
  margin: 0; max-width: 15ch;
  font-weight: 500; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.2;
}
.say em { font-style: normal; color: var(--soft); transition: color var(--slow) var(--ease); }
.hint {
  position: absolute; right: var(--pad); bottom: calc(var(--pad) * 1.2);
  margin: 0; max-width: 24ch; text-align: right;
  font: 400 11.5px/1.5 'DM Mono', ui-monospace, monospace; letter-spacing: .06em;
  color: var(--soft);
  transition: opacity 1s var(--ease), color var(--slow) var(--ease);
}

/* ---------- nap report ---------- */
.report {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px); align-items: center;
  max-width: 1240px; margin: 0 auto;
  padding: clamp(70px, 12vh, 140px) var(--pad) clamp(40px, 8vh, 90px);
}
.photo { margin: 0; }
.photo img {
  display: block; width: 100%; height: auto;
  border-radius: clamp(20px, 2.6vw, 36px);
  box-shadow: 0 40px 90px -40px rgba(20, 32, 74, .55);
  transition: filter var(--slow) var(--ease);
}
body.night .photo img { filter: brightness(.8) saturate(.85); }

.sheet__kicker { margin: 0; font: 400 12px 'DM Mono', monospace; letter-spacing: .16em; color: var(--soft); text-transform: lowercase; }
.sheet__title { margin: 10px 0 26px; font-weight: 600; font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -.03em; }
.rows { margin: 0 0 30px; border-top: 1px solid var(--line); transition: border-color var(--slow) var(--ease); }
.rows div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); transition: border-color var(--slow) var(--ease); }
.rows dt { font: 400 12.5px 'DM Mono', monospace; letter-spacing: .05em; color: var(--soft); }
.rows dd { margin: 0; font-weight: 500; font-size: 17px; text-align: right; font-variant-numeric: tabular-nums; transition: opacity .8s var(--ease); }
.rows dd.turning { opacity: 0; }

.ca { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; min-width: 0; }
.ca__label { font-weight: 600; font-size: 20px; }
.ca__btn {
  min-width: 0; flex: 1 1 auto;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left;
  padding: 11px 14px; border: 1px dashed var(--line); border-radius: 12px; background: var(--glass);
  font: 400 12.5px 'DM Mono', monospace; letter-spacing: .04em; color: inherit; cursor: pointer;
}
.links { display: flex; flex-wrap: wrap; gap: 8px; }

.foot {
  padding: 30px var(--pad) calc(var(--pad) + 10px);
  text-align: center;
  font: 400 11.5px 'DM Mono', monospace; letter-spacing: .14em; color: var(--soft);
}

/* ---------- phones ---------- */
@media (max-width: 760px) {
  .mark { font-size: 16px; }
  .pill { padding: 8px 12px; font-size: 11.5px; }
  .word { top: auto; bottom: calc(min(112vw, calc(62svh / .872)) * .872 * .8 + 10vw); font-size: 40vw; }
  .pup { width: min(112vw, calc(62svh / .872)); }
  .zs { left: calc(50% + min(56vw, calc(31svh / .872)) * .62); bottom: calc(min(112vw, calc(62svh / .872)) * .872 * .8 + 46vw); }
  .say { left: var(--pad); right: var(--pad); top: calc(var(--pad) + 64px); bottom: auto; max-width: none; text-align: center; font-size: 21px; }
  .hint { left: 0; right: 0; top: calc(var(--pad) + 64px + 62px); bottom: auto; max-width: none; text-align: center; }
  .report { grid-template-columns: 1fr; padding-top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .001s !important; }
  .zs { display: none; }
}
