/* Standalone Terminal family, TRENUTNO.SI v242. No runtime dependencies. */
:root {
  color-scheme: dark;
  --bg: #101216;
  --panel: #15181e;
  --raised: #1b1f27;
  --hover: #202630;
  --text: #e7eaf0;
  --muted: #a0aaba;
  --line: #292e38;
  --blue: #85adff;
  --bluefill: #193151;
  --red: #f05260;
  --redfill: #372127;
  --accent: var(--text);
  --accent-fill: var(--raised);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.6 var(--mono); }
body[data-project="yt"] { --accent: var(--red); --accent-fill: var(--redfill); }
body[data-project="news"] { --accent: var(--blue); --accent-fill: var(--bluefill); }
a { color: inherit; text-decoration: none; }
a:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: var(--bg); }
.page { min-height: 100svh; display: flex; flex-direction: column; }
.masthead { border-bottom: 1px solid var(--line); background: var(--panel); }
.masthead-inner { max-width: 1280px; margin: auto; padding: 0 40px; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-note { color: var(--muted); font-size: 10px; letter-spacing: .12em; text-align: right; }
.main { width: min(1200px, calc(100% - 80px)); margin: auto; padding-block: 48px; }
.project-index { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 16px; color: var(--muted); font-size: 11px; letter-spacing: .1em; }
.project-index b { color: var(--accent); font-weight: 400; }
.terminal { position: relative; border: 1px solid var(--line); background: var(--panel); box-shadow: inset 0 1px color-mix(in srgb, var(--text) 8%, transparent); }
.titlebar { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 13px 22px; background: var(--raised); font-size: 11px; }
.file-name { color: var(--muted); overflow-wrap: anywhere; }
.file-name span { color: var(--accent); margin-right: 10px; }
.state { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.state::before { content: ""; width: 6px; height: 6px; border: 1px solid var(--accent); transform: rotate(45deg); }
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 530px; }
.copy { padding: 56px 0 52px 44px; align-self: center; position: relative; z-index: 1; }
.eyebrow { font-size: 10px; letter-spacing: .16em; color: var(--muted); margin: 0 0 28px; }
h1 { margin: 0; font-size: clamp(30px, 3.4vw, 48px); font-weight: 700; line-height: 1.13; letter-spacing: -.055em; }
.project-prefix { display: block; color: var(--accent); font-size: 1.72em; letter-spacing: -.065em; line-height: 1; margin-bottom: 8px; }
.project-stem { display: block; white-space: nowrap; }
.tld { color: var(--muted); font-size: .55em; letter-spacing: -.04em; }
.assembling { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .14em; margin: 28px 0 18px; }
.assembling::before { content: ">"; font-size: 16px; margin-right: 4px; }
.dots { display: inline-flex; gap: 4px; align-items: center; }
.dots i { display: block; width: 3px; height: 3px; background: currentColor; }
.description { max-width: 34ch; margin: 0 0 10px; color: var(--text); font-size: 13px; line-height: 1.85; }
.invitation { max-width: 34ch; margin: 0 0 26px; color: var(--muted); font-size: 12px; line-height: 1.85; }
.primary-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; min-height: 48px; padding: 12px 16px; border: 1px solid var(--accent); border-radius: 2px; background: var(--accent-fill); font-size: 12px; font-weight: 700; color: var(--text); box-shadow: inset 0 1px color-mix(in srgb, var(--text) 8%, transparent); }
.primary-link:hover { background: var(--hover); color: var(--text); }
.primary-link:active { box-shadow: inset 0 2px var(--bg); }
.arrow { font-size: 18px; font-weight: 400; line-height: 1; }
.art { align-self: center; min-width: 0; margin: 0; padding: 26px 26px 26px 10px; }
.art-stage { position: relative; color: var(--accent); }
.art svg { display: block; width: 100%; height: auto; overflow: visible; }
.art figcaption { display: flex; justify-content: space-between; padding: 4px 16px 0; gap: 20px; font-size: 9px; letter-spacing: .12em; color: var(--muted); }
.art figcaption span:last-child { text-align: right; }
.wire { fill: none; stroke: currentColor; stroke-width: 1.25; }
.heavy { stroke-width: 2; }
.muted-wire { fill: none; stroke: var(--muted); stroke-width: 1; opacity: .28; }
.grid-wire { fill: none; stroke: var(--muted); stroke-width: .6; opacity: .12; }
.surface { fill: var(--panel); stroke: currentColor; stroke-width: 1.5; }
.surface-raised { fill: var(--raised); stroke: currentColor; stroke-width: 1.5; }
.accent-surface { fill: var(--accent-fill); stroke: currentColor; stroke-width: 1.5; }
.solid { fill: currentColor; stroke: none; }
.ghost { opacity: .3; }
.detail { opacity: .6; }
.part, .orbit, .eye, .signal, .news-line { transform-box: fill-box; transform-origin: center; }
.terminal-foot { border-top: 1px solid var(--line); padding: 0 22px; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 10px; color: var(--muted); letter-spacing: .07em; }
.construction { display: flex; align-items: center; gap: 10px; }
.construction svg { width: 15px; height: 15px; flex: none; color: var(--accent); }
.motion-control { min-height: 44px; display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 11px; letter-spacing: 0; }
.motion-control input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.motion-control:hover { color: var(--text); }
.motion-note { display: none; margin: 0; font-size: 11px; letter-spacing: 0; }
.page-footer { width: min(1200px, calc(100% - 80px)); margin: 0 auto; border-top: 1px solid var(--line); padding: 24px 0; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 10px; letter-spacing: .07em; }
.page-footer strong { color: var(--text); font-weight: 400; }
/* CSS-only control also works when JavaScript is disabled. */
.page:has(#pause-motion:checked) .animated { animation-play-state: paused !important; }
@media (prefers-reduced-motion: no-preference) {
  .part { animation: assemble 10s cubic-bezier(.45, 0, .2, 1) infinite; animation-delay: var(--delay, 0s); }
  .orbit { animation: orbit 20s linear infinite; }
  .eye { animation: eye 10s ease-in-out infinite; }
  .signal { animation: signal 5s ease-in-out infinite; animation-delay: var(--delay, 0s); }
  .news-line { animation: line-in 10s ease-in-out infinite; animation-delay: var(--delay, 0s); }
  .dots i { animation: dot 2.4s ease-in-out infinite; }
  .dots i:nth-child(2) { animation-delay: .3s; }
  .dots i:nth-child(3) { animation-delay: .6s; }
}
@keyframes assemble {
  0%, 8%, 100% { transform: translate(var(--dx, 0px), var(--dy, 0px)); opacity: .35; }
  28%, 76% { transform: translate(0, 0); opacity: 1; }
}
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes eye { 0%, 30%, 100% { transform: translateX(0); } 42% { transform: translateX(6px); } 58% { transform: translateX(-6px); } 70% { transform: translateX(0); } }
@keyframes signal { 0%, 100% { opacity: .2; } 50% { opacity: .85; } }
@keyframes line-in { 0%, 10%, 100% { transform: scaleX(.25); opacity: .35; } 32%, 78% { transform: scaleX(1); opacity: 1; } }
@keyframes dot { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@media (max-width: 1050px) and (min-width: 761px) {
  .main { width: calc(100% - 48px); }
  .copy { padding-left: 28px; }
  .hero { grid-template-columns: 1.05fr 1fr; }
  h1 { font-size: 32px; }
  .art { padding-right: 12px; padding-left: 0; }
  .art figcaption { font-size: 8px; gap: 8px; padding-inline: 4px; }
}
@media (max-width: 760px) {
  .masthead-inner { padding-inline: 22px; min-height: 66px; }
  .header-note { font-size: 8px; max-width: 100px; }
  .main { width: calc(100% - 40px); padding-block: 28px; }
  .project-index { font-size: 9px; letter-spacing: .04em; margin-bottom: 12px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .copy { padding: 32px 26px 10px; }
  .eyebrow { margin-bottom: 24px; font-size: 9px; }
  h1 { font-size: clamp(25px, 6.7vw, 44px); }
  .project-prefix { font-size: 1.7em; }
  .description, .invitation { max-width: 40ch; }
  .assembling { margin-top: 24px; }
  .art { padding: 4px 20px 22px; width: 100%; max-width: 430px; justify-self: center; }
  .art figcaption { font-size: 8px; }
  .titlebar { padding: 12px 16px; font-size: 10px; }
  .state { font-size: 8px; }
  .terminal-foot { padding: 8px 16px; flex-wrap: wrap; column-gap: 20px; row-gap: 0; }
  .construction { font-size: 8px; }
  .motion-control { font-size: 10px; }
  .page-footer { width: calc(100% - 40px); padding: 20px 0; font-size: 9px; flex-wrap: wrap; gap: 10px; }
}
@media (max-width: 360px) {
  .main, .page-footer { width: calc(100% - 24px); }
  .masthead-inner { padding-inline: 14px; }
  .copy { padding-inline: 20px; }
  .titlebar { padding-inline: 12px; gap: 10px; }
  .primary-link { gap: 12px; font-size: 11px; padding-inline: 12px; }
  .art { padding-inline: 12px; }
  .project-index span:last-child { letter-spacing: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .motion-control { display: none; }
  .motion-note { display: block; padding-block: 12px; }
}
@media (forced-colors: active) {
  :root, body[data-project] { --bg: Canvas; --panel: Canvas; --raised: Canvas; --hover: Canvas; --text: CanvasText; --muted: CanvasText; --line: ButtonText; --accent: LinkText; --accent-fill: Canvas; }
  .terminal, .primary-link { box-shadow: none; }
  a:focus-visible, input:focus-visible { outline-color: Highlight; }
  .motion-control input { accent-color: auto; }
}
