:root {
  --ivory: #faf9f5;
  --ink: #141413;
  --muted: #3d3d3a;
  --faint: #87867f;
  --accent: #1f6b4a;
  --line: rgba(20, 20, 19, 0.12);
  --sans: "Inter", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--ivory);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.4;
  font-weight: 400;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.wrap {
  display: flex;
  flex: 1;
  flex-direction: column;
  max-width: 1040px;
  margin: 0 auto;
  width: 100%;
  padding: 0 40px 48px 160px;
}

.name {
  margin: 96px 0 40px;
  text-align: left;
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
}

.intro {
  max-width: 640px;
  margin: 0 0 56px;
}

.intro p {
  margin: 0 0 1.15em;
}

.intro p:last-child {
  margin-bottom: 0;
}

.wordmark {
  display: block;
  margin: 96px 24px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
}

.wordmark:hover {
  color: var(--accent);
}

.back {
  display: inline-block;
  margin: 32px 0 0 32px;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  text-decoration: none;
}

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

.blog .wrap {
  padding-top: 64px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 96px;
}

.nav a {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent);
}

h1 {
  margin: 0 0 72px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.25rem, 8vw, 5rem);
  line-height: 1.05;
}

h2 {
  margin: 20px 0 28px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.2;
}

.index {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 640px;
}

.index a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}

.index li:last-child a {
  border-bottom: 1px solid var(--line);
}

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

.meta {
  display: inline-flex;
  align-items: baseline;
  gap: 16px;
}

.meta time {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}

.index a:hover .meta time {
  color: var(--muted);
}

.arrow {
  color: var(--faint);
  font-weight: 400;
}

.index a:hover .arrow {
  color: var(--accent);
}

.contact {
  display: flex;
  justify-content: center;
  gap: 22px;
  align-items: center;
  margin-top: auto;
  padding: 48px 0;
}

.contact a {
  display: inline-flex;
  color: var(--accent);
  text-decoration: none;
}

.contact a:hover {
  color: #174a34;
}

.contact svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.lede {
  margin: -40px 0 48px;
  max-width: 36rem;
  color: var(--muted);
}

.posts {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 720px;
}

.post {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.posts li:last-child .post {
  border-bottom: 1px solid var(--line);
}

.post time {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

.post-title {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.3;
  font-weight: 400;
}

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

.name,
.wrap {
  position: relative;
  z-index: 1;
}

.season {
  position: fixed;
  width: 660px;
  height: 540px;
  pointer-events: none;
  overflow: visible;
}

.season svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.season-spring { top: 0; left: 0; }
.season-summer { top: 0; right: 0; }
.season-autumn {
  right: 0;
  bottom: 0;
  transform: scaleX(-1);
}
.season-winter {
  left: 0;
  bottom: 0;
  transform: scaleX(-1);
}

.cluster,
.go,
.flutter,
.wing,
.rays {
  transform-box: fill-box;
  transform-origin: center;
}

.season-spring .cluster { transform-box: view-box; transform-origin: 12% 18%; animation: sway 7s ease-in-out infinite; }
.season-summer .cluster { transform-box: view-box; transform-origin: 82% 28%; animation: sway 8s ease-in-out infinite; }
.season-autumn .cluster { transform-box: view-box; transform-origin: 18% 82%; animation: sway 7.5s ease-in-out infinite; }
.season-winter .cluster { transform-box: view-box; transform-origin: 84% 80%; animation: sway 8.5s ease-in-out infinite; }

.go { animation-timing-function: linear; animation-iteration-count: infinite; }
.go.se { animation-name: go-se; }
.go.se.b { animation-name: go-se-b; }
.go.sw { animation-name: go-sw; }
.go.sw.b { animation-name: go-sw-b; }
.go.ne { animation-name: go-ne; }
.go.ne.b { animation-name: go-ne-b; }
.go.nw { animation-name: go-nw; }
.go.nw.b { animation-name: go-nw-b; }

.rays {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 36s linear infinite;
}

.flutter {
  animation: flutter 9s ease-in-out infinite;
}

.wing-l {
  transform-origin: 100% 45%;
  animation: flap 0.32s ease-in-out infinite alternate;
}

.wing-r {
  transform-origin: 0% 45%;
  animation: flap 0.32s ease-in-out infinite alternate;
}

@keyframes go-se {
  0% { transform: translate(0, 0) rotate(-16deg); opacity: 0; }
  12% { opacity: 1; }
  68% { opacity: 0.85; }
  100% { transform: translate(118px, 108px) rotate(150deg); opacity: 0; }
}

@keyframes go-se-b {
  0% { transform: translate(0, 0) rotate(24deg); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translate(96px, 132px) rotate(40deg); opacity: 0; }
}

@keyframes go-sw {
  0% { transform: translate(0, 0) rotate(10deg); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translate(-176px, 150px) rotate(-70deg); opacity: 0; }
}

@keyframes go-sw-b {
  0% { transform: translate(0, 0) rotate(-20deg); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translate(-140px, 188px) rotate(30deg); opacity: 0; }
}

@keyframes go-ne {
  0% { transform: translate(0, 0) rotate(-30deg); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translate(176px, -164px) rotate(210deg); opacity: 0; }
}

@keyframes go-ne-b {
  0% { transform: translate(0, 0) rotate(16deg); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translate(140px, -196px) rotate(80deg); opacity: 0; }
}

@keyframes go-nw {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  14% { opacity: 0.95; }
  100% { transform: translate(-168px, -156px) rotate(-40deg); opacity: 0; }
}

@keyframes go-nw-b {
  0% { transform: translate(0, 0) rotate(20deg); opacity: 0; }
  14% { opacity: 0.9; }
  100% { transform: translate(-136px, -188px) rotate(25deg); opacity: 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes flutter {
  0% { transform: translate(0, 0) rotate(16deg); opacity: 0; }
  12% { opacity: 1; }
  45% { transform: translate(-90px, 70px) rotate(4deg); }
  100% { transform: translate(-190px, 160px) rotate(-14deg); opacity: 0; }
}

@keyframes flap {
  from { transform: scaleX(1); }
  to { transform: scaleX(0.55); }
}

@keyframes sway {
  0%, 100% { transform: rotate(-1.6deg); }
  50% { transform: rotate(2deg); }
}

@media (max-width: 1280px) {
  .season { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .go, .flutter, .wing, .rays, .cluster { animation: none; }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 20px 80px 48px;
  }

  .name,
  .wordmark {
    margin-top: 48px;
  }

  .back {
    margin: 20px 0 0 20px;
  }

  .blog .wrap {
    padding-top: 40px;
  }

  .name {
    margin-bottom: 40px;
  }

  .intro {
    margin-bottom: 40px;
  }

  .nav {
    margin-bottom: 64px;
  }

  h1 {
    margin-bottom: 48px;
  }

  .lede {
    margin-top: -20px;
  }

  .post {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
