/* Ngongo-B. One person, three trades: words (red ink), work (blue), worlds (orange). */
@font-face { font-family: 'Spectral'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/Spectral-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Spectral'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/Spectral-SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Spectral'; font-weight: 400; font-style: italic; font-display: swap; src: url('fonts/Spectral-Italic.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-weight: 100 900; font-display: swap; src: url('fonts/inter-latin-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-weight: 100 900; font-display: swap; src: url('fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #f7f3ea;
  --card: #fffdf8;
  --ink: #1f1c18;
  --soft: #5f574d;
  --line: #e2d9c8;
  --words: #b3333f;   /* red pencil */
  --work: #2c5d8f;    /* blueprint */
  --worlds: #e2682c;  /* TRAX orange */
  --serif: 'Spectral', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --page: 1100px;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #191714; --card: #221f1b; --ink: #f1ebe0; --soft: #b5ab9c; --line: #3a352e;
          --words: #e2626c; --work: #6fa1d6; --worlds: #f08a50; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--sans); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { max-width: 100%; }
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 20px; }

/* the bar */
.bar { border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.mark { font: 600 1.6rem/1 var(--serif); text-decoration: none; letter-spacing: -.01em; }
.mark span { color: var(--words); }
.nav { display: flex; gap: 6px 20px; flex-wrap: wrap; align-items: center; font-size: .95rem; }
.nav a { text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-color: currentColor; }
.nav .w1 { color: var(--words); } .nav .w2 { color: var(--work); } .nav .w3 { color: var(--worlds); }
.nav .lang { color: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }

/* type */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 4.2rem); hyphens: auto; overflow-wrap: break-word; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-top: 0; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--soft); max-width: 44em; }
.eyebrow { font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; display: block; }
.c-words { color: var(--words); } .c-work { color: var(--work); } .c-worlds { color: var(--worlds); }

section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }
.hero { padding: 80px 0 64px; }
.hero h1 em { font-style: italic; font-weight: 400; }

/* the three doors */
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.door { background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--accent); border-radius: 10px;
  padding: 26px 24px 22px; text-decoration: none; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.door:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.08); }
.door svg { width: 44px; height: 44px; color: var(--accent); margin-bottom: 14px; }
.door h3 { color: var(--accent); margin-bottom: .3em; }
.door p { color: var(--soft); flex: 1; }
.door .more { font-weight: 600; color: var(--accent); }
.door.words { --accent: var(--words); } .door.work { --accent: var(--work); } .door.worlds { --accent: var(--worlds); }

/* how it hangs together */
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.three p { margin: 0; }
.three strong { font-family: var(--serif); font-size: 1.15rem; display: block; margin-bottom: 6px; }

/* the organisation chart: everybody is the same person */
.org { display: grid; justify-items: center; gap: 0; margin: 28px 0 10px; }
.org .box { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 10px 16px; text-align: center; min-width: 180px; }
.org .box small { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.org .box b { font-family: var(--serif); font-weight: 600; }
.org .stem { width: 2px; height: 22px; background: var(--line); }
.org .row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; position: relative; padding-top: 22px; width: 100%; max-width: 760px; }
.org .row::before { content: ''; position: absolute; top: 0; left: 16.6%; right: 16.6%; height: 2px; background: var(--line); }
.org .row .box { position: relative; min-width: 0; }
.org .row .box::before { content: ''; position: absolute; top: -22px; left: 50%; width: 2px; height: 22px; background: var(--line); }
.org .row .box:nth-child(1) { border-top: 3px solid var(--words); }
.org .row .box:nth-child(2) { border-top: 3px solid var(--work); }
.org .row .box:nth-child(3) { border-top: 3px solid var(--worlds); }
.caption { text-align: center; color: var(--soft); font-style: italic; font-family: var(--serif); font-size: 1.05rem; }

/* page head for the three trades */
.pagehead { padding: 70px 0 50px; border-bottom: 5px solid var(--accent); }
.pagehead.words { --accent: var(--words); } .pagehead.work { --accent: var(--work); } .pagehead.worlds { --accent: var(--worlds); }
.pagehead .eyebrow { color: var(--accent); }

/* lists */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 14px; }
.list li .y { color: var(--soft); font-variant-numeric: tabular-nums; }
.list li em { font-family: var(--serif); font-size: 1.1rem; }
.list li span.n { display: block; color: var(--soft); font-size: .92rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tags li { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 4px 12px; font-size: .9rem; }
blockquote { margin: 0 0 1.2em; padding: 0 0 0 20px; border-left: 4px solid var(--accent, var(--words)); font: italic 1.35rem/1.45 var(--serif); }
.note { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px 22px; }
.btn { display: inline-block; background: var(--accent, var(--ink)); color: #fff; text-decoration: none; font-weight: 600;
  border-radius: 999px; padding: 10px 22px; margin: 4px 8px 4px 0; }
.btn.ghost { background: transparent; color: var(--accent, var(--ink)); border: 2px solid currentColor; }
.btn:hover { filter: brightness(1.08); }

/* products */
.products { display: grid; gap: 22px; }
.product { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--worlds); border-radius: 10px; padding: 26px 28px; }
.product h3 { margin-bottom: .15em; }
.product .kind { color: var(--soft); font-size: .95rem; margin-bottom: 12px; display: block; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 999px; padding: 3px 10px; margin-left: 8px; vertical-align: middle; border: 1px solid currentColor; color: var(--worlds); }

/* pictures: covers stand like books on a shelf, screenshots sit in a frame */
.books { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 26px 22px; align-items: end; }
.book { margin: 0; }
.book img { display: block; width: 100%; height: auto; border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0,0,0,.18), 0 10px 22px rgba(0,0,0,.12); transition: transform .15s; }
.book a:hover img { transform: translateY(-4px) rotate(-1deg); }
.book figcaption { margin-top: 12px; font-size: .9rem; line-height: 1.4; min-height: 5.6em; }
.book figcaption em { font-family: var(--serif); font-size: 1.05rem; font-style: italic; }
.book figcaption .y { color: var(--soft); }
.book figcaption .n { display: block; color: var(--soft); font-size: .82rem; margin-top: 2px; }
.side-cover { float: right; width: 130px; margin: 0 0 12px 18px; border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0,0,0,.18), 0 10px 22px rgba(0,0,0,.12); transform: rotate(2deg); }
.gallery { display: grid; gap: 18px; margin-top: 8px; }
.gallery.covers { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 760px; margin: 8px auto 34px; align-items: end; }
.gallery.covers a { display: block; transition: transform .15s; }
.gallery.covers a:nth-child(odd) { transform: rotate(-2deg); }
.gallery.covers a:nth-child(even) { transform: rotate(1.5deg); }
.gallery.covers a:hover { transform: translateY(-5px) rotate(0); }
.gallery.covers img { display: block; width: 100%; border-radius: 3px; box-shadow: 0 1px 2px rgba(0,0,0,.18), 0 12px 26px rgba(0,0,0,.14); }
.gallery.shots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery.shots a { position: relative; display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 16 / 10; background: var(--card); text-decoration: none; }
.gallery.shots img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .3s; }
.gallery.shots a:hover img { transform: scale(1.04); }
.gallery.shots span { position: absolute; left: 10px; bottom: 10px; background: rgba(31,28,24,.82); color: #fff;
  font-weight: 600; font-size: .85rem; border-radius: 999px; padding: 4px 12px; }
.product .shot { display: block; margin: -26px -28px 22px; border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0;
  overflow: hidden; }
.product .shot img { display: block; width: 100%; height: auto; max-height: 440px; object-fit: cover; object-position: center 55%; }
.product { overflow: hidden; }

/* contact and foot */
.contact a { font-weight: 600; }
.foot { border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--soft); font-size: .9rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; }

@media (max-width: 1000px) and (min-width: 821px) {
  .books { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .doors, .three, .cols { grid-template-columns: minmax(0, 1fr); }
  .org .row { grid-template-columns: minmax(0, 1fr); padding-top: 0; }
  .org .row::before, .org .row .box::before { display: none; }
  .org .row .box { margin-top: 10px; }
  .list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .books { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery.shots { grid-template-columns: minmax(0, 1fr); }
  .side-cover { width: 100px; }
  section { padding: 48px 0; }
  .hero { padding: 56px 0 44px; }
}
