:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --border: #d1d5db;
  --border-strong: #9ca3af;
  --text: #111827;
  --text-muted: #4b5563;
  --accent: #16a34a;
  --prompt: #16a34a;
  --command: #16a34a;
  --path: #f59e0b;
  --name: #d97706;
  --url: #0969da;
  --body: #374151;
  --size: 15px;
  --line: 1.7;
  --max-width: 960px;
  --mono: "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: var(--size);
  line-height: var(--line);
}

a,
span,
p,
li {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

.terminal-shell {
  width: min(calc(100% - 24px), var(--max-width));
  margin: 24px auto;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.terminal-lights {
  display: flex;
  gap: 8px;
}

.terminal-lights span {
  display: block;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
}

.terminal-lights span:nth-child(1) {
  background: #ff5f57;
}

.terminal-lights span:nth-child(2) {
  background: #febc2e;
}

.terminal-lights span:nth-child(3) {
  background: #28c840;
}

.terminal-title {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  font-size: inherit;
}

.terminal-title-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.terminal-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  color: var(--url);
}

.terminal-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.terminal-body {
  padding: 16px;
}

.terminal-block + .terminal-block {
  margin-top: 28px;
}

.terminal-index {
  margin-bottom: 4px;
}

.prompt-line {
  display: flex;
  gap: 10px;
  margin: 0 0 10px;
  font-size: inherit;
  font-weight: inherit;
}

.prompt {
  color: var(--prompt);
  font-weight: 700;
}

.prompt::after {
  content: ">";
}

.command {
  color: var(--command);
  font-weight: 700;
}

.path {
  color: var(--path);
  font-weight: 700;
}

.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 0 0 0 24px;
  list-style: none;
}

.entry-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry {
  padding-left: 24px;
}

.entry-name {
  margin: 12px 0 0;
  color: var(--name);
  font-weight: 700;
  line-height: 1.5;
}

.entry + .entry {
  margin-top: 16px;
}

.entry a {
  display: inline-block;
}

.entry p {
  margin: 4px 0 0;
  color: var(--body);
}

.detail-list {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  position: relative;
  margin: 4px 0 0;
  padding-left: 18px;
  color: var(--body);
}

.detail-list li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--body);
}

.update-date {
  color: var(--body);
  font-weight: 400;
}

.entry-url {
  display: block;
  margin: 12px 0 0;
}

.entry-url a,
.entry a {
  color: var(--url);
}

.inline-list a {
  color: var(--url);
}

@media (max-width: 720px) {
  body {
    font-size: 14px;
  }

  .terminal-shell {
    width: min(calc(100% - 16px), var(--max-width));
    margin: 8px auto;
  }

  .terminal-header,
  .terminal-body {
    padding-left: 12px;
    padding-right: 12px;
  }

  .terminal-header {
    align-items: center;
    flex-wrap: wrap;
  }

  .inline-list {
    gap: 12px 18px;
  }

  .entry {
    padding-left: 24px;
  }
}
