/* Fonts and colours follow mani.yubo.work so the hub reads as part of the same set. */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 100 1000; font-display: swap; src: url('/fonts/dm-sans.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/barlow-condensed-800.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/ibm-plex-mono-500.woff2') format('woff2'); }

:root {
  --sans: 'DM Sans', Arial, sans-serif;
  --mono: 'IBM Plex Mono', Consolas, monospace;
  --display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  color-scheme: light;
  --page: #faf9de;
  --card: #fffef0;
  --panel: #f3f2d8;
  --text: #2d3c32;
  --muted: #64705a;
  --green: #315d46;
  --line: #d8dbc0;
  --border: #bfc8aa;
  --hover: #e9edd5;
  --focus: #5b805b;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #0c151b;
    --card: #121e25;
    --panel: #142129;
    --text: #f0f1e8;
    --muted: #a1adb0;
    --green: #d5ed98;
    --line: #2b383d;
    --border: #3c4b50;
    --hover: #1b2a2b;
    --focus: #d5ed98;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 15px/1.5 var(--sans);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
h1, h2, p { margin: 0; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }

.page {
  max-width: 880px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 0 24px 28px;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

.site-header {
  padding: 30px 0 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.brand a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font: 800 36px/1 var(--display);
  letter-spacing: -.3px;
  text-transform: uppercase;
}
.brand-symbol { width: 26px; height: 32px; flex: none; color: var(--green); }
.brand a:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 3px; }
.lede { margin-top: 10px; color: var(--muted); }

.apps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

/* Each app is a flight-strip: number, name and description, destination. */
.strip {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 236px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  touch-action: manipulation;
  transition: background-color .15s ease;
}
.strip:hover { background: var(--hover); }
.strip:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.strip-num {
  padding: 19px 0;
  border-right: 1px solid var(--line);
  border-radius: 5px 0 0 5px;
  background: var(--panel);
  color: var(--muted);
  text-align: center;
  font: 500 12px/1 var(--mono);
  letter-spacing: .5px;
  transition: color .15s ease;
}
.strip:hover .strip-num, .strip:focus-visible .strip-num { color: var(--green); }

.strip-main { padding: 16px 20px 18px; }
.strip-kicker {
  color: var(--muted);
  font: 500 11px/1.4 var(--mono);
  letter-spacing: 1.25px;
  text-transform: uppercase;
}
.strip-name {
  margin-top: 5px;
  font: 800 34px/1 var(--display);
  letter-spacing: -.2px;
  text-transform: uppercase;
}
.strip-desc { margin-top: 8px; color: var(--muted); }

.strip-go {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 18px 16px;
  border-left: 1px solid var(--line);
  color: var(--green);
}
.strip-host { font: 500 13px/1.35 var(--mono); overflow-wrap: anywhere; }
.strip-arrow { width: 22px; height: 22px; flex: none; align-self: flex-end; transition: transform .15s ease; }
.strip:hover .strip-arrow, .strip:focus-visible .strip-arrow { transform: translateX(3px); }

.site-footer {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 400 11px/1.5 var(--mono);
  letter-spacing: .3px;
}

@media (max-width: 640px) {
  .page { padding: 0 16px 20px; }
  .site-header { padding: 22px 0 16px; margin-bottom: 16px; }
  .brand a { font-size: 30px; }
  .brand-symbol { width: 22px; height: 28px; }
  .lede { margin-top: 8px; }
  .apps { gap: 10px; }
  .strip { grid-template-columns: 42px minmax(0, 1fr); }
  .strip-num { grid-row: span 2; padding: 17px 0; }
  .strip-main { padding: 14px 16px 15px; }
  .strip-name { font-size: 30px; }
  .strip-go {
    flex-direction: row;
    align-items: center;
    padding: 10px 16px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .strip-arrow { width: 18px; height: 18px; align-self: center; }
  .site-footer { margin-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .strip, .strip-num, .strip-arrow { transition: none; }
}
