* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg: #fcfcfa;
  --text: #121212;
  --muted: #686864;
  --rule: #d9d9d3;
  --soft: #f1f1ed;
  --rust: #c7472f;
  --teal: #4d8d87;
  --ochre: #dfb720;
  --accent: #276f70;
  --code-bg: #f0f0ec;
  --pop-paper: #fff4bd;
  --pop-shadow: #e86f7f;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
}

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

img,
video {
  height: auto;
  max-width: 100%;
}

.wrap {
  margin: 0 auto;
  max-width: 1040px;
  padding: 0 32px;
}

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

.header-row {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.header-row {
  min-height: 84px;
}

.site-title {
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
  margin: 0 -5px;
  padding: 4px 5px 10px;
  position: relative;
  text-decoration: none;
}

.site-title::after {
  background: var(--rust);
  bottom: 0;
  box-shadow: 12px 0 0 var(--teal), 24px 0 0 var(--pop-shadow);
  content: "";
  height: 4px;
  left: 5px;
  position: absolute;
  width: 10px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-end;
}

.header-actions,
.social-links {
  align-items: center;
  display: flex;
}

.header-actions {
  gap: 18px;
}

.social-links {
  border-left: 1px solid var(--rule);
  gap: 5px;
  padding-left: 16px;
}

.social-links a {
  color: var(--muted);
  display: grid;
  height: 28px;
  place-items: center;
  text-decoration: none;
  transition: color 140ms ease, transform 140ms ease;
  width: 28px;
}

.social-links svg {
  fill: currentColor;
  height: 15px;
  width: 15px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  margin: 0 -5px;
  padding: 4px 5px;
  position: relative;
  text-decoration: none;
  transition: background 140ms ease, box-shadow 140ms ease, color 140ms ease, transform 140ms ease;
}

.site-nav a::after {
  background: var(--rust);
  bottom: 0;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 140ms ease;
  width: 100%;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.main-content {
  min-height: calc(100vh - 85px);
  padding-bottom: 96px;
  padding-top: 68px;
}

.home-intro {
  margin-bottom: 58px;
}

.home-intro h1 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Baskerville, Georgia, serif;
  font-size: 2.8rem;
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 22px;
}

.pop-rule {
  display: flex;
  gap: 5px;
  height: 5px;
  width: 86px;
}

.pop-rule span {
  display: block;
  flex: 1;
}

.pop-rule span:nth-child(1) { background: var(--rust); }
.pop-rule span:nth-child(2) { background: var(--teal); }
.pop-rule span:nth-child(3) { background: var(--pop-shadow); }

.entry-list {
  border-top: 2px solid var(--text);
  list-style: none;
  margin: 0;
  padding: 0;
}

.entry {
  align-items: baseline;
  border-bottom: 1px solid var(--rule);
  display: grid;
  gap: 24px;
  grid-template-columns: 122px minmax(0, 1fr);
  padding: 25px 0;
}

.entry-date {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.entry-title {
  color: var(--text);
  display: inline-block;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Baskerville, Georgia, serif;
  font-size: 1.3rem;
  font-weight: 500;
  justify-self: start;
  line-height: 1.38;
  margin: -2px -5px;
  max-width: 100%;
  padding: 2px 5px;
  text-decoration: none;
  transition: background 140ms ease, box-shadow 140ms ease, color 140ms ease, transform 140ms ease;
}

.entry-title:focus-visible {
  background-color: var(--pop-paper);
  box-shadow: 5px 5px 0 var(--pop-shadow);
  color: var(--text);
  transform: translate(-3px, -4px);
}

.listing-header,
.page-header,
.post-header {
  margin-bottom: 38px;
}

.page-header::after,
.post-header::after {
  background: var(--text);
  box-shadow: 22px 0 0 var(--teal), 44px 0 0 var(--ochre);
  content: "";
  display: block;
  height: 4px;
  margin-top: 24px;
  width: 16px;
}

h1,
h2,
h3 {
  line-height: 1.18;
}

h1 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Baskerville, Georgia, serif;
  font-size: 3rem;
  font-weight: 500;
  margin: 0;
}

h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2.2em 0 0.7em;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 2em 0 0.5em;
}

.meta,
.eyebrow {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  margin: 0 0 10px;
}

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

.post-list,
.tag-index,
.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-list li,
.tag-index li {
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 18px 0;
}

.post-list a,
.tag-index a {
  color: var(--text);
  display: inline-block;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Baskerville, Georgia, serif;
  font-weight: 500;
  justify-self: start;
  margin: -2px -5px;
  padding: 2px 5px;
  transition: background 140ms ease, box-shadow 140ms ease, color 140ms ease, transform 140ms ease;
}

.post-list span,
.tag-index span {
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
}

.prose {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Baskerville, Georgia, serif;
  font-size: 1.03rem;
  max-width: 760px;
}

.prose h1,
.prose h2,
.prose h3 {
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
}

.prose h1 {
  font-size: 1.75rem;
  margin: 2.2em 0 0.7em;
}

.prose h2 {
  font-size: 1.4rem;
}

.prose h3 {
  font-size: 1.12rem;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose pre,
.prose table {
  margin: 0 0 1.25em;
}

.prose blockquote {
  border-left: 4px solid var(--rust);
  color: #3e3e3b;
  font-style: italic;
  padding-left: 20px;
}

.prose code,
.comment-body code {
  background: var(--code-bg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.1em 0.24em;
}

.prose pre,
.comment-body pre {
  background: #181818;
  border: 0;
  border-top: 4px solid var(--ochre);
  color: #f6f6f2;
  overflow-x: auto;
  padding: 20px;
}

.prose pre code,
.comment-body pre code {
  background: transparent;
  padding: 0;
}

.prose table {
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}

.prose .post-block {
  margin: 2rem 0;
}

.prose .post-block img,
.prose .post-block video {
  display: block;
  width: 100%;
}

.prose .post-block figcaption {
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 8px;
  text-align: center;
}

.prose .post-divider hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.5rem auto;
  width: 32%;
}

.prose .post-button a,
.prose .post-cta > a,
.prose .post-signup > a,
.prose .post-product a {
  background: var(--text);
  border: 1px solid var(--text);
  color: var(--bg);
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 650;
  padding: 9px 15px;
  text-decoration: none;
}

.prose .post-bookmark,
.prose .post-cta,
.prose .post-signup,
.prose .post-callout,
.prose .post-email-content,
.prose .post-file,
.prose .post-product,
.prose .post-toggle {
  border: 1px solid var(--rule);
  padding: 20px;
}

.prose .post-bookmark a {
  color: var(--text);
  display: grid;
  gap: 5px;
  text-decoration: none;
}

.prose .post-bookmark span,
.prose .post-bookmark small,
.prose .post-block-label {
  color: var(--muted);
}

.prose .post-cta,
.prose .post-signup {
  background: var(--soft);
  padding: 28px;
  text-align: center;
}

.prose .post-cta h3,
.prose .post-signup h3,
.prose .post-product h3 {
  font-size: 1.2rem;
  margin: 0 0 8px;
}

.prose .post-cta p,
.prose .post-signup p,
.prose .post-callout p,
.prose .post-email-content p,
.prose .post-product p {
  margin: 0 0 14px;
}

.prose .post-callout,
.prose .post-email-content {
  background: #f3f7f5;
  border-left: 4px solid var(--accent);
}

.prose .post-block-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.prose .post-gallery-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prose .post-gallery-grid img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.prose .post-preview-break {
  border-top: 1px dashed var(--rule);
  height: 1px;
}

.prose .post-preview-break span {
  display: none;
}

.prose .post-embed-frame {
  aspect-ratio: 16 / 9;
  background: var(--code-bg);
  overflow: hidden;
  position: relative;
  width: 100%;
}

.prose .post-embed-audio .post-embed-frame {
  aspect-ratio: auto;
  height: 180px;
}

.prose .post-embed iframe {
  border: 0;
  height: 100%;
  width: 100%;
}

.prose .post-media audio {
  width: 100%;
}

.prose .post-file a {
  align-items: center;
  color: var(--text);
  display: flex;
  gap: 12px;
  text-decoration: none;
}

.prose .post-file a span {
  font-size: 1.5rem;
}

.prose .post-product {
  align-items: center;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
}

.prose .post-product-copy > strong {
  display: block;
  margin-bottom: 12px;
}

.prose .post-toggle summary {
  cursor: pointer;
  font-weight: 650;
}

.prose .post-toggle p {
  margin: 14px 0 0;
}

.prose .post-social blockquote {
  border: 1px solid var(--rule);
  border-left: 4px solid var(--text);
  margin: 0;
  padding: 20px;
}

.about-portrait {
  float: right;
  margin: 4px 12px 38px 48px;
  max-width: min(300px, 42%);
}

.about-portrait img {
  border: 2px solid var(--text);
  box-shadow: 10px 10px 0 var(--ochre), -5px -5px 0 var(--teal);
  display: block;
  width: 100%;
}

.prose th,
.prose td {
  border: 1px solid var(--rule);
  padding: 8px 10px;
}

.comments {
  border-top: 2px solid var(--text);
  margin-top: 76px;
  padding-top: 38px;
}

.comments h2 {
  margin-top: 0;
}

.comments-head p {
  color: var(--muted);
  margin-top: -6px;
}

.comment {
  border-top: 1px solid var(--rule);
  padding: 18px 0 18px var(--comment-indent, 0);
}

.depth-1 { --comment-indent: 20px; }
.depth-2 { --comment-indent: 40px; }
.depth-3 { --comment-indent: 60px; }
.depth-4,
.depth-5,
.depth-6 { --comment-indent: 80px; }

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.comment-meta span,
.comment-meta a {
  color: var(--text);
  font-weight: 600;
}

.comment-meta time {
  color: var(--muted);
}

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

.prose p a,
.prose li a,
.comment-body a {
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  position: relative;
  transition: background 120ms ease, box-shadow 120ms ease, color 120ms ease, top 120ms ease;
}

@media (hover: hover) {
  .entry:hover .entry-title {
    background-color: var(--pop-paper);
    box-shadow: 5px 5px 0 var(--pop-shadow);
    color: var(--text);
    transform: translate(-3px, -4px);
  }

  .site-nav a:hover {
    background-color: var(--pop-paper);
    box-shadow: 3px 3px 0 var(--pop-shadow);
    color: var(--text);
    transform: translate(-1px, -2px);
  }

  .social-links a:hover {
    color: var(--text);
    transform: translateY(-2px);
  }

  .post-list a:hover,
  .tag-index a:hover {
    background-color: var(--pop-paper);
    box-shadow: 5px 5px 0 var(--pop-shadow);
    color: var(--text);
    transform: translate(-3px, -4px);
  }

  .prose p a:hover,
  .prose li a:hover,
  .comment-body a:hover {
    background-color: var(--pop-paper);
    box-shadow: 3px 3px 0 var(--pop-shadow);
    color: var(--text);
    text-decoration: none;
    top: -2px;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  .wrap {
    padding: 0 20px;
  }

  .header-row {
    align-items: center;
    flex-direction: row;
    gap: 18px;
    padding-bottom: 18px;
    padding-top: 18px;
  }

  .site-nav {
    gap: 10px;
    justify-content: flex-end;
  }

  .header-actions {
    gap: 12px;
  }

  .social-links {
    gap: 2px;
    padding-left: 10px;
  }

  .main-content {
    padding-bottom: 68px;
    padding-top: 44px;
  }

  .home-intro {
    margin-bottom: 42px;
  }

  .home-intro h1 {
    font-size: 2.15rem;
  }

  h1 {
    font-size: 2.25rem;
  }

  .entry {
    gap: 8px;
    grid-template-columns: 1fr;
    padding: 22px 0;
  }

  .post-list li,
  .tag-index li {
    grid-template-columns: 1fr;
  }

  .post-list span,
  .tag-index span {
    white-space: normal;
  }

  .about-portrait {
    float: none;
    margin: 4px 8px 38px 5px;
    max-width: 280px;
  }

  .prose .post-gallery-grid,
  .prose .post-product {
    grid-template-columns: 1fr;
  }

  .prose .post-product img {
    max-height: 320px;
    object-fit: cover;
  }

  .comment {
    padding-left: min(var(--comment-indent, 0), 40px);
  }

}
