/* Otten-ICT — monochrome, system-theme, tight type */

:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --hair: rgba(10, 10, 10, 0.14);
  --hair-strong: rgba(10, 10, 10, 0.3);
  --muted: rgba(10, 10, 10, 0.56);
  --surface: rgba(10, 10, 10, 0.035);
  --focus: #0a0a0a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --fg: #ffffff;
    --hair: rgba(255, 255, 255, 0.16);
    --hair-strong: rgba(255, 255, 255, 0.34);
    --muted: rgba(255, 255, 255, 0.6);
    --surface: rgba(255, 255, 255, 0.045);
    --focus: #ffffff;
  }
}

* { box-sizing: border-box; }

html { color-scheme: light dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.2s ease, color 0.2s ease;
}

::selection { background: var(--fg); color: var(--bg); }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
  font-weight: 600;
}

p { margin: 0; }

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  border-bottom: 1px solid var(--hair);
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo span { color: var(--muted); }

nav.site-nav { display: flex; gap: 22px; }

nav.site-nav a {
  text-decoration: none;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: -0.01em;
}

nav.site-nav a:hover { color: var(--fg); }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--hair);
}

.hero h1 {
  font-size: clamp(30px, 4.4vw, 42px);
}

.hero p.lede {
  margin-top: 16px;
  font-size: 16px;
  color: var(--muted);
  max-width: 46ch;
}

.hero-art {
  width: 100%;
  height: auto;
  color: var(--fg);
}

.hero-art .accent-fill { fill: var(--fg); }
.hero-art .accent-stroke { stroke: var(--fg); }
.hero-art .dim { opacity: 0.32; }

@media (max-width: 680px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-art { order: -1; max-width: 280px; margin: 0 auto; }
}

/* ---------- services strip ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--hair);
}

.services div {
  padding: 28px 0;
  border-right: 1px solid var(--hair);
}

.services div:last-child { border-right: none; }

.services h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.services p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 680px) {
  .services { grid-template-columns: 1fr; }
  .services div { border-right: none; border-bottom: 1px solid var(--hair); }
  .services div:last-child { border-bottom: none; }
}

/* ---------- blog ---------- */

.blog { padding: 56px 0 80px; }

.blog-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
}

.blog-heading h2 { font-size: 22px; }

.blog-heading .count { font-size: 13px; color: var(--muted); }

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

.post-item {
  border-top: 1px solid var(--hair);
  padding: 22px 0;
}

.post-item:last-child { border-bottom: 1px solid var(--hair); }

.post-summary {
  display: flex;
  gap: 18px;
  align-items: baseline;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 0;
  color: inherit;
  font: inherit;
}

.post-date {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding-top: 3px;
}

.post-heading { flex: 1; min-width: 0; }

.post-heading h3 {
  font-size: 17px;
  letter-spacing: -0.02em;
}

.post-excerpt {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.post-toggle {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--muted);
  padding-top: 3px;
}

.post-body {
  display: none;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--hair);
  font-size: 15px;
  line-height: 1.65;
}

.post-item.open .post-body { display: block; }
.post-item.open .post-toggle::before { content: "close"; }
.post-item:not(.open) .post-toggle::before { content: "read"; }

/* markdown content rendered inside .post-body */
.post-body h1, .post-body h2, .post-body h3 {
  margin-top: 1.4em;
  margin-bottom: 0.5em;
  font-size: 1.05em;
}
.post-body h1:first-child, .post-body h2:first-child, .post-body h3:first-child { margin-top: 0; }
.post-body p { margin: 0.9em 0; }
.post-body ul, .post-body ol { margin: 0.9em 0; padding-left: 1.3em; }
.post-body li { margin: 0.3em 0; }
.post-body a { text-decoration-thickness: 1px; text-underline-offset: 2px; }
.post-body strong { font-weight: 600; }
.post-body em { font-style: italic; }
.post-body blockquote {
  margin: 1em 0;
  padding-left: 1em;
  border-left: 2px solid var(--hair-strong);
  color: var(--muted);
}
.post-body code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.86em;
  background: var(--surface);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  letter-spacing: 0;
}
.post-body pre {
  background: var(--surface);
  padding: 14px 16px;
  overflow-x: auto;
  border-radius: 4px;
  margin: 1em 0;
}
.post-body pre code { background: none; padding: 0; }
.post-body hr {
  border: none;
  border-top: 1px solid var(--hair);
  margin: 1.6em 0;
}
.post-body img { max-width: 100%; border-radius: 4px; }
.post-body table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.92em;
  margin: 1em 0;
}
.post-body th, .post-body td {
  border: 1px solid var(--hair);
  padding: 6px 10px;
  text-align: left;
}

.empty-state, .error-state {
  padding: 30px 0;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--hair);
  padding: 28px 0 40px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 480px) {
  .site-footer { flex-direction: column; gap: 6px; }
}
