/* Minimal, typography-focused theme */

:root {
  --max-width: 38rem;
  --color-text: #1a1a1a;
  --color-muted: #6a6a6a;
  --color-accent: #0b5fff;
  --color-rule: #e6e6e6;
  --color-bg: #fafaf7;
  --font-body: "Exo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ui: "Exo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0 1.25rem;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Heading defaults: softer weight, tighter spacing for the geometric sans */
h1,
h2,
h3 {
  font-weight: 600;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

a:hover {
  opacity: 0.75;
}

/* Header */
.site-header {
  max-width: var(--max-width);
  margin: 3rem auto 2rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.site-title {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--color-text);
  border-bottom: none;
}

.site-subtitle {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--color-muted);
  font-weight: 400;
  line-height: 1.3;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--color-muted);
  border-bottom: none;
}

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

/* Main */
.site-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

/* Intro / homepage */
.intro h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}

.intro p {
  color: var(--color-muted);
  margin: 0 0 2.5rem;
}

/* Post list */
.post-list h2 {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  font-weight: 600;
  border-top: 1px solid var(--color-rule);
  padding-top: 1.5rem;
  margin-bottom: 1rem;
}

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

.post-list li {
  display: flex;
  gap: 1.25rem;
  padding: 0.5rem 0;
  align-items: baseline;
}

.post-list time {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--color-muted);
  flex: 0 0 6.5rem;
  font-variant-numeric: tabular-nums;
}

.post-list .empty {
  color: var(--color-muted);
  font-style: italic;
}

/* Post */
.post-header h1 {
  font-size: 1.9rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}

.post-meta {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0 0 2rem;
}

.post-body h2 {
  font-size: 1.3rem;
  margin: 2rem 0 0.5rem;
}

.post-body h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}

.post-body p,
.post-body ul,
.post-body ol {
  margin: 0 0 1.25rem;
}

.post-body blockquote {
  margin: 1.25rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--color-rule);
  color: var(--color-muted);
}

.post-body code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: #ececec;
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

.post-body pre {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  background: #1f1f1f;
  color: #f5f5f5;
  padding: 1rem 1.1rem;
  border-radius: 6px;
  overflow-x: auto;
  line-height: 1.5;
}

.post-body pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.post-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
}

.post-back {
  margin-top: 3rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  max-width: var(--max-width);
  margin: 3rem auto 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-rule);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--color-muted);
}

.site-footer p {
  margin: 0;
}

/* Responsive tweaks */
@media (max-width: 480px) {
  body {
    font-size: 1.05rem;
  }
  .site-header {
    margin-top: 2rem;
  }
  .post-list li {
    flex-direction: column;
    gap: 0.1rem;
  }
  .post-list time {
    flex: none;
  }
}
