/* Shared base for the site and the page ideas. Tokens from shellport-app/docs/03-design.md). */
@font-face { font-family: "Geist"; src: url("/fonts/Geist-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/Geist-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  --ground: #000000;
  --ink: #FFFFFF;
  --muted: rgba(255, 255, 255, 0.55);
  --faint: rgba(255, 255, 255, 0.30);
  --panel: rgba(255, 255, 255, 0.04);
  --track: rgba(255, 255, 255, 0.08);
  --selected: rgba(255, 255, 255, 0.16);
  --hairline: rgba(255, 255, 255, 0.10);
  --outline: rgba(255, 255, 255, 0.25);
  --term-bg: #000000;
  --term-ink: #F2F2F2;
  --cursor: #16A34A;
  --good: #7EE787;
  --warn: #FACC15;
  --down: #F87171;
  --radius: 8px;
  --gutter: 24px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: light) {
  :root {
    --ground: #FFFFFF;
    --ink: #0A0A0A;
    --muted: rgba(10, 10, 10, 0.62);
    --faint: rgba(10, 10, 10, 0.35);
    --panel: #F7F7F5;
    --track: rgba(0, 0, 0, 0.06);
    --selected: rgba(0, 0, 0, 0.10);
    --hairline: rgba(0, 0, 0, 0.10);
    --outline: rgba(0, 0, 0, 0.25);
    --good: #116329;
    --warn: #A16207;
    --down: #B91C1C;
  }
}
@media (max-width: 480px) { :root { --gutter: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

header.top {
  flex: none;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }

footer.bottom {
  flex: none;
  display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: space-between;
  padding-top: 14px; padding-bottom: 18px;
  color: var(--muted); font-size: 13px;
}

/* Terminal window, black in both themes like the app's Shellport Black. */
.term {
  background: var(--term-bg);
  color: var(--term-ink);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
@media (prefers-color-scheme: light) { .term { border-color: transparent; } }
.term-bar {
  flex: none;
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.term-body {
  flex: 1; min-height: 0;
  padding: 12px 14px;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.term-body .line { white-space: pre; min-height: 1.6em; }
.term .p { color: rgba(255, 255, 255, 0.55); }
.term .m { color: rgba(255, 255, 255, 0.55); }
.term .g { color: #7EE787; }
.term .w { color: #FACC15; }
.term .r { color: #F87171; }
.caret {
  display: inline-block; width: 0.9ch; height: 3px;
  background: var(--cursor);
  vertical-align: -2px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }
