@import "code.css";

:root {
  --bg: #1e1e2e;
  --surface: #313244;
  --text: #cdd6f4;
  --subtext: #a6adc8;
  --accent: #cba6f7;
  --blue: #89b4fa;
  --border: #45475a;
  --code: #181825;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.7;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main {
  width: min(100%, 90ch);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

footer {
  margin-top: 3rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  color: var(--subtext);
  font-size: 0.9rem;
}

h1,
h2,
h3,
h4 {
  line-height: 1.25;
  color: var(--text);
}

h1 {
  font-size: 2.4rem;
}

h2 {
  margin-top: 3rem;
}

a {
  color: var(--blue);
}

.post-meta {
  display: flex;
  gap: 2rem;
  color: var(--subtext);
}

blockquote {
  margin-left: 0;
  padding-left: 1rem;
  border-left: 4px solid var(--accent);
  color: var(--subtext);
}

img {
  max-width: 100%;
  height: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.6rem;
  border-bottom: 1px solid var(--border);
}

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

.post-list li {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}

.post-date {
  flex: 0 0 7rem;
  color: var(--subtext);
  font-variant-numeric: tabular-nums;
}

.post-title {
  flex: 1;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;

  margin: 0;
  padding: 0;

  list-style: none;
}
