@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/IBMPlexSans-Regular-Latin1.woff2") format("woff2");
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/IBMPlexSans-Medium-Latin1.woff2") format("woff2");
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/IBMPlexMono-Medium-Latin1.woff2") format("woff2");
}

/* Near-monochrome, warmed a few degrees toward beige. Nothing is pure
   black or pure white — that was what read as cheap. */
:root {
  color-scheme: light;
  --ink: #2b2721;
  --paper: #fbf9f4;
  --line: #3f3a31;
  --muted: #6d675c;
  --stripe: #b6afa1;
  --desk-a: #cfc9bb;
  --desk-b: #ded9cd;
  --shade: rgba(43, 39, 33, .16);
}

* { box-sizing: border-box; }

/* The canvas shows through behind everything when iOS rubber-bands past the
   end of the page, so it has to carry the desktop colour too — otherwise
   that overscroll gutter flashes white. */
html {
  background-color: var(--desk-b);
  overscroll-behavior: none;
}

body {
  margin: 0;
  /* svh is the viewport minus Safari's collapsed toolbars. Plain vh is
     taller than what you can actually see on iOS, which is what was
     producing a scrollbar on a page that fits. */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  color: var(--ink);
  font-family: 'IBM Plex Sans', ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* The dithered desktop, but at low contrast so it reads as texture rather
   than noise. Painted into a fixed layer so it stays put while the window
   scrolls — more reliable than background-attachment, which iOS Safari
   handles poorly. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--desk-b);
  background-image: repeating-conic-gradient(
    var(--desk-a) 0% 25%, var(--desk-b) 0% 50%
  );
  background-size: 2px 2px;
}

.window {
  width: 100%;
  max-width: 25rem;
  /* auto margins rather than the parent's align-items, so an overflowing
     window stays centred without its top edge being clipped out of reach */
  margin: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  /* Hard-edged, but a translucent warm grey rather than solid black. */
  box-shadow: 3px 3px 0 var(--shade);
}

.titlebar {
  position: relative;
  display: flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border-bottom: 1px solid var(--line);
  /* Six pinstripes, softened from black to a warm grey. */
  background-image: repeating-linear-gradient(
    to bottom,
    var(--stripe) 0px, var(--stripe) 1px,
    var(--paper) 1px, var(--paper) 3px
  );
  background-position: 0 4px;
  background-size: 100% 3px;
  background-repeat: repeat-y;
}

.close-box {
  width: 11px;
  height: 11px;
  flex: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1px;
}

.title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 10px;
  /* Opaque padding punches a gap in the pinstripes behind the text. */
  background: var(--paper);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .01em;
  white-space: nowrap;
}

.content {
  padding: 2.75rem 2rem 3rem;
  text-align: center;
}

h1 {
  margin: 0 0 1rem;
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo,
    Consolas, monospace;
  font-size: 1.625rem;
  font-weight: 500;
  letter-spacing: -.02em;
}

p {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.65;
  color: var(--muted);
}

.name {
  color: var(--ink);
  font-weight: 500;
}

/* Classic rounded push button. */
.button {
  display: inline-block;
  margin-top: 1.75rem;
  padding: .35rem 1.25rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 2px 2px 0 var(--shade);
  font-size: .8125rem;
  font-weight: 500;
  text-decoration: none;
}

.button:active {
  background: var(--ink);
  color: var(--paper);
  box-shadow: none;
  transform: translate(2px, 2px);
}
