@font-face{font-family:"machine-made Weft";src:url(fonts/mm-weft.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:"machine-made Warp";src:url(fonts/mm-warp-regular.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"machine-made Warp";src:url(fonts/mm-warp-italic.woff2) format("woff2");font-weight:400;font-style:italic;font-display:swap}
:root{--bg:#050507;--fg:#ecebe6;--muted:#8b8b90;--accent:#3ddc97;--edge:#1e1e20;--font:"machine-made Warp", serif;--mono:"machine-made Weft", ui-monospace, monospace;--ws:normal;--fs:1rem;--ls:1.5rem;}
/* The colours, the fonts and the sizes of a house come first (:root). */

:root {
  --gutter: 16px;
  --max: 1200px;
}

@media (min-width: 720px) {
  :root {
    --gutter: 24px;
  }
}

@media (min-width: 1100px) {
  :root {
    --gutter: 32px;
  }
}

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

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-block: 14px 22px;
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--fs) / 1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.skip {
  position: absolute;
  top: -5rem;
  left: var(--gutter);
  z-index: 10;
  padding: 8px 16px;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.skip:focus {
  top: 8px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* The top bar: the three sites and the type site. Weft sets it on every house. The current site is
   marked and is not a link. */
.bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  margin-bottom: 14px;
  font: 400 0.75rem / 1 var(--mono);
  letter-spacing: 0.04em;
}

.bar a,
.bar span {
  display: inline-flex;
  align-items: center;
  padding-block: 6px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.bar [aria-current="page"] {
  color: var(--fg);
  text-decoration: underline 2px var(--accent);
  text-underline-offset: 6px;
}

/* On a narrow screen every link is at least 44 px high. */
@media (max-width: 720px) {
  .bar a,
  .bar span {
    min-height: 44px;
  }
}

/* The banner is the image of the GitHub profile. Its top and bottom edges fade into the ground. */
.banner {
  display: block;
  width: 100%;
  aspect-ratio: 1408 / 469;
  object-fit: cover;
  mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent);
}

.duo {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 20px;
  align-items: end;
  margin-top: 20px;
}

.line {
  font-size: var(--ls);
  line-height: 1.3;
  text-wrap: balance;
  word-spacing: var(--ws);
}

.blurb {
  max-width: 52ch;
  word-spacing: var(--ws);
  font-size: calc(var(--fs) * 0.88);
  color: var(--muted);
}

@media (max-width: 520px) {
  .duo {
    grid-template-columns: 1fr;
  }
}

/* A small group label, set in Weft with a square of the accent colour. */
.lbl {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 32px 0 10px;
  font: 400 0.71875rem / 1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.lbl::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 14px 12px;
}

.plate {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
}

.pic {
  display: block;
  overflow: hidden;
}

.plate img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  outline: 1px solid var(--edge);
  outline-offset: -1px;
  border-radius: 2px;
}

.plate .ds {
  word-spacing: var(--ws);
  font-size: calc(var(--fs) * 0.8);
  color: var(--muted);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* The small link after a description: always underlined, so a touch screen shows it too. */
.ds a {
  color: var(--fg);
  text-decoration: underline 1px var(--accent);
  text-underline-offset: 0.2em;
}

@media (max-width: 720px) {
  .ds a {
    display: flex;
    align-items: center;
    width: fit-content;
    min-height: 44px;
  }
}

footer {
  margin-top: 40px;
  font: 400 0.71875rem / 1 var(--mono);
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* Hover effects only for pointers that hover. Motion only when the reader has not asked for less. */
@media (hover: hover) {
  .pic:hover img {
    outline-color: var(--accent);
  }

  .ds a:hover {
    text-decoration-thickness: 2px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  a,
  img {
    transition: color 0.2s ease, transform 0.2s ease;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .pic:hover img {
    transform: scale(1.02);
  }
}
