@font-face { font-family: A152bTerminal; src: url("assets/a152b-Terminal-Regular.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face {
  font-family: Yshanka;
  src: url('assets/YshankaSerif50-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #fff;
  --canvas: #dfe3e8;
  --ink: #202c39;
  --muted: #596777;
  --line: #b8c3cf;
  --blue: #155aaf;
  --blue-dark: #154f94;
  --yellow: #f6d54b;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  border-top: 5px solid #235d9f;
  background: linear-gradient(#f7f8fa 0, #dfe3e8 420px) fixed;
  color: var(--ink);
  font: 18px/1.5 Yshanka, Georgia, serif;
}
button, input { font: inherit; }
a { color: inherit; text-underline-offset: 4px; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a, button, input { -webkit-tap-highlight-color: transparent; transition: color .14s ease, border-color .14s ease, background-color .14s ease; }
:focus-visible { outline: 2px solid #155aaf; outline-offset: 4px; }
::selection { color: #fff; background: #155aaf; }
input { caret-color: #155aaf; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site { max-width: 1120px; padding: 0 32px 32px; margin: 0 auto; }
.masthead { display: flex; align-items: center; gap: 28px; min-height: 144px; padding: 24px 8px; }
.identity { display: flex; text-decoration: none; }
.identity img { width: 100px; height: 100px; object-fit: contain; image-rendering: pixelated; }
.window { overflow: hidden; border: 1px solid #94a5b9; border-radius: 10px; background: var(--paper); box-shadow: 0 8px 24px #263b521f; }
.window-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 20px; border-top: 1px solid #fff; border-bottom: 1px solid #a4b1c0; background: linear-gradient(#fbfcfd, #e7ebf0 50%, #d8dfe7 51%, #e4e9ef); color: #4d6075; font-size: 13px; text-shadow: 0 1px #fff; }
.window-detail { font-size: 12px; }
.tabbar { display: flex; align-items: stretch; justify-content: space-between; padding: 0 16px; border-top: 1px solid #78aee3; border-bottom: 1px solid #154277; background: linear-gradient(#3875b1, #3378bd 49%, #1b5ca1 50%, #286db1); }
[role=tablist] { display: flex; gap: 0; }
.tab { position: relative; min-height: 56px; padding: 12px 24px; border: 0; border-right: 1px solid #174f8c; border-left: 1px solid #91bce34d; border-radius: 0; background: transparent; color: #fff; font-size: 20px; text-shadow: 0 1px 1px #173d67; }
.tab:first-child { border-left: 1px solid #174f8c; }
.tab:hover { background: #00000010; }
.tab[aria-selected=true] { color: #fff; background: linear-gradient(#326da8, #205b9b 49%, #104677 50%, #1d568f); box-shadow: inset 0 2px 4px #0a2e5555; }
.tab[aria-selected=true]::after { content: ''; position: absolute; bottom: 0; left: 20px; right: 20px; height: 3px; background: #f5d256; }
.tab:focus-visible { outline-color: #fff; outline-offset: -5px; }
.tab-count { display: inline-block; min-width: 20px; margin-left: 8px; padding: 0 5px; border: 1px solid #113d68; border-radius: 8px; background: #164a7d; box-shadow: 0 1px #ffffff36; color: #fff; font-size: 13px; line-height: 18px; }
.terminal-symbol { font: 14px var(--mono); margin-right: 4px; }
.tabbar-note { align-self: center; padding: 0 12px; color: #fff; font-size: 14px; text-shadow: 0 1px #164778; }
main { min-height: 520px; padding: 36px 40px 32px; background: linear-gradient(#f0f5fa, #fff 128px); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 28px; }
h1 { margin: 0; color: #274d78; font-size: 42px; font-weight: 400; line-height: 1.2; text-shadow: 0 1px #fff; }
.section-intro { margin: 0; font-size: 16px; color: #596a7e; }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 16px; border: 1px solid #aebdcd; border-radius: 6px 6px 0 0; background: linear-gradient(#fafcfe, #e4eaf1 50%, #dbe3ed 51%, #e5ebf2); box-shadow: inset 0 1px #fff; color: #3b526e; font-size: 15px; text-shadow: 0 1px #fff; }
.sort-arrow { padding-left: 8px; color: #5d7391; }
.search { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border: 1px solid #9baec3; border-radius: 12px; background: #fff; box-shadow: inset 0 1px 3px #2c48632b; color: #657b94; }
.search input { width: 176px; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 15px; line-height: 1.5; }
.search input::placeholder { color: #63738a; }
.search:focus-within { outline: 2px solid #155aaf; outline-offset: 2px; }
.search input:focus-visible { outline: none; }
.project { display: grid; grid-template-columns: 40px 1fr auto; gap: 20px; align-items: center; padding: 32px 20px; border: 1px solid var(--line); border-top: 0; background: linear-gradient(100deg, #f3f7fc, #fff 48%); }
.project:last-child { border-radius: 0 0 6px 6px; }
.project-number { align-self: start; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-top: 4px; border: 1px solid #b6c8dc; border-radius: 6px; background: linear-gradient(#fff, #d9e6f4); box-shadow: inset 0 1px #fff; font-size: 15px; color: #49698d; }
.project-content h2 { margin: 0 0 12px; font-size: 34px; line-height: 1.2; font-weight: 400; }
.project-content h2 a { color: #175dab; text-decoration: none; }
.project-content h2 a:hover { text-decoration: underline; }
.project-content p { max-width: 480px; margin: 0 0 20px; font-size: 18px; line-height: 1.55; }
.project-domain { color: #526a86; font-size: 15px; }
.classic-button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 20px; border: 1px solid #154c87; border-radius: 6px; box-shadow: inset 0 1px #ffffff9c, 0 2px 3px #1f42642b; background: linear-gradient(#326da8, #2865a4 48%, #1b5c9e 49%, #2d75b9); color: #fff; text-decoration: none; text-shadow: 0 1px 1px #174677; font-size: 17px; white-space: nowrap; }
.classic-button:hover:not(:disabled) { background: linear-gradient(#3875b1, #2c6baa 48%, #266bac 49%, #2e6ca8); border-color: #0c3e75; }
.classic-button:active:not(:disabled) { background: linear-gradient(#1c538d, #2865a4); box-shadow: inset 0 2px 4px #133c6755; }
.project-link { align-self: center; }
.catalog-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; color: #607187; font-size: 14px; }
.small-arrow { color: var(--blue); }
.empty-search { margin: 0; padding: 48px 20px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 6px 6px; background: #f8fafd; color: #5b6f87; font-size: 17px; }
.note { display: flex; align-items: start; gap: 24px; margin-top: 32px; padding: 20px 24px; border: 1px solid #c2cfdf; border-radius: 6px; background: linear-gradient(#f8fbff, #eaf1f9); box-shadow: inset 0 1px #fff; }
.note-label { flex-shrink: 0; margin-top: 2px; padding: 3px 10px; border: 1px solid #c2a13b; border-radius: 3px; background: linear-gradient(#ffed9a, #f4cf50); color: #644b0b; text-shadow: 0 1px #fff4c7; font-size: 14px; line-height: 1.4; }
.note p { margin: 0; font-size: 16px; color: #4f6580; line-height: 1.5; }
.note-mark { margin-left: auto; color: #7b92ac; font-size: 36px; line-height: 1; }
.statusbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 20px; border-top: 1px solid #b9c5d3; box-shadow: inset 0 1px #fff; background: linear-gradient(#edf1f5, #dce3eb); color: #465b73; font-size: 13px; }
.statusbar>span:last-child { display: flex; align-items: center; gap: 12px; }
.status-square { width: 8px; height: 8px; border: 1px solid #61758d; background: #8da2b9; }
.terminal-frame { border: 1px solid #909aa6; }
.terminal-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 12px; border-bottom: 1px solid #909aa6; background: #e9edf1; font-size: 14px; }
.terminal-toolbar>span { display: flex; align-items: center; gap: 8px; }
.connection-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #7e8791; }
.terminal-toolbar button:disabled { color: #5d6978; background: #e1e6ec; box-shadow: none; border-color: #b2bfcd; text-shadow: none; }
.terminal-screen { height: 248px; padding: 24px; overflow: auto; background: #191b1b; color: #d0d3ce; font: 16px/1.7 Yshanka, Georgia, serif; }
.terminal-screen p { margin: 0 0 8px; }
.terminal-screen .terminal-help { color: #969d96; }
.terminal-input { display: flex; gap: 12px; padding: 12px 24px; border-top: 1px solid #393d39; background: #191b1b; color: #818980; font: 13px/1.5 var(--mono); }
.terminal-input input { width: 100%; min-width: 0; border: 0; background: transparent; color: #969d96; opacity: 1; -webkit-text-fill-color: #969d96; font: inherit; }
.terminal-input input::placeholder { color: #969d96; }
.skip-link { position: absolute; top: 8px; left: 16px; z-index: 10; padding: 8px 16px; background: #fff; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.noscript { margin: 24px; }
@media (max-width: 800px) {
  .site { padding: 0 24px; }
  .masthead { min-height: 128px; padding: 20px 8px; }
  .identity img { width: 88px; height: 88px; }
  .address, .tabbar-note { display: none; }
  .tabbar { padding: 0 12px; }
  main { padding: 32px 24px; }
  .section-heading { gap: 24px; }
  .section-intro { font-size: 15px; }
  .project { grid-template-columns: 32px 1fr auto; gap: 16px; padding: 28px 16px; }
  .project-content p { font-size: 17px; }
  .project-link { padding: 8px 12px; }
  .note { gap: 16px; padding: 16px; }
  .note-mark { display: none; }
}
@media (max-width: 520px) {
  .site { padding: 0 12px; }
  .masthead { gap: 20px; min-height: 120px; padding: 16px 8px; }
  .identity img { width: 80px; height: 80px; }
  .window { border-radius: 8px; }
  .window-title { padding: 8px 12px; font-size: 12px; }
  .window-detail { display: none; }
  .tabbar { padding: 0; }
  [role=tablist] { width: 100%; }
  .tab { flex: 1; min-width: 0; min-height: 52px; padding: 12px 8px; font-size: 17px; }
  .tab:first-child { border-left: 0; }
  .tab:last-child { border-right: 0; }
  .tab-count { min-width: 16px; padding: 0 4px; margin-left: 4px; font-size: 12px; }
  .tab[aria-selected=true]::after { left: 12px; right: 12px; }
  .terminal-symbol { display: none; }
  main { min-height: 500px; padding: 28px 16px 24px; }
  .section-heading { display: block; margin-bottom: 24px; }
  h1 { font-size: 34px; }
  .section-intro { margin-top: 12px; }
  .section-intro br { display: none; }
  .catalog-toolbar { gap: 12px; padding: 8px; font-size: 13px; }
  .search { gap: 4px; padding: 4px 8px; }
  .search input { width: 112px; font-size: 14px; }
  .project { grid-template-columns: 28px 1fr; gap: 12px; padding: 24px 12px; }
  .project-number { width: 26px; height: 28px; font-size: 13px; }
  .project-content h2 { font-size: 30px; }
  .project-content p { margin-bottom: 16px; font-size: 17px; }
  .project-domain { font-size: 13px; overflow-wrap: anywhere; }
  .project-link { grid-column: 2; justify-self: start; margin-top: 8px; }
  .catalog-bottom { gap: 8px; font-size: 12px; }
  .note { display: block; margin-top: 28px; }
  .note-label { display: inline-block; margin: 0 0 12px; }
  .note p { font-size: 15px; }
  .note p br { display: none; }
  .empty-search { padding: 36px 16px; }
  .statusbar { padding: 8px 12px; font-size: 11px; }
  .statusbar>span:last-child { gap: 8px; }
  .terminal-toolbar { gap: 8px; padding: 8px; font-size: 12px; }
  .terminal-toolbar .classic-button { padding: 6px 8px; font-size: 13px; }
  .terminal-screen { height: 260px; padding: 20px 12px; font-size: 12px; }
  .terminal-input { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.archive-toolbar { flex-wrap: wrap; }
#archive-breadcrumbs { min-width: 0; flex: 1; overflow-wrap: anywhere; }
#archive-breadcrumbs a { color: #294665; }
.archive-file { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px; border: 1px solid #b8c3cf; border-top: 0; background: #fff; }
.file-details { min-width: 0; }
.file-details h2 { margin: 0 0 8px; font-size: 20px; font-weight: 400; line-height: 1.4; overflow-wrap: anywhere; }
.file-details p { margin: 0; font-size: 14px; color: #526a86; }
.text-button { padding: 0; border: 0; background: transparent; color: #154f94; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.text-button:disabled { color: #596777; text-decoration: none; }
@media(max-width:520px) {
  .archive-toolbar { flex-wrap: wrap; }
  .archive-file { align-items: start; flex-direction: column; gap: 16px; padding: 16px; }
  .file-details h2 { font-size: 18px; }
}

.terminal-screen { height: 360px; padding: 16px; }
.terminal-screen .xterm { height: 100%; }
.terminal-actions { display: flex; gap: 8px; }
.file-details h2 a { color: #154f94; }
@media(max-width:520px) { .terminal-screen { height: 360px; padding: 8px; } .archive-toolbar .search { margin-left: auto; } }

.stack { margin-top: 32px; padding-top: 24px; border-top: 1px solid #b8c3cf; }
.stack h2 { margin: 0 0 16px; color: #274d78; font-size: 25px; font-weight: 400; }
.stack-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.stack-list li { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px; border: 1px solid #aebdcd; border-radius: 3px; background: linear-gradient(#fff, #edf1f5); box-shadow: inset 0 1px #fff; color: var(--stack-ink); font-size: 16px; }
.stack-list img { flex: none; width: 24px; height: 24px; object-fit: contain; }
.stack-asm { --stack-ink: #343434; }
.stack-c { --stack-ink: #354f84; }
.stack-cplusplus { --stack-ink: #00599c; }
.stack-rust { --stack-ink: #000; }
.stack-archlinux { --stack-ink: #0874a5; }
.stack-gentoo { --stack-ink: #54487a; }
@media(max-width:520px) { .stack { margin-top: 28px; } .stack-list li { padding: 4px 12px; font-size: 15px; } }
