:root {
  --ink: #373c78;
  --muted: #7776aa;
  --accent: #777dff;
  --glass: rgba(250, 247, 255, .74);
  --soft: rgba(144, 139, 244, .09);
  --rim-width: 2px;
  --rim-line: rgba(255, 255, 255, .7);
  --page-surface: #eeeafa;
  --page-gutter: 22px;
}

body {
  position: relative;
  isolation: isolate;
  background: var(--page-surface);
}

body::before {
  content: none;
}

.welcome-scene {
  position: absolute;
  inset: 0 calc(-1 * var(--page-gutter));
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
  background: url('assets/whale/welcome-poster.webp') 59% 45% / cover no-repeat;
}

.welcome-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #3c4b9933, transparent 65%),
    linear-gradient(180deg, transparent 52%, #eeeafa33);
}

/* Only the shallow shoreline moves; the illustration has no video or parallax. */
.hero { isolation: isolate; }
.welcome-shore { position: absolute; z-index: 1; inset: auto 0 -1px; height: 76px; overflow: hidden; }
.welcome-wave { position: absolute; left: 0; bottom: 0; display: block; width: 200%; max-width: none; height: 100%; fill: var(--page-surface); stroke: none; animation: welcome-tide 24s linear infinite; }
.welcome-wave-back { bottom: 12px; opacity: .35; animation-duration: 30s; animation-direction: reverse; }
.welcome-wave-front { animation-duration: 22s; }
.welcome-scene[data-paused] .welcome-wave { animation-play-state: paused; }
@keyframes welcome-tide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .welcome-wave { animation: none; } }

.sidebar {
  background: linear-gradient(155deg, #f2edffe8, #e9e4ffde 55%, #efe6ffeb);
}

.identity img { width: 124px; height: 124px; }
.identity span { color: #9592bb; }
.sidebar nav { margin-top: 25px; gap: 8px; }
.mini-player { margin-top: 24px; background: #ffffff40; }

.glass {
  border-width: 1px;
  box-shadow: inset 0 1px 0 #ffffffe6, inset 0 -1px 0 #c7bff026,
    0 8px 25px #7465ad18;
}

.hero { height: 378px; padding: 65px 10px 20px 66px; }
.greeting { width: min(44%, 475px); }
.hello { font-size: 65px; letter-spacing: 4px; }
.cat-doodle { font-size: 35px; letter-spacing: 0; }
.hero h1 { font-size: 26px; font-weight: 600; margin-top: 11px; letter-spacing: 1.2px; }
.hero .greeting > p { margin-top: 12px; }
.hero-right { margin-top: -37px; gap: 33px; }
.toolbar { gap: 10px; }
.toolbar .icon-button { width: 47px; height: 47px; border-radius: 19px; }
.toolbar .glass { background: #e5e3ff30; backdrop-filter: blur(14px); }
.clock-card { min-width: 228px; padding: 17px 22px 20px; border-radius: 27px; background: #dce2ff4d; }
.clock-card time { font-size: 62px; font-weight: 550; }
.clock-card > span { margin-top: 16px; }
.hero-search.glass { width: 385px; min-height: 44px; margin-top: 15px; padding: 4px 6px 4px 10px; border-radius: 23px; background: #f4f1ffd9; }
.hero-search input { font-size: 12px; }
.hero-search .search-submit { width: 32px; height: 32px; border-radius: 50%; }
.hero-search-meta { width: 385px; margin-top: 5px; }
.hero-search-meta > span { font-size: 9px; }

.dashboard { grid-template-columns: 1fr 1fr 1.43fr; gap: 14px; }
.card { border-radius: 27px; padding: 20px 23px; }
.profile-card, .music-card, .feature-card { height: 266px; }
.profile-top { gap: 15px; }
.avatar-wrap { flex-basis: 47%; }
.avatar-wrap img { height: 158px; }
.profile-top h2 { font-size: 26px; margin-bottom: 11px; }
.profile-top p { font-size: 12px; line-height: 1.8; }
.stats { margin-top: 10px; }
.stats div { border-radius: 16px; padding: 9px 3px; }
.stats b { font-size: 21px; }
.music-card { padding-bottom: 12px; }
.music-info { gap: 17px; margin-top: 17px; }
.music-info > img { width: 117px; height: 106px; }
.music-info h3 { font-size: 17px; }
.music-info small { display: none; }
.progress-row { margin-top: 11px; }
.player-controls { margin-top: 10px; }
.feature-card { padding: 0; }
.feature-card > img { object-position: center; }
.feature-card::after { background: linear-gradient(180deg, #6885cf38, transparent 36%, #536fa564); }
.feature-top { top: 18px; }
/* Keep the artwork and caption stationary when the pointer moves. */
.welcome-scene {
  transform: none;
  transition: none;
  animation: none;
}
.feature-caption { isolation: isolate; }
.feature-caption strong { font-size: 31px; }
.feature-open {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  transform: none;
  transition: none;
}
.feature-open:hover, .feature-open:active { transform: none; }
.feature-open:focus-visible { outline: 2px solid white; outline-offset: 5px; }
.todo-card, .middle-stack, .explore-card { min-height: 253px; }
.todo-card ul { max-height: 135px; margin-top: 14px; width: 100%; padding-bottom: 9px; }
.todo-card li { font-size: 13px; margin-top: 8px; margin-bottom: 8px; }
.todo-decoration { display: none; }
.whale-sleepy {
  position: absolute;
  right: -8px;
  bottom: 0;
  width: 198px;
  height: auto;
  pointer-events: none;
  z-index: 0;
}
.todo-card > .tiny { margin-top: 3px; }
.middle-stack { gap: 7px; }
.quick-card { min-height: 126px; padding: 16px 23px 12px; }
.quick-link { border-radius: 18px; background: #f5ebfa8c; }
.timeline-card { padding: 12px 23px; min-height: 120px; }
.explore-card { padding-top: 20px; }
.explore-grid { gap: 13px; }
.category-button { min-height: 73px; border-radius: 19px; }
.cloud-status { max-width: calc(100vw - var(--rail) - 100px); }

[data-theme=dark] {
  --ink: #ece9ff;
  --muted: #bfb8de;
  --accent: #a9a3ff;
  --soft: rgba(174, 165, 247, .12);
  --glass: rgba(43, 44, 83, .8);
  --rim-line: rgba(220, 216, 255, .29);
  --rim-top: rgba(231, 225, 255, .35);
  --page-surface: #252740;
}
[data-theme=dark] body { background: var(--page-surface); }
[data-theme=dark] .welcome-scene::after { background: linear-gradient(180deg, #191f3e20, #25274055); }
[data-theme=dark] .sidebar { background: linear-gradient(160deg, #3a3755ed, #2d2946ee); }
[data-theme=dark] .mini-player { background: #a89fea0f; }
[data-theme=dark] .glass { box-shadow: inset 0 1px 0 #d7d1ff30, 0 8px 25px #10122f36; }
[data-theme=dark] .quick-link { background: #c0a6f213; }
[data-theme=dark] .clock-card { background: #cad3ff21; }

@media (min-width: 1800px) {
  .hero { height: 390px; padding-left: 72px; }
  .profile-card, .music-card, .feature-card { height: 280px; }
  .todo-card, .middle-stack, .explore-card { min-height: 265px; }
}
@media (max-width: 1250px) {
  :root { --page-gutter: 16px; }
  .hero { height: 355px; padding-left: 27px; padding-top: 57px; }
  .hero h1 { font-size: 22px; }
  .hello { font-size: 52px; }
  .greeting { width: 49%; }
  .toolbar .icon-button { width: 40px; height: 40px; border-radius: 16px; }
  .clock-card { min-width: 195px; }
  .clock-card time { font-size: 52px; }
  .dashboard { grid-template-columns: 1fr 1fr 1.36fr; }
  .card { padding: 18px; }
  .feature-card { padding: 0; }
  .profile-top { gap: 8px; }
  .profile-top h2 { font-size: 22px; }
  .profile-top p { font-size: 11px; }
  .music-info { gap: 10px; }
  .music-info > img { width: 90px; }
  .whale-sleepy { width: 168px; }
}
@media (max-width: 1020px) {
  .dashboard { grid-template-columns: 1fr 1fr; }
  .feature-card { height: 240px; }
  .hero h1 { font-size: 21px; }
  .greeting { width: 54%; }
  .hello { font-size: 47px; }
  .hello .cat-doodle { font-size: 24px; }
  .hero-right { min-width: 0; }
  .toolbar { gap: 7px; }
  .toolbar .icon-button { width: 36px; height: 36px; border-radius: 14px; }
  .clock-card { min-width: 180px; }
  .clock-card time { font-size: 46px; }
}
@media (max-width: 700px) {
  :root { --page-gutter: 12px; }
  .welcome-scene { background-position: 59% center; }
  .welcome-shore { height: 50px; }
  .welcome-wave-back { bottom: 7px; }
  .sidebar { padding: 0 5px; }
  .sidebar nav { grid-template-columns: repeat(7, minmax(0, 1fr)); margin: 0; gap: 0; }
  .hero { min-height: 350px; height: 350px; padding: 65px 8px 20px; }
  .greeting { width: 100%; }
  .hello { font-size: 46px; gap: 12px; }
  .hero h1 { font-size: 19px; letter-spacing: .5px; margin-top: 14px; }
  .hero .greeting > p { font-size: 12px; margin-top: 9px; }
  .hero-right { top: 10px; right: 2px; margin: 0; }
  .toolbar { gap: 6px; }
  .toolbar .icon-button { width: 34px; height: 34px; border-radius: 12px; }
  .toolbar svg { width: 19px; height: 19px; }
  .clock-card { top: 201px; right: 3px; min-width: 108px; padding: 9px 10px; border-radius: 18px; }
  .clock-card time { font-size: 29px; }
  .clock-card p { font-size: 9px; }
  .hero-search.glass { width: calc(100% - 120px); margin-top: 17px; padding-left: 6px; gap: 3px; }
  .hero-search select { width: 52px; font-size: 10px; }
  .hero-search input { font-size: 11px; padding-left: 0; }
  .hero-search .search-submit { width: 28px; height: 28px; }
  .hero-search-meta { width: calc(100% - 120px); }
  .dashboard { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .card { padding: 20px; }
  .feature-card { height: 218px; padding: 0; }
  .profile-card { height: auto; }
  .profile-top { gap: 20px; }
  .avatar-wrap { flex-basis: 130px; }
  .avatar-wrap img { height: 143px; }
  .profile-top h2 { font-size: 25px; }
  .profile-top p { font-size: 12px; }
  .music-card { height: auto; }
  .music-info > img { width: 106px; }
  .music-info { gap: 18px; }
  .todo-card { min-height: 250px; }
  .whale-sleepy { width: 190px; }
  .quick-card { min-height: 133px; }
  .timeline-card { min-height: 123px; }
  .todo-card li { font-size: 14px; }
}

.feature-project-link { display: inline-flex; align-items: center; gap: 10px; color: inherit; font-size: 13px; }
.feature-project-link svg { width: 18px; }
.feature-project-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.rhine-project { grid-column: 1 / -1; padding: 20px; border: 1px solid var(--rim-line); border-radius: 20px; background: var(--soft); }
.rhine-project h3 { margin-bottom: 10px; }
.rhine-project p { margin-bottom: 14px; }
/* A quiet welcome, with enough contrast over the bright aquarium scene. */
.greeting{position:relative;isolation:isolate}
.greeting::before{content:"";position:absolute;z-index:-1;pointer-events:none;inset:-19px -26px -10px -23px;border-radius:36px;background:radial-gradient(ellipse at 22% 38%,#162c615c 0%,#263f6c3b 52%,transparent 76%);filter:blur(10px)}
.greeting .hello,.hero .greeting>h1,.hero .greeting>p{color:#fff;paint-order:stroke fill;-webkit-text-stroke:.5px #283d6b9e;text-shadow:0 2px 3px #142a6266,0 4px 16px #14285888}
.greeting .hello{-webkit-text-stroke:1px #3345748c;text-shadow:0 3px 5px #14285277,0 6px 18px #1d326b77;white-space:nowrap;min-height:1.2em}
#hello-text,#greeting-headline,#greeting-message{transition:opacity .22s ease,filter .22s ease}
.hero h1 #greeting-headline{font-size:inherit;font-weight:inherit;line-height:inherit}
.greeting-changing #hello-text,.greeting-changing #greeting-headline,.greeting-changing #greeting-message{opacity:0;filter:blur(2px)}
#greeting-refresh{padding:2px 5px;color:#e6edff;-webkit-text-stroke:0;line-height:1;flex-shrink:0;border-radius:14px;text-shadow:0 2px 7px #18387999;transition:transform .25s,color .25s}
#greeting-refresh:hover{transform:rotate(35deg);color:#fff}#greeting-refresh:focus-visible{outline:2px solid #fff;outline-offset:5px}
.identity img,.avatar-wrap img{object-fit:contain;object-position:center;background:transparent;border-radius:0;filter:drop-shadow(0 4px 7px #3b467324)}
@media(max-width:700px){.greeting::before{inset:-12px -4px 0 -12px;background:radial-gradient(ellipse at 24% 35%,#162c616b 0%,#263f6c38 54%,transparent 79%)}.hero h1 #greeting-headline{font-size:inherit}.greeting .hello{gap:17px}}
@media(prefers-reduced-motion:reduce){#hello-text,#greeting-headline,#greeting-message,#greeting-refresh{transition:none}.greeting-changing #hello-text,.greeting-changing #greeting-headline,.greeting-changing #greeting-message{filter:none}}

/* Reserve room below the greeting so waves never cross the search controls. */
.hero { height: auto; min-height: 440px; padding-bottom: 86px; margin-bottom: 18px; }
@media (max-width: 1250px) { .hero { min-height: 415px; } }
@media (max-width: 700px) { .hero { min-height: 402px; padding-bottom: 66px; margin-bottom: 14px; } }
