:root {
  --color-bg: #edf4ec;
  --color-text: #325334;
  --color-title: #246a2b;
  --color-muted: #5c5d3f;
  --color-accent: #2f6b45;
  --color-on-accent: #f4ecd6;
  --color-border: #ddd2b4;
  --font-sans:  "SFMono-Regular", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-display: "SFMono-Regular", var(--font-sans);
  --max-width: 50rem;
  --space: 1rem;
  --gutter: 10%;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #14261b;
    --color-text: #ece3cb;
    --color-title:
    --color-muted: #9aa88f;
    --color-accent: #7cbf95;
    --color-on-accent: #14261b;
    --color-border: #294032;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space);
  text-align: left;
}

/* Vertical "left separator" running the full height, aligned to the gutter. */
body::before {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: var(--gutter);
  border-left: 1px solid var(--color-border);
  pointer-events: none;
  z-index: 1;
}

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

/* Header */
.site-header {
  position: relative;
  min-height: 4rem;
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space);
}

/* Site title, sitting below the header separator. */
.site-title {
  padding-block: 1.5rem 0.25rem;
}

/* T-rex logo living in the top-left grid cell formed by the two separators. */
.site-logo {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.75rem;
  line-height: 1;
  text-decoration: none;
  padding-bottom: 1.5rem;
  padding-top: 1.5rem;
  z-index: 2;
}

.site-header__inner {
  display: flex;
  align-items: left;
  justify-content: space-between;
  padding-block: var(--space);
}

.site-header__brand {
  font-family: var(--font-display);
  font-size: 1.7rem;
  text-decoration: none;
  color: var(--color-title);
}

.site-nav ul {
  display: flex;
  gap: 1.5rem;
  font-size: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
}

/* Main */
main.container {
  padding-block: 0.5rem 2.5rem;
  flex: 1 0 auto;
}

.hero h1,
.post__header h3 {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.5rem;
  line-height: 1.2;
  color: var(--color-title);
}

.hero__lead {
  font-size: 1.35rem;
  color: var(--color-text);
}

.button {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  background: var(--color-accent);
  color: var(--color-on-accent);
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
}

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

.post-list__heading {
  margin: 0 0 0.25rem;
  font-weight: 600;
}

.post-list__more {
  margin-top: 1rem;
  font-size: 0.9em;
}

.post-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 1rem;
  padding-block: 0.3rem;
}

.post-list a {
  text-decoration: none;
}

.post-list time {
  order: -1;
  flex: 0 0 auto;
  min-width: 6.5rem;
  color: var(--color-muted);
  font-size: 0.8em;
  font-variant-numeric: tabular-nums;
}

/* Article */
.post__header time,
.post__reading-time {
  color: var(--color-muted);
  font-size: 0.8em;
}

/* Post tags */
.post__tags {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag {
  font-size: 0.8em;
  color: var(--color-muted);
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
}

.tag::before {
  content: "#";
  opacity: 0.6;
}

pre {
  overflow-x: auto;
  padding: var(--space);
  background: rgba(127, 127, 127, 0.12);
  border-radius: 0.5rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding-block: 1.5rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.site-footer__inner p {
  margin: 0;
  flex-basis: 100%;
}
