:root {
  --paper: #ece4d1;
  --paper-deep: #e4dac1;
  --ink: #211d16;
  --ink-soft: #5b5445;
  --ink-faint: #6a6250;
  --blue: #21466b;
  --verm: #be4327;
  --verm-deep: #8f3019;
  --line: rgba(33, 29, 22, 0.85);
  --hair: rgba(33, 29, 22, 0.18);
  --grid: rgba(33, 29, 22, 0.05);
  --display: "Cabinet Grotesk", Arial, sans-serif;
  --body: "General Sans", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 34px 34px;
}

a {
  color: var(--blue);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--verm-deep);
}

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

.skip-link {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--paper);
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-inner {
  display: flex;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-inner {
  min-height: 76px;
}

.wordmark {
  color: var(--ink);
  font: 800 18px/1 var(--display);
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.header-label,
.eyebrow,
.article-kicker,
.site-footer {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-label,
.article-meta,
.site-footer {
  color: var(--ink-faint);
}

.blog-main {
  min-height: calc(100vh - 155px);
}

.blog-hero,
.article-header,
.article-body,
.blog-list {
  width: min(820px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.hero-visual {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto 72px;
}

.hero-visual img,
.article-figure img,
.post-card-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.hero-visual figcaption,
.article-figure figcaption {
  margin-top: 10px;
  color: var(--ink-faint);
  font: 400 11px/1.5 var(--mono);
  letter-spacing: 0.02em;
}

.blog-hero,
.article-header {
  padding: clamp(72px, 10vw, 132px) 0 56px;
}

.eyebrow,
.article-kicker {
  display: block;
  margin-bottom: 22px;
  color: var(--verm-deep);
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.05;
}

h1 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(46px, 8vw, 84px);
  letter-spacing: -0.045em;
}

.blog-intro,
.article-dek {
  max-width: 690px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.55;
}

.article-meta {
  display: flex;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.article-meta .byline {
  flex-basis: 100%;
}

.blog-list {
  padding: 0 0 110px;
}

.post-card {
  display: block;
  padding: 34px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

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

.post-card h2 {
  max-width: 22ch;
  margin: 10px 0 12px;
  font-size: clamp(30px, 4.4vw, 46px);
  letter-spacing: -0.035em;
}

.post-card-image {
  margin-bottom: 28px;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

.post-card p {
  max-width: 690px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
}

.post-card .read-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--verm-deep);
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-header h1 {
  max-width: 18ch;
  font-size: clamp(43px, 7vw, 76px);
}

.article-body {
  padding-bottom: 110px;
  font-size: 18px;
  line-height: 1.75;
}

.article-body > * {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
}

.article-body h2 {
  margin-top: 72px;
  margin-bottom: 20px;
  font-size: clamp(31px, 4vw, 43px);
  letter-spacing: -0.03em;
}

.article-body h3 {
  margin-top: 42px;
  margin-bottom: 14px;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.article-body p,
.article-body ul,
.article-body ol {
  margin-top: 0;
  margin-bottom: 22px;
}

.article-body li + li {
  margin-top: 8px;
}

.article-body blockquote {
  margin-top: 34px;
  margin-bottom: 34px;
  padding: 24px 28px;
  border-left: 4px solid var(--verm);
  background: rgba(228, 218, 193, 0.72);
  font-size: 20px;
  line-height: 1.6;
}

.article-body blockquote p {
  margin: 0;
}

.article-figure {
  max-width: 820px;
  margin-top: 42px;
  margin-bottom: 48px;
}

.table-wrap {
  max-width: 820px;
  margin-top: 28px;
  margin-bottom: 34px;
  overflow-x: auto;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: rgba(236, 228, 209, 0.8);
  font-size: 15px;
  line-height: 1.45;
}

th,
td {
  padding: 14px 16px;
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  text-align: left;
  vertical-align: top;
}

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

th:last-child,
td:last-child {
  border-right: 0;
}

.note {
  padding: 20px 22px;
  border: 1px solid var(--hair);
  background: var(--paper-deep);
  color: var(--ink-soft);
}

.article-cta {
  max-width: 820px;
  margin-top: 72px;
  padding: 34px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
}

.article-cta h2 {
  margin-top: 0;
}

.article-cta p {
  max-width: 650px;
}

.button {
  display: inline-block;
  padding: 13px 18px;
  background: var(--verm);
  color: #fff;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.button:hover {
  background: var(--verm-deep);
  color: #fff;
}

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

.footer-inner {
  min-height: 78px;
}

.footer-inner a {
  color: var(--ink);
}

@media (max-width: 640px) {
  .header-inner,
  .footer-inner,
  .blog-hero,
  .article-header,
  .article-body,
  .blog-list,
  .hero-visual {
    width: min(820px, calc(100% - 36px));
  }

  .header-label {
    display: none;
  }

  .blog-hero,
  .article-header {
    padding-top: 68px;
  }

  .article-body {
    font-size: 17px;
  }

  .article-body h2 {
    margin-top: 58px;
  }

  .article-body blockquote,
  .article-cta {
    padding: 22px;
  }

  .footer-inner {
    min-height: 96px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }
}

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