body.dctpt-body {
  margin: 0;
  background: #0b0b0b;
  color: #ff9800;
  font-family: "Lucida Console", "Courier New", Consolas, monospace;
  letter-spacing: 0;
}

body.dctpt-body .dctpt-site-shell,
body.dctpt-body .dctpt-site-shell * {
  box-sizing: border-box;
}

body.dctpt-body .dctpt-site-shell {
  --dctpt-orange: #ff9800;
  --dctpt-orange-2: #ffc04d;
  --dctpt-green: #32cd32;
  --dctpt-line: rgba(255, 152, 0, 0.34);
  --dctpt-text: #ffd88a;
  min-height: 100vh;
  background: #0b0b0b;
  color: var(--dctpt-orange);
  font-family: "Lucida Console", "Courier New", Consolas, monospace;
}

body.dctpt-body .dctpt-terminal-header,
body.dctpt-body .dctpt-terminal-footer {
  margin: 24px 24px 0;
  border: 1px solid var(--dctpt-line);
  background: #050403;
  color: var(--dctpt-orange);
  position: relative;
  z-index: 2;
}

body.dctpt-body .dctpt-terminal-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px 16px;
}

body.dctpt-body .dctpt-site-brand {
  display: grid;
  gap: 4px;
}

body.dctpt-body .dctpt-site-brand a {
  color: var(--dctpt-orange-2);
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
}

body.dctpt-body .dctpt-site-brand span {
  color: var(--dctpt-orange);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.dctpt-body .dctpt-terminal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

body.dctpt-body .dctpt-terminal-nav a,
body.dctpt-body .dctpt-terminal-footer a,
body.dctpt-body .dctpt-content a {
  color: var(--dctpt-green);
  text-decoration: none;
}

body.dctpt-body .dctpt-terminal-nav a:hover,
body.dctpt-body .dctpt-terminal-nav a:focus-visible,
body.dctpt-body .dctpt-terminal-footer a:hover,
body.dctpt-body .dctpt-terminal-footer a:focus-visible,
body.dctpt-body .dctpt-content a:hover,
body.dctpt-body .dctpt-content a:focus-visible {
  color: var(--dctpt-green);
  text-decoration: none;
}

body.dctpt-body .dctpt-main {
  padding: 24px;
}

body.dctpt-body .dctpt-terminal {
  min-height: 820px;
  padding: 12px;
  background:
    linear-gradient(rgba(255, 152, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 152, 0, 0.05) 1px, transparent 1px),
    #000;
  background-size: 18px 18px;
  color: var(--dctpt-orange);
  position: relative;
  isolation: isolate;
}

body.dctpt-body .dctpt-terminal::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 152, 0, 0.055) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
  z-index: 5;
}

body.dctpt-body .dctpt-window {
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid var(--dctpt-line);
  background: #000;
  box-shadow: 0 0 48px rgba(255, 152, 0, 0.08);
  position: relative;
  z-index: 1;
}

body.dctpt-body .dctpt-titlebar {
  padding: 14px;
  border-bottom: 1px solid var(--dctpt-line);
  background: #090603;
}

body.dctpt-body .dctpt-titlebar h1 {
  margin: 0;
  color: var(--dctpt-orange-2);
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.dctpt-body .dctpt-post-datebar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--dctpt-line);
  background: #090603;
}

body.dctpt-body .dctpt-back-button,
body.dctpt-body .dctpt-datebar-title,
body.dctpt-body .dctpt-post-datebar time {
  color: var(--dctpt-orange);
  font-family: "Lucida Console", "Courier New", Consolas, monospace;
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

body.dctpt-body .dctpt-back-button {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

body.dctpt-body .dctpt-back-button:hover,
body.dctpt-body .dctpt-back-button:focus-visible {
  color: var(--dctpt-green);
}

body.dctpt-body .dctpt-datebar-title::before,
body.dctpt-body .dctpt-post-datebar time::before {
  content: "|";
  margin-right: 8px;
  color: var(--dctpt-orange);
}

body.dctpt-body .dctpt-content {
  display: grid;
  gap: 22px;
  max-width: 84ch;
  padding: clamp(28px, 4vw, 54px);
  color: var(--dctpt-text);
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.62;
}

body.dctpt-body .dctpt-content p,
body.dctpt-body .dctpt-content ul,
body.dctpt-body .dctpt-content ol,
body.dctpt-body .dctpt-content figure,
body.dctpt-body .dctpt-content blockquote {
  margin: 0;
  color: var(--dctpt-text);
}

body.dctpt-body .dctpt-content ul,
body.dctpt-body .dctpt-content ol {
  display: grid;
  gap: 8px;
  list-style: none;
  padding-left: 0;
}

body.dctpt-body .dctpt-content li {
  color: var(--dctpt-text);
}

body.dctpt-body .dctpt-content li::before {
  content: "> ";
  color: var(--dctpt-orange);
}

body.dctpt-body .dctpt-content img {
  max-width: 100%;
  height: auto;
}

body.dctpt-body .dctpt-file-under {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--dctpt-line);
  background: #090603;
  color: var(--dctpt-orange);
  font-family: "Lucida Console", "Courier New", Consolas, monospace;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
  text-transform: uppercase;
}

body.dctpt-body .dctpt-file-under a {
  color: var(--dctpt-green);
  text-decoration: none;
}

body.dctpt-body .dctpt-file-under a:hover,
body.dctpt-body .dctpt-file-under a:focus-visible {
  color: var(--dctpt-green);
  text-decoration: none;
}

body.dctpt-body .dctpt-file-under-sep {
  color: var(--dctpt-orange);
}

body.dctpt-body .dctpt-terminal-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 0;
  margin-bottom: 24px;
  padding: 12px 16px;
  color: var(--dctpt-orange);
  font-size: 11px;
  line-height: 1.4;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  body.dctpt-body .dctpt-main {
    padding: 12px;
  }

  body.dctpt-body .dctpt-terminal-header,
  body.dctpt-body .dctpt-terminal-footer {
    margin-left: 12px;
    margin-right: 12px;
  }

  body.dctpt-body .dctpt-terminal-header,
  body.dctpt-body .dctpt-terminal-footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.dctpt-body .dctpt-terminal-nav {
    justify-content: flex-start;
  }

  body.dctpt-body .dctpt-titlebar h1 {
    font-size: 28px;
  }

  body.dctpt-body .dctpt-content {
    font-size: 17px;
    padding: 22px;
  }
}
