@font-face { font-family: 'Galmuri Mono9'; src: url('../fonts/galmuri/GalmuriMono9.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
:root { color-scheme: dark; --term-bg: #080c08; --term-panel: #0c140d; --term-line: #31452f; --term-text: #cadcb9; --term-muted: #92a587; --term-green: #b3f78b; --term-cyan: #91cba0; --term-font: 'Galmuri Mono9', monospace; font: 16px/1.85 var(--term-font); font-synthesis: none; -webkit-font-smoothing: none; color: var(--term-text); background: var(--term-bg); }
* { box-sizing: border-box; }
body { margin: 0; background-image: radial-gradient(#9ac98915 1px, transparent 1px); background-size: 6px 6px; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: 0.5; }
a { color: var(--term-cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--term-green); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 10; padding: 0.8rem; background: var(--term-panel); }
.skip-link:focus { top: 1rem; }
.terminal-workspace { width: min(1400px, calc(100% - 80px)); margin-inline: auto; }
.term-site-header { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 96px; }
.term-wordmark { color: var(--term-green); font-weight: 400; letter-spacing: 0; font-size: 1rem; }
.term-wordmark > span:first-child { color: var(--term-green); margin-right: 0.8rem; }
.term-header-label { font-weight: 400; color: var(--term-muted); }
.term-site-header nav { display: flex; gap: 2rem; font-size: 0.78rem; }
.term-site-header nav a { color: var(--term-muted); padding-block: 0.65rem; }
.term-site-header nav a:hover { color: var(--term-green); }
.term-workspace-heading { display: flex; justify-content: space-between; gap: 1rem; margin: 1.2rem 0 1rem; font-size: 0.64rem; letter-spacing: 0.08em; }
.term-workspace-heading > span:first-child { display: flex; align-items: center; gap: 0.7rem; }
.term-status-dot { display: inline-block; width: 6px; height: 6px; flex-shrink: 0; background: var(--term-green); }
.term-window { border: 2px solid #4b6743; overflow: hidden; background: var(--term-panel); box-shadow: 6px 6px 0 #030703; }
.term-titlebar { min-height: 40px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 0.5rem 1.15rem; background: #1b2b18; color: var(--term-green); font-size: 12px; border-bottom: 2px solid #4b6743; }
.term-window-dots { display: flex; gap: 7px; }
.term-window-dots span { width: 8px; height: 8px; background: #709461; }
.term-window-dots span:nth-child(2) { background: #91bd79; }
.term-window-dots span:nth-child(3) { background: #b3f78b; }
.term-titlebar-end { text-align: right; font-size: 0.65rem; }
.term-window-body { display: grid; grid-template-columns: 238px minmax(0, 1fr); height: clamp(500px, calc(100svh - 235px), 940px); }
.term-explorer { display: flex; flex-direction: column; overflow-y: auto; min-height: 0; scrollbar-width: thin; scrollbar-color: #4b6743 transparent; padding: 1.2rem 0.6rem 0.8rem; background: #101a10; border-right: 2px solid var(--term-line); }
.term-explorer-label { margin: 0 0 1.25rem 0.8rem; font-size: 0.64rem; letter-spacing: 0.15em; color: var(--term-muted); }
.term-directory { margin: 0 0.8rem 0.6rem; color: var(--term-cyan); font-size: 0.82rem; }
.term-explorer button { display: flex; align-items: center; gap: 0.65rem; width: 100%; padding: 0.4rem 0.7rem; border: 0; background: transparent; text-align: left; font-size: 12px; }
.term-explorer button:hover { color: var(--term-green); background: #b3f78b0d; }
.term-explorer button[aria-current='true'] { color: #080c08; background: var(--term-green); }
.term-explorer button[aria-current='true'] .term-file-icon { color: #080c08; }
.term-file-icon { color: #7b9f76; font-size: 0.82rem; }
.term-explorer .term-directory-button { margin-top: 0.75rem; color: var(--term-cyan); }
.term-badge { margin-left: auto; color: var(--term-muted); font-size: 0.65rem; }
.term-project-files { padding-left: 0.7rem; }
.term-project-files button { font-size: 11px; }
.term-explorer-bottom { margin-top: auto; padding: 2rem 0.8rem 0; }
.term-explorer-bottom > span { font-size: 0.58rem; letter-spacing: 0.12em; color: var(--term-muted); }
.term-explorer-bottom button { justify-content: space-between; padding: 0.5rem 0; color: var(--term-green); }
.term-console { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.term-tab { display: flex; justify-content: space-between; flex-wrap: wrap; flex-shrink: 0; gap: 0.25rem 1rem; min-height: 43px; padding: 0 1.5rem; border-bottom: 1px dashed var(--term-line); font-size: 12px; }
.term-tab-active { display: flex; align-items: center; gap: 0.5rem; min-width: 0; overflow-wrap: anywhere; border-bottom: 2px solid var(--term-green); color: var(--term-green); padding: 0.6rem 0; }
.term-tab button { padding: 0.3rem 0; border: 0; background: transparent; color: #e2ce8d; font-size: 11px; }
.term-tab:has(#terminal-skip:not([hidden])) .term-tab-hint { display: none; }
.term-tab-hint { align-self: center; color: var(--term-muted); font-size: 0.7rem; }
.term-screen { flex: 1; min-height: 0; overflow: auto; padding: 1.4rem 2rem; scrollbar-width: thin; scrollbar-color: #4b6743 transparent; overscroll-behavior: contain; overflow-wrap: anywhere; word-break: keep-all; background-image: repeating-linear-gradient(0deg, #0001, #0001 1px, transparent 1px, transparent 4px); }
.term-screen p { margin: 0.6rem 0; }
.term-boot .term-muted { font-size: 0.77rem; }
.term-screen .term-ascii { margin: 1rem 0 0.5rem; color: var(--term-green); font: 400 60px/1.2 var(--term-font); letter-spacing: 0; }
.term-block { color: var(--term-cyan); }
.term-boot-role { letter-spacing: 0.2em; font-size: 0.73rem; color: var(--term-green); }
.term-intro { padding-top: 0.6rem; font-size: 0.88rem; }
.term-welcome-rule { border-top: 1px dashed var(--term-line); margin: 1.3rem 0; }
.term-muted { color: var(--term-muted); }
.term-green, .term-user { color: var(--term-green); }
.term-cyan, .term-path { color: var(--term-cyan); }
.term-dollar { color: #e4bd7a; margin: 0 0.65rem 0 0.35rem; }
.term-prompt { display: flex; flex-wrap: wrap; gap: 0; align-items: baseline; font-size: 0.86rem; word-break: break-all; }
.term-echo { white-space: pre-wrap; }
.term-entry { margin-bottom: 1.5rem; }
.term-profile { font-size: 14px; }
.term-profile dl, .term-contact-list { display: grid; grid-template-columns: 7rem minmax(0, 1fr); column-gap: 0.8rem; row-gap: 0.45rem; margin: 1.1rem 0; }
.term-profile dt, .term-contact-list dt { color: var(--term-muted); }
.term-profile dd, .term-contact-list dd { margin: 0; }
.term-profile > p { color: var(--term-muted); max-width: 60rem; }
.term-start-hint { font-size: 0.8rem; margin: 1.8rem 0 !important; }
.term-start-hint > span { margin-right: 0.6rem; }
.term-screen code { font: inherit; color: var(--term-cyan); }
.term-input-form { display: flex; align-items: baseline; flex-shrink: 0; gap: 0; padding: 0.55rem 2rem; font-size: 14px; background: #0a100a; border-top: 1px dashed var(--term-line); border-bottom: 1px solid transparent; }
.term-input-form:focus-within { border-bottom-color: #9bdf9340; }
.term-input-prompt { flex-shrink: 0; }
#terminal-input { width: 100%; min-width: 0; padding: 0.15rem 0; border: 0; border-radius: 0; outline: none; background: transparent; color: #eff5ee; caret-color: var(--term-green); }
#terminal-input::placeholder { color: #829187; }
.term-enter { min-width: 36px; min-height: 36px; padding: 0; border: 1px solid var(--term-line); background: transparent; color: var(--term-green); }
.term-statusbar { display: flex; flex-shrink: 0; justify-content: space-between; gap: 1rem; align-items: center; padding: 0.4rem 1rem; background: #1b2b18; border-top: 1px solid var(--term-line); font-size: 10px; color: var(--term-muted); }
.term-statusbar > span:first-child { display: inline-flex; align-items: center; gap: 0.5rem; }
.term-site-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem 0 2.5rem; font-size: 0.63rem; }
.term-document { font-size: 14px; padding: 0.2rem 0 0.6rem; }
.term-document h2, .term-document h3 { color: #e4f6d5; font-size: 16px; font-weight: 400; margin: 1rem 0 0.6rem; }
.term-document h4 { color: var(--term-green); font-size: 0.86rem; font-weight: 400; margin: 1.4rem 0 0.4rem; }
.term-document h4::before { content: '## '; color: #739771; }
.term-document ul { padding-left: 1.35rem; margin: 0.5rem 0; }
.term-document li { padding-left: 0.2rem; margin: 0.45rem 0; }
.term-document li::marker { color: var(--term-muted); }
.term-document .term-file-label { color: var(--term-cyan); font-size: 0.75rem; border-bottom: 1px dashed var(--term-line); padding-bottom: 0.6rem; }
.term-document .term-result { margin-top: 1.5rem; color: var(--term-green); }
.term-document button, .term-file-list button { color: var(--term-cyan); font: inherit; background: transparent; padding: 0; border: 0; text-align: left; }
.term-document button:hover, .term-file-list button:hover { color: var(--term-green); text-decoration: underline; text-underline-offset: 4px; }
.term-help-list { display: grid; grid-template-columns: minmax(160px, 1fr) 1.4fr; gap: 0.6rem 1.2rem; }
.term-help-list dd { margin: 0; color: var(--term-muted); }
.term-project-list > section { border-bottom: 1px dashed var(--term-line); padding: 1rem 0; }
.term-history-list > div { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-bottom: 1px dashed var(--term-line); }
.term-history-list strong { color: var(--term-text); font-weight: 500; }
.term-history-list p { color: var(--term-muted); margin: 0.2rem 0; }
.term-file-list { display: flex; flex-wrap: wrap; gap: 0.6rem 1.7rem; padding: 0.5rem 0; font-size: 0.85rem; }
.term-file-list button { min-height: 32px; }
.term-error { color: #f2a59c; }
.term-history-command { white-space: pre-wrap; font-size: 0.85rem; }
.term-output-cursor { display: inline-block; width: 0.65em; height: 1.1em; margin-left: 0.15em; vertical-align: -0.12em; background: var(--term-green); animation: term-cursor-blink 1s steps(1, end) infinite; }
.term-completions { flex-shrink: 0; max-height: 90px; overflow: auto; padding: 0.5rem 1rem; color: var(--term-cyan); background: #152014; font-size: 12px; overflow-wrap: anywhere; }
@keyframes term-cursor-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@media (max-width: 1050px) {
  .terminal-workspace { width: calc(100% - 40px); }
  .term-window-body { grid-template-columns: 210px minmax(0, 1fr); }
  .term-screen { padding: 1.5rem; }
  .term-tab-hint { display: none; }
  .term-history-list > div { grid-template-columns: 1fr; gap: 0.3rem; }
}
@media (max-width: 720px) {
  .terminal-workspace { width: calc(100% - 24px); }
  .term-site-header { min-height: 100px; flex-wrap: wrap; align-content: center; gap: 0.7rem; padding-block: 1rem; }
  .term-wordmark { font-size: 0.92rem; }
  .term-site-header nav { gap: 1.4rem; font-size: 0.74rem; }
  .term-workspace-heading { font-size: 0.58rem; margin-top: 0.5rem; }
  .term-workspace-heading > span:last-child { display: none; }
  .term-window-body { grid-template-columns: 1fr; height: auto; }
  .term-titlebar { padding-inline: 0.8rem; font-size: 0.68rem; }
  .term-titlebar-end { visibility: hidden; }
  .term-explorer { display: flex; flex-direction: row; flex-wrap: wrap; gap: 0.3rem; padding: 0.65rem; border-right: 0; border-bottom: 1px solid var(--term-line); }
  .term-explorer > button { width: auto; min-height: 38px; padding: 0.25rem 0.6rem; font-size: 0.73rem; border: 1px solid var(--term-line); }
  .term-explorer .term-directory-button { margin: 0; }
  .term-explorer-label, .term-directory, .term-project-files, .term-explorer-bottom { display: none; }
  .term-file-icon, .term-badge { display: none; }
  .term-tab { padding-inline: 1rem; }
  .term-console { height: max(480px, 76svh); }
  .term-screen { padding: 1.2rem 1rem; }
  .term-boot-role { font-size: 0.6rem; letter-spacing: 0.12em; }
  .term-screen .term-ascii { font-size: 40px; }
  .term-profile dl, .term-contact-list { grid-template-columns: 1fr; gap: 0.2rem; }
  .term-profile dd, .term-contact-list dd { margin-bottom: 0.65rem; }
  .term-input-form { flex-wrap: wrap; font-size: 1rem; padding: 0.55rem 1rem; }
  .term-input-prompt { width: 100%; font-size: 0.82rem; }
  #terminal-input { flex: 1; min-height: 44px; font-size: 16px; }
  .term-help-list { grid-template-columns: 1fr; gap: 0; }
  .term-help-list dd { margin-bottom: 0.8rem; }
  .term-statusbar { align-items: start; font-size: 0.58rem; gap: 0.7rem; }
  #terminal-hint { max-width: 65%; text-align: right; }
  .term-site-footer { flex-direction: column; gap: 0.3rem; font-size: 0.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .term-output-cursor { animation: none; }
}
@media print {
  .term-screen { height: auto; overflow: visible; }
  .term-explorer, .term-input-form, .term-statusbar { display: none; }
  .term-window-body, .term-console { display: block; height: auto; }
}
