/* Second round: three complete desktop languages, sharing the same applications. */
body[data-world] { --ui: Tahoma, sans-serif; --reading: Tahoma, sans-serif; }
body[data-world] #desktop::before { display: none; }
body[data-world] .profile-nav { flex-shrink:0;overflow-y:hidden; }
.world-page { width: 100%; max-width: 1200px; margin: auto; padding: 28px; overflow-wrap: anywhere; }
.world-page h1 { text-wrap: balance; }
.world-page h2 { font-size: 20px; margin-bottom: 14px; }
.world-page h3 { font-size: 14px; margin: 22px 0 8px; }
.world-page p { line-height: 1.65; max-width: 65ch; }
.world-page ul { padding-left: 20px; }
.world-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.world-actions button { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; }
.world-actions .icon { --size: 26px; width: 26px; height: 28px; font-size: 0; margin: 0; }
.world-actions .icon::before,.world-actions .icon::after { transform: scale(.55); transform-origin: top left; }
.world-portrait { min-width: 0; position: relative; }
.world-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.world-portrait figcaption { padding: 12px 8px 4px; font: 13px/1.4 Tahoma,sans-serif; text-align: center; }
.world-photo-empty { display: grid; place-items: center; min-height: 240px; background: #e6d7cc; }
.world-photo-empty span { display: block; width: 58px; height: 72px; border: 1px solid currentColor; position: relative; opacity: .5; }
.world-photo-empty span::before { content: ''; position: absolute; inset: 7px 7px 18px; border: 1px solid currentColor; }
.world-photo-empty span::after { content: ''; position: absolute; bottom: 8px; left: 17px; right: 17px; border-bottom: 1px solid currentColor; }
.world-now { display: grid; gap: 15px; }
.world-now dt { font-size: 13px; margin-bottom: 4px; }
.world-now dd { font-size: 16px; }
body[data-world] .world-icon,
body[data-world] .world-icon::before,
body[data-world] .world-icon::after { border: 0; background: none; box-shadow: none; border-radius: 0; color: inherit; }
body[data-world] .world-icon::before,body[data-world] .world-icon::after { display: none; }
.world-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.world-icon .icon-paper { fill: var(--icon-paper,#fff8e6); }
.world-icon .icon-fill { fill: var(--icon-fill,#d58b9f); }
body[data-world] .world-actions .world-icon { width: 26px; height: 28px; }

/* Álbum: a collected paper desktop, with a letter, photo and removable notes. */
body[data-world="album"] { --ink:#553d37; --focus:#88445f; --reading:Georgia,serif; }
body[data-world="album"] #desktop { background: #dfc28e; background-image: radial-gradient(#7b552b18 .7px,transparent .7px); background-size: 5px 5px; }
body[data-world="album"] .desktop-apps { gap: 10px; }
body[data-world="album"] .file-button > span:last-child { background: #fff6df; border: 1px solid #b18b6755; border-radius: 0; }
body[data-world="album"] .window { border: 1px solid #785447; border-radius: 2px; box-shadow: 4px 6px 0 #78544733,0 12px 24px #78544726; }
body[data-world="album"] .titlebar { justify-content: flex-start; padding: 0 110px 0 15px; min-height: 39px; background: #e8c8be; border-bottom: 1px solid #98735f; }
body[data-world="album"] .focused .titlebar { background: #b46580; color: #fff8ec; }
body[data-world="album"] .window-title { text-shadow: none; letter-spacing: .01em; }
body[data-world="album"] .window-controls { left: auto; right: 6px; }
body[data-world="album"] .window-controls button { border-radius: 2px; }
body[data-world="album"] .window-controls button::before { inset: 3px; background: #fff5e2; border: 1px solid #6e4e41; border-radius: 2px; box-shadow: 1px 1px #6e4e41; }
body[data-world="album"] .window-controls button::after { opacity: 1; color: #6e4e41; }
body[data-world="album"] .browser-tools { background: #f0dfc2; box-shadow: none; }
body[data-world="album"] .profile-nav { background: #f0dfc2; padding: 8px 15px 0; gap: 7px; }
body[data-world="album"] .profile-nav button { border-radius: 4px 4px 0 0; border: 1px solid #af8b6c; border-bottom: 0; background: #e4c0c0; padding: 7px 16px; box-shadow: none; }
body[data-world="album"] .profile-nav button[aria-current] { background: #fff9ed; transform: translateY(1px); }
body[data-world="album"] .browser-scroll { background: #e5d1b0; }
body[data-world="album"] #dock { background: #fff9e8cc; border: 1px solid #a88263; border-radius: 4px; box-shadow: 3px 4px #78544733; }
.album-page { padding: 24px 34px 44px; }
.album-page > header { padding: 0 0 24px 12px; }
.album-page h1 { font: 700 clamp(36px,4.3vw,60px)/1.05 Asul,Georgia,serif; letter-spacing: -.045em; }
.album-board { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 28px 34px; align-items: start; }
.album-letter { padding: 28px; background: #fffaf0; box-shadow: 2px 4px 7px #775b4026; border: 1px solid #c3ab8c; }
.album-letter .world-intro { font: 18px/1.65 Georgia,serif; }
.album-letter h2 { padding-top: 20px; border-top: 1px solid #d7c4ad; font: 700 22px Asul,Georgia,serif; }
.album-letter p:not(.world-intro) { font: 16px/1.65 Georgia,serif; }
.album-letter h3 { font-family: Tahoma,sans-serif; }
.album-letter .world-actions button { background: #f3d78c; border: 1px solid #957456; border-radius: 0; font: 14px Tahoma,sans-serif; box-shadow: 2px 2px #95745633; }
.album-board .world-portrait { margin: 14px 8px 0 0; padding: 12px 12px 8px; background: #fffcf4; border: 1px solid #b49a80; transform: rotate(2deg); box-shadow: 3px 7px 10px #775b4033; }
.album-board .world-portrait::before { content:''; position:absolute; z-index:1; top:-12px; left:calc(50% - 40px); width:80px; height:28px; background:#e8b7b8c9; border-left:1px dashed #b98778; border-right:1px dashed #b98778; transform:rotate(-6deg); }
.album-board .world-photo-empty { min-height: 270px; background:#d9c4b6; }
.album-now { grid-column:2; grid-row:2; margin: -5px 15px 0 0; padding:24px; background:#f6dc8c; box-shadow:2px 4px 6px #775b4026; transform:rotate(-1deg); }
.album-now h2 { font:700 20px Asul,Georgia,serif; }
.album-now .world-now > div { border-bottom:1px solid #c1a45166; padding-bottom:10px; }
.album-now dt { font-family:Tahoma,sans-serif; }
.album-contact { grid-column:1; grid-row:2; padding:12px 8px; font:15px/1.6 Tahoma,sans-serif; }
.album-contact h2 { font:700 22px Asul,Georgia,serif; }

/* Archivo: bevelled system UI, file properties and a persistent navigation rail. */
body[data-world="archivo"] { --ink:#49313c; --muted:#705966; --focus:#843b62; --icon-fill:#d897b2; --icon-paper:#fffbe6; }
body[data-world="archivo"] #desktop { background: #a8889d; }
body[data-world="archivo"] .window { border: 2px solid #fff8e9; outline: 1px solid #73556a; border-radius: 0; background:#e5ded2; box-shadow:inset -1px -1px #7e6a73,4px 5px #513c4c55; }
body[data-world="archivo"] .titlebar { margin:2px 2px 0; justify-content:flex-start; padding:0 100px 0 8px; background:#b5a7af; color:#49313c; border:0; min-height:30px; box-shadow:none; }
body[data-world="archivo"] .focused .titlebar { background:#804461; color:#fffbe9; }
body[data-world="archivo"] .window-title { text-shadow:none; font:700 13px Tahoma,sans-serif; }
body[data-world="archivo"] .window-controls { left:auto;right:2px;top:2px;gap:3px; }
body[data-world="archivo"] .window-controls button { width:24px;height:24px;background:#e5ded2;border-radius:0;border:1px solid;border-color:#fff #796571 #796571 #fff;box-shadow:1px 1px #49313c;font-size:0; }
body[data-world="archivo"] .window-controls button::before { display:none; }
body[data-world="archivo"] .window-controls button::after { opacity:1;color:#49313c; }
body[data-world="archivo"] .window-controls button:active { box-shadow:none;transform:translate(1px,1px); }
body[data-world="archivo"] .window-controls button[data-win-action="minimize"] { order:0; }
body[data-world="archivo"] .window-controls button[data-win-action="maximize"],body[data-world="archivo"] .window-controls button[data-win-action="restore"] { order:1; }
body[data-world="archivo"] .window-controls button[data-win-action="close"] { order:2; }
body[data-world="archivo"] .browser-body { display:grid;grid-template-columns:142px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr); }
body[data-world="archivo"] .browser-tools { grid-column:1/-1;background:#e5ded2;padding:7px 8px;gap:7px;border-bottom:1px solid #a6959d; }
body[data-world="archivo"] .address { border-radius:0;border:2px solid;border-color:#947f8b #fff #fff #947f8b;background:#fffdf4;box-shadow:none; }
body[data-world="archivo"] .profile-nav { grid-column:1;grid-row:2;display:flex;flex-direction:column;justify-content:flex-start;gap:2px;padding:16px 7px;background:#e5ded2;border:0;border-right:1px solid #b5a1ad;overflow:auto; }
body[data-world="archivo"] .profile-nav button { text-align:left;border:1px solid transparent;border-radius:0;padding:10px 8px;background:transparent;box-shadow:none;font:14px Tahoma,sans-serif; }
body[data-world="archivo"] .profile-nav button span { display:inline;color:inherit; }
body[data-world="archivo"] .profile-nav button[aria-current] { background:#804461;color:#fffbe9; }
body[data-world="archivo"] .browser-scroll { grid-column:2;grid-row:2;background:#fffdf4;margin:5px;border:1px solid #ad9b9d; }
body[data-world="archivo"] .world-icon svg { stroke-width:2;stroke-linejoin:miter;shape-rendering:crispEdges;filter:drop-shadow(1px 2px #49313c44); }
body[data-world="archivo"] .desktop-apps .file-button > span:last-child { background:transparent;color:#fffbe9;border-radius:0;font:13px/1.4 Tahoma,sans-serif;text-shadow:1px 1px #503344; }
body[data-world="archivo"] .file-button.file-selected > span:last-child { background:#804461; }
body[data-world="archivo"] #dock { background:#e5ded2e8;border:2px solid;border-color:#fff #796571 #796571 #fff;border-radius:0;box-shadow:2px 3px #513c4c55; }
body[data-world="archivo"] .dock-item { border-radius:0; }
body[data-world="archivo"] .dock-item.selected { background:#c8b6c3;box-shadow:inset 1px 1px #887581; }
body[data-world="archivo"] .primary,body[data-world="archivo"] .secondary,body[data-world="archivo"] .world-actions button { border-radius:0;background:#e5ded2;border:2px solid;border-color:#fff #796571 #796571 #fff;box-shadow:1px 1px #49313c44; }
.archive-page { padding:24px;max-width:850px;font:14px/1.6 Tahoma,sans-serif; }
.archive-page > header { display:flex;align-items:flex-start;gap:18px;padding-bottom:20px;border-bottom:1px solid #bca9b2; }
.archive-page > header .world-icon { width:56px;height:56px;flex-shrink:0; }
.archive-page h1 { font:700 28px/1.15 Tahoma,sans-serif;letter-spacing:-.03em; }
.archive-page .world-intro { margin-top:10px; }
.archive-id { display:grid;grid-template-columns:130px minmax(0,1fr);gap:24px;padding-top:22px; }
.archive-id .world-portrait { padding:5px;background:#e5ded2;border:1px solid #bca9b2;align-self:start; }
.archive-id .world-photo-empty { min-height:130px;background:#d9cbd1; }
.archive-id figcaption { font-size:12px; }
.archive-page h2 { font:700 15px/1.4 Tahoma,sans-serif; }
.archive-page h3 { margin-top:16px; }
.archive-section { border-top:1px solid #bca9b2;padding-top:18px;margin-top:20px; }
.archive-page .world-now { gap:0; }
.archive-page .world-now > div { display:grid;grid-template-columns:130px minmax(0,1fr);border-bottom:1px solid #e6dce0;padding:7px 0; }
.archive-page .world-now dt,.archive-page .world-now dd { font-size:14px;margin:0; }

/* Fanzine: a graphic personal publication in a restrained early-Mac shell. */
body[data-world="fanzine"] { --ink:#632c47; --muted:#80556a; --focus:#632c47;--icon-paper:#fcead4;--icon-fill:#e8c563; }
body[data-world="fanzine"] #desktop { background:#6c3b55;background-image:linear-gradient(#f2c6ce18 1px,transparent 1px),linear-gradient(90deg,#f2c6ce18 1px,transparent 1px);background-size:32px 32px; }
body[data-world="fanzine"] #shortcuts { display:flex;justify-content:flex-end; }
body[data-world="fanzine"] .desktop-apps .file-button { color:#fff0da; }
body[data-world="fanzine"] .desktop-apps .file-button > span:last-child { background:transparent;border-radius:0;font:14px/1.3 Georgia,serif; }
body[data-world="fanzine"] .window { border:1px solid #632c47;border-radius:0;box-shadow:5px 6px #291c2d66; }
body[data-world="fanzine"] .titlebar { min-height:34px;background:repeating-linear-gradient(0deg,#f9e5d1 0 2px,#b78598 2px 3px);border-bottom:1px solid #632c47;box-shadow:none; }
body[data-world="fanzine"] .window:not(.focused) .titlebar { background:#d9b5c1; }
body[data-world="fanzine"] .window-title { background:#f9e5d1;padding:3px 14px;font:700 14px Georgia,serif;letter-spacing:0;text-shadow:none; }
body[data-world="fanzine"] .window-controls { top:3px; }
body[data-world="fanzine"] .window-controls button::before { inset:5px;background:#f9e5d1;border:1px solid #632c47;border-radius:0;box-shadow:inset 0 0 0 2px #f9e5d1; }
body[data-world="fanzine"] .window-controls button::after { opacity:1;color:#632c47;font-size:12px; }
body[data-world="fanzine"] .browser-tools { background:#f5d8c5;border-bottom:1px solid #632c47; }
body[data-world="fanzine"] .address { border:1px solid #632c47;box-shadow:none;border-radius:0;background:#ffeddb; }
body[data-world="fanzine"] .profile-nav { justify-content:space-between;background:#e8c563;border-bottom:1px solid #632c47;padding:0;gap:0; }
body[data-world="fanzine"] .profile-nav button { flex:1;padding:10px 12px;border:0;border-right:1px solid #632c47;border-radius:0;box-shadow:none;font:700 16px Georgia,serif; }
body[data-world="fanzine"] .profile-nav button[aria-current] { background:#632c47;color:#fff0da; }
body[data-world="fanzine"] .browser-scroll { background:#f6b5c3; }
body[data-world="fanzine"] #dock { border:1px solid #632c47;border-radius:0;background:#f9e5d1e8;box-shadow:4px 4px #291c2d66; }
body[data-world="fanzine"] .world-icon svg { stroke-width:1.6; }
body[data-world="fanzine"] .world-icon { color:#632c47; }
body[data-world="fanzine"] .primary,body[data-world="fanzine"] .secondary,body[data-world="fanzine"] .world-actions button { border:1px solid #632c47;border-radius:0;box-shadow:2px 2px #632c47;background:#e8c563; }
.zine-page { padding:26px 32px 40px;max-width:1200px; }
.zine-page > header { display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:30px;padding-bottom:25px;border-bottom:3px solid #632c47;align-items:end; }
.zine-page h1 { font:700 clamp(48px,6.8vw,88px)/.88 Asul,Georgia,serif;letter-spacing:-.065em; }
.zine-page .world-intro { font:17px/1.5 Georgia,serif; }
.zine-page .world-actions { margin:18px 0 0; }
.zine-page .world-actions button { font:14px Tahoma,sans-serif;padding:6px 10px; }
.zine-spread { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0;margin-top:24px;border:1px solid #632c47; }
.zine-spread .world-portrait { border-right:1px solid #632c47;background:#e8c563;padding:18px; }
.zine-spread .world-photo-empty { min-height:250px;background:#d598ac;border:1px solid #632c47; }
.zine-spread figcaption { font:14px Georgia,serif; }
.zine-about { padding:25px;background:#ffead5; }
.zine-page h2 { font:700 27px/1.1 Asul,Georgia,serif;letter-spacing:-.025em; }
.zine-page h3 { font-family:Tahoma,sans-serif; }
.zine-about p { font:16px/1.65 Georgia,serif; }
.zine-now { background:#ffead5;padding:24px;border-top:1px solid #632c47;border-right:1px solid #632c47; }
.zine-now .world-now > div { display:grid;grid-template-columns:110px minmax(0,1fr);padding:8px 0;border-bottom:1px solid #632c4733; }
.zine-now dt,.zine-now dd { margin:0;font:14px/1.5 Tahoma,sans-serif; }
.zine-contact { padding:24px;background:#e8c563;border-top:1px solid #632c47;font:14px/1.6 Tahoma,sans-serif; }
body[data-world="fanzine"] #vote { border-color:#632c4777; }

/* Reflow follows the window's container, so resize and mobile share the same rules. */
@container profile (max-width:720px) {
  .album-page { padding:22px; }
  .album-board { gap:22px; }
  .album-letter { padding:20px; }
  .album-board .world-photo-empty { min-height:220px; }
  .album-now { margin:0; padding:20px; }
  .archive-page { padding:18px; }
  .archive-id { grid-template-columns:100px minmax(0,1fr);gap:16px; }
  .zine-page { padding:22px; }
  .zine-page > header { grid-template-columns:1fr;gap:20px; }
  .zine-page h1 { font-size:64px;max-width:10ch; }
  .zine-about,.zine-now,.zine-contact { padding:18px; }
}
@container profile (max-width:520px) {
  .album-page { padding:22px 18px; }
  .album-page > header { padding-left:0; }
  .album-board { grid-template-columns:1fr; }
  .album-letter { grid-row:2; }
  .album-board .world-portrait { grid-row:1; margin:4px 8px 6px;transform:rotate(1deg); }
  .album-board .world-photo-empty { min-height:170px; }
  .album-now,.album-contact { grid-column:auto;grid-row:auto; }
  .archive-page > header { gap:10px; }
  .archive-page > header .world-icon { width:36px;height:36px; }
  .archive-page h1 { font-size:24px; }
  .archive-id { grid-template-columns:1fr; }
  .archive-id .world-portrait { max-width:180px; }
  .archive-page .world-now > div { grid-template-columns:1fr;gap:2px; }
  .zine-page { padding:20px 16px; }
  .zine-page h1 { font-size:54px; }
  .zine-spread { grid-template-columns:1fr; }
  .zine-spread .world-portrait,.zine-now { border-right:0;border-bottom:1px solid #632c47; }
  .zine-now { border-top:0; }
  .zine-spread .world-photo-empty { min-height:180px; }
}
@media (max-width:700px) {
  body[data-world="fanzine"] #shortcuts { display:block; }
  body[data-world="archivo"] .browser-body { grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr); }
  body[data-world="archivo"] .profile-nav { grid-column:1;grid-row:2;flex-direction:row;padding:4px;gap:0;border-right:0;border-bottom:1px solid #b5a1ad; }
  body[data-world="archivo"] .profile-nav button { padding:8px 10px; }
  body[data-world="archivo"] .browser-scroll { grid-column:1;grid-row:3; }
  body[data-world="album"] .titlebar { padding-left:15px; }
  body[data-world="album"] .window-controls { top:5px; }
  body[data-world="archivo"] .titlebar { min-height:36px; }
  body[data-world="archivo"] .window-controls { top:5px; }
  body[data-world="fanzine"] .titlebar { min-height:40px; }
  body[data-world="fanzine"] .profile-nav button { font-size:15px;padding:9px 10px; }
}
@media (prefers-reduced-motion:reduce) {
  body[data-world] .dock-item { transition:none; }
}
