/* /terminal/: a short guide for people who have never used a terminal. */
.tm { gap: 4rem; }
.tm-hero h1 { font-size: clamp(2.3rem, 8vw, 3.8rem); line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.tm-hero h1 mark { background: var(--accent); color: var(--accent-ink); padding: 0 .1em; border-radius: .1em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.tm-hero-text { display: flex; flex-direction: column; gap: 1rem; }
.tm-hero .lede { font-size: 1.15rem; color: var(--mute); max-width: 40rem; }
.tm-jump { display: flex; flex-wrap: wrap; gap: .5rem; }
.tm-jump a { font-family: var(--display); font-weight: 700; font-size: .95rem; text-decoration: none; border: 2px solid var(--line); border-radius: 99px; padding: .3rem .9rem; background: var(--surface); }
.tm-jump a:hover { background: var(--well); }
.tm-intro { max-width: 42rem; }
.tm code, .tm-key code { font-family: var(--mono); font-size: .88em; font-weight: 600; background: var(--well); padding: .05rem .35rem; border-radius: 5px; }

/* the annotated window */
.tm-anatomy { align-items: center; }
@media (min-width: 50rem) { .tm-anatomy { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2rem; } }
.tm-win { margin: 0; background: var(--term); color: var(--term-fg); border: 2px solid var(--line); border-radius: 10px; overflow: hidden; min-width: 0; }
.tm-bar { display: flex; align-items: center; gap: .4rem; padding: .5rem .8rem; border-bottom: 2px solid var(--line); background: var(--surface); color: var(--ink); font-family: var(--display); font-weight: 700; font-size: .85rem; }
.tm-bar i { width: .7rem; height: .7rem; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); }
.tm-bar i:first-child { background: var(--accent); }
.tm-bar span { margin-left: .4rem; }
.tm-screen { padding: 1rem 1rem 1.2rem; font-family: var(--mono); font-size: .9rem; line-height: 1.9; display: flex; flex-direction: column; gap: .35rem; }
.tm-screen p { overflow-wrap: anywhere; }
.tm-where { opacity: .78; }
.tm-typed { color: var(--accent); font-weight: 700; }
.tm-out { opacity: .9; }
.tm-n { display: inline-grid; place-items: center; width: 1.45em; height: 1.45em; margin-right: .45em; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-family: var(--display); font-size: .82em; font-weight: 800; line-height: 1; vertical-align: .08em; opacity: 1; }
.tm-where .tm-n { box-shadow: 0 0 0 2px var(--term); }
.tm-cursor { display: inline-block; width: .6em; height: 1.1em; vertical-align: -.2em; background: var(--accent); }
@media (prefers-reduced-motion: no-preference) { .tm-cursor { animation: tm-blink 1.1s steps(1) infinite; } }
@keyframes tm-blink { 50% { opacity: 0; } }
.tm-key { margin: 0; padding: 0; list-style: none; counter-reset: k; display: flex; flex-direction: column; gap: .9rem; }
.tm-key li { counter-increment: k; position: relative; padding-left: 2.3rem; }
.card .tm-key li::before { content: counter(k); position: absolute; left: 0; top: .1rem; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); border: 2px solid var(--line); font-family: var(--display); font-weight: 800; font-size: .9rem; }

/* open one: steps per system */
.tm-os { display: flex; flex-direction: column; gap: .9rem; }
.js .tm-os > .plabel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tm-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: .7rem; max-width: 44rem; }
.tm-steps li { counter-increment: s; position: relative; padding-left: 2.6rem; }
.card .tm-steps li::before { background: none; height: auto; border-radius: 0; content: counter(s); position: absolute; left: 0; top: -.05rem; font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1.2; color: var(--ink); width: 1.9rem; text-align: right; }
.tm-sample { align-self: flex-start; max-width: 100%; background: var(--term); color: var(--term-fg); border-radius: 8px; padding: .5rem .9rem; font-family: var(--mono); font-size: .88rem; overflow-wrap: anywhere; }
.tm-sample span::after { content: ""; display: inline-block; width: .55em; height: 1.05em; margin-left: .5em; vertical-align: -.2em; background: var(--accent); }

/* keys */
kbd { display: inline-block; font-family: var(--mono); font-size: .82em; font-weight: 700; line-height: 1.3; padding: .1rem .45rem; background: var(--surface); color: var(--ink); border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 6px; white-space: nowrap; }
.tm-habits, .tm-agents { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
@media (min-width: 44rem) { .tm-habits, .tm-agents { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tm-habit, .tm-agent { gap: .7rem; align-content: start; }
.tm-habit h3, .tm-agent h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; }
.tm-keys { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.card .tm-keys li { padding-left: 0; }
.card .tm-keys li::before { content: none; }
.tm-agent { grid-template-rows: auto 1fr auto; }
.tm-out-link { justify-self: start; font-family: var(--display); font-weight: 700; text-decoration: none; background: var(--accent); color: var(--accent-ink); border: 2px solid #14161c; border-radius: 99px; padding: .4rem 1rem; }
.tm-out-link::after { content: " \2197"; }
.tm-out-link:hover { text-decoration: underline; text-underline-offset: 4px; }
