:root {
  --background: #fbfbfa;
  --surface: #ffffff;
  --text: #292929;
  --muted: #737373;
  --subtle: #929292;
  --border: #e4e4e1;
  --accent: #41645d;
  --accent-dark: #294942;
  --max-width: 64rem;
  --reading-width: 43rem;
  --serif: Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--sans);
  color: var(--text);
  background: var(--background);
  line-height: 1.65;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 18rem;
  background: var(--background);
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

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

.container {
  width: min(calc(100% - 2.5rem), var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 10;
  top: -4rem;
  left: 1rem;
  padding: 0.5rem 0.75rem;
  color: #fff;
  background: var(--accent-dark);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  background: var(--background);
  border-bottom: 1px solid var(--border);
}

.site-header__inner,
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.1rem;
}

.brand {
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1.25rem;
}

nav a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h1 {
  max-width: 42rem;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 2.5vw, 1.8rem);
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.3rem;
}

.home-feed {
  max-width: 48rem;
  padding: clamp(3rem, 7vw, 5rem) 0 4.5rem;
  margin-inline: auto;
}

.home-article {
  padding: 0 0 3.5rem;
  margin-inline: auto;
  border-bottom: 1px solid var(--border);
}

.home-article__header {
  max-width: var(--reading-width);
  margin-bottom: 2.25rem;
}

.home-article__header h2 {
  max-width: 40rem;
  margin-bottom: 0.5rem;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}

.home-article__content {
  max-width: var(--reading-width);
  color: #353535;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.78;
}

.home-article__content > * {
  margin-top: 0;
}

.home-article__content > * + * {
  margin-top: 1.35rem;
}

.home-article__content h2 {
  margin-top: 2.6rem;
  color: var(--text);
  font-size: 1.65rem;
}

.home-article__content h3 {
  margin-top: 2.1rem;
  color: var(--text);
  font-size: 1.35rem;
}

.home-article__content ul,
.home-article__content ol {
  padding-left: 1.35rem;
}

.home-article__content li + li {
  margin-top: 0.4rem;
}

.home-article__content blockquote {
  padding-left: 1.15rem;
  margin-left: 0;
  border-left: 3px solid var(--border);
  color: var(--muted);
}

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

.home-article__content pre {
  overflow-x: auto;
  padding: 1rem 1.1rem;
  border: 1px solid #303a42;
  border-radius: 0.35rem;
  color: #eef5fb;
  background: #202930;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.55;
}

.home-article__content code {
  padding: 0.12rem 0.3rem;
  border-radius: 0.2rem;
  color: #3c4b48;
  background: #eef1ef;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84em;
}

.home-article__content pre code {
  padding: 0;
  color: inherit;
  background: transparent;
}

.post-list {
  max-width: 48rem;
}

.post-card {
  padding: 1.35rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
}

.post-card:first-child {
  border-top: 1px solid var(--border);
}

.post-card h2 {
  margin-bottom: 0.55rem;
  font-size: 1.35rem;
}

.post-card h2 a {
  color: var(--text);
  text-decoration: none;
}

.post-card h2 a:hover {
  color: var(--accent);
}

.post-card__excerpt {
  max-width: 42rem;
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.6;
}

.post-card__date {
  margin: 0.85rem 0 0;
  color: var(--subtle);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.text-link {
  font-size: 0.88rem;
  font-weight: 650;
}

.post__date {
  margin: 0;
  color: var(--subtle);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.page-header {
  max-width: var(--reading-width);
  padding: clamp(3.25rem, 8vw, 5.5rem) 0 2.5rem;
  margin-inline: auto;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.page-header > p:last-child {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.post {
  max-width: var(--reading-width);
  padding: clamp(3.25rem, 8vw, 5.5rem) 0 4.5rem;
  margin-inline: auto;
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.post-back:hover {
  color: var(--accent-dark);
}

.post-back span:first-child {
  color: var(--accent);
  font-size: 1.05rem;
}

.post__header {
  margin-bottom: 2.35rem;
}

.post__header h1 {
  max-width: 40rem;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}

.post__description {
  max-width: 38rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.post__content {
  color: #353535;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.78;
}

.post__content > * {
  margin-top: 0;
}

.post__content > * + * {
  margin-top: 1.35rem;
}

.post__content h2 {
  margin-top: 2.6rem;
  color: var(--text);
  font-size: 1.65rem;
}

.post__content h3 {
  margin-top: 2.1rem;
  color: var(--text);
  font-size: 1.35rem;
}

.post__content ul,
.post__content ol {
  padding-left: 1.35rem;
}

.post__content li + li {
  margin-top: 0.4rem;
}

.post__content blockquote {
  padding-left: 1.15rem;
  margin-left: 0;
  border-left: 3px solid var(--border);
  color: var(--muted);
}

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

.post__content pre {
  overflow-x: auto;
  padding: 1rem 1.1rem;
  border: 1px solid #303a42;
  border-radius: 0.35rem;
  color: #eef5fb;
  background: #202930;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.55;
}

.post__content code {
  padding: 0.12rem 0.3rem;
  border-radius: 0.2rem;
  color: #3c4b48;
  background: #eef1ef;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84em;
}

.post__content pre code {
  padding: 0;
  color: inherit;
  background: transparent;
}

.post__footer {
  padding-top: 1.5rem;
  margin-top: 2.75rem;
  border-top: 1px solid var(--border);
}

.post__label {
  margin: 0 0 0.5rem;
  color: var(--subtle);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.tag-list li {
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.site-footer {
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 38rem) {
  .container {
    width: min(calc(100% - 2rem), var(--max-width));
  }

  .site-header__inner,
  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header__inner {
    justify-content: center;
    padding: 1rem 0;
  }

  .post__content {
    font-size: 1.04rem;
  }
}
