/* Homepage sections between the shared header and footer (site-chrome.css):
   a grey manifesto and a black blog list, stacked on straight edges. */

:root {
  color-scheme: light;
  --grey: #ececec;
  --ink: #111111;
  --black: #040404;
  --blue: #699eff;
  --muted-on-black: #a8a8a8;
  --column: 520px;
  --gutter: 24px;
}

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

body {
  margin: 0;
  background: var(--grey);
  color: var(--ink);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: -0.008em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2,
p {
  margin: 0;
}

a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.column {
  width: min(var(--column), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
  overflow-wrap: break-word;
}

.home-manifesto {
  padding-block: 64px 96px;
  background: var(--grey);
}

.home-manifesto h1 {
  margin-bottom: 24px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.home-manifesto__accent {
  color: var(--blue);
}

.home-manifesto p + p {
  margin-top: 24px;
}

.home-manifesto a {
  text-decoration-thickness: 1.5px;
}

.home-manifesto a:hover {
  text-decoration-color: var(--blue);
}

.home-blog {
  padding-block: 72px 96px;
  background: var(--black);
  color: #fff;
}

.home-blog > .column > h2 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.012em;
}

.home-blog .post-list {
  margin-top: 20px;
}

.home-blog .post-list__entry {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.home-blog .post-list__entry:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.home-blog .post-list__link {
  display: grid;
  gap: 6px;
  padding-block: 20px 22px;
  text-decoration: none;
}

.home-blog .post-list__title {
  margin: 0;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.012em;
}

.home-blog .post-list__subtitle,
.home-blog .post-list__date {
  color: var(--muted-on-black);
  letter-spacing: 0;
}

.home-blog .post-list__subtitle {
  font-size: 16px;
  line-height: 1.35;
}

.home-blog .post-list__date {
  font-size: 14px;
  line-height: 1.3;
}

.home-blog .post-list__link:hover .post-list__title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.home-blog .post-list__link:focus-visible {
  outline-offset: 2px;
}

/* The logo lands once on load. Content never waits on this animation. */
@media (prefers-reduced-motion: no-preference) {
  .site-header--home .site-header__logo {
    animation: home-logo-settle 520ms cubic-bezier(0.3, 0, 0.2, 1) 60ms both;
  }
}

@keyframes home-logo-settle {
  0% {
    opacity: 0;
    transform: translateY(-12px);
  }
  55% {
    opacity: 1;
  }
  78% {
    transform: translateY(1px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
