/* Shared styles for mirazbakis.com
   Pages are drawn as a terminal window. */

:root {
    --bg: #08090c;
    --win: #0f1117;
    --bar: #171a22;
    --line: #232733;
    --line-strong: #343a4a;
    --card: rgba(255, 255, 255, 0.02);
    --ink: #d7dae3;
    --muted: #6f7687;
    --green: #7ee787;
    --blue: #79c0ff;
    --pink: #ff9bd2;
    --yellow: #f2cc60;
    --accent: var(--blue);
    --accent-ink: #08090c;
    --accent-soft: rgba(121, 192, 255, 0.08);
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --display: var(--mono);
    --radius: 10px;
    color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { overflow-x: clip; }

body {
    font-family: var(--mono);
    font-size: 14.5px;
    line-height: 1.7;
    background: radial-gradient(ellipse at top, #161a2b, var(--bg) 60%) fixed;
    background-color: var(--bg);
    color: var(--ink);
    min-height: 100vh;
    padding: clamp(.75rem, 4vw, 3rem) .75rem;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--blue); color: var(--accent-ink); }

.skip-link {
    position: absolute; left: 1rem; top: -3rem;
    background: var(--blue); color: var(--accent-ink);
    padding: .35rem .7rem; border-radius: 6px;
    z-index: 50;
}
.skip-link:focus { top: 1rem; }

/* ---- terminal window ---- */
.window {
    max-width: 860px;
    margin: 0 auto;
    background: var(--win);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
}
.bar {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 14px;
    background: var(--bar);
    border-bottom: 1px solid var(--line);
}
.bar i { width: 12px; height: 12px; border-radius: 50%; }
.bar i:nth-child(1) { background: #ff5f57; }
.bar i:nth-child(2) { background: #febc2e; }
.bar i:nth-child(3) { background: #28c840; }
.bar span { flex: 1; text-align: center; color: var(--muted); font-size: 12.5px; margin-right: 44px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term { padding: clamp(1rem, 3vw, 1.75rem); }

/* A shell prompt line: <p class="cmd"><span class="p">miraz@github</span>:<span class="path">~</span>$ ls</p> */
.cmd { margin-top: 1.6rem; overflow-wrap: anywhere; }
.cmd:first-child { margin-top: 0; }
.cmd .p { color: var(--green); }
.cmd .path { color: var(--blue); }
.out { margin-top: .4rem; }
.muted { color: var(--muted); }

.tag { color: var(--green); font-size: 12px; }

.cursor {
    display: inline-block;
    width: .6em; height: 1.1em;
    background: var(--ink);
    vertical-align: -0.2em;
    animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    .cursor { animation: none; }
    *, *::before, *::after { transition: none !important; }
}
