@font-face {
  font-family: "ABCStefanTrial";
  src: url("assets/fonts/ABCStefanTrial-Simple.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1c1d1a;
  --ink-soft: rgba(255, 255, 255, 0.82);
  --ink-faint: rgba(255, 255, 255, 0.56);
  --sticky: #72d6e9;
  --sticky-title: #232320;
  --sticky-ink: #20211e;
  --headline: #17c862;
  --accent: #17c862;
  --accent-ink: #ffffff;
  --font-display: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: var(--font-display);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

a { color: inherit; }

.scene {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  overflow: hidden;
  background: #bcdff0;
  user-select: none;
  -webkit-user-select: none;
  cursor: url("assets/frog-cursor.png?v=2") 30 14, auto;
}

/* separate layer for the photo so the saturation/contrast bump below
   only touches the wallpaper, not the real UI drawn on top of it */
.scene-bg {
  position: absolute;
  inset: 0;
  background-color: #bcdff0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: saturate(1.1) contrast(1.04);
  z-index: 0;
}

/* quiet top/bottom vignette so the menu bar and dock stay legible over any photo */
.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.16), transparent 90px),
    linear-gradient(to top, rgba(0, 0, 0, 0.16), transparent 110px);
  pointer-events: none;
  z-index: 4;
}

.menubar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: clamp(28px, 3.4vw, 34px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(12px, 2vw, 20px);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  font-size: clamp(10.5px, 1.05vw, 12.5px);
  font-weight: 500;
  color: #000;
  z-index: 20;
}

.menubar .left, .menubar .right { display: flex; align-items: center; gap: clamp(10px, 1.5vw, 17px); }
.menubar .apple-logo { width: clamp(11px, 1.05vw, 13px); height: clamp(11px, 1.05vw, 13px); flex: none; }
.menubar .app-name { font-weight: 700; }
.menubar .dim { opacity: 1; }
.menubar .right { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- wordmark + download, pinned top ---------- */

.topbar {
  position: absolute;
  top: clamp(40px, 5.4vw, 56px);
  left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 3.4vw, 40px);
  z-index: 15;
}

/* ---------- the two cards, side by side like the reference ---------- */
/* Rendered via flex for the initial responsive layout, then measured and
   switched to draggable absolute positioning once — see script.js. */

.cards-row {
  position: absolute;
  top: clamp(70px, 11.4vw, 106px);
  left: clamp(18px, 3.4vw, 40px);
  right: clamp(18px, 3.4vw, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  z-index: 8;
}

/* Fixed size, on purpose: the to-do list should never shrink or scale —
   on a narrow window/phone the row above just runs out of horizontal
   room and wraps the sticky note underneath the headline card instead. */
.card-shared {
  width: 300px;
  height: 450px;
  flex: none;
  border-radius: 5px;
  padding: 22px 24px;
}

.headline-card {
  background: var(--headline);
  box-shadow: 0 22px 44px -14px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: grab;
  touch-action: none;
  transition: box-shadow .15s ease;
}
.headline-lines div {
  font-weight: 400;
  font-size: 40px;
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: #fff;
}
.headline-blurb {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
  max-width: 92%;
}

.top-download {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 10px 26px -8px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.top-download:hover { background: #12a854; transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.45); }
.top-download:active { transform: translateY(0); }
.top-download svg { width: 15px; height: 15px; }

/* ---------- dock ---------- */

.dock-wrap {
  position: absolute;
  left: 0; right: 0; bottom: clamp(10px, 1.8vw, 18px);
  display: flex;
  justify-content: center;
  z-index: 20;
  pointer-events: none;
}

.dock {
  pointer-events: auto;
  cursor: default;
  display: flex;
  align-items: flex-end;
  gap: clamp(5px, 0.9vw, 10px);
  padding: clamp(7px, 1.1vw, 11px) clamp(9px, 1.4vw, 15px);
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  border-radius: clamp(13px, 1.8vw, 20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  list-style: none;
  margin: 0;
}

/* No magnify: icon size and the dock pill stay completely fixed on
   hover — only the name tooltip appears above, like the macOS dock's
   tooltip (not its magnify) behavior. */
.dock-item {
  position: relative;
  width: clamp(34px, 4.2vw, 46px);
  height: clamp(34px, 4.2vw, 46px);
  border-radius: 24%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #eceae3;
  overflow: visible;
}
.dock-item img { width: 100%; height: 100%; display: block; border-radius: 24%; }

/* Real app icons already come with their own rounded-square artwork
   baked in — no neutral tile or extra padding behind them, same
   100%-fill box as the outline icons, so every tile is the same size. */
.dock-item.tood { background: transparent; box-shadow: none; }
.dock-item.plain { background: transparent; box-shadow: none; }
.dock-item.plain img { border-radius: 22%; }

.dock-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(2px);
  margin-bottom: 14px;
  background: rgba(232, 233, 226, 0.92);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  color: #1c1d1a;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
  transition: opacity .15s ease, transform .15s ease;
}
.dock-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 12px;
  height: 7px;
  transform: translateX(-50%);
  background: rgba(232, 233, 226, 0.92);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.dock-item.hover .dock-tooltip { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- the sticky, matching the real app ---------- */

.sticky {
  background: var(--sticky);
  box-shadow: 0 22px 44px -14px rgba(0, 0, 0, 0.45);
  cursor: grab;
  touch-action: none;
  transition: box-shadow .15s ease;
}
.sticky.dragging, .headline-card.dragging { cursor: grabbing; z-index: 50 !important; box-shadow: 0 30px 56px -12px rgba(0,0,0,.5); transition: none; }

.sticky-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.sticky-title { font-weight: 400; font-size: 40px; color: var(--sticky-title); line-height: 1; letter-spacing: -0.01em; }
.sticky-date { font-family: var(--font-mono); font-size: 10.5px; color: rgba(32,33,30,.4); padding-top: 5px; white-space: nowrap; }

.sticky-row { display: flex; align-items: center; gap: 9px; padding: 6px 0; border-bottom: 1px solid rgba(32,33,30,.14); }
.sticky-row:last-child { border-bottom: none; }
.sticky-box { flex: none; width: 11px; height: 11px; border-radius: 2px; border: 1.1px solid rgba(32,33,30,.35); background: transparent; }
.sticky-row.done .sticky-box { background: rgba(32,33,30,.3); border-color: transparent; }
.sticky-text {
  font-family: "ABCStefanTrial", var(--font-display);
  font-size: 15px; /* Stefan's x-height runs small, same +size bump the real app applies */
  line-height: 1.3; color: rgba(32,33,30,.82); outline: none; cursor: text;
}
.sticky-row.done .sticky-text { color: rgba(32,33,30,.42); text-decoration: line-through; }

.credit {
  position: absolute;
  left: clamp(18px, 3.4vw, 40px);
  bottom: clamp(16px, 2.4vw, 24px);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  text-shadow: 0 1px 6px rgba(0,0,0,.2);
  z-index: 15;
}
.credit a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

.requirements {
  position: absolute;
  right: clamp(18px, 3.4vw, 40px);
  bottom: clamp(16px, 2.4vw, 24px);
  text-align: right;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.6;
  color: var(--ink-faint);
  text-shadow: 0 1px 6px rgba(0,0,0,.2);
  z-index: 15;
}

@media (max-width: 640px) {
  .dock-item { width: 32px; height: 32px; }
  .topbar { gap: 14px; }
  .credit, .requirements { display: none; }
  .top-download { font-size: 12px; padding: 9px 14px; gap: 6px; }
  .top-download svg { width: 13px; height: 13px; }
}
