/* Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: #222;
  background: #fff;
  padding: 2rem 1.5rem;
  max-width: 680px;
  margin: 0 auto;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

header a {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
}

header a:hover {
  color: #000;
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-icon {
  height: 1.7rem;
  width: auto;
  display: block;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: #111;
}

header h1 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #444;
}

/* Typography */
h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #666;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.25rem;
}

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

/* Links */
a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Blockquotes */
blockquote {
  border-left: 3px solid #ddd;
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #444;
}

blockquote strong {
  font-style: normal;
}

/* Lists */
ul, ol {
  margin: 1.25rem 0;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

ol {
  padding-left: 1.75rem;
}

ol li::marker {
  font-weight: 700;
  color: #0066cc;
}

ol ol {
  list-style-type: lower-alpha;
}

ol ol ol {
  list-style-type: lower-roman;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}

thead th {
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0066cc;
  padding: 0.6rem 1rem;
  border-bottom: 2px solid #0066cc;
}

tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr td:first-child {
  font-weight: 600;
  color: #111;
}

/* Code */
code {
  font-family: 'IBM Plex Mono', 'SF Mono', Consolas, monospace;
  font-size: 0.9em;
  background: #f5f5f5;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}

pre {
  background: #f5f5f5;
  padding: 1rem 1.25rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

pre code {
  background: none;
  padding: 0;
}

/* Version history — deliberately muted metadata, not article content */
.version-history {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.version-history h2 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #999;
  margin: 0 0 1rem 0;
}

.version-history table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 0;
}

.version-history thead th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #aaa;
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid #eee;
}

.version-history tbody td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #f2f2f2;
  color: #888;
}

.version-history tbody tr:last-child td {
  border-bottom: none;
}

.version-history tbody tr td:first-child {
  font-weight: 400;
  color: #999;
  white-space: nowrap;
}

/* Article summary */
.summary {
  background: #f9f9f9;
  border-left: 3px solid #0066cc;
  border-radius: 0 6px 6px 0;
  padding: 1.5rem 1.75rem;
  margin: 0 0 2.5rem 0;
}

.summary h4 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0066cc;
  margin: 0 0 1rem 0;
}

.summary ul {
  margin: 0;
  padding-left: 1.25rem;
}

.summary li {
  font-style: italic;
  color: #333;
  line-height: 1.65;
  margin-bottom: 0.65rem;
}

.summary li:last-child {
  margin-bottom: 0;
}

/* Pull quotes */
.pullquote {
  position: relative;
  margin: 2.5rem 0;
  padding: 1.5rem 0 1.5rem 3.5rem;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.pullquote::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: 1.3rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: normal;
  font-size: 5rem;
  line-height: 1;
  color: #0066cc;
}

.pullquote p {
  font-style: italic;
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.5;
  color: #777;
  margin: 0;
}

/* Callout boxes */
.callout {
  background: #f9f9f9;
  border-left: 3px solid #0066cc;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
}

/* Contact form */
.contact-form {
  background: #f9f9f9;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 4px;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 0.25rem;
}

.contact-form .optional {
  color: #888;
  font-size: 0.85rem;
}

.contact-form input[type="email"],
.contact-form textarea {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1rem;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 3px;
  width: 100%;
  margin-bottom: 1rem;
}

.contact-form textarea {
  min-height: 100px;
  resize: vertical;
}

.contact-form button {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

.contact-form button:hover {
  background: #444;
}

/* Horizontal rule */
hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 2.5rem 0;
}

/* Home page article list */
.article-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.article-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid #eee;
}

.article-item:first-child {
  padding-top: 0;
}

.article-item a {
  color: inherit;
}

.article-item h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.article-item .article-meta {
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.article-item .article-desc {
  color: #444;
  margin-bottom: 0;
}

/* Footer */
footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
  font-size: 0.9rem;
  color: #666;
}