:root {
  --bg:     #fdfdfc;
  --text:   #111111;
  --muted:  #5c5c57;
  --rule:   #e4e4df;
  --hover:  #f2f2ee;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:    #111111;
    --text:  #e8e8e6;
    --muted: #9b9b95;
    --rule:  #262624;
    --hover: #1b1b1a;
  }
}

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

/* Scrollbar hidden by request. Scrolling itself is untouched: wheel, trackpad,
   arrow keys, Page Up and Down, Home and End and find on page all still work. */
html {
  scrollbar-width: none;    /* Firefox */
  -ms-overflow-style: none; /* legacy Edge */
}

html::-webkit-scrollbar { width: 0; height: 0; display: none; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* left anchored, never centred */
.page {
  position: relative;
  z-index: 1;
  max-width: 58rem;
  margin: 0;
  padding: clamp(3rem, 9vw, 6rem) clamp(1.5rem, 5vw, 3.5rem) clamp(3rem, 8vw, 5rem);
}

/* --- ascii panel -------------------------------------------------------- *
 * Right 40 percent of the viewport. The left edge dissolve is computed per
 * cell inside ascii.js, not with a CSS mask, so the boundary can be jagged
 * rather than a straight line. Hidden below 1200px, no spare width for it.  */

.ascii { display: none; }

@media (min-width: 1200px) {
  .ascii {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 40vw;
    height: 100vh;
    z-index: 0;
    background: none;
    pointer-events: none;
  }

  /* keep the text clear of the panel */
  .page { max-width: min(58rem, 56vw); }
}

p { margin: 0 0 0.75rem; }
p:last-child { margin-bottom: 0; }

/* --- hanging label grid ------------------------------------------------- */

.row {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 0 2rem;
}

.row + .row {
  margin-top: 2.25rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--rule);
}

.label {
  margin: 0;
  padding-top: 0.3rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--muted);
}

.col { max-width: 34rem; }

@media (max-width: 40rem) {
  .row { grid-template-columns: minmax(0, 1fr); }
  .label { padding-top: 0; margin-bottom: 0.875rem; }
}

/* --- header ------------------------------------------------------------- */

h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.strapline {
  margin-top: 0.375rem;
  margin-bottom: 0.25rem;
}

/* --- bullets ------------------------------------------------------------ */

.bullets {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bullets li {
  position: relative;
  padding-left: 1.125rem;
}

.bullets li + li { margin-top: 0.3125rem; }

.bullets li::before {
  content: "·";
  position: absolute;
  left: 0;
  font-family: var(--mono);
  color: var(--muted);
}

/* --- entries ------------------------------------------------------------ */

.entry + .entry {
  margin-top: 2rem;
}

.entry__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
}

h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

.idx {
  margin-right: 0.625rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  vertical-align: 0.12em;
}

.meta {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
}

.status::before {
  content: "";
  display: inline-block;
  width: 0.4375rem;
  height: 0.4375rem;
  margin-right: 0.4375rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  vertical-align: 0.05em;
}

.status[data-status="live"]::before { background: currentColor; }

.role {
  margin-top: 0.1875rem;
  color: var(--muted);
}

.entry p:not(.role):not(.stack) { margin-top: 0.5rem; }

.stack {
  margin-top: 0.75rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
}

/* --- links -------------------------------------------------------------- */

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--muted);
}

a:hover { text-decoration-color: currentColor; }

a:focus-visible,
.social__btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* --- socials ------------------------------------------------------------ */

.socials {
  display: flex;
  gap: 0.5rem;
}

.social { position: relative; }

/* also used on the phone anchor, which links straight out with no popup */
.social__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--rule);
  background: none;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
}

.social__btn:hover {
  color: var(--text);
  background: var(--hover);
  border-color: var(--muted);
}

.social__btn[aria-expanded="true"] {
  color: var(--text);
  border-color: var(--muted);
}

.social__btn svg {
  width: 1.125rem;
  height: 1.125rem;
  display: block;
}

.pop {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: max-content;
  max-width: min(22rem, calc(100vw - 3rem));
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--rule);
  background: var(--bg);
  font-family: var(--mono);
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}

.pop[hidden] { display: none; }

.pop__label { color: var(--muted); }
