:root {
  --gold: #b4b7b5;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #e4e4e7;
  --red: #ff3b30;
  --sys: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--sys);
  color: var(--ink);
  background: var(--gold);
  overflow: hidden;
}
a { color: inherit; }

/* Wallpaper: sits at the bottom right, fades into the plain background */
body::before {
  content: ""; position: fixed; right: 0; bottom: 0; z-index: -1;
  height: 160vh; aspect-ratio: 1333 / 2000;
  background: url(assets/wallpaper.jpg) center bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 22%), linear-gradient(to bottom, transparent, #000 22%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 22%), linear-gradient(to bottom, transparent, #000 22%);
  mask-composite: intersect;
}

/* Top menu */
.menubar {
  position: fixed; inset: 0 0 auto 0; z-index: 100000;
  height: 30px; padding: 0 14px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(30, 30, 30, .3);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  color: #fff; font-size: 13px;
}
.menubar nav { display: flex; align-items: center; gap: 2px; }
.menubar a { text-decoration: none; padding: 3px 9px; border-radius: 5px; }
.menubar a:hover, .menubar a:focus-visible { background: rgba(255, 255, 255, .22); outline: none; }
.menubar .name { font-weight: 700; }
.mango { width: 15px; height: 15px; margin: 0 5px 2px 3px; flex: none; }
.status { display: flex; align-items: center; gap: 14px; }
.status svg { display: block; height: 13px; width: auto; flex: none; }
.clock { white-space: nowrap; }

/* Desktop */
.desktop { position: fixed; inset: 30px 0 0 0; }
.widgets { position: absolute; top: 16px; left: 18px; display: flex; gap: 14px; }
.widget {
  width: 164px; height: 164px; border-radius: 22px; padding: 13px 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .22);
}
.cal { background: rgba(255, 255, 255, .92); }
.cal-month { color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 5px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 9.5px; line-height: 17px; font-weight: 600; }
.cal-grid .dow { color: var(--muted); font-size: 8.5px; }
.cal-grid .today { background: var(--red); color: #fff; border-radius: 50%; }
.weather { background: linear-gradient(180deg, #2f6fc4, #79aee6); color: #fff; display: flex; flex-direction: column; }
.w-city { font-size: 13px; font-weight: 600; }
.w-temp { font-size: 40px; font-weight: 300; line-height: 1.1; }
.w-bottom { margin-top: auto; font-size: 11.5px; font-weight: 500; line-height: 1.35; }

/* Icons */
.icon {
  position: absolute; width: 104px; padding: 6px 2px; border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  background: none; border: 0; cursor: pointer; text-decoration: none;
  font: 500 12px/1.25 var(--sys); color: #fff; text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
}
.icon:hover span, .icon:focus-visible span { background: #2f6fd6; border-radius: 4px; text-shadow: none; }
.icon:focus-visible { outline: none; }
.icon span { padding: 1px 5px; }
.icon img, .icon svg { width: 62px; height: 62px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .3)); }
.icon img.photo { object-fit: cover; width: 66px; height: 66px; border: 3px solid #fff; }
.icon.folder img { width: 72px; height: 72px; }

.i-about { right: 14px; top: 16px; }
.i-contact { right: 14px; top: 126px; }
.i-press { right: 14px; top: 236px; }
.i-writings { left: 24px; top: 212px; }
.i-magician { left: 150px; top: 236px; }
.i-kit { left: 276px; top: 206px; }
.i-ard { left: 396px; top: 244px; }
.i-book { left: 96px; top: 346px; }
.i-yoga { left: 214px; top: 356px; }
.i-nike { left: 336px; top: 372px; }
.i-ig { left: 24px; bottom: 26px; }
.i-tt { left: 124px; bottom: 26px; }
.i-li { left: 224px; bottom: 26px; }
.i-yt { left: 324px; bottom: 26px; }

/* Video thumbnail */
.video { position: relative; width: 88px; height: 50px; border: 3px solid #fff; background: #000; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); line-height: 0; }
.icon .video img { width: 100%; height: 100%; object-fit: cover; filter: none; }
.video::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: rgba(0, 0, 0, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath fill='%23fff' d='M8.500 6v10l8-5z'/%3E%3C/svg%3E"); }

/* Everything on the desktop can be dragged */
.icon, .widget { touch-action: none; user-select: none; -webkit-user-select: none; }
.widget { cursor: grab; }
.icon img, .icon svg { -webkit-user-drag: none; pointer-events: none; }
.dragging, .dragging * { cursor: grabbing; }

/* Windows */
.window {
  position: absolute; display: none; flex-direction: column;
  top: 34px; left: 50%; margin-left: -340px;
  width: 680px; max-height: calc(100% - 60px);
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45), 0 0 0 .5px rgba(0, 0, 0, .25);
}
.window.open { display: flex; }
.titlebar {
  flex: none; height: 38px; position: relative; cursor: grab; touch-action: none;
  display: flex; align-items: center; justify-content: center;
  background: #f4f4f5; border-bottom: 1px solid var(--line);
  font-size: 13px; font-weight: 600; user-select: none;
}
.close {
  position: absolute; left: 12px; top: 12px; width: 14px; height: 14px; padding: 0;
  border-radius: 50%; border: .5px solid rgba(0, 0, 0, .2); background: #ff5f57; cursor: pointer;
}
.close::after { content: ""; position: absolute; left: 21px; top: 0; width: 14px; height: 14px; border-radius: 50%; background: #febc2e; box-shadow: 21px 0 0 #28c840; pointer-events: none; }
.body { overflow-y: auto; padding: 24px 28px; font-size: 15px; line-height: 1.55; }
.body p { margin: 0 0 14px; }
.body p:last-child { margin-bottom: 0; }
.portrait { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; margin-bottom: 18px; }

/* Contact form */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; }
.form input, .form textarea { font: 400 15px/1.4 var(--sys); padding: 9px 10px; border: 1px solid #c9c9ce; border-radius: 6px; width: 100%; color: inherit; background: #fff; }
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid #2f6fd6; outline-offset: -1px; border-color: transparent; }
.form button { justify-self: start; font: 600 14px var(--sys); color: #fff; background: #2f6fd6; border: 0; border-radius: 6px; padding: 9px 22px; cursor: pointer; }
.form button:disabled { opacity: .55; cursor: default; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.form-note { margin: 0; font-size: 14px; min-height: 1px; }

/* Finder list */
.list { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.list a { display: flex; justify-content: space-between; gap: 18px; padding: 8px 12px; text-decoration: none; border-radius: 5px; }
.list li:nth-child(odd) a { background: #f6f6f7; }
.list a:hover { background: #2f6fd6; color: #fff; }
.list a:hover small { color: #fff; }
.list small { flex: none; color: var(--muted); font-size: 12.5px; }
.window.flush .body { padding: 8px; }

/* writings.docx */
.window.doc { background: #e9e9ec; }
.doc .body { padding: 22px; }
.page { background: #fff; padding: 44px 48px; box-shadow: 0 1px 6px rgba(0, 0, 0, .18); font-family: Georgia, "Times New Roman", serif; }
.page h1 { font-size: 28px; font-weight: 400; margin: 0 0 22px; }
.book { display: flex; gap: 18px; align-items: center; margin-bottom: 24px; }
.book img { width: 100px; flex: none; }
.page ul { margin: 0; padding-left: 18px; }
.page li { margin-bottom: 9px; }

/* Phones */
@media (max-width: 760px) {
  body { overflow: auto; }
  body::before { height: 70vh; }
  .menubar { font-size: 12px; padding: 0 6px; }
  .menubar a { padding: 3px 5px; }
  .status { gap: 9px; }
  .s-search, .s-control { display: none; }
  .desktop { position: relative; inset: auto; margin-top: 30px; padding: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 2px; }
  .widgets { position: static; grid-column: 1 / -1; justify-content: center; }
  .widget { width: 50%; max-width: 170px; aspect-ratio: 1; height: auto; }
  .icon { position: static; width: 100%; font-size: 11px; overflow-wrap: anywhere; }
  .icon img, .icon svg { width: 54px; height: 54px; }
  .icon img.photo { width: 56px; height: 56px; }
  .icon.folder img { width: 60px; height: 60px; }
  .video { width: 70px; height: 42px; margin: 6px 0; }
  .window { position: fixed; inset: 30px 0 0 0; margin: 0; width: auto; max-height: none; border-radius: 0; z-index: 50; }
  .titlebar { cursor: default; }
  .body { padding: 20px 18px; }
  .page { padding: 26px 22px; }
  .doc .body { padding: 10px; }
  .list a { flex-direction: column; gap: 1px; }
}
