@font-face {
  font-family: 'Inter var';
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2');
}

:root {
  --black: #050505;
  --text: #4f555c;
  --muted: #a7aaaf;
  --accent: #a9d85d;
  --accent-ink: #5f8f1a;
  --line: rgba(0, 0, 0, .13);
  --bg: #f7f7f5;
  --font: 'Inter var', Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 720px;
  --max-wide: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 245, .85);
  backdrop-filter: blur(10px);
}
.site-header-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 760;
  letter-spacing: .07em;
  font-size: 15px;
  line-height: 1.05;
  text-transform: uppercase;
}
.mark { width: 42px; height: 42px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.mark img { width: 100%; height: 100%; object-fit: contain; }
/* Header actions — matches datacenter.html: LinkedIn icon + "Back to main" pill */
.nav-actions { display: flex; align-items: center; gap: 10px; }
.back {
  color: #111;
  text-decoration: none;
  font-size: 14px;
  font-weight: 620;
  border: 1px solid rgba(0, 0, 0, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(10px);
  padding: 12px 18px;
}
.linkedin {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .66);
  backdrop-filter: blur(10px);
  opacity: .82;
  transition: opacity .2s ease, transform .2s ease;
}
.linkedin:hover { opacity: 1; transform: translateY(-1px); }
.linkedin-svg { width: 22px; height: 22px; display: block; }
.linkedin-svg circle { fill: #8f9499; }
.linkedin-svg path { fill: #fff; }

/* --- Feed --- */
.post-feed-wrap { max-width: var(--max-wide); margin: 0 auto; padding: 56px 32px 96px; }
.feed-intro { margin-bottom: 48px; }
.feed-intro-label { text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 600; color: var(--muted); }
.feed-intro h1 { font-size: 40px; font-weight: 760; letter-spacing: -.01em; margin: 8px 0 12px; }
.feed-intro p { color: var(--text); font-size: 18px; max-width: var(--max); margin: 0; }

.post-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px;
}
.post-card { display: flex; flex-direction: column; }
.post-card-image-link { display: block; overflow: hidden; border-radius: 10px; margin-bottom: 18px; aspect-ratio: 16 / 9; }
.post-card-image { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card-image { transform: scale(1.03); }
.post-card-tag { text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 600; color: var(--accent-ink); }
.post-card-title { font-size: 22px; font-weight: 680; letter-spacing: -.01em; line-height: 1.25; margin: 8px 0 10px; }
.post-card-title a {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .3s ease;
}
.post-card:hover .post-card-title a { background-size: 100% 2px; }
.post-card-excerpt { color: var(--text); font-size: 15px; margin: 0 0 16px; }
.post-card-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); margin-top: auto; }

/* --- Single post --- */
.post { max-width: var(--max); margin: 0 auto; padding: 64px 32px 96px; }
.back-to-blog { display: inline-block; margin-bottom: 28px; font-size: 14px; font-weight: 560; color: var(--text); text-decoration: none; transition: color .2s ease; }
.back-to-blog:hover { color: var(--accent-ink); }
.post-header { margin-bottom: 32px; }
.post-tag { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 600; color: var(--accent-ink); }
.post-title { font-size: 44px; font-weight: 760; letter-spacing: -.02em; line-height: 1.1; margin: 12px 0 20px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--muted); }
.post-feature-image { margin: 0 0 40px; border-radius: 12px; overflow: hidden; }
.post-feature-image img { width: 100%; }

/* --- Post content typography --- */
.gh-content { font-size: 18px; line-height: 1.7; color: #23272b; }
.gh-content > * { margin: 0 0 1.5em; }
.gh-content h2 { font-size: 30px; font-weight: 720; letter-spacing: -.01em; color: var(--black); margin: 1.6em 0 .6em; }
.gh-content h3 { font-size: 23px; font-weight: 680; color: var(--black); margin: 1.4em 0 .5em; }
.gh-content a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--accent); }
.gh-content a:hover { color: var(--black); }
.gh-content ul, .gh-content ol { padding-left: 1.4em; }
.gh-content li { margin: .4em 0; }
.gh-content blockquote { margin: 0 0 1.5em; padding-left: 20px; border-left: 3px solid var(--accent); color: var(--text); font-style: italic; }
.gh-content figure { margin: 2em 0; }
.gh-content img, .gh-content figure img { border-radius: 10px; }
.gh-content figcaption { margin-top: 8px; text-align: center; font-size: 13px; color: var(--muted); }
.gh-content pre { background: var(--black); color: #f3f3f1; padding: 20px 24px; border-radius: 10px; overflow-x: auto; font-size: 14px; line-height: 1.5; }
.gh-content code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: rgba(0, 0, 0, .06); padding: .15em .4em; border-radius: 4px; }
.gh-content pre code { background: none; padding: 0; }
.gh-content hr { border: none; border-top: 1px solid var(--line); }

/* Koenig editor image widths (required by GScan) */
.gh-content :is(figure, img).kg-width-wide { width: min(90vw, 1120px); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.gh-content :is(figure, img).kg-width-full { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.gh-content .kg-width-full img { border-radius: 0; }

/* --- Pagination --- */
.pagination { display: flex; align-items: center; justify-content: space-between; margin-top: 64px; font-size: 14px; color: var(--text); }
.pagination a { color: var(--accent-ink); font-weight: 560; }
.pagination .page-number { color: var(--muted); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 32px;
  border-radius: 8px;
  border: 1px solid var(--black);
  background: var(--black);
  color: #fff;
  font-size: 16px;
  font-weight: 560;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0, 0, 0, .1); }

/* --- Footer --- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}
.site-footer-inner a:hover { color: var(--accent-ink); }

/* --- Error --- */
.error-wrap { max-width: var(--max); margin: 0 auto; padding: 120px 32px; text-align: center; }
.error-code { font-size: 80px; font-weight: 760; margin: 0; }
.error-message { color: var(--text); font-size: 18px; margin: 8px 0 32px; }

/* --- Responsive --- */
@media (max-width: 700px) {
  .site-header-inner, .post-feed-wrap, .post, .site-footer-inner { padding-left: 20px; padding-right: 20px; }
  .post-feed { grid-template-columns: 1fr; gap: 32px; }
  .feed-intro h1 { font-size: 30px; }
  .post-title { font-size: 32px; }
  .site-nav { gap: 18px; }
}
