/* The front page and the 404 page. Same palette and type as the-wall/index.html,
   so the site and its first room read as one place. */
:root {
  --wall: #e2e6e4;
  --paper: #f5f7f4;
  --ink: #1a2326;
  --muted: #56625f;
  --rule: #c3cbc8;
  --accent: #94701f;
  --font-label: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
  --font-text: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --wall: #1b2225;
    --paper: #252e32;
    --ink: #e4eae6;
    --muted: #98a5a1;
    --rule: #3a464b;
    --accent: #d0a549;
    color-scheme: dark;
  }
}

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

body {
  margin: 0;
  padding-block: 44px 96px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  background: var(--wall);
  color: var(--ink);
  font: 14px/1.45 var(--font-label);
  -webkit-font-smoothing: antialiased;
}

.room {
  display: grid;
  gap: 56px;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(0px, 2.5vw, 32px);
}

/* Wall text */
.walltext { display: grid; gap: 10px; max-width: 34rem; }
.walltext h1 {
  margin: 0;
  font: 700 clamp(28px, 4.2vw, 40px)/1.02 var(--font-label);
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.walltext p { margin: 0; max-width: 60ch; font: 17px/1.5 var(--font-text); }
.walltext a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* Directory: one entry per project, ruled like a floor plan by the lift */
.heading {
  margin: 0 0 12px;
  color: var(--muted);
  font: 400 11.5px/1.4 var(--font-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rooms {
  display: grid;
  max-width: 34rem;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}
.entry { display: grid; gap: 5px; padding: 16px 0 18px; border-bottom: 1px solid var(--rule); }
.entry__name {
  justify-self: start;
  color: var(--ink);
  font: 700 21px/1.2 var(--font-label);
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.entry__name:hover { color: var(--accent); }
.entry__what { margin: 0; max-width: 60ch; font: 17px/1.5 var(--font-text); }
.entry__since {
  color: var(--muted);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

/* Colophon */
.colophon {
  max-width: 60ch;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}
.colophon a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: 2px; }
.colophon a:hover { color: var(--ink); }

a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* For agents and screen readers. It is in the page and is not painted, because the owner asked
   that a person looking at the page should not see it. Its links are kept out of the tab order. */
.for-agents {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
