/* =========================
   Root Variables
   ========================= */
:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #666666;
  --border: #e5e5e5;
  --accent: #000000;
}

/* =========================
   Global Styles
   ========================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}

header,
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem;
}

header a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
}

h1 {
  margin-top: 1rem;
  font-size: 2rem;
}

section {
  margin-top: 2rem;
}

h2 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

ul {
  padding-left: 1.2rem;
}

.images {
  display: flex;
  gap: 16px;
}

.images img {
  width: 100%;
  height: auto;
}

.links a {
  display: inline-block;
  margin-right: 1rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
}

.links a:hover {
  text-decoration: underline;
}

/* =========================
   Prism – Light Theme Syntax Highlighting
   ========================= */
pre[class*="language-"] {
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.6;
  background: #f6f8fa; /* light background */
  border: 1px solid #d0d7de;
}

code[class*="language-"] {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #24292f;
}

/* Tokens */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #6a737d;
  font-style: italic;
}

.token.punctuation {
  color: #24292f;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol {
  color: #005cc5;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin {
  color: #22863a;
}

.token.operator,
.token.entity,
.token.url {
  color: #d73a49;
}

.token.atrule,
.token.attr-value,
.token.keyword {
  color: #d73a49;
}

.token.function,
.token.class-name {
  color: #6f42c1;
}

.token.regex,
.token.important,
.token.variable {
  color: #e36209;
}

/* =========================
   Details / Summary
   ========================= */
details {
  margin-top: 0.75rem;
}

summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--accent);
}

summary:hover {
  text-decoration: underline;
}

details[open] summary {
  margin-bottom: 0.75rem;
}
