@font-face {
  font-family: "GT Pressura Mono";
  src: url("/static/media/GT-Pressura-Mono-Regular.2320ef8de2a13aa3703b.ttf")
    format("truetype");
  font-display: swap;
}

:root {
  --bg: #f8f4ec;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --text: #15130f;
  --muted: #6f685d;
  --line: rgba(21, 19, 15, 0.1);
  --accent: #1f5148;
  --accent-hover: #163a34;
  --shadow: rgba(21, 19, 15, 0.08);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --mono: "GT Pressura Mono", "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(151, 176, 145, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(200, 182, 140, 0.18), transparent 22%),
    linear-gradient(180deg, #fcfaf5 0%, var(--bg) 100%);
  color: var(--text);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 30px 28px 72px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding-bottom: 48px;
}

.site-header__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  background: transparent;
  text-decoration: none;
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.site-header__link:hover,
.site-header__link:focus-visible {
  transform: translateY(-2px);
  filter: drop-shadow(0 10px 12px rgba(21, 19, 15, 0.22));
}

.site-header__link:focus-visible,
.styled-link:focus-visible {
  outline: 2px solid rgba(31, 81, 72, 0.35);
  outline-offset: 4px;
}

.site-header__link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.site-header__image--home {
  width: 28px;
}

.site-header__image--lens {
  width: 32px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: start;
}

.layout__main {
  display: grid;
  gap: 72px;
}

.layout__sidebar {
  position: sticky;
  top: 28px;
  align-self: start;
}

.layout__sidebar .section {
  padding-top: 0;
  border-top: none;
}

.layout__sidebar .section-heading {
  margin-bottom: 18px;
}

.layout__sidebar .reading-list {
  max-width: none;
}

.hero {
  display: grid;
  gap: 18px;
  max-width: 720px;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__title,
.section-heading__title {
  margin: 0;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: -0.05em;
}

.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.92;
}

.hero__lede,
.section-heading__body,
.site-footer {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.hero__lede {
  max-width: 42rem;
}

.hero__lede--secondary {
  max-width: 34rem;
}

.styled-link {
  color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

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

.section {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-heading__title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.94;
}

.section-heading__body {
  max-width: 30rem;
}

.reading-list {
  max-width: 44rem;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.reading-list__item {
  border-bottom: 1px solid var(--line);
}

.reading-list__link {
  display: block;
  padding: 16px 0 18px;
  text-decoration: none;
  transform-origin: left center;
  transition:
    transform 180ms ease,
    color 180ms ease;
}

.reading-list__link:hover,
.reading-list__link:focus-visible {
  transform: scale(1.015);
}

.reading-list__link:focus-visible {
  outline: 2px solid rgba(31, 81, 72, 0.35);
  outline-offset: 6px;
}

.reading-list__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.5;
}

.reading-list__meta {
  margin: 0;
  padding-top: 2px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.site-footer {
  margin-top: 72px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

@media (max-width: 820px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .layout__sidebar {
    position: static;
  }

  .section-heading {
    display: grid;
  }
}

@media (max-width: 720px) {
  .page {
    padding: 24px 20px 56px;
  }

  .site-header {
    gap: 14px;
    padding-bottom: 38px;
  }

  .layout__main {
    gap: 56px;
  }

  .reading-list__item {
    padding: 0;
  }

  .reading-list__link {
    padding: 14px 0 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-header__link,
  .reading-list__link {
    transition: none;
  }
}
