/*
  SKYWARD — a small, editable personal site
  Quick colour edits live in :root below.
*/
:root {
  color-scheme: light;
  --sky: #dcecf2;
  --sky-deep: #a9cbd9;
  --paper: #fffaf0;
  --paper-soft: #f8f0de;
  --ink: #263653;
  --muted: #68758a;
  --line: #344461;
  --blue: #789db4;
  --blue-light: #c7dce4;
  --gold: #f2bd58;
  --rose: #eaa897;
  --mint: #b7d8c5;
  --shadow: 5px 6px 0 rgba(38, 54, 83, .18);
  --display: Georgia, 'Times New Roman', serif;
  --body: 'Trebuchet MS', Arial, sans-serif;
}

:root[data-theme="night"] {
  color-scheme: dark;
  --sky: #172338;
  --sky-deep: #283955;
  --paper: #24334d;
  --paper-soft: #2c3d58;
  --ink: #f2e9d4;
  --muted: #b7c3d1;
  --line: #9bb5c8;
  --blue: #9ec2d3;
  --blue-light: #435a75;
  --gold: #ffd174;
  --rose: #e7aa9e;
  --mint: #a9cfbd;
  --shadow: 5px 6px 0 rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  overflow-x: clip;
  scrollbar-gutter: stable;
}
body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background-color: var(--sky);
  background-image: url("./WhatsApp Image 2569-09-12 at 00.02.22.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font: 16px/1.65 var(--body);
  transition: background-color .25s ease, color .25s ease;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px dashed var(--gold); outline-offset: 4px; }
button { font: inherit; }
::selection { color: #263653; background: #f2bd58; }

.skip-link {
  position: fixed; z-index: 10; top: 8px; left: 8px;
  padding: 8px 12px; transform: translateY(-160%);
  color: #fff; background: #263653; border-radius: 4px;
}
.skip-link:focus { transform: translateY(0); }
.page-shell {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 36px));
  min-height: calc(100vh - 44px);
  margin: 22px auto;
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  border: 2px solid var(--line);
  background: var(--paper);
  box-shadow: 9px 10px 0 rgba(38,54,83,.12);
}
.sidebar {
  position: sticky; top: 0; align-self: start;
  min-height: 100vh; padding: 28px 19px 22px;
  display: flex; flex-direction: column;
  border-right: 2px solid var(--line);
  background: var(--paper-soft);
}
.wordmark {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--ink); text-decoration: none;
  font: bold 23px/.98 var(--display); letter-spacing: -.5px;
}
.wordmark-star { color: #d88c46; font: 28px/1 var(--body); transform: rotate(-12deg); }
.side-note { margin: 12px 0 0 37px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.sidebar-art {
  height: 145px; margin: 22px 0 18px; position: relative; overflow: visible;
  background: transparent;
}
.sidebar-art > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(2.35);
  transform-origin: center;
}
.side-sun { position: absolute; right: 24px; top: 22px; color: #f5c45e; font-size: 43px; line-height: 1; }
.side-moon { position: absolute; left: 24px; top: 26px; color: #f6efd9; font-size: 26px; }
.side-star { position: absolute; color: #fff8dc; }
.star-one { left: 78px; top: 19px; font-size: 16px; }
.star-two { left: 115px; top: 47px; font-size: 12px; }
.side-cloud { position: absolute; z-index: 1; left: 19px; bottom: 23px; color: #fffaf0; font-size: 45px; line-height: .8; text-shadow: 0 2px 0 rgba(38,54,83,.13); }
.side-orbit { position: absolute; left: 11px; right: 10px; top: 53px; height: 50px; border: 1px dashed rgba(38,54,83,.5); border-radius: 50%; transform: rotate(-18deg); }
.site-nav { display: grid; gap: 5px; }
.nav-label, .tiny-label, .eyebrow {
  margin: 0; color: var(--muted); font-size: 10px; font-weight: bold;
  letter-spacing: 1.35px; line-height: 1.4; text-transform: uppercase;
}
.nav-label { padding: 0 7px 5px; }
.site-nav a {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  transition: background .15s ease;
}
.site-nav a span { display: inline-block; width: 23px; color: #ca8952; font-size: 15px; text-align: center; }
.site-nav a:hover,
.site-nav a:focus-visible { border-color: var(--line); background: var(--paper); }
.site-nav a.resume-child {
  margin-left: 23px;
  padding-left: 10px;
  border: 1px solid transparent;
  font-size: 12px;
}
.site-nav a.resume-child:hover,
.site-nav a.resume-child:focus-visible { border-color: var(--line); }
.sidebar-note-card { margin-top: auto; padding: 12px 12px 13px; border: 1px dashed var(--line); background: var(--paper); }
.sidebar-note-card p { margin: 8px 0 0; font: 15px/1.45 var(--display); }
.sidebar-note-card p span { color: #7f94b4; }
.sidebar-footer { margin: 17px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; text-align: center; }
.sidebar-footer span { color: #c78f51; letter-spacing: 4px; }

.main-content { min-width: 0; padding: 20px 27px 17px; }
.topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 17px; color: var(--muted); font-size: 9px; font-weight: bold; letter-spacing: 1.5px; }
.topline > span span { padding: 0 4px; color: #d0924f; }
.theme-toggle {
  flex: 0 0 auto; display: inline-flex; gap: 7px; align-items: center;
  padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 99px;
  color: var(--ink); background: var(--paper); cursor: pointer; font-size: 11px; font-weight: bold;
}
.theme-toggle:hover { background: var(--paper-soft); }
.mode-icon { color: #d1934c; font-size: 15px; line-height: 1; }
.panel { position: relative; border: 1.5px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
.hero {
  min-height: 322px; display: grid; grid-template-columns: 1.03fr .97fr;
  align-items: center; overflow: hidden; padding: 30px 33px;
  background: linear-gradient(111deg, var(--paper) 0 55%, var(--blue-light) 55% 100%);
}
.hero::before, .hero::after { position: absolute; z-index: 1; color: #fff7d7; content: '✦'; }
.hero::before { top: 18px; right: 23px; font-size: 19px; }
.hero::after { top: 42px; right: 55px; font-size: 11px; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { letter-spacing: 1.55px; }
.hero .eyebrow { color: #b87543; }
.hero h1 { margin: 12px 0 13px; font: 500 clamp(40px, 5vw, 61px)/.99 var(--display); letter-spacing: -2.3px; }
.hero h1 em { color: #c37d56; font-weight: 500; }
.hero-intro { max-width: 375px; margin: 0; color: var(--muted); font-size: 14px; }
.hero-intro strong { color: var(--ink); }
.button-link {
  display: inline-block; margin-top: 19px; padding: 8px 14px;
  border: 1.5px solid var(--line); border-radius: 3px; color: #fffdf5;
  background: #394b68; box-shadow: 3px 3px 0 var(--gold);
  text-decoration: none; font-size: 12px; font-weight: bold; transition: transform .15s ease, box-shadow .15s ease;
}
.button-link:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--gold); }
.button-link span { padding-left: 7px; color: #ffdb83; }
.hero-art { min-height: 260px; position: relative; display: grid; place-items: center; }
.hero-art::before {
  content: "";
  position: absolute;
  inset: 0 0 55px;
  background: url("./phoomelo-frontbanner.png") center / contain no-repeat;
  pointer-events: none;
  transform: scale(2.5);
  transform-origin: center;
}
.hero-caption { position: absolute; z-index: 3; right: 10px; bottom: 14px; padding: 6px 10px; border: 1px dashed var(--line); color: var(--ink); background: var(--paper); font: italic 12px/1.35 var(--display); text-align: center; transform: rotate(-2deg); }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.24fr) minmax(210px, .76fr); gap: 17px; margin-top: 20px; align-items: start; }
.about-panel, .now-card, .sky-panel, .creatures-panel, .hello-panel { padding: 18px 20px; }
.section-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.section-icon { width: 35px; height: 35px; flex: 0 0 35px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: #c67f4c; background: var(--paper-soft); font-size: 20px; }
.section-heading h2, .hello-panel h2 { margin: 2px 0 0; font: 500 25px/1.1 var(--display); letter-spacing: -.5px; }
.about-panel > p { margin: 11px 0; color: var(--muted); font-size: 13px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag-row span { padding: 3px 8px; border: 1px solid var(--line); border-radius: 99px; background: var(--paper-soft); font-size: 10px; }
.now-card { min-height: 170px; background: linear-gradient(145deg, var(--paper-soft), var(--paper)); }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: #79a881; box-shadow: 0 0 0 3px rgba(121,168,129,.16); }
.now-quote { margin: 13px 0 8px; font: 21px/1.2 var(--display); }
.orbit-line { display: flex; align-items: center; gap: 7px; color: #cb8d4d; font-size: 16px; }
.orbit-line i { height: 1px; flex: 1; border-top: 1px dashed var(--line); }
.small-note { margin: 7px 0 0; color: var(--muted); font-size: 10px; }
.sky-panel { grid-column: 1 / -1; }
.sky-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; align-items: stretch; }
.sky-item { display: flex; gap: 9px; min-width: 0; min-height: 90px; height: auto; padding: 14px; border: 1px dashed var(--line); background: var(--paper-soft); }
.sky-item > div { min-width: 0; }
.sky-item-icon { flex: 0 0 28px; padding-top: 2px; color: #c78b47; font-size: 24px; line-height: 1; text-align: center; }
.moon-icon { color: #7586a7; }
.cloud-icon { color: #7199af; }
.sky-item h3 { margin: 0 0 8px; font: bold 20px/1.25 var(--display); }
.animal-card h3 { margin: 0; font: bold 14px/1.3 var(--display); }
.sky-item p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.constellation-card { position: relative; margin-top: 13px; padding: 18px 11px 8px; overflow: hidden; border: 1px solid #405576; border-radius: 3px; background: linear-gradient(110deg, #263752, #405674); }
.constellation-label { position: absolute; top: 4px; left: 10px; color: #d9d9cb; font: italic 10px var(--display); }
.constellation-card svg { display: block; width: 100%; height: 89px; overflow: visible; }
.constellation-card circle { fill: #ffe29a; stroke: #fff6d9; stroke-width: 1px; }
.constellation-line { fill: none; stroke: #c7d8e2; stroke-width: 1.25px; stroke-dasharray: 4 4; }
.constellation-twinkle { fill: none; stroke: #ffda8d; stroke-width: 2px; stroke-linecap: round; }
.creatures-panel { grid-column: 1 / -1; }
.creatures-panel .section-heading { margin-bottom: 14px; }
.animal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.animal-card { position: relative; min-height: 110px; display: flex; align-items: center; gap: 12px; overflow: hidden; padding: 12px 14px; border: 1px solid var(--line); background: #edf4ee; }
.owl-card { background: #f4ece0; }
:root[data-theme="night"] .animal-card { background: #32445b; }
:root[data-theme="night"] .owl-card { background: #493d46; }
.animal-art { flex: 0 0 53px; width: 53px; height: 53px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); font-size: 31px; }
.animal-card h3 { font-size: 17px; }
.animal-card p { max-width: 205px; margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.animal-number { position: absolute; right: 8px; top: 5px; color: rgba(38,54,83,.3); font: italic 11px var(--display); }
:root[data-theme="night"] .animal-number { color: rgba(255,255,255,.38); }
.tiny-caption { margin: 10px 0 0; color: var(--muted); font: italic 11px var(--display); text-align: right; }
.hello-panel { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 20px; background: linear-gradient(105deg, var(--paper-soft), var(--paper)); }
.hello-panel h2 { margin: 5px 0; }
.hello-panel p:last-child { max-width: 535px; margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.hello-doodle { flex: 0 0 auto; width: 54px; height: 54px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 50%; color: #b8774b; background: #ffefce; font-size: 24px; transform: rotate(-9deg); }
.site-footer { display: flex; justify-content: space-between; gap: 10px; padding: 18px 2px 0; color: var(--muted); font-size: 9px; }
.site-footer a { color: var(--ink); text-decoration-style: dotted; text-underline-offset: 3px; }

@media (max-width: 850px) {
  .page-shell { grid-template-columns: 185px minmax(0, 1fr); width: min(100% - 24px, 760px); }
  .sidebar { padding-inline: 14px; }
  .main-content { padding: 17px; }
  .hero { padding: 26px 23px; }
  .hero h1 { font-size: clamp(39px, 7vw, 54px); }
  .hero-art { transform: scale(.9); }
  .content-grid { grid-template-columns: 1fr; }
  .now-card, .sky-panel, .creatures-panel, .hello-panel { grid-column: auto; }
  .now-card { min-height: initial; }
}
@media (max-width: 600px) {
  .page-shell { display: block; width: min(100% - 18px, 480px); margin: 9px auto; }
  .sidebar { position: relative; min-height: 0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 12px; padding: 13px 14px; border-right: 0; border-bottom: 2px solid var(--line); }
  .wordmark { font-size: 20px; }
  .side-note { margin: 3px 0 0 37px; }
  .sidebar-art, .sidebar-note-card, .sidebar-footer { display: none; }
  .site-nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px; margin-top: 11px; }
  .nav-label { width: 100%; padding: 0 5px 2px; }
  .site-nav a { padding: 4px 7px; font-size: 11px; }
  .site-nav a span { width: 16px; }
  .main-content { padding: 13px 12px; }
  .topline { font-size: 8px; letter-spacing: 1px; }
  .theme-toggle { padding: 5px 8px; font-size: 10px; }
  .hero { display: flex; min-height: 0; flex-direction: column; align-items: stretch; padding: 25px 20px 14px; background: linear-gradient(155deg, var(--paper) 0 59%, var(--blue-light) 59% 100%); }
  .hero h1 { font-size: clamp(44px, 13vw, 58px); }
  .hero-intro { max-width: 100%; }
  .hero-art { min-height: 204px; margin-top: 4px; transform: none; }
  .content-grid { gap: 14px; margin-top: 16px; }
  .about-panel, .now-card, .sky-panel, .creatures-panel, .hello-panel { padding: 15px; }
  .sky-items { grid-template-columns: 1fr; }
  .sky-item { min-height: 0; }
  .sky-item p { font-size: 14px; }
  .animal-grid { grid-template-columns: 1fr; }
  .animal-card { min-height: 98px; }
  .site-footer { flex-wrap: wrap; justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Soft glowing orbs across the sky */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 5px;
  height: 5px;
  pointer-events: none;
  border-radius: 50%;
  background: transparent;
  text-shadow: none;
  animation: sky-star-drift 13s ease-in-out -6s infinite alternate;
  box-shadow:
    5vw 18vh 0 1px #fff6d9,
    5vw 18vh 10px 3px rgba(255, 239, 184, .65),
    3vw 62vh 0 2px #dceeff,
    3vw 62vh 13px 4px rgba(200, 226, 255, .6),
    97vw 40vh 0 0 #ffffff,
    97vw 40vh 8px 2px rgba(255, 255, 255, .55),
    96vw 89vh 0 0 #dceeff,
    96vw 89vh 8px 2px rgba(200, 226, 255, .6);
}

@keyframes sky-star-drift {
  from { transform: translate(0, 0); opacity: .4; }
  to { transform: translate(10px, -24px); opacity: .95; }
}

@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; opacity: .7; }
}

/* Night mode: darken the sky photo, especially around the edges */
:root[data-theme="night"] body {
  background-image:
    radial-gradient(
      ellipse at center,
      rgba(4, 9, 20, .25) 0%,
      rgba(4, 9, 20, .45) 55%,
      rgba(4, 9, 20, .75) 100%
    ),
    url("./WhatsApp Image 2569-09-12 at 00.02.22.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* A shooting star cycles through three paths */
html::after {
  content: "";
  position: fixed;
  top: 6vh;
  left: -180px;
  width: 140px;
  height: 2px;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  border-radius: 50%;
  background: linear-gradient(to right, transparent, #fff5ce);
  filter: drop-shadow(0 0 5px rgba(255, 245, 206, .8));
  transform-origin: right center;
  animation: sky-shoot-varied 54s linear 4s infinite;
}

@keyframes sky-shoot-varied {
  0% { top: 6vh; opacity: 0; transform: rotate(12deg) translateX(0); }
  .2% { opacity: 1; }
  3% { top: 6vh; opacity: 0; transform: rotate(12deg) translateX(140vw); }
  3.01%, 33.333% { top: 12vh; opacity: 0; transform: rotate(20deg) translateX(0); }
  33.533% { opacity: 1; }
  36.333% { top: 12vh; opacity: 0; transform: rotate(20deg) translateX(140vw); }
  36.343%, 66.666% { top: 2vh; opacity: 0; transform: rotate(28deg) translateX(0); }
  66.866% { opacity: 1; }
  69.666% { top: 2vh; opacity: 0; transform: rotate(28deg) translateX(140vw); }
  69.676%, 100% { top: 6vh; opacity: 0; transform: rotate(12deg) translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  html::after { animation: none; }
}

/* Full-width guestbook with the letter at the top right */
#guestbook {
  position: relative;
  display: block;
}

#guestbook > div {
  width: 100%;
  min-width: 0;
}

#guestbook .eyebrow,
#guestbook h2 {
  padding-right: 74px;
}

#guestbook iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 16px auto 0;
}

#guestbook .hello-doodle {
  position: absolute;
  top: 18px;
  right: 20px;
}

/* Resume banner: readable day-mode colours */
:root:not([data-theme="night"]) #my-resume {
  background: var(--blue-light);
  color: var(--ink);
}
:root:not([data-theme="night"]) #my-resume h3 {
  color: var(--ink);
}
:root:not([data-theme="night"]) #my-resume .resume-status {
  color: var(--ink);
}
:root:not([data-theme="night"]) #my-resume .button-link {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}

/* Moving retro windows */
.sky-window {
  animation: sky-window-float var(--window-speed, 9s) ease-in-out infinite;
  animation-delay: var(--window-delay, 0s);
}
.sky-window:hover,
.sky-window:focus-within { animation-play-state: paused; }
@keyframes sky-window-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -4px; }
}
@media (prefers-reduced-motion: reduce) {
  html::after,
  .sky-window { animation: none; }
}

/* Script-generated sky details and retro window chrome */
#custom-sky-stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.custom-sky-star {
  position: absolute;
  color: #fff4c9;
  font: 18px/1 Georgia, serif;
  animation: custom-star-drift 18s ease-in-out infinite alternate;
}
.custom-sky-star > span { display: block; transform-origin: center; }
.custom-sky-star.turns > span { animation: custom-star-turn 24s ease-in-out infinite; }
@keyframes custom-star-drift {
  from { transform: translate(0, 0); opacity: .4; }
  to { transform: translate(10px, -24px); opacity: .95; }
}
@keyframes custom-star-turn {
  0%, 80% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.sky-window-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 34px;
  padding: 0 10px 0 13px;
  box-sizing: border-box;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper-soft);
  pointer-events: none;
  user-select: none;
}
.sky-window-title {
  min-width: 0;
  overflow: hidden;
  font: 11px/1.2 var(--body);
  letter-spacing: .5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sky-window-controls { display: flex; gap: 5px; flex-shrink: 0; }
.sky-window-control {
  display: grid;
  place-items: center;
  width: 19px;
  height: 18px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  background: var(--paper);
  font: 14px/1 monospace;
  box-shadow: 1px 1px 0 var(--line);
}
.sky-window-control:last-child { background: var(--rose); }
#guestbook.sky-window .hello-doodle { top: 54px; }
.hero.sky-window::before { top: 54px; }
.hero.sky-window::after { top: 78px; }

/* Resume card and link */
#my-resume {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 24px;
  min-height: 145px;
  height: auto;
  padding: 24px;
  box-sizing: border-box;
  scroll-margin-top: 24px;
  color: var(--ink);
}
#my-resume h3 {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  color: var(--ink);
  font: 500 clamp(36px, 5.5vw, 68px)/1.05 var(--display);
  letter-spacing: -1.5px;
}
#my-resume .button-link {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0;
  padding: 0;
  border-radius: 0;
  text-decoration: none;
}
#my-resume .button-link svg { display: block; width: 36px; height: 36px; }
#my-resume .resume-status {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  color: var(--muted);
  font: 12px/1.5 var(--body);
}
#my-resume .resume-status:empty { display: none; }

/* Pixel-art flyby and theme-aware celestial artwork */
#nyan-flyby {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 240px;
  height: 108px;
  visibility: hidden;
  pointer-events: none;
  image-rendering: pixelated;
}
#sky-celestial {
  position: fixed;
  top: 28px;
  right: 24px;
  z-index: 0;
  width: 86px;
  height: 86px;
  pointer-events: none;
}
#sky-celestial > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transition: opacity .7s ease, transform .7s ease;
}
#sky-celestial .celestial-moon {
  opacity: 1;
  transform: scale(1);
  filter: drop-shadow(0 0 9px rgba(208,229,255,.8)) drop-shadow(0 0 25px rgba(160,197,255,.4));
}
#sky-celestial .celestial-sun {
  opacity: 0;
  transform: scale(.65) rotate(-25deg);
  filter: drop-shadow(0 0 10px rgba(255,203,83,.8)) drop-shadow(0 0 27px rgba(255,180,70,.45));
}
:root:not([data-theme="night"]) #sky-celestial .celestial-moon { opacity: 0; transform: scale(.65) rotate(20deg); }
:root:not([data-theme="night"]) #sky-celestial .celestial-sun { opacity: 1; transform: scale(1) rotate(0deg); }
@media (max-width: 900px) {
  #sky-celestial { top: 16px; right: 10px; width: 58px; height: 58px; }
}
@media (max-width: 600px) {
  #my-resume { padding: 18px; column-gap: 12px; }
  #my-resume h3 { font-size: clamp(30px, 8vw, 44px); letter-spacing: -1px; }
  #my-resume .button-link { width: 48px; height: 48px; }
  #my-resume .button-link svg { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .custom-sky-star,
  .custom-sky-star.turns > span,
  .sky-window,
  #nyan-flyby { animation: none; }
  #sky-celestial > svg { transition: none; }
  #nyan-flyby { display: none; }
}
