/* Dark, warm palette with restrained western colors. */
:root {
  --bg: #171614;
  --panel: #211f1b;
  --text: #e7e3dc;
  /* One text color for everything: body, headings, buttons, code, links.
     Hierarchy comes from size, weight, and tracking. */
  --muted: #e7e3dc;
  --accent: #facc15;
  --border: #39352f;
  --max-width: 48rem;
}

/* Roboto, self-hosted in static/fonts (variable wght 100-900 for normal,
   static 400 for italic). No CDN, no third-party request; keep it that way. */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/roboto-normal-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/roboto-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Roboto";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/roboto-italic-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Roboto";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/roboto-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font: 1.25rem/1.7 "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
}

h1, h2, .logo {
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 700;
}

/* Headlines are set in caps, with a touch of tracking so they read cleanly. */
h1, h2, .logo, .post-card h3 { text-transform: uppercase; letter-spacing: 0.02em; }

pre, code, kbd {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Links are the only thing that needs marking, so they get an underline
   rather than a color. */
a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

a:hover { color: var(--text); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 1.35rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-nav a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  margin-left: 1.25rem;
}

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

/* Hero */
.hero { padding: 2.5rem 0 1rem; }

.hero h1 {
  font-size: 1.9rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.tagline { color: var(--muted); }

/* Uptime badge (notiduck, dark theme to match the palette), in the footer. */
.status-badge { margin-top: 0.75rem; }

.status-badge img { vertical-align: middle; }

/* Feed */
.post-feed { margin: 2rem 0; }

.post-feed h2 {
  font-size: 1.05rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}

.post-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.15s ease;
}

.post-card:hover { border-color: var(--text); }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.tags { display: inline-flex; gap: 0.4rem; }

.tag {
  color: var(--text);
  font-size: 0.85rem;
}

.post-card h3, .post-card h3 a {
  font-size: 1.35rem;
  color: var(--text);
  text-decoration: none;
}

.post-card h3 a:hover { color: var(--text); }

.post-card p {
  color: var(--muted);
  margin: 0.5rem 0 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Buttons: plain text, underlined, never the accent color. */
.read-more {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.read-more:hover { color: var(--text); }

/* Article */
.article-header { margin: 2.5rem 0 1.5rem; }

.article-header h1 {
  font-size: 2.2rem;
  line-height: 1.25;
  color: var(--text);
  margin-top: 0.5rem;
}

.article-body h2 {
  color: var(--text);
  margin: 2.25rem 0 0.75rem;
  font-size: 1.4rem;
}

.article-body p, .article-body ul, .article-body ol { margin-bottom: 1.25rem; }

.article-body li { margin-left: 1.5rem; margin-bottom: 0.35rem; }

.article-body img, .article-body video, .article-body iframe {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--border);
  margin: 0.5rem 0;
}

figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

pre {
  background: #100f0d;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  line-height: 1.55;
}

code { color: var(--text); }

blockquote {
  border-left: 4px solid var(--accent);
  color: var(--muted);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin-bottom: 1.25rem;
}

/* Post footer nav */
.post-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding-top: 1.25rem;
}

.post-nav a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  font-size: 1.05rem;
}

.post-nav a:hover { color: var(--text); }

/* Footer */
.site-footer {
  max-width: var(--max-width);
  margin: 3rem auto 0;
  padding: 1.5rem 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

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