@charset "UTF-8";

:root {
  color-scheme: light;
  --desktop-yellow: #f9bc20;
  --ink: #272720;
  --muted: #8b8c82;
  --bar-height: 43px;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Noto Sans JP", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: var(--sans);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; }
body { color: var(--ink); background: var(--desktop-yellow); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button, a, summary { touch-action: manipulation; }
button { color: inherit; }
button:focus-visible, a:focus-visible, dialog:focus-visible { outline: 3px solid #1469bf; outline-offset: 5px; }
button { cursor: pointer; }
button:disabled { cursor: default; }
svg { display: block; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.desktop { --safe-left: env(safe-area-inset-left, 0px); --safe-right: env(safe-area-inset-right, 0px); }
.desktop-file { position: relative; touch-action: none; cursor: grab; }
.desktop-file.is-dragging { cursor: grabbing; background: rgb(255 255 255 / 20%); border-color: rgb(255 255 255 / 30%); }
.desktop .desktop-file.is-dragging .desktop-file-art { transform: translateY(-3px) scale(1.04); }
.desktop.is-dragging-files, .desktop.is-dragging-files * { cursor: grabbing !important; }

.desktop { position: relative; width: 100vw; height: 100vh; height: 100dvh; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 50% 44%, #ffd24c 0%, #ffc62e 36%, #f5b51b 100%); }
.fox-stage { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; overflow: clip; }
.menu-bar { position: absolute; top: 0; left: 0; width: 100%; height: calc(var(--bar-height) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(28px, env(safe-area-inset-right)) 0 max(28px, env(safe-area-inset-left)); display: flex; align-items: center; gap: 26px; background: rgb(255 249 221 / 39%); border-bottom: 1px solid rgb(90 65 13 / 9%); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); z-index: 8; user-select: none; }
.site-name { color: #433315; font-size: 16px; font-weight: 750; letter-spacing: -.7px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.site-logo { display: block; width: 68px; height: auto; }
.menu-bar-right { margin-left: auto; display: flex; align-items: center; gap: 20px; color: #654c21; font-size: 11px; white-space: nowrap; }
.desktop-datetime { display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
#desktop-clock { min-width: 34px; text-align: right; }
.desktop-weather { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; color: inherit; text-decoration: none; font-variant-numeric: tabular-nums; }
.desktop-weather:hover .weather-current { opacity: .7; }
.weather-current { display: flex; align-items: center; gap: 5px; line-height: 15px; }
#weather-icon { display: inline-flex; }
#weather-icon svg { width: 15px; height: 15px; }
.weather-credit { font-size: 8px; line-height: 10px; opacity: .7; }
.desktop-weather[data-state="unavailable"] #weather-temperature { font-size: 9px; }

.desktop-files { position: absolute; z-index: 3; top: calc(var(--bar-height) + env(safe-area-inset-top) + 43px); left: max(27px, env(safe-area-inset-left)); right: max(27px, env(safe-area-inset-right)); display: flex; justify-content: space-between; pointer-events: none; }
.desktop-column { display: flex; flex-direction: column; gap: 26px; pointer-events: auto; }
.desktop-file { width: 98px; min-height: 99px; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 1px solid transparent; border-radius: 8px; background: transparent; padding: 7px 7px 9px; user-select: none; }
.desktop-file-art { display: block; width: 73px; height: 65px; filter: drop-shadow(0 3px 2px rgb(82 57 14 / 19%)) drop-shadow(0 13px 13px rgb(82 57 14 / 10%)); transition: transform .2s ease; }
.desktop-file-art svg { width: 100%; height: 100%; overflow: visible; }
.desktop-file-label { max-width: 100%; font: 11px/1.4 var(--mono); font-weight: 550; letter-spacing: -.1px; color: #fffdf1; text-shadow: 0 1px 3px rgb(102 63 1 / 75%), 0 0 10px rgb(111 74 5 / 12%); padding: 2px 5px; border-radius: 4px; white-space: nowrap; }
.desktop-file:hover { background: rgb(255 255 255 / 12%); border-color: rgb(255 255 255 / 14%); }
.desktop-file:hover .desktop-file-art { transform: translateY(-3px); }
.desktop-file:active .desktop-file-art { transform: translateY(0) scale(.97); }
.desktop-file[aria-expanded="true"] .desktop-file-label { background: #328be1; text-shadow: 0 1px 2px rgb(0 58 121 / 35%); }

.desktop-footer { position: absolute; z-index: 4; left: max(30px, env(safe-area-inset-left)); right: max(30px, env(safe-area-inset-right)); bottom: max(23px, env(safe-area-inset-bottom)); min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px; pointer-events: none; }
.desktop-caption { font-size: 10px; letter-spacing: .025em; color: rgb(104 73 14 / 67%); user-select: none; }
.motion-toggle { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 7px 11px; border: 1px solid rgb(104 73 14 / 12%); border-radius: 24px; background: rgb(255 244 205 / 28%); color: #795721; font-size: 10px; line-height: 1; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); pointer-events: auto; white-space: nowrap; transition: background .2s; }
.motion-toggle:hover { background: rgb(255 251 226 / 60%); }
.motion-toggle svg { width: 15px; height: 15px; }
.motion-toggle[aria-pressed="true"] svg { opacity: .45; }
.open-files { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: flex; gap: 5px; padding: 5px; border-radius: 12px; pointer-events: auto; }
.open-files:has(button) { background: rgb(255 248 221 / 55%); border: 1px solid rgb(255 255 255 / 25%); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 8px 20px rgb(83 55 6 / 10%); }
.dock-file { position: relative; width: 39px; height: 39px; padding: 2px; border: 0; background: transparent; border-radius: 8px; }
.dock-file:hover { background: rgb(255 255 255 / 45%); }
.dock-file svg { width: 100%; height: 100%; }
.dock-file::after { content: ""; position: absolute; width: 3px; height: 3px; background: #735527; border-radius: 50%; bottom: -2px; left: calc(50% - 1.5px); }

.window-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.desktop-window { position: absolute; width: min(460px, calc(100% - 42px)); max-height: calc(100% - var(--bar-height) - 100px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); padding: 0; margin: 0; border: 1px solid rgb(255 255 255 / 65%); border-radius: 12px; background: #fafaf6; color: #30332f; box-shadow: 0 20px 70px rgb(103 66 5 / 20%), 0 3px 8px rgb(88 62 15 / 13%); overflow: hidden; pointer-events: auto; }
.desktop-window[open] { display: flex; flex-direction: column; animation: window-appear .22s cubic-bezier(.2,.7,.2,1); }
.window-header { position: relative; min-height: 43px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #e1e2db; background: linear-gradient(#f5f5ef, #edeee7); cursor: grab; user-select: none; touch-action: none; }
.window-header:active { cursor: grabbing; }
.window-title { font: 10px/1 var(--mono); letter-spacing: -.1px; margin: 0; font-weight: 500; }
.window-controls { position: absolute; left: 7px; top: 0; bottom: 0; display: flex; align-items: center; gap: 0; }
.window-control { display: grid; place-items: center; width: 28px; height: 33px; border: 0; padding: 0; background: transparent; border-radius: 5px; }
.window-control span { position: relative; display: block; width: 11px; height: 11px; border-radius: 50%; color: transparent; border: 1px solid rgb(0 0 0 / 9%); }
.window-control span::before, .window-control-close span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 1px; border-radius: 1px; background: currentColor; transform: translate(-50%, -50%); }
.window-control-close span::before { transform: translate(-50%, -50%) rotate(45deg); }
.window-control-close span::after { transform: translate(-50%, -50%) rotate(-45deg); }
.window-control:hover span, .window-control:focus-visible span { color: rgb(0 0 0 / 50%); }
.window-control:focus-visible { outline: none; }
.window-control:focus-visible span { outline: 2px solid #1469bf; outline-offset: 3px; }
.window-control-close span { background: #f77970; }
.window-control-minimize span { background: #edc459; }
.window-decoration { position: absolute; right: 16px; width: 7px; height: 7px; border: 1px solid #b6b9ac; border-radius: 2px; }
.window-content { padding: 30px 32px 33px; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; min-height: 0; scrollbar-width: thin; scrollbar-color: #d6d9cc transparent; }
.file-eyebrow { margin: 0 0 22px; font: 9px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #9b9e91; }
.text-document h1 { margin: 0 0 20px; font-size: clamp(25px, 4vw, 31px); font-weight: 550; letter-spacing: -1.2px; line-height: 1.2; }
.text-document p:not(.file-eyebrow) { font-size: 12px; line-height: 2; color: #73786c; letter-spacing: .02em; }
.text-document .document-signoff { margin-top: 28px; font: 10px/1.7 var(--mono); color: #a1a597; }
.text-document p.profile-name { margin-top: -10px; font: 11px/1.7 var(--mono); letter-spacing: .02em; color: #8a8f80; }
.text-document p.profile-birthday { margin: 16px 0 25px; font: 10px/1.7 var(--mono); color: #8a8f80; }
.document-divider { height: 1px; background: #e7e9e0; margin: 25px 0; }
.mail-link { display: inline-flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 450; letter-spacing: -.7px; color: #373e33; text-decoration-color: #d2d8c6; text-underline-offset: 6px; margin: 7px 0 17px; }
.mail-link:hover { color: #156eb1; }
.mail-link svg { width: 16px; height: 16px; }
.folder-path { display: flex; align-items: center; gap: 6px; margin: -12px -14px 24px; padding: 8px 12px; background: #f0f1ea; border: 1px solid #e6e8de; border-radius: 5px; color: #969b8d; font: 9px/1.4 var(--mono); }
.folder-path span { color: #5f6659; }
.folder-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.folder-entry { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 115px; padding: 15px 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #53594e; text-decoration: none; text-align: center; }
a.folder-entry:hover { border-color: #dce2d3; background: #f0f3e9; }
.folder-entry > svg { width: 46px; height: 44px; filter: drop-shadow(0 4px 4px rgb(35 55 20 / 8%)); }
.folder-entry-name { font: 10px/1.5 var(--mono); }
.folder-entry-description { color: #a2a696; font-size: 9px; line-height: 1.5; }
.entry-external { position: absolute; top: 10px; right: 10px; color: #aeb6a1; width: 12px; height: 12px; }
.folder-entry.entry-unavailable { opacity: .55; }
.folder-status { display: flex; justify-content: space-between; margin: 27px -32px -33px; padding: 10px 17px; border-top: 1px solid #e9ebe2; background: #f5f6f0; color: #a0a592; font: 9px/1.5 var(--mono); }
.no-script { position: fixed; z-index: 20; background: #fff8db; padding: 16px; bottom: 20px; left: 20px; right: 20px; border-radius: 8px; font-size: 12px; }
@keyframes window-appear { from { opacity: 0; transform: translateY(7px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (min-width: 1600px) {
  .desktop-files { top: calc(var(--bar-height) + env(safe-area-inset-top) + 64px); left: 43px; right: 43px; }
  .desktop-column { gap: 34px; }
}

@media (max-width: 600px) {
  :root { --bar-height: 42px; }
  .menu-bar { padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); gap: 12px; }
  .site-name { font-size: 15px; }
  .site-logo { width: 58px; }
  .menu-bar-right { gap: 12px; font-size: 10px; }
  .desktop-datetime { gap: 7px; }
  .date-year { display: none; }
  .weather-current { gap: 4px; }
  .weather-credit { font-size: 7px; line-height: 9px; }
  .desktop-files { top: calc(var(--bar-height) + env(safe-area-inset-top) + 22px); left: max(8px, env(safe-area-inset-left)); right: max(8px, env(safe-area-inset-right)); }
  .desktop-column { gap: 11px; }
  .desktop-file { width: 78px; min-height: 88px; padding: 6px 2px; gap: 1px; }
  .desktop-file-art { width: 61px; height: 56px; }
  .desktop-file-label { font-size: 9px; padding: 3px; }
  .desktop-footer { left: max(18px, env(safe-area-inset-left)); right: max(18px, env(safe-area-inset-right)); bottom: max(19px, env(safe-area-inset-bottom)); }
  .desktop-caption { max-width: 105px; font-size: 8px; line-height: 1.6; }
  .motion-toggle { min-height: 44px; padding: 10px; gap: 6px; font-size: 9px; }
  .motion-toggle svg { width: 17px; height: 17px; }
  .open-files { display: none; }
  .desktop-window { width: calc(100% - 26px); max-height: calc(100% - var(--bar-height) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 38px); border-radius: 13px; }
  .window-header { min-height: 49px; cursor: default; }
  .window-controls { left: 3px; }
  .window-control { width: 44px; height: 44px; }
  .window-control-minimize { display: none; }
  .window-control span { width: 12px; height: 12px; color: rgb(0 0 0 / 45%); }
  .window-content { padding: 27px 25px 30px; }
  .window-title { font-size: 11px; }
  .text-document h1 { font-size: 28px; }
  .text-document p:not(.file-eyebrow) { font-size: 12px; line-height: 2; }
  .folder-status { margin: 25px -25px -30px; }
  .folder-items { gap: 6px; }
}

@media (max-height: 510px) and (min-width: 601px) {
  .desktop-files { top: calc(var(--bar-height) + env(safe-area-inset-top) + 12px); }
  .desktop-column { gap: 4px; }
  .desktop-file { min-height: 83px; }
  .desktop-file-art { width: 58px; height: 51px; }
  .desktop-footer { bottom: 12px; }
  .desktop-window { max-height: calc(100% - var(--bar-height) - 56px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
