:root {
  --ink: #1a1815;
  --ink-soft: #2f2c27;
  --paper: #fcfaf5;
  --paper-deep: #f5f1e7;
  --rule: #e6dec9;
  --rule-soft: #efe8d6;
  --muted: #6b665d;
  --accent: #8b3f2f;
  --accent-soft: rgba(139, 63, 47, 0.08);
  --accent-line: rgba(139, 63, 47, 0.45);
  --canvas: #fffdf8;
  --canvas-grid: rgba(139, 63, 47, 0.09);
  --white: #ffffff;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--accent-line);
  transition: background 140ms ease, color 140ms ease, text-decoration-color 140ms ease;
}

a:hover {
  background: var(--ink);
  color: var(--paper);
  text-decoration-color: var(--ink);
}

.wrap,
.site-nav,
.article-page main > article {
  width: min(1040px, calc(100vw - 64px));
  margin-left: auto;
  margin-right: auto;
}

.wrap {
  padding: 0 0 84px;
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 28px;
  padding-top: 24px;
  margin-bottom: 52px;
  font-family: var(--sans);
}

.site-mark {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 25px;
  line-height: 0.95;
  text-decoration: none;
}

.site-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-links a {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 700;
}

.site-nav a:hover,
.site-links a[aria-current="page"] {
  background: none;
  color: var(--accent);
}

.muted {
  color: var(--muted);
}

.label,
.date,
.post-meta {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-hero {
  display: grid;
  grid-template-columns: 206px minmax(0, 1fr);
  column-gap: 38px;
  align-items: end;
  margin-bottom: 34px;
}

.home-hero h1,
.blog-index-page h1,
.article-page h1 {
  margin: 0;
  font-weight: normal;
  letter-spacing: 0;
}

.home-hero h1 {
  font-size: 54px;
  line-height: 0.95;
  transform: translateY(-3px);
}

.lede {
  margin: 0;
  color: var(--ink-soft);
  font-size: 21px;
  line-height: 1.42;
  font-style: italic;
}

.home-hero .lede {
  max-width: 560px;
}

.home-page .wrap > section {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  column-gap: 48px;
  padding: 20px 0 22px;
  border-top: 1px solid var(--rule);
}

.home-page .wrap > section:last-of-type {
  border-bottom: 1px solid var(--rule);
}

.home-page .label {
  margin: 6px 0 0;
}

.content {
  max-width: 850px;
}

.content p,
.content ul {
  margin: 0;
}

.content ul {
  list-style: none;
  padding: 0;
}

.content li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  margin: 0 0 4px;
}

.content li::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-top: 0.72em;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.62;
}

.content li:last-child {
  margin-bottom: 0;
}

.home-page footer {
  max-width: 850px;
  margin-top: 34px;
  margin-left: 218px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.blog-index-page .wrap {
  max-width: 940px;
}

.blog-index-page h1 {
  margin-bottom: 28px;
  font-size: 52px;
  line-height: 0.98;
}

.post-list {
  border-top: 1px solid var(--rule);
}

.post-link {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 34px;
  padding: 26px 0 30px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
}

.post-link:hover {
  background: none;
}

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

.date {
  margin-top: 7px;
}

.post-link h2 {
  margin: 0;
  font-size: 27px;
  line-height: 1.16;
  font-weight: normal;
  transition: color 140ms ease;
}

.post-link p {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.55;
}

.article-page main > article {
  padding: 0 0 84px;
}

.article-page header.post,
.article-page section.body > p,
.article-page section.body > h2,
.article-page section.body > h3,
.article-page section.body > ul,
.callout,
.about-tumbric {
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

.article-page header.post {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 22px;
  margin-bottom: 30px;
}

.post-meta {
  margin-bottom: 22px;
  letter-spacing: 0.14em;
}

.article-page h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: 48px;
  line-height: 1.08;
}

.dek {
  max-width: 650px;
  margin: 0 0 32px;
  color: var(--ink-soft);
  font-size: 22px;
  line-height: 1.42;
  font-style: italic;
}

.byline {
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
}

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

.byline a {
  color: var(--ink);
  text-decoration-color: rgba(139, 63, 47, 0.3);
}

.article-page section.body h2 {
  margin-top: 64px;
  margin-bottom: 22px;
  font-size: 30px;
  line-height: 1.22;
  font-weight: normal;
  letter-spacing: 0;
}

.article-page section.body h3 {
  margin-top: 42px;
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-size: 22px;
  font-weight: normal;
  font-style: italic;
}

.article-page section.body p {
  margin-top: 0;
  margin-bottom: 22px;
}

.article-page p.lede {
  margin-bottom: 28px;
  font-size: 21px;
  line-height: 1.5;
}

.article-page section.body ul {
  padding-left: 22px;
  margin-top: 0;
  margin-bottom: 22px;
}

.article-page section.body li {
  margin: 8px 0;
}

.article-page :not(pre) > code {
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--paper-deep);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.82em;
  font-weight: 500;
}

.callout {
  margin-top: 30px;
  padding: 18px 24px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  font-size: 17px;
  line-height: 1.55;
}

.callout p:last-child {
  margin-bottom: 0;
}

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

.about-tumbric {
  margin-top: 34px;
  padding: 22px 24px 24px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
}

.article-page section.body .about-tumbric h2 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: normal;
  letter-spacing: 0;
}

.article-page section.body .about-tumbric p {
  font-size: 16.5px;
  line-height: 1.55;
}

.article-page section.body .about-tumbric p:last-child {
  margin-bottom: 0;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 10px;
  white-space: nowrap;
}

.contact-link svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  transform: translateY(2px);
}

.subscribe-form,
.embeddable-buttondown-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 18px;
}

.subscribe-form label {
  grid-column: 1 / -1;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.embeddable-buttondown-form label {
  grid-column: 1 / -1;
  margin-top: 4px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.25;
  font-weight: normal;
}

.subscribe-form input,
.subscribe-form button,
.embeddable-buttondown-form input {
  min-height: 42px;
  border-radius: 5px;
  font-family: var(--sans);
  font-size: 14px;
}

.subscribe-form input,
.embeddable-buttondown-form input[type="email"] {
  width: 100%;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  padding: 9px 11px;
}

.subscribe-form input:focus,
.embeddable-buttondown-form input[type="email"]:focus {
  outline: 2px solid rgba(139, 63, 47, 0.2);
  outline-offset: 1px;
  border-color: var(--accent-line);
}

.subscribe-form button,
.embeddable-buttondown-form input[type="submit"] {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--paper);
  padding: 8px 14px;
  cursor: pointer;
}

.form-note {
  grid-column: 1 / -1;
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.45;
}

@media (max-width: 680px) {
  html,
  body {
    font-size: 18px;
  }

  .wrap,
  .site-nav,
  .article-page main > article {
    width: min(100vw - 40px, 1040px);
  }

  .wrap {
    padding-bottom: 72px;
  }

  .site-nav {
    display: block;
    padding-top: 16px;
    margin-bottom: 42px;
  }

  .site-links {
    justify-content: flex-start;
    gap: 14px;
    margin-top: 16px;
  }

  .home-hero {
    display: block;
    margin-bottom: 38px;
  }

  .home-hero h1 {
    margin-bottom: 8px;
    font-size: 52px;
  }

  .lede,
  .article-page p.lede {
    font-size: 20px;
  }

  .home-page .wrap > section {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 21px 0 23px;
  }

  .home-page .label {
    margin-top: 0;
    font-size: 11px;
  }

  .content li {
    grid-template-columns: 12px minmax(0, 1fr);
    column-gap: 10px;
  }

  .home-page footer {
    margin-top: 28px;
    margin-left: 0;
  }

  .blog-index-page h1 {
    font-size: 42px;
  }

  .post-link {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .article-page main > article {
    padding-bottom: 64px;
  }

  .article-page header.post {
    padding-bottom: 18px;
    margin-bottom: 24px;
  }

  .article-page h1 {
    font-size: 36px;
  }

  .dek {
    font-size: 18px;
  }

  .article-page section.body h2 {
    margin-top: 48px;
    font-size: 25px;
  }

  .about-tumbric {
    padding: 22px;
  }

  .subscribe-form,
  .embeddable-buttondown-form {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 681px) and (max-width: 900px) {
  .home-hero h1 {
    font-size: 50px;
  }
}
