:root {
  --bone: #f4f4f2;
  --bone-deep: #ebebe7;
  --black: #000000;
  --ink: #0a0a0a;
  --mute: #6b7280;
  --line: #000000;
  --blue: #2241ff;
  --blue-deep: #1a33cc;
  --max: 720px;
  --wide: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--bone);
  color: var(--black);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--blue);
  color: var(--bone);
}
a {
  color: var(--blue);
}
a:hover {
  color: var(--blue-deep);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bone);
  border-bottom: 1.5px solid var(--black);
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.nav-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--black);
}

.mark-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Funnel Display", sans-serif;
  font-weight: 800;
  font-size: 10px;
  color: var(--bone);
  letter-spacing: -0.04em;
}

.nav-name {
  font-family: "Funnel Display", sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-cta {
  background: var(--black);
  color: var(--bone) !important;
  padding: 9px 16px;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--blue);
}

.banner {
  background: var(--black);
  color: var(--bone);
  text-align: center;
  padding: 8px 16px;
  font-size: 12px;
  letter-spacing: 0.01em;
}

.banner a {
  color: #9db0ff;
}

.container {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 28px;
}

/* Home hero */
.hero {
  border-bottom: 1.5px solid var(--black);
  padding: 64px 0 56px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: "Funnel Display", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 16ch;
  margin-bottom: 20px;
}

.hero p {
  max-width: 48ch;
  color: var(--mute);
  font-size: 1.1rem;
  line-height: 1.55;
}

/* Post cards */
.posts {
  padding: 48px 0 80px;
  display: grid;
  gap: 20px;
}

.post-card {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 28px;
  border: 1.5px solid var(--black);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}

.post-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--blue);
  color: inherit;
}

.post-num {
  font-family: "Funnel Display", sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--blue);
  letter-spacing: -0.04em;
  line-height: 1;
}

.post-card h2 {
  font-family: "Funnel Display", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 8px;
}

.post-card .meta {
  font-size: 13px;
  color: var(--mute);
  margin-bottom: 10px;
}

.post-card .excerpt {
  font-size: 0.95rem;
  color: #374151;
  max-width: 60ch;
}

.post-arrow {
  font-family: "Funnel Display", sans-serif;
  font-size: 1.5rem;
  color: var(--blue);
  align-self: center;
}

/* Article layout */
.article-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 28px 96px;
}

.article-header {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1.5px solid var(--black);
}

.article-header .eyebrow {
  margin-bottom: 12px;
}

.article-header h1 {
  font-family: "Funnel Display", sans-serif;
  font-weight: 700;
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--mute);
}

.article-meta strong {
  color: var(--ink);
  font-weight: 600;
}

.article-body h2 {
  font-family: "Funnel Display", sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  margin: 2.4rem 0 0.85rem;
  line-height: 1.25;
}

.article-body h3 {
  font-family: "Funnel Display", sans-serif;
  font-weight: 650;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  margin: 1.75rem 0 0.6rem;
}

.article-body p {
  margin-bottom: 1.1rem;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.25rem 1.25rem;
}

.article-body li {
  margin-bottom: 0.45rem;
}

.article-body blockquote {
  border-left: 3px solid var(--blue);
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1.15rem;
  color: #1f2937;
  font-size: 1.05rem;
}

.article-body blockquote p {
  margin-bottom: 0.4rem;
}

.callout {
  background: #fff;
  border: 1.5px solid var(--black);
  padding: 18px 20px;
  margin: 1.5rem 0;
}

.callout strong {
  display: block;
  font-family: "Funnel Display", sans-serif;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 1.75rem;
  border: 1.5px solid var(--black);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid #d1d5db;
  vertical-align: top;
}

th {
  background: var(--bone-deep);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tr:last-child td {
  border-bottom: none;
}

.article-footer {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1.5px solid var(--black);
}

.article-footer h3 {
  font-family: "Funnel Display", sans-serif;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.next-posts {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.next-posts a {
  display: block;
  padding: 14px 16px;
  border: 1.5px solid var(--black);
  background: #fff;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  transition:
    box-shadow 0.15s,
    transform 0.15s;
}

.next-posts a:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--blue);
  color: var(--ink);
}

.next-posts span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mute);
  margin-bottom: 4px;
}

.cta-box {
  background: var(--black);
  color: var(--bone);
  padding: 28px;
}

.cta-box h3 {
  font-family: "Funnel Display", sans-serif;
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--bone);
}

.cta-box p {
  color: #c5c5c0;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.cta-box a.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--bone);
  text-decoration: none;
  padding: 11px 18px;
  font-weight: 600;
  font-size: 14px;
}

.cta-box a.btn:hover {
  background: var(--blue-deep);
  color: var(--bone);
}

.site-footer {
  border-top: 1.5px solid var(--black);
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--mute);
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.site-footer a:hover {
  color: var(--blue);
}

@media (max-width: 720px) {
  .nav {
    padding: 12px 16px;
  }
  .nav-name {
    font-size: 13px;
  }
  .container {
    padding: 0 16px;
  }
  .hero {
    padding: 40px 0 36px;
  }
  .post-card {
    grid-template-columns: 48px 1fr;
    padding: 20px;
    gap: 12px;
  }
  .post-arrow {
    display: none;
  }
  .post-num {
    font-size: 1.4rem;
  }
  .article-wrap {
    padding: 32px 16px 72px;
  }
}
