:root {
  font-family: Geist, Inter, Arial, sans-serif;
  color: #0f172a;
  background: white;
  font-size: 16px;
  line-height: 1.6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header,
main,
footer {
  max-width: 1440px;
  margin: auto;
}
header {
  padding: 24px 80px;
  min-height: 85px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid #e2e8f0;
}
nav {
  display: flex;
  gap: 32px;
  font:
    14px "Geist Mono",
    ui-monospace,
    monospace;
}
.brand {
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.badge {
  background: #0f172a;
  color: white;
  padding: 6px;
  font:
    700 14px "Geist Mono",
    ui-monospace,
    monospace;
  border-radius: 2px;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
nav a,
.brand,
.button {
  text-decoration: none;
}
a:hover {
  color: #0891b2;
}
h1,
h2,
h3,
h4 {
  line-height: 1.15;
  overflow-wrap: anywhere;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
  margin: 24px 0 16px;
}
h2 {
  font-size: 32px;
  font-weight: 800;
  margin: 8px 0 24px;
}
p,
li,
td {
  overflow-wrap: anywhere;
}
p {
  color: #475569;
}
.hero {
  padding: 96px 80px;
  display: grid;
  grid-template-columns: minmax(0, 720fr) minmax(0, 480fr);
  gap: 80px;
  align-items: center;
}
.eyebrow {
  font:
    600 12px/1.5 "Geist Mono",
    ui-monospace,
    monospace;
  color: #0891b2;
}
.subtitle {
  font:
    500 22px/1.5 "Geist Mono",
    ui-monospace,
    monospace;
  margin-top: 0;
}
.lede {
  font-size: 18px;
  line-height: 1.6;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}
.button {
  display: inline-flex;
  padding: 14px 28px;
  background: #0f172a;
  color: white;
  border: 1px solid #0f172a;
  border-radius: 2px;
  font:
    700 14px/18px "Geist Mono",
    ui-monospace,
    monospace;
}
.secondary {
  background: white;
  color: #475569;
  border-color: #e2e8f0;
}
.profile {
  padding: 32px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.label,
dt {
  font:
    12px/1.5 "Geist Mono",
    ui-monospace,
    monospace;
  color: #64748b;
}
.profile dl {
  margin: 24px 0 0;
}
.profile dt {
  font-size: 11px;
}
.profile dd {
  margin: 4px 0 16px;
  font-size: 15px;
  font-weight: 600;
}
.profile dd:last-child {
  margin-bottom: 0;
}
.writing {
  padding: 80px 80px 96px;
  background: #f8fafc;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 40px;
}
.posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}
.posts article {
  padding: 20px;
  border: 1px solid #e2e8f0;
  background: white;
  min-width: 0;
}
.posts h2 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: 0;
  margin: 12px 0;
}
.posts h2 a {
  text-decoration: none;
}
.posts p {
  font-size: 14px;
}
.posts time {
  font:
    12px "Geist Mono",
    ui-monospace,
    monospace;
  color: #64748b;
}
.detail {
  padding: 64px 80px;
  max-width: 1040px;
  margin: 0;
}
.detail h1 {
  font-size: 48px;
  margin-bottom: 32px;
}
.detail h2 {
  font-size: 30px;
  margin-top: 32px;
}
.detail h2:after {
  content: "";
  display: block;
  background: #0891b2;
  height: 3px;
  width: 80px;
  margin-top: 16px;
}
.detail .block {
  margin-block: 24px;
}
.about {
  padding: 96px 80px;
  display: grid;
  grid-template-columns: 400fr 800fr;
  gap: 80px;
}
.about p {
  margin-top: 0;
  margin-bottom: 28px;
}
.about strong {
  color: #0f172a;
}
.rule {
  width: 200px;
  height: 4px;
  background: #0f172a;
}
.callout {
  padding: 20px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font:
    13px/1.6 "Geist Mono",
    ui-monospace,
    monospace;
}
.topics {
  padding: 40px 80px 48px;
  border-block: 1px solid #e2e8f0;
}
.topics ul {
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.topics li {
  padding: 10px 16px;
  border: 1px solid #0f172a;
  border-radius: 2px;
  font:
    13px "Geist Mono",
    ui-monospace,
    monospace;
}
img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
.banner {
  width: 100%;
  margin-block: 32px;
}
figure {
  margin: 24px 0;
}
figcaption {
  font-size: 14px;
  color: #64748b;
}
pre,
.table-scroll {
  max-width: 100%;
  overflow: auto;
}
pre {
  padding: 20px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 14px;
}
blockquote {
  margin-inline: 0;
  padding: 16px 24px;
  border-inline-start: 3px solid #0891b2;
}
table {
  border-collapse: collapse;
  width: 100%;
}
td {
  border: 1px solid #cbd5e1;
  padding: 12px;
}
footer {
  padding: 80px 80px 48px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 14px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
}
.footer-top > div {
  max-width: 400px;
}
.footer-bottom {
  border-top: 1px solid #e2e8f0;
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font:
    13px "Geist Mono",
    ui-monospace,
    monospace;
}
.pagination {
  padding: 24px 80px;
  justify-content: space-between;
}
:focus-visible {
  outline: 3px solid #0891b2;
  outline-offset: 4px;
}
.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -100px;
}
.skip:focus {
  top: 8px;
  background: white;
  padding: 8px;
  z-index: 2;
}
.block {
  min-width: 0;
}
main > a {
  display: block;
  margin: 24px 80px;
}
.icon {
  width: 16px;
  height: 16px;
}
@media (max-width: 1000px) {
  header {
    padding: 24px 32px;
  }
  .hero,
  .about {
    padding: 64px 32px;
    gap: 40px;
    grid-template-columns: 1fr;
  }
  .profile {
    max-width: 600px;
  }
  .writing,
  .topics,
  footer {
    padding: 48px 32px;
  }
  .posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail {
    padding: 48px 32px;
  }
  .footer-top,
  .footer-bottom {
    flex-wrap: wrap;
  }
}
@media (max-width: 600px) {
  header {
    flex-wrap: wrap;
    padding: 20px;
  }
  nav {
    gap: 20px;
    flex-wrap: wrap;
  }
  .hero,
  .about,
  .writing,
  .topics,
  footer,
  .detail {
    padding: 40px 20px;
  }
  .posts {
    grid-template-columns: 1fr;
  }
  .hero {
    gap: 32px;
  }
  .subtitle {
    font-size: 18px;
  }
  .detail h1 {
    font-size: 32px;
  }
  .profile {
    padding: 24px;
  }
  .footer-top,
  .footer-bottom {
    display: block;
  }
  .footer-bottom nav {
    margin-top: 24px;
  }
  .pagination {
    padding: 24px 20px;
  }
  main > a {
    margin-inline: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
  }
}
.button {
  gap: 8px;
  align-items: center;
}
.thumbnail {
  width: calc(100% + 40px);
  max-width: none;
  height: 180px;
  object-fit: cover;
  margin: -20px -20px 20px;
}
.read-article {
  display: block;
  border-top: 1px solid #e2e8f0;
  padding-top: 16px;
  margin-top: 20px;
  text-decoration: none;
  font:
    600 13px "Geist Mono",
    ui-monospace,
    monospace;
}
.post-heading {
  padding: 80px 80px 64px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.post-heading h1 {
  font-size: 48px;
}
.back {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0891b2;
  font:
    13px "Geist Mono",
    ui-monospace,
    monospace;
  text-decoration: none;
}
.post-heading time {
  font:
    13px "Geist Mono",
    ui-monospace,
    monospace;
  color: #64748b;
}
.byline {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
  font-size: 14px;
}
.byline .badge {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}
.byline small {
  display: block;
  font:
    11px "Geist Mono",
    ui-monospace,
    monospace;
  color: #64748b;
}
.article-layout {
  padding: 64px 80px 96px;
  display: grid;
  grid-template-columns: minmax(0, 880fr) minmax(0, 320fr);
  gap: 80px;
}
.article-layout .detail {
  padding: 0;
}
.post-sidebar .profile {
  padding: 24px;
  margin-bottom: 32px;
}
.post-sidebar p {
  font-size: 14px;
}
.post-sidebar .posts {
  display: block;
}
.post-sidebar .posts article {
  margin-top: 20px;
}
.post-sidebar h2 {
  font-size: 16px;
}
.post-sidebar .eyebrow {
  font-size: 12px;
}
@media (max-width: 1000px) {
  .article-layout {
    grid-template-columns: 1fr;
    padding: 48px 32px;
    gap: 40px;
  }
  .post-heading {
    padding: 48px 32px;
  }
  .post-heading h1 {
    font-size: 40px;
  }
}
@media (max-width: 600px) {
  .post-heading,
  .article-layout {
    padding: 40px 20px;
  }
  .post-heading h1 {
    font-size: 32px;
  }
}

@font-face {
  font-family: Geist;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("./fonts/geist-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("./fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
}
