/* /guide/ — terminal session aesthetic (isolated from main site) */
:root {
  --guide-bg: #0a0a0a;
  --guide-text-claude: #33ff33;
  --guide-text-user: #ffaa00;
  --guide-text-error: #ff4444;
  --guide-text-dim: #666666;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body.guide-page {
  margin: 0;
  min-height: 100dvh;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 19px;
  line-height: 1.5;
  background: var(--guide-bg);
  color: var(--guide-text-claude);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.guide-skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 8px 12px;
  background: #1a1a1a;
  color: var(--guide-text-claude);
  border: 1px solid var(--guide-text-dim);
  text-decoration: none;
  transform: translateY(-120%);
  transition: transform 0.15s ease-out;
}

.guide-skip:focus {
  transform: translateY(0);
  outline: 2px solid var(--guide-text-user);
  outline-offset: 2px;
}

.guide__viewport-top {
  padding: clamp(8px, 2dvh, 20px) clamp(12px, 4vw, 24px) 8px;
  max-width: 880px;
  margin: 0 auto;
}

.guide__hero {
  font-size: clamp(3rem, 8vw, 8rem);
  color: var(--guide-text-claude);
  text-align: center;
  font-family: inherit;
  line-height: 1;
  margin: 0 0 clamp(4px, 1.2dvh, 12px);
}

.guide__intro {
  margin: 0;
}

.guide-intro__p {
  margin: 0 0 8px;
  color: var(--guide-text-claude);
  line-height: 1.45;
  font-size: clamp(15px, 3.5vw, 19px);
}

.guide__meta {
  margin: 0;
  color: var(--guide-text-dim);
  font-style: italic;
  font-size: 0.9em;
}

.guide__main {
  max-width: 880px;
  margin: 0 auto;
  padding: 12px clamp(12px, 4vw, 24px) 48px;
}

.guide-h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: var(--guide-text-claude);
  line-height: 1.25;
}

.guide-part:first-of-type .guide-h2 {
  margin-top: 0.5rem;
}

.guide-turn {
  margin-bottom: 1rem;
  border: 1px solid #222;
  border-radius: 2px;
  padding: 10px 12px;
  background: #0c0c0c;
}

.guide-turn--user {
  border-left: 3px solid var(--guide-text-user);
}

.guide-turn--user .guide-turn__body {
  color: var(--guide-text-user);
}

.guide-turn--claude {
  border-left: 3px solid var(--guide-text-claude);
}

.guide-turn--claude .guide-turn__body {
  color: var(--guide-text-claude);
}

.guide-turn__hdr {
  color: var(--guide-text-dim);
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.guide-turn__body :first-child {
  margin-top: 0;
}

.guide-turn__body :last-child {
  margin-bottom: 0;
}

.guide-turn__body blockquote,
.guide-block blockquote {
  margin: 8px 0 8px 12px;
  padding-left: 10px;
  border-left: 2px solid var(--guide-text-dim);
}

.guide-turn--user .guide-turn__body blockquote {
  border-left-color: color-mix(in srgb, var(--guide-text-user) 55%, var(--guide-text-dim));
}

.guide-block {
  margin-bottom: 1rem;
}

.guide-block p,
.guide-turn__body p {
  margin: 0.5rem 0;
}

.guide-block pre,
.guide-turn__body pre {
  margin: 10px 0;
  padding: 10px 12px;
  background: #050505;
  border-left: 3px solid var(--guide-text-dim);
  overflow-x: auto;
  font-size: 0.85em;
  line-height: 1.4;
}

.guide-block code,
.guide-turn__body code {
  background: #1a1a1a;
  padding: 2px 5px;
  border-radius: 2px;
  font-size: 0.92em;
}

.guide-block pre code,
.guide-turn__body pre code {
  background: transparent;
  padding: 0;
}

.guide-block hr,
.guide-turn__body hr {
  border: none;
  border-top: 1px solid #333;
  margin: 16px 0;
}

.guide-block strong,
.guide-turn__body strong {
  font-weight: 700;
  color: inherit;
}

.guide-block em,
.guide-turn__body em {
  font-style: italic;
  color: inherit;
}

.guide-turn__body em,
.guide-block em,
.guide-intro__p em {
  color: color-mix(in srgb, currentColor 65%, var(--guide-text-dim));
}

.guide-link {
  color: var(--guide-text-claude);
  text-decoration: underline;
}

.guide-link:hover {
  color: #66ff66;
}

.guide-turn--user .guide-link {
  color: var(--guide-text-user);
}

.guide-turn--user .guide-link:hover {
  color: #ffd080;
}

.guide__footer {
  text-align: center;
  color: var(--guide-text-dim);
  font-size: 0.9rem;
  padding: 24px 16px 120px;
}

.guide__footer a {
  color: var(--guide-text-claude);
}

.guide__help-pill {
  position: fixed;
  bottom: 32px;
  right: 24px;
  width: 140px;
  height: 245px;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s ease-out;
  transform: rotate(-30deg);
  cursor: pointer;
}

.guide__help-pill.is-visible {
  opacity: 1;
}

.guide__help-pill img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.guide__help-pill:focus-visible {
  outline: 2px solid var(--guide-text-user);
  outline-offset: 4px;
}

@media (max-width: 768px) {
  .guide__help-pill {
    width: 105px;
    height: 184px;
    bottom: 20px;
    right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide__help-pill {
    transition: none;
  }
}
