/* Blue: a Mac OS 8 Platinum desktop, in Bondi Blue */

:root {
  --desk: #0089a8;
  --plat: #dddddd;
  --plat-light: #eeeeee;
  --plat-mid: #bbbbbb;
  --plat-dark: #999999;
  --plat-darker: #777777;
  --text: #111111;
  --muted: #4a4a4a;
  --accent: #0095b6;
  --accent-light: #c4ecf4;
  --highlight: #00566a;
  --link: #005f78;
  --link-visited: #4a3f86;
  --chrome: "Charcoal", "Chicago", "ChicagoFLF", "Geneva", "Lucida Grande", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --text-font: "Geneva", "Lucida Grande", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "Monaco", "Menlo", "Consolas", "DejaVu Sans Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background-color: var(--desk);
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, .045) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, .045) 75%),
    linear-gradient(45deg, rgba(255, 255, 255, .045) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, .045) 75%);
  background-size: 4px 4px;
  background-position: 0 0, 2px 2px;
  scroll-padding-top: 24px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font: 15px/1.55 var(--text-font);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}

a { color: var(--link); }
a:visited { color: var(--link-visited); }

code {
  font: .88em var(--mono);
  background: #efefef;
  border-radius: 2px;
  padding: 0 .25em;
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 2px;
}

::selection { background: var(--accent-light); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute;
  left: 8px; top: -40px;
  z-index: 200;
  background: #fff;
  color: #000;
  border: 1px solid #000;
  padding: 4px 10px;
  font: 700 13px var(--chrome);
}
.skip:focus { top: 8px; }

/* Desktop icons */

.desk-icons { display: none; }

@media (min-width: 1360px) {
  .desk-icons {
    position: fixed;
    top: 20px;
    right: 18px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .desk-icons a {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 92px;
    color: #000;
    text-decoration: none;
  }
  .desk-icons svg { width: 40px; height: 40px; }
  .desk-icons span {
    margin-top: 3px;
    padding: 0 4px;
    background: #fff;
    font: 12px/1.35 var(--chrome);
  }
  .desk-icons a:hover svg,
  .desk-icons a:focus-visible svg { filter: brightness(.55); }
  .desk-icons a:hover span,
  .desk-icons a:focus-visible span { background: #000; color: #fff; }
  .desk-icons a:focus-visible { outline: none; }
}

/* Layout */

.desktop {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 24px;
}

/* Windows */

.window {
  position: relative;
  margin: 44px 0;
  padding: 0 6px 6px;
  background: var(--plat);
  border: 1px solid #000;
  box-shadow: inset 1px 1px #fff, inset -1px -1px var(--plat-dark), 2px 2px 0 rgba(0, 0, 0, .4);
}
.window.collapsed { padding-bottom: 0; }

.titlebar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 25px;
  user-select: none;
}
.titlebar::before {
  content: "";
  position: absolute;
  left: 26px;
  right: 46px;
  top: 7px;
  height: 11px;
  background: linear-gradient(#fff 50%, var(--plat-dark) 50%) 0 0 / 100% 2px;
}

.title {
  position: relative;
  max-width: calc(100% - 110px);
  margin: 0;
  padding: 0 10px;
  overflow: hidden;
  background: var(--plat);
  font: 700 13px/25px var(--chrome);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.box {
  position: absolute;
  top: 6px;
  width: 13px;
  height: 13px;
  padding: 0;
  border: 1px solid #333;
  background: linear-gradient(135deg, #f6f6f6, #c4c4c4);
  box-shadow: inset 1px 1px #fff, inset -1px -1px var(--plat-dark), 1px 1px 0 #fff;
}
.box.close { left: 8px; }
.box.zoom { right: 26px; }
.box.shade { right: 8px; cursor: pointer; appearance: none; -webkit-appearance: none; }
.box.zoom::after,
.box.shade::after {
  content: "";
  position: absolute;
}
.box.zoom::after { left: 2px; top: 2px; width: 5px; height: 5px; border: 1px solid #444; }
.box.shade::after { left: 1px; right: 1px; top: 3px; height: 4px; border-block: 1px solid #444; }
.box.shade:active { background: var(--plat-darker); box-shadow: inset 1px 1px #444, inset -1px -1px var(--plat-dark); }

.window-body {
  background: #fff;
  border: 1px solid #000;
  box-shadow: -1px -1px 0 var(--plat-dark), 1px 1px 0 #fff;
}

.finder-header {
  padding: 1px 8px 5px;
  font: 12px/1.4 var(--chrome);
  color: #222;
}

.doc { padding: 26px 32px 30px; }
.doc > :first-child { margin-top: 0; }
.doc > :last-child { margin-bottom: 0; }
.doc h3 { margin: 26px 0 8px; font: 700 15px/1.3 var(--chrome); }
.doc p { margin: 0 0 12px; }
.fineprint { font-size: 13.5px; color: var(--muted); }

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 72px;
  padding: 6px 16px;
  color: #000 !important;
  background: linear-gradient(#f6f6f6, #d2d2d2);
  border: 1px solid #000;
  border-radius: 5px;
  box-shadow: inset 1px 1px #fff, inset -1px -1px var(--plat-dark);
  font: 700 13px/1.2 var(--chrome);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}
.button:hover { background: linear-gradient(#fff, #dcdcdc); }
.button:active {
  color: #fff !important;
  background: #6b6b6b;
  box-shadow: inset 1px 1px #3a3a3a, inset -1px -1px var(--plat-dark);
}
.button.default {
  margin: 4px;
  box-shadow: inset 1px 1px #fff, inset -1px -1px var(--plat-dark), 0 0 0 1px #fff, 0 0 0 3px #b4b4b4, 0 0 0 4px #000;
}
.button.default:active { box-shadow: inset 1px 1px #3a3a3a, 0 0 0 1px #fff, 0 0 0 3px #b4b4b4, 0 0 0 4px #000; }
.button:focus-visible { outline-offset: 6px; }
.button.small { min-width: 0; padding: 2px 9px; font-size: 11px; border-radius: 4px; }

/* Startup screen */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 48px 0;
}

.splash {
  width: min(560px, 100%);
  padding: 7px;
  background: var(--plat);
  border: 1px solid #000;
  box-shadow:
    inset 1px 1px #fff, inset -1px -1px var(--plat-darker),
    3px 3px 0 rgba(0, 0, 0, .4);
}
.splash-inner {
  padding: 34px 44px 30px;
  text-align: center;
  background: #fff;
  border: 1px solid #000;
  box-shadow: -1px -1px 0 var(--plat-dark), 1px 1px 0 #fff;
}
.splash-logo { width: 76px; height: 76px; }
.splash-welcome { margin: 14px 0 0; font: 16px var(--chrome); color: #333; }
.hero h1 {
  margin: 0 0 14px;
  font: 700 clamp(44px, 9vw, 60px)/1 var(--chrome);
  letter-spacing: -.01em;
  color: #000;
}
.tagline { max-width: 36ch; margin: 0 auto 10px; font-size: 16.5px; line-height: 1.5; color: #222; }
.platforms { margin: 0; font: 13px/1.4 var(--chrome); color: var(--muted); }

.splash-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; padding: 14px 10px 7px; }

/* How it works */

.how > p { max-width: 74ch; }

.arch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1.9fr);
  align-items: stretch;
  margin: 30px 0 0;
}

/* Group boxes, as in Mac OS 8 dialogs */
.zone {
  position: relative;
  padding: 20px 14px 14px;
  border: 1px solid var(--plat-dark);
  box-shadow: 1px 1px 0 #fff, inset 1px 1px 0 #fff;
  background: #fbfbfb;
}
.zone-label {
  position: absolute;
  top: -10px;
  left: 10px;
  margin: 0;
  padding: 0 6px;
  background: #fff;
  font: 13px/20px var(--chrome);
}
.guest { display: flex; flex-direction: column; gap: 10px; }
.guest .apple { flex: 1; }

.abox {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 8px 9px;
  border: 1px solid #000;
  box-shadow: inset 1px 1px rgba(255, 255, 255, .7), inset -1px -1px rgba(0, 0, 0, .2);
}
.abox-title { margin: 0 0 1px 2px; font: 13px/1.3 var(--chrome); }
.abox .abox-foot { margin: auto 0 0 2px; padding-top: 2px; font: 11.5px/1.35 var(--chrome); opacity: .8; }  /* (.abox: before .doc p) */
.part {
  display: flex;
  align-items: center;
  padding: 7px 9px;
  background: rgba(255, 255, 255, .65);
  border: 1px solid rgba(0, 0, 0, .45);
  font: 12.5px/1.3 var(--chrome);
}

.abox.apple { background: linear-gradient(#fafafa, #e2e2e2); }
.abox.blue { background: linear-gradient(#bfe7f0, #8dd0e0); }
.abox.guest-blue { background: linear-gradient(#e0f4f8, #c1e6ee); }      /* (Blue's, in the guest) */
.abox.os { background: linear-gradient(#6a6a6a, #474747); color: #fff; }
.abox.os .part { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); }

/* A part with a name, and what it does under it */
.part.svc { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 5px 8px 6px; font: 11.5px/1.35 var(--text-font); color: #333; }
.svc strong { display: block; margin-bottom: 1px; font: 12.5px/1.3 var(--chrome); color: #000; }
.abox.os .svc { color: rgba(255, 255, 255, .78); }
.abox.os .svc strong { color: #fff; }

.guest-parts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  flex: 1;
}
.guest-parts .ppc { grid-column: 2; grid-row: 1 / span 2; }

.iface {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  margin: 0 14px;
  padding: 10px 6px;
  border-inline: 3px double #000;
  text-align: center;
  font: 12px/1.35 var(--chrome);
}
.iface-part { display: flex; flex-direction: column; align-items: center; }
.iface-part + .iface-part { margin-top: 14px; padding-top: 14px; border-top: 1px dotted #000; }
.iface p { margin: 0; }
.iface-title { margin-bottom: 4px !important; }
.iface-arrow { font: 20px/1 var(--chrome); margin-bottom: 6px; }
.iface code { background: none; padding: 0; }

.host-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) auto minmax(0, 1fr);
  gap: 10px;
  height: 100%;
}
.arch-arrow { align-self: center; font: 16px var(--chrome); }
.host-row .part { flex: 1; }

@media (max-width: 860px) {
  .arch { grid-template-columns: 1fr; }
  .iface { flex-direction: row; justify-content: center; align-items: flex-start; margin: 14px 0; padding: 8px 0; border-inline: 0; border-block: 3px double #000; }
  .iface-part { flex: 1; max-width: 220px; }
  .iface-part + .iface-part { margin: 0 0 0 14px; padding: 0 0 0 14px; border-top: 0; border-left: 1px dotted #000; }
  .iface-arrow { transform: rotate(90deg); }
  .host-row { grid-template-columns: 1fr; }
  .host-row .part { flex: none; }
  .arch-arrow { justify-self: center; transform: rotate(90deg); }
}

/* Finder list view */

.list { --cols: minmax(200px, 1fr) 3fr; }

.list-head {
  display: grid;
  grid-template-columns: var(--cols);
  border-bottom: 1px solid #000;
  font: 12px/1.5 var(--chrome);
}
.list-head span {
  padding: 2px 8px;
  background: var(--plat);
  border-right: 1px solid #888;
  box-shadow: inset 1px 1px #fff, inset -1px -1px var(--plat-mid);
}
.list-head span:last-child { border-right: 0; }
.list-head .sorted { background: var(--plat-mid); box-shadow: inset 1px 1px #888, inset -1px -1px #ddd; }

.row {
  display: grid;
  grid-template-columns: var(--cols);
  align-items: center;
  font-size: 14px;
}
.name {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  padding: 6px 8px;
  background: #f0f0f0;
  font: 13px/1.3 var(--chrome);
}
.name svg { flex: none; width: 22px; height: 22px; }
.notes { padding: 6px 12px; line-height: 1.45; }

.row.unsupported { background: #fbeeee; }
.row.unsupported .name { background: #f5e0e0; }
.row.progress { background: #fdf6e3; }
.row.progress .name { background: #f7ecc9; }

@media (max-width: 720px) {
  .list-head { display: none; }
  .row { grid-template-columns: 1fr; border-top: 1px solid #e6e6e6; }
  .row:first-of-type { border-top: 0; }
  .name, .row.unsupported .name, .row.progress .name { background: none; }
  .notes { padding: 0 12px 8px 38px; color: #333; }
}

/* Get started */

.downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 12px 0 14px;
}
.button.dl { justify-content: flex-start; gap: 12px; padding: 8px 14px; text-align: left; }
.button.dl svg { flex: none; width: 28px; height: 28px; }
.button.dl small { display: block; font-weight: 400; font-size: 12px; color: #333; }
.button.dl:active small { color: #eee; }

.codeblock { position: relative; margin: 12px 0 16px; }
pre.code {
  margin: 12px 0 16px;
  padding: 12px 14px;
  overflow-x: auto;
  background: #f6f6f6;
  border: 1px solid #000;
  box-shadow: inset 1px 1px #c8c8c8;
  font: 13px/1.65 var(--mono);
  tab-size: 4;
}
.codeblock pre.code { margin: 0; padding-right: 72px; }
.copy { position: absolute; top: 8px; right: 8px; }

/* Footer */

.footer { padding: 16px 24px 48px; }
.footer-box {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 24px;
  text-align: center;
  background: var(--plat);
  border: 1px solid #000;
  box-shadow: inset 1px 1px #fff, inset -1px -1px var(--plat-dark), 2px 2px 0 rgba(0, 0, 0, .4);
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 0 0 8px; padding: 0; list-style: none; font: 13px var(--chrome); }
.legal { margin: 0; font-size: 12px; color: var(--muted); }

/* Small screens */

@media (max-width: 640px) {
  .desktop { padding: 0 10px 16px; }
  .window { margin: 28px 0; padding: 0 4px 4px; }
  .doc { padding: 20px 18px 22px; }
  .splash-inner { padding: 26px 20px 22px; }
  .splash-buttons { justify-content: center; }
  .codeblock pre.code { padding: 36px 12px 12px; }
}

/* Charcoal-style bold. Geneva has no bold face and browsers don't always
   synthesize one, so a half-pixel shadow stands in for it everywhere. */
.title, .doc h3, .button, .skip, .zone-label, .abox-title, .iface-title {
  font-weight: 400;
  text-shadow: .5px 0;
}
.button.dl small { text-shadow: none; }

.doc ul.thanks { margin: 0; padding-left: 20px; }
.doc ul.thanks li { margin: 0 0 9px; }
.doc ul.thanks li:last-child { margin-bottom: 0; }
