/* The document pages (404, imprint, privacy): one sheet of paper on the wall,
   read top to bottom. The main page's style.css, a fixed room that does not
   scroll, is not loaded here; base.css (the tokens, focus, selection) is. */
html { height: 100%; }
body.page {
  margin: 0;
  min-height: 100%;
  background: var(--wall);
  color: var(--ink);
  font: 14px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }

.page-wrap { max-width: 680px; margin: 0 auto; padding: 40px 16px 56px; }

/* the way back, and the other pages: small capitals, the current one underlined */
.page-nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin: 0 0 20px;
  font-size: 11px;
  letter-spacing: var(--caps);
  text-transform: uppercase;
}
.page-nav span { display: inline-flex; gap: 18px; }
.page-nav a, .page-foot a {
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.page-nav a:hover, .page-foot a:hover { color: var(--ink); }
.page-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* the sheet */
.sheet {
  background: var(--paper);
  box-shadow: var(--shadow);
  border-radius: 1px;
  padding: 44px 48px 40px;
}
.kicker { margin: 0 0 12px; color: var(--muted); font-size: 10.5px; letter-spacing: var(--caps); text-transform: uppercase; }
.sheet h1 { margin: 0 0 6px; font-family: var(--serif); font-size: 26px; font-weight: 400; letter-spacing: 0.01em; line-height: 1.3; }
.sheet h1 .de { font-style: italic; }
.lede { margin: 0 0 24px; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--muted); }
.sheet h2 {
  margin: 30px 0 8px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
}
.sheet h2 .de { font-style: normal; font-size: 15px; }
.de { color: var(--muted); font-weight: 400; }
.sheet p, .sheet ul, .sheet address { margin: 0 0 12px; }
.sheet ul { padding-left: 18px; }
.sheet li { margin: 0 0 5px; }
.sheet address { font-style: normal; }
.sheet a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--rule); }
.sheet a:hover { text-decoration-color: var(--ink); }
.sheet code { font: 12.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.sheet dl {
  display: grid;
  grid-template-columns: minmax(110px, auto) 1fr;
  gap: 0 14px;
  margin: 0 0 16px;
  border-top: 1px solid var(--rule);
  font-size: 13.5px;
}
.sheet dt, .sheet dd { margin: 0; padding: 7px 0 6px; border-bottom: 1px solid var(--rule); }
.sheet dt { color: var(--muted); }

/* what the owner still has to fill in: an ochre wash from the opening picture */
.notice { margin: 0 0 22px; padding: 10px 12px; border: 1px solid var(--rule); color: var(--muted); font-size: 12.5px; }
.notice b { color: var(--ink); font-weight: 400; }
mark.todo { background: rgba(198, 172, 85, 0.28); color: inherit; padding: 0 3px; border-bottom: 1px dashed rgba(29, 28, 25, 0.45); }

.page-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: var(--caps);
  text-transform: uppercase;
}
.page-foot span { margin-left: auto; }

/* the 404: a plate in the middle of the wall, as while the museum opens */
.plate-page { display: grid; place-items: center; }
.plate { width: min(440px, calc(100% - 48px)); padding: 32px 0; text-align: center; }
.plate .mark { display: block; width: 48px; height: 48px; margin: 0 auto 20px; }
.plate .kicker { margin-bottom: 8px; }
.plate h1 { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 400; letter-spacing: 0.01em; }
.plate .what { margin: 8px 0 26px; font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 15px; }
.plate .bar { height: 1px; background: var(--rule); }
.plate .how {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 22px 0 0;
  font-size: 11px;
  letter-spacing: var(--caps);
  text-transform: uppercase;
  line-height: 2;
}
.plate .how a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.plate .how a:hover { border-bottom-color: var(--ink); }

@media (max-width: 640px) {
  .page-wrap { padding: 24px 12px 40px; }
  .sheet { padding: 28px 22px 26px; }
  .sheet dl { grid-template-columns: 1fr; }
  .sheet dt { padding-bottom: 0; border-bottom: 0; }
}
