:root{
  /* Pink UI + dark brown text */
  --ink: #3b2317;
  --ink-soft: rgba(59,35,23,.78);

  --pink-50: #fff3f8;
  --pink-100:#ffe1ef;
  --pink-200:#ffc6e1;
  --pink-300:#ff9fcb;
  --pink-400:#ff79b5;
  --pink-500:#ff4aa0;

  --panel: rgba(255, 243, 248, .92);
  --panel-strong: rgba(255, 225, 239, .97);

  --border-dark: rgba(59,35,23,.35);
  --border-mid: rgba(59,35,23,.22);
  --shadow: 0 14px 30px rgba(59,35,23,.20);

  --radius: 12px;
  --titlebar-h: 40px;
  --taskbar-h: 56px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }

body{
  margin:0;
  font-family:var(--font);
  color:var(--ink);
  background:var(--pink-100);
  overflow:hidden;
}

.skip-link{
  position:absolute; left:-999px; top:10px;
  background:var(--panel);
  padding:10px 12px;
  border:1px solid var(--border-dark);
  border-radius:12px;
  z-index:9999;
}
.skip-link:focus{ left:12px; }

/* =========================================================
   CLOUD WALLPAPER (final)
   Uses your pixel cloud image + gentle horizontal drift.
   Requires: <div class="wallpaper"><img class="wallpaper__img" src="./cloud.png" /></div>
   ========================================================= */
.wallpaper{
  position:fixed;
  inset:0;
  overflow:hidden;

  /* fallback gradient behind image (matches the reference vibe) */
  background: linear-gradient(180deg, #5f87b6 0%, #86a8cf 45%, #f1b08f 100%);
}

/* your cloud art image */
.wallpaper__img{
  position:absolute;
  inset:-6%;
  width:112%;
  height:112%;
  object-fit:cover;

  /* keep the pixel look if the image is scaled */
  image-rendering: pixelated;
  image-rendering: crisp-edges;

  filter: saturate(1.05) contrast(1.02);

  /* calm drift only (no rippling/zoom) */
  transform: translate3d(-2%, 0, 0);
  animation: cloud-drift 140s linear infinite;
}

/* optional soft haze to blend (static or very subtle) */
.wallpaper::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 520px at 20% 15%, rgba(255,255,255,.18), transparent 62%),
    radial-gradient(760px 560px at 78% 28%, rgba(255,255,255,.12), transparent 64%);
  mix-blend-mode: screen;
  opacity:.45;
  pointer-events:none;
}

/* very subtle “film grain / sparkles” so it still feels alive */
.wallpaper::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(1.4px 1.4px at 12% 24%, rgba(59,35,23,.10) 50%, transparent 52%),
    radial-gradient(1.1px 1.1px at 28% 58%, rgba(59,35,23,.08) 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 72% 72%, rgba(59,35,23,.08) 50%, transparent 52%),
    radial-gradient(1px 1px at 86% 32%, rgba(59,35,23,.06) 50%, transparent 52%);
  opacity:.28;
  pointer-events:none;
}

@keyframes cloud-drift{
  from{ transform: translate3d(-2%, 0, 0); }
  to  { transform: translate3d( 2%, 0, 0); }
}

@media (prefers-reduced-motion: reduce){
  .wallpaper__img{ animation:none; transform:none; }
}

/* =========================================================
   DESKTOP + ICONS
   ========================================================= */
.desktop{
  position:relative;
  height:calc(100% - var(--taskbar-h));
  padding:16px;
}

.icons{
  display:grid;
  grid-template-columns: 96px;
  grid-auto-rows: min-content;
  gap:14px;
  width:120px;
  padding:6px;
}

.icon{
  appearance:none;
  border:0;
  background:transparent;
  color:inherit;
  display:grid;
  place-items:center;
  gap:8px;
  padding:10px 6px;
  border-radius:12px;
  cursor:pointer;
  text-decoration:none;
  user-select:none;
}
.icon:hover{ background: rgba(255,255,255,.32); }
.icon:focus-visible{ outline:3px solid rgba(255,74,160,.55); outline-offset:2px; }

.icon__glyph{
  width:52px; height:52px;
  display:grid; place-items:center;
  border-radius:14px;
  background: rgba(255,255,255,.55);
  border:1px solid var(--border-mid);
  box-shadow: 0 8px 20px rgba(59,35,23,.12);
  font-size:26px;
}
.icon__label{
  font-size:12px;
  text-align:center;
  line-height:1.2;
  max-width:92px;
  text-shadow: 0 1px 0 rgba(255,255,255,.6);
}

/* =========================================================
   WINDOWS
   ========================================================= */
.windows{
  position:absolute;
  inset:0;
  pointer-events:none;
}

.window{
  pointer-events:auto;
  position:absolute;
  width:min(560px, 92vw);
  min-height:220px;
  border-radius:var(--radius);
  background:var(--panel);
  border:1px solid var(--border-dark);
  box-shadow:var(--shadow);
  overflow:hidden;
  backdrop-filter: blur(10px);
}

.window[data-state="minimized"],
.window[data-state="closed"]{
  display:none;
}

.window.is-front{
  outline:2px solid rgba(255,74,160,.35);
}

.window__titlebar{
  height:var(--titlebar-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:8px 10px;
  background: linear-gradient(180deg, var(--panel-strong), var(--pink-200));
  border-bottom:1px solid var(--border-mid);
  cursor:grab;
  user-select:none;
}
.window__titlebar:active{ cursor:grabbing; }

.window__title{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight:800;
}
.window__dot{
  width:12px; height:12px;
  border-radius:999px;
  background:var(--pink-500);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.55);
}

.window__controls{ display:inline-flex; gap:8px; }
.wbtn{
  width:34px; height:26px;
  border-radius:10px;
  border:1px solid var(--border-mid);
  background: rgba(255,255,255,.55);
  color:var(--ink);
  cursor:pointer;
}
.wbtn:hover{ background: rgba(255,255,255,.75); }
.wbtn:focus-visible{ outline:3px solid rgba(255,74,160,.45); outline-offset:2px; }
.wbtn--close:hover{ background: rgba(255,74,160,.22); border-color: rgba(255,74,160,.5); }

.window__body{
  padding:14px;
  max-height:min(62vh, 520px);
  overflow:auto;
}

.window__status{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border-top:1px solid var(--border-mid);
  background: rgba(255,255,255,.35);
  font-family: var(--mono);
  font-size:12px;
}

/* Typography */
.h1{ font-size:22px; margin:0 0 10px; }
.h2{ font-size:16px; margin:0 0 6px; }
.p{ margin:0 0 10px; }
.muted{ color:var(--ink-soft); }

.accent{
  background: linear-gradient(180deg, transparent 60%, rgba(255,74,160,.32) 0);
  padding:0 2px;
  border-radius:6px;
}

.divider{ height:1px; background:var(--border-mid); margin:12px 0; }

.pills{
  list-style:none;
  padding:0; margin:12px 0 0;
  display:flex; flex-wrap:wrap; gap:8px;
}
.pills li{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border-mid);
  background: rgba(255,255,255,.55);
  font-size:12px;
}

/* Projects */
.toolbar{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.tbtn{
  border:1px solid var(--border-mid);
  background: rgba(255,255,255,.55);
  color:var(--ink);
  border-radius:999px;
  padding:6px 10px;
  cursor:pointer;
}
.tbtn.is-active{
  background: rgba(255,74,160,.22);
  border-color: rgba(255,74,160,.55);
}

.cards{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:10px;
}
@media (max-width: 720px){ .cards{ grid-template-columns:1fr; } }

.card{
  border:1px solid var(--border-mid);
  background: rgba(255,255,255,.55);
  border-radius:14px;
  padding:12px;
}
.card a{
  color:var(--ink);
  text-decoration-thickness:2px;
  text-underline-offset:2px;
}
.card__links{
  margin-top:10px;
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
}
.sep{ color: rgba(59,35,23,.35); }

/* Links */
.linklist{ margin:0; padding-left:18px; }
.linklist li{ margin:10px 0; }
.linklist a{ color:var(--ink); }

/* Contact form */
.form{ display:grid; gap:10px; }
.form label{ display:grid; gap:6px; font-size:13px; }

input, textarea{
  width:100%;
  border-radius:12px;
  border:1px solid var(--border-mid);
  padding:10px 12px;
  background: rgba(255,255,255,.70);
  color:var(--ink);
  font:inherit;
}
textarea{ resize:vertical; }
input:focus, textarea:focus{
  outline:3px solid rgba(255,74,160,.40);
  border-color: rgba(255,74,160,.55);
}

.form__row{ display:flex; flex-wrap:wrap; gap:10px; margin-top:6px; }

.btn{
  border:1px solid rgba(59,35,23,.26);
  background: rgba(255,74,160,.18);
  color:var(--ink);
  border-radius:12px;
  padding:10px 12px;
  cursor:pointer;
}
.btn:hover{ background: rgba(255,74,160,.26); }
.btn--ghost{ background: rgba(255,255,255,.55); }
.btn--ghost:hover{ background: rgba(255,255,255,.75); }

/* =========================================================
   TASKBAR + START MENU
   ========================================================= */
.taskbar{
  position:fixed;
  left:0; right:0; bottom:0;
  height:var(--taskbar-h);
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,225,239,.92));
  border-top:1px solid var(--border-dark);
  backdrop-filter: blur(10px);
}

.start-btn{
  border:1px solid rgba(59,35,23,.26);
  background: rgba(255,255,255,.65);
  border-radius:14px;
  padding:10px 14px;
  font-weight:900;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.start-btn:hover{ background: rgba(255,255,255,.80); }
.start-btn__dot{
  width:10px; height:10px;
  border-radius:999px;
  background: var(--pink-500);
}

.task-buttons{
  flex:1;
  display:flex;
  gap:8px;
  min-width:0;
  overflow:auto;
  padding-bottom:2px;
}
.task-btn{
  flex:0 0 auto;
  max-width:220px;
  border:1px solid rgba(59,35,23,.26);
  background: rgba(255,255,255,.55);
  border-radius:12px;
  padding:8px 10px;
  cursor:pointer;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.task-btn.is-active{
  background: rgba(255,74,160,.22);
  border-color: rgba(255,74,160,.55);
}

.tray{ display:flex; align-items:center; gap:10px; }
.tray__pill{
  border:1px solid rgba(59,35,23,.22);
  background: rgba(255,255,255,.55);
  border-radius:999px;
  padding:8px 10px;
  font-family:var(--mono);
  font-size:12px;
}

/* Start menu */
.start-menu{
  position:fixed;
  left:10px;
  bottom: calc(var(--taskbar-h) + 10px);
  width: min(320px, calc(100vw - 20px));
  border-radius:16px;
  border:1px solid var(--border-dark);
  background: rgba(255,243,248,.96);
  box-shadow: 0 18px 40px rgba(59,35,23,.22);
  overflow:hidden;
}
.start-menu__head{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px;
  border-bottom:1px solid var(--border-mid);
  background: linear-gradient(180deg, rgba(255,225,239,.95), rgba(255,198,225,.95));
}
.start-badge{
  width:26px; height:26px;
  display:grid; place-items:center;
  border-radius:10px;
  border:1px solid rgba(59,35,23,.18);
  background: rgba(255,255,255,.6);
}
.start-menu__items{
  display:grid;
  padding:10px;
  gap:8px;
}
.sm-item{
  border:1px solid rgba(59,35,23,.22);
  background: rgba(255,255,255,.55);
  color:var(--ink);
  border-radius:12px;
  padding:10px;
  cursor:pointer;
  text-align:left;
  text-decoration:none;
}
.sm-item:hover{ background: rgba(255,255,255,.75); }

.start-menu__foot{
  padding:10px;
  border-top:1px solid var(--border-mid);
  background: rgba(255,255,255,.35);
}
.sm-item--danger:hover{
  background: rgba(255,74,160,.20);
  border-color: rgba(255,74,160,.55);
}
