:root {
  --background: #1a1410;
  --rust: #c4622d;
  --parchment: #e8d5b7;
  --muted: #8b6f4e;
  --amber: #f0a050;
  --ink-soft: rgba(232, 213, 183, 0.72);
  --rule-soft: rgba(139, 111, 78, 0.34);
  --measure: 45rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color: var(--parchment);
  font-family: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 16px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(240, 160, 80, 0.025) 1px, transparent 1px),
    var(--background);
  background-size: 100% 2rem;
}

a {
  color: inherit;
  text-decoration-color: rgba(196, 98, 45, 0.58);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

a:hover,
a:focus-visible {
  color: var(--amber);
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 1px solid var(--amber);
  outline-offset: 0.35rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 650;
  line-height: 1.05;
}

p {
  margin: 0;
}

.site-header,
.site-main,
.site-footer {
  width: min(var(--measure), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.35rem;
  border-bottom: 1px solid var(--rule-soft);
}

.site-mark {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.25rem, 5vw, 1.7rem);
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem 1rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 300;
}

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

.site-nav a[aria-current="page"] {
  color: var(--parchment);
}

.site-main {
  padding-block: clamp(3.5rem, 9vw, 7rem);
}

.intro {
  padding-bottom: clamp(3rem, 8vw, 5.5rem);
  border-bottom: 1px solid var(--rule-soft);
}

.eyebrow,
.post-meta,
.feed-entry time,
.site-footer {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--rust);
}

.intro h1 {
  max-width: 11ch;
  color: var(--parchment);
  font-size: clamp(4.2rem, 17vw, 9.5rem);
}

.post-header h1 {
  max-width: 13ch;
  color: var(--parchment);
  font-size: clamp(3.2rem, 10vw, 6.6rem);
}

.intro-copy,
.post-description {
  max-width: 40rem;
  margin-top: 1.25rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
}

.post-feed {
  padding-top: clamp(2.5rem, 7vw, 4.25rem);
}

.post-feed h2 {
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 300;
}

.feed-entry {
  position: relative;
  padding-block: 1.35rem;
  padding-left: 1.15rem;
  border-top: 1px solid var(--rule-soft);
}

.feed-entry::before {
  position: absolute;
  top: 1.35rem;
  bottom: 1.35rem;
  left: 0;
  width: 1px;
  background: var(--rust);
  content: "";
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 180ms ease;
}

.feed-entry:hover::before,
.feed-entry:focus-within::before {
  transform: scaleY(1);
}

.feed-entry header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: baseline;
}

.feed-entry h3 {
  font-size: clamp(1.45rem, 4vw, 2.2rem);
}

.feed-entry h3 a {
  text-decoration: none;
}

.feed-entry p {
  max-width: 41rem;
  margin-top: 0.65rem;
  color: var(--ink-soft);
}

.pagination {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--rule-soft);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 300;
}

.pagination a {
  color: var(--parchment);
  text-decoration: none;
}

.pagination span[aria-disabled="true"] {
  color: rgba(139, 111, 78, 0.62);
}

.pagination-status {
  color: var(--muted);
}

.post-header {
  padding-bottom: clamp(2.5rem, 7vw, 4.25rem);
  border-bottom: 1px solid var(--rule-soft);
}

.post-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2rem;
  margin: 2rem 0 0;
}

.about-header {
  padding-bottom: clamp(2.5rem, 7vw, 4.25rem);
  border-bottom: 1px solid var(--rule-soft);
}

.about-header h1 {
  color: var(--parchment);
  font-size: clamp(3.2rem, 10vw, 6.6rem);
}

.about-body {
  padding-top: clamp(2.5rem, 7vw, 4.25rem);
}

.post-meta div {
  min-width: 0;
}

.post-meta dt,
.post-meta dd {
  margin: 0;
}

.post-meta dt {
  color: var(--rust);
}

.post-body {
  padding-top: clamp(2.5rem, 7vw, 4.25rem);
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.08rem);
}

.post-body > * + * {
  margin-top: 1.45rem;
}

.post-body h2 {
  margin-top: 2.75rem;
  color: var(--parchment);
  font-size: clamp(2rem, 6vw, 3.6rem);
}

.post-body blockquote {
  margin: 2rem 0;
  padding-left: 1.15rem;
  border-left: 1px solid var(--rust);
  color: var(--parchment);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.45rem, 4vw, 2.2rem);
  line-height: 1.25;
}

.post-body code {
  color: var(--parchment);
  font-family: inherit;
}

.empty-feed,
.not-found-action {
  color: var(--ink-soft);
}

.not-found h1 {
  max-width: 12ch;
  color: var(--parchment);
  font-size: clamp(3.2rem, 10vw, 6.6rem);
}

.not-found-action {
  margin-top: 1.5rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 2rem;
  border-top: 1px solid var(--rule-soft);
}

@media (max-width: 40rem) {
  .site-header,
  .site-footer,
  .feed-entry header,
  .post-meta {
    display: block;
  }

  .site-nav {
    justify-content: flex-start;
    margin-top: 0.9rem;
  }

  .intro h1 {
    font-size: clamp(3.5rem, 22vw, 5.6rem);
  }

  .post-header h1 {
    max-width: 11ch;
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .feed-entry {
    padding-left: 0.85rem;
  }

  .feed-entry time {
    display: block;
    margin-top: 0.45rem;
  }

  .post-meta div + div,
  .site-footer a {
    display: block;
    margin-top: 0.7rem;
  }

  .pagination {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
