/* maschi.si — Terminal Ember base and shared components (landing and login). Tokens: tokens.css, spec: DESIGN.md. */
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--mono); font-size: 14px; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
::selection { background: var(--orange); color: var(--bg); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.wrap { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -.02em; color: var(--text); white-space: nowrap; }
.brand svg { width: 30px; height: auto; flex: none; }
.brand .mark-accent { fill: var(--orange); }
.brand .dot, .acc { color: var(--orange); }

/* Buttons and small controls */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: var(--r-md); font-weight: 700; font-size: 13px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast); }
.btn:hover { border-color: var(--orange); }
.btn.primary { background: var(--orange); border-color: var(--orange); color: var(--bg); }
.btn.primary:hover { box-shadow: 0 0 0 6px rgba(255, 106, 26, .18), 0 18px 40px -12px rgba(255, 106, 26, .6); }
kbd { font-family: var(--mono); font-size: 11px; border: 1px solid var(--line-2); border-bottom-width: 2px; padding: 1px 6px; border-radius: 4px; color: var(--text); }
.tag { display: block; color: var(--orange); font-size: 12px; margin-bottom: 14px; }
.shiny { background: linear-gradient(110deg, var(--muted) 35%, var(--text) 50%, var(--muted) 65%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 4s linear infinite; }
@keyframes shine { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 40; background: var(--header-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); height: auto; min-height: 0; padding: 0; display: block; }
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; color: var(--muted); font-size: 13px; }
.nav nav a { transition: color var(--dur-fast); }
.nav nav a::before { content: "./"; color: var(--line-2); }
.nav nav a:hover { color: var(--orange); }
.private { display: inline-flex; align-items: center; gap: 8px; background: var(--orange); color: var(--bg); padding: 9px 14px; border-radius: var(--r-sm); font-weight: 700; font-size: 12px; white-space: nowrap; transition: box-shadow var(--dur-fast); }
.private svg { width: 16px; height: 16px; flex: none; }
.private:hover { box-shadow: 0 0 0 4px rgba(255, 106, 26, .2); }

/* Terminal window */
.term { border: 1px solid var(--line-2); border-radius: 12px; background: linear-gradient(180deg, var(--term-top), var(--term-bottom)); box-shadow: 0 40px 120px -40px rgba(255, 106, 26, .35); overflow: hidden; transform-style: preserve-3d; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.term-bar i:nth-child(3) { background: var(--orange); box-shadow: 0 0 10px var(--orange); }
.term-bar span { margin-left: auto; }
.term-body { padding: 18px 20px 22px; min-height: 340px; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.term-body .c { color: var(--orange); }
.term-body .m { color: var(--muted); }
.term-body .g { color: var(--amber); }
.term-body .w { color: var(--text); font-weight: 700; }
.cursor { display: inline-block; width: 8px; height: 16px; background: var(--orange); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Status dot */
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); margin-right: 8px; box-shadow: 0 0 10px var(--orange); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .4; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body.paused *, body.paused *::before, body.paused *::after { animation-play-state: paused !important; }
