@import url("https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,600&display=swap");

:root {
  color-scheme: light;
  font-family: "Newsreader", "Iowan Old Style", Charter, Georgia, serif;
  color: #292824;
  background: #fdfcf9;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: #fdfcf9;
}

.site-header,
.home-page,
.writing-page,
.essay-page {
  width: min(calc(100% - 2.5rem), 44rem);
  margin-inline: auto;
}

.site-nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: 1.75rem;
  font-size: 1rem;
}

.site-nav--end {
  justify-content: flex-end;
}

.home-page {
  display: grid;
  place-items: start center;
  padding-block: clamp(3.5rem, 13vh, 7rem) 7rem;
}

.intro {
  width: min(100%, 34rem);
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.word-collision-active {
  overflow: hidden;
}

.word-particle {
  position: relative;
  z-index: 2147483646;
  display: inline-block;
  will-change: transform;
}

p {
  margin: 1.2rem 0 0;
  color: #373630;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.58;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 0.3em;
  text-decoration: none;
}

.writing-page,
.essay-page {
  padding-block: 4.5rem 7rem;
}

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

.post-row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.5;
}

.post-row time {
  color: #67645b;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.post-row a {
  justify-self: start;
}

.post-row + .post-row {
  margin-top: 0.65rem;
}

.essay-date {
  margin-top: 0.55rem;
  color: #67645b;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.essay-figure {
  margin: 2rem 0 0;
}

.essay-image {
  display: block;
  width: 100%;
  height: auto;
  margin-inline: auto;
}

.particle-link--active {
  color: transparent !important;
  text-decoration-color: transparent !important;
  text-shadow: none !important;
  outline: none !important;
}

.particle-field {
  position: fixed;
  z-index: 2147483647;
  display: block;
  overflow: hidden;
  border: 0;
  background: #fdfcf9;
  pointer-events: none;
}

.particle-field canvas {
  display: block;
  width: 100%;
  height: 100%;
}

::selection {
  background: #dfe9e4;
}

@media (max-width: 30rem) {
  .post-row {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}
