/* Offline — retro desktop marketing site, styled after the app's Eternal 95 theme */

:root {
  --desktop: #0d8080;
  --chrome: #bfbfbf;
  --bevel-highlight: #ffffff;
  --bevel-shadow: #545454;
  --titlebar: #000080;
  --titlebar-text: #ffffff;
  --text: #000000;
  --secondary-text: #545454;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

/* The teal fallback lives on html only: a background on body would paint over
   the negative-z-index sky backdrop below. */
html { background: var(--desktop); }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.5;
}

/* Fixed backdrop layer: unlike background-attachment: fixed (broken on iOS
   Safari), a fixed element reliably covers the full viewport, safe areas
   included. Sized with large-viewport units so the collapsing Safari URL bar
   never leaves an uncovered strip. */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100lvw;
  height: 100lvh;
  z-index: -1;
  background: var(--desktop) url("../img/sky.jpg") center / cover no-repeat;
}

.desktop {
  width: 100%;
  max-width: 520px;
  margin: auto; /* centers the window in the viewport */
  padding: 16px;
}

/* ---- Window chrome, after DesktopWindow ---- */

.window {
  background: var(--chrome);
  padding: 3px;
  border: 2px solid;
  border-color: var(--bevel-highlight) var(--bevel-shadow) var(--bevel-shadow) var(--bevel-highlight);
}

.title-bar {
  cursor: move;
  touch-action: none; /* keeps a drag from scrolling the page on touch screens */
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--titlebar);
  color: var(--titlebar-text);
  font-size: 14px;
  font-weight: 700;
  padding: 3px 3px 3px 7px;
}

.title-bar-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.title-bar-controls { display: flex; gap: 4px; flex-shrink: 0; }

.tb-btn {
  cursor: default;
  font-family: var(--mono);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--chrome);
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  border: 1.5px solid;
  border-color: var(--bevel-highlight) var(--bevel-shadow) var(--bevel-shadow) var(--bevel-highlight);
}

.tb-close:active {
  border-color: var(--bevel-shadow) var(--bevel-highlight) var(--bevel-highlight) var(--bevel-shadow);
}

.window-body { padding: 16px 13px; }

/* ---- Button, after DesktopButtonStyle ---- */

.btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--chrome);
  color: var(--text);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 14px;
  border: 2px solid;
  border-color: var(--bevel-highlight) var(--bevel-shadow) var(--bevel-shadow) var(--bevel-highlight);
  cursor: pointer;
}

.btn:active {
  border-color: var(--bevel-shadow) var(--bevel-highlight) var(--bevel-highlight) var(--bevel-shadow);
  transform: translate(1px, 1px);
}

.cta-row { margin: 4px 0 20px; text-align: center; }

/* ---- Group box, after DesktopGroupBox ---- */

.group-box {
  position: relative;
  padding: 18px 12px 10px;
  margin-bottom: 16px;
  box-shadow:
    -0.5px -0.5px 0 0.5px var(--bevel-shadow),
    0.5px 0.5px 0 0.5px var(--bevel-highlight),
    inset -0.5px -0.5px 0 0.5px var(--bevel-shadow),
    inset 0.5px 0.5px 0 0.5px var(--bevel-highlight);
}

.group-box p { margin: 0; font-size: 13px; }

.group-label {
  position: absolute;
  top: -8px;
  left: 8px;
  padding: 0 4px;
  background: var(--chrome);
  font-size: 12px;
}

.fine {
  margin: 4px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--secondary-text);
}

.fine a { color: var(--titlebar); }

