/* reyki.me. Same fonts and colours as bitsandbricks.ch, its own layout: one console box.
   Fonts: Archivo and IBM Plex Mono (SIL OFL 1.1), served from this site. */
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url(fonts/archivo-latin-standard-normal.woff2) format("woff2-variations"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 600; src: url(fonts/ibm-plex-mono-latin-600-normal.woff2) format("woff2"); }

:root {
  --page: #f7f7f4; --surface: #ffffff; --surface-2: #efefea;
  --line: #e1e1da; --line-2: #cbcbc2;
  --text: #151515; --text-2: #4a4a46; --text-3: #686862;
  --green: #15803d; --core: #22c55e; --brick: #b23b14; --mark-bg: #111111; --mark-brick: #f27a4f; --mark-green: #43a868;
  --amber: #d97706; --red: #dc2626;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #111111; --surface: #1a1a1a; --surface-2: #212121;
    --line: #2e2e2e; --line-2: #424242;
    --text: #ededed; --text-2: #b3b3b3; --text-3: #8c8c8c;
    --green: #5cb97c; --core: #43a868; --brick: #f27a4f; --mark-bg: #212121; --amber: #f59e0b; --red: #ef4444;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; min-height: 100vh; display: grid; grid-template-rows: 1fr auto; justify-items: center; align-items: center; padding: 16px;
  background: var(--page); color: var(--text); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--brick); text-underline-offset: .2em; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
::selection { background: var(--brick); color: #fff; }
svg { display: block; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

/* The box: a terminal window, title bar on top */
.box { width: min(560px, 100%); background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mark { width: 22px; height: 22px; }
.mark-bg { fill: var(--mark-bg); }
.mark-chev { fill: none; stroke: var(--mark-brick); stroke-width: 7; stroke-linecap: square; }
.mark-cur { fill: var(--mark-green); }
.host { font: 500 .8rem/1 var(--mono); color: var(--text-3); }

.motd { padding: clamp(28px, 6vw, 44px) clamp(20px, 5vw, 36px); display: grid; gap: 14px; }
.prompt { margin: 0; font: 400 .85rem/1.4 var(--mono); color: var(--text-3); }
.prompt b { color: var(--brick); font-weight: 600; }
h1 { margin: 0; font-family: var(--sans); font-stretch: 125%; font-weight: 800; font-size: clamp(2.4rem, 9vw, 3.6rem); line-height: 1; letter-spacing: -.02em; }
h1 span { color: var(--brick); }
.motd { container-type: inline-size; }
h1.long { font-size: min(2rem, 7cqi); }
.lede { margin: 0; font: 400 1rem/1.5 var(--mono); color: var(--text-2); }
.cursor { display: inline-block; width: .6em; height: 1.1em; background: var(--core); vertical-align: -.2em; margin-left: 4px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Services: one row per tool, like a short "show" output */
.services { border-top: 1px dashed var(--line-2); padding: 20px clamp(20px, 5vw, 36px) 24px; display: grid; gap: 10px; }
.services ul { list-style: none; margin: 0; padding: 0; }
.services li { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-family: var(--mono); }
.services li:last-child { border-bottom: 0; }
.services a { display: contents; text-decoration: none; }
.services .name { font-weight: 600; color: var(--text); }
.services .url { color: var(--brick); font-size: .85rem; justify-self: end; align-self: center; }
.services a:hover .name { color: var(--brick); }
.services .group { margin: 10px 0 -4px; font: 600 .75rem/1 var(--mono); color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.services .led { display: inline-block; width: 8px; height: 8px; border-radius: 1px; margin-right: 10px; vertical-align: .1em; background: var(--line-2); }
.services .led.up { background: var(--core); }
.services .led.degraded { background: var(--amber); }
.services .led.down { background: var(--red); }
.services .note { margin: 0; font: 400 .85rem/1.4 var(--mono); color: var(--brick); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.services .what { grid-column: 1 / -1; color: var(--text-3); font-size: .82rem; }

/* Footer: Powered by BitsAndBricks */
.foot { padding: 28px 0 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.coffee { color: var(--text-3); text-decoration: none; font: 400 .8rem/1 var(--mono); }
.coffee:hover { color: var(--brick); }
.powered { display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); text-decoration: none; font: 400 .8rem/1 var(--mono); }
.powered svg { width: 20px; height: 20px; }
.powered .b { fill: var(--mark-brick); } .powered .g { fill: var(--mark-green); } .powered .p { fill: var(--page); }
.powered strong { font: 800 .9rem/1 var(--sans); font-stretch: 125%; color: var(--text); letter-spacing: -.01em; }
.powered strong b { color: var(--green); font-weight: 800; }
.powered:hover strong { color: var(--brick); }
