@font-face {
  font-family: Space Grotesk;
  src: url("../fonts/space-grotesk-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Space Grotesk;
  src: url("../fonts/space-grotesk-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --ink: #262722;
  --muted: #65665c;
  --rule: #d6d5ca;
  --accent: #b73522;
  --panel: #efede4;
  --art: #d8e578;
  --code: #232721;
  --code-ink: #e9eddf;
  --display: "Space Grotesk", sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #20231f;
  --ink: #eeeee4;
  --muted: #b4b9aa;
  --rule: #454b40;
  --accent: #ff9c83;
  --panel: #2b3028;
  --art: #c7da6b;
  --code: #151813;
  --code-ink: #e9eddf;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
  scrollbar-color: var(--muted) var(--paper);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: var(--accent);
  color: var(--paper);
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
a:hover {
  color: var(--accent);
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
button,
summary {
  min-height: 44px;
}
img {
  max-width: 100%;
  height: auto;
}
svg {
  flex: none;
}
.shell {
  width: min(1240px, calc(100% - 96px));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px;
  z-index: 10;
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  display: flex;
  align-items: center;
  gap: 36px;
  min-height: 112px;
  border-bottom: 1px solid var(--ink);
}
.wordmark {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.wordmark span {
  color: var(--accent);
}
.site-header nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
  align-items: center;
}
.site-header nav a {
  padding-block: 12px;
  text-decoration: none;
  font-size: 14px;
}
.site-header nav a[aria-current] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--rule);
  border-radius: 24px;
  background: transparent;
  color: var(--ink);
  padding: 8px 13px;
  font-size: 13px;
}
.theme-toggle[hidden] {
  display: none;
}
.theme-toggle:hover {
  border-color: var(--ink);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}
.journal-intro {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 60px;
  align-items: end;
  padding: 62px 0 52px;
}
.journal-intro h1 {
  font-size: clamp(48px, 6.5vw, 88px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin: 0;
  font-weight: 700;
}
.journal-intro h1 em {
  font-style: normal;
  color: var(--accent);
}
.intro-note {
  padding-bottom: 4px;
}
.intro-note p {
  margin: 0;
}
.intro-note p:first-child {
  font-size: 19px;
  max-width: 240px;
  line-height: 1.5;
  margin-bottom: 12px;
}
.intro-note p + p {
  font-size: 14px;
  color: var(--muted);
}
.featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  background: var(--panel);
  margin-bottom: 76px;
  min-height: 410px;
}
.featured-copy {
  padding: 36px 40px 38px;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.featured .post-meta span:first-child {
  color: var(--accent);
  font-weight: 700;
}
.featured h2 {
  font-size: clamp(30px, 3.1vw, 43px);
  line-height: 1.13;
  letter-spacing: -0.03em;
  margin: 24px 0 20px;
  text-wrap: balance;
}
.featured h2 a,
.post-row h3 a {
  text-decoration: none;
}
.featured-copy > p {
  font-size: 15px;
  line-height: 1.75;
  max-width: 56ch;
  color: var(--muted);
  margin: 0 0 24px;
}
.read-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-weight: 700;
  text-decoration: none;
  min-height: 44px;
}
.arrow {
  width: 22px;
  height: 22px;
  vertical-align: middle;
}
.featured-art {
  background: var(--art);
  color: #292e20;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 26px;
  overflow: hidden;
  text-decoration: none;
}
.featured-art:hover {
  color: #292e20;
}
.art-top,
.art-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
}
.art-top {
  border-bottom: 1px solid #798347;
  padding-bottom: 14px;
}
.art-bottom {
  border-top: 1px solid #798347;
  padding-top: 14px;
}
.bracket-art {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(130px, 16vw, 220px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.art-asterisk {
  color: #ad3822;
  transform-origin: 50% 45%;
  display: inline-block;
  padding-top: 36px;
}
.featured-art:hover .art-asterisk {
  animation: turn-page 800ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes turn-page {
  to {
    transform: rotate(90deg);
  }
}
.journal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 80px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 18px;
}
.section-heading h2 {
  font-size: 22px;
  letter-spacing: -0.025em;
  margin: 0;
}
.section-heading > a {
  font-size: 12px;
  white-space: nowrap;
  text-decoration: none;
}
.section-heading .arrow {
  width: 17px;
}
.post-row {
  padding: 30px 0 32px;
  border-bottom: 1px solid var(--rule);
}
.post-row h3 {
  font-size: 28px;
  line-height: 1.24;
  letter-spacing: -0.025em;
  max-width: 34ch;
  margin: 12px 0;
}
.post-row p {
  font-size: 15px;
  line-height: 1.75;
  max-width: 65ch;
  color: var(--muted);
  margin: 0 0 16px;
}
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 12px;
  color: var(--muted);
}
.post-tags a {
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-block: 3px;
}
.post-tags a:hover {
  border-color: var(--accent);
}
.author-note {
  border-top: 1px solid var(--ink);
  padding-top: 26px;
}
.author-note img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  object-position: center 24%;
  border-radius: 50%;
}
.journal-aside h2 {
  font-size: 21px;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 20px 0 12px;
}
.journal-aside p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}
.author-note > a {
  font-size: 13px;
  text-decoration: none;
}
.author-note .arrow {
  width: 18px;
}
.topics {
  margin-top: 46px;
}
.topics h2 {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink);
}
.topics > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--rule);
  padding: 10px 0;
  text-decoration: none;
  font-size: 13px;
}
.topic-count {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.animal-note {
  display: block;
  margin-top: 36px;
  text-decoration: none;
}
.animal-note img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.animal-note > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  padding-top: 12px;
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
}
.pagination a,
.pagination span {
  min-width: 42px;
  min-height: 44px;
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid var(--rule);
}
.pagination .current {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.pagination .space {
  border: 0;
}
.site-footer {
  border-top: 1px solid var(--ink);
  margin-top: 100px;
  padding: 42px 0 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
}
.site-footer .wordmark {
  font-size: 30px;
}
.site-footer p {
  font-size: 13px;
  color: var(--muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 22px;
  font-size: 13px;
}
.colophon {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  color: var(--muted);
  font-size: 11px;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}
.colophon > span:last-child {
  margin-left: auto;
}
.reading-header {
  max-width: 990px;
  padding: 48px 0 42px;
}
.back-link {
  font-size: 13px;
  color: var(--muted);
}
.reading-header h1,
.archive-heading h1 {
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 28px 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.reading-header .post-meta {
  font-size: 13px;
}
.reading-header .post-tags {
  margin-top: 16px;
}
.reading-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px) minmax(0, 1fr);
  gap: 70px;
  align-items: start;
  border-top: 1px solid var(--rule);
  padding-top: 32px;
}
.article-content {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.85;
  min-width: 0;
  overflow-wrap: break-word;
}
.article-content > :first-child {
  margin-top: 0;
}
.article-content p,
.article-content ul,
.article-content ol {
  margin: 0 0 1.4em;
}
.article-content h2,
.article-content h3,
.article-content h4 {
  font-family: var(--display);
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin: 2em 0 0.75em;
  text-wrap: balance;
  scroll-margin-top: 30px;
}
.article-content h2 {
  font-size: 32px;
}
.article-content h3 {
  font-size: 25px;
}
.article-content h4 {
  font-size: 21px;
}
.article-content a {
  color: var(--accent);
}
.article-content img {
  display: block;
  margin: 28px auto;
  max-height: 800px;
  object-fit: contain;
}
.article-content blockquote {
  margin: 30px 0;
  padding: 20px 28px;
  background: var(--panel);
  font-style: italic;
}
.article-content blockquote > :last-child {
  margin-bottom: 0;
}
.article-content hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 42px 0;
}
.article-content table {
  border-collapse: collapse;
  display: block;
  overflow: auto;
  max-width: 100%;
  font: 14px/1.7 var(--display);
  margin: 28px 0;
}
.article-content th,
.article-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}
.article-content th {
  font-weight: 700;
  background: var(--panel);
}
.article-content code,
.article-content pre {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.article-content :not(pre) > code {
  font-size: 0.82em;
  background: var(--panel);
  padding: 3px 5px;
  overflow-wrap: anywhere;
}
.article-content pre,
.article-content .highlight {
  background: var(--code);
  color: var(--code-ink);
  padding: 24px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.75;
  margin: 30px 0;
  tab-size: 4;
  border-radius: 4px;
  max-width: 100%;
}
.article-content pre code {
  background: none;
  padding: 0;
}
.article-content .highlight table {
  display: table;
  margin: 0;
  width: auto;
  max-width: none;
  overflow: visible;
  color: inherit;
  font: inherit;
}
.article-content .highlight td {
  padding: 0;
  border: 0;
}
.article-content .highlight pre {
  padding: 0;
  margin: 0;
  border-radius: 0;
  max-width: none;
  overflow: visible;
}
.article-content .highlight .gutter {
  padding-right: 22px;
  color: #959d8a;
  user-select: none;
}
.article-content .highlight .line {
  min-height: 1em;
}
.article-content .highlight figcaption {
  font: 12px var(--display);
  margin-bottom: 18px;
}
.highlight .comment,
.highlight .quote {
  color: #a1ab97;
}
.highlight .keyword,
.highlight .selector-tag,
.highlight .deletion {
  color: #f2a593;
}
.highlight .string,
.highlight .addition,
.highlight .attribute {
  color: #c4dc89;
}
.highlight .number,
.highlight .literal {
  color: #e9c685;
}
.highlight .title,
.highlight .built_in,
.highlight .function {
  color: #abd4df;
}
.article-content iframe,
.article-content video {
  max-width: 100%;
}
.contents {
  position: sticky;
  top: 32px;
  min-width: 0;
  font-size: 12px;
  padding-top: 3px;
}
.contents summary {
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.contents ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contents ol ol {
  padding-left: 14px;
  margin-top: 8px;
}
.contents li {
  margin: 0 0 10px;
  line-height: 1.5;
}
.contents a {
  color: var(--muted);
  text-decoration: none;
}
.contents a:hover {
  color: var(--accent);
}
.contents .back-to-top {
  display: inline-block;
  border-top: 1px solid var(--rule);
  margin-top: 18px;
  padding-top: 16px;
}
.contents details {
  max-height: 65vh;
  overflow: auto;
  padding-right: 10px;
}
.article-end {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  margin-top: 48px;
}
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  border-top: 1px solid var(--ink);
  padding-top: 30px;
  margin-top: 48px;
}
.post-navigation a {
  text-decoration: none;
}
.post-navigation span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 10px;
}
.post-navigation strong {
  font-size: 20px;
  line-height: 1.4;
  display: block;
}
.archive-page {
  max-width: 900px;
  margin-inline: auto;
}
.archive-heading {
  padding: 40px 0 24px;
}
.archive-heading p {
  color: var(--muted);
}
.archive-years {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  border-block: 1px solid var(--rule);
  padding: 22px 0;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.archive-years a[aria-current] {
  color: var(--accent);
  font-weight: 700;
}
.year-heading {
  font-size: 36px;
  letter-spacing: -0.03em;
  margin: 42px 0 0;
  color: var(--accent);
}
@media (min-width: 1500px) {
  .journal-intro h1 {
    font-size: 88px;
  }
}
@media (max-width: 1050px) {
  .shell {
    width: calc(100% - 56px);
  }
  .site-header {
    gap: 24px;
  }
  .site-header nav {
    gap: 20px;
  }
  .journal-intro {
    grid-template-columns: 1fr 250px;
    gap: 32px;
  }
  .journal-grid {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 42px;
  }
  .featured-copy {
    padding: 28px;
  }
  .reading-layout {
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 36px;
  }
  .bracket-art {
    font-size: 170px;
  }
  .featured h2 {
    font-size: 34px;
  }
}
@media (max-width: 760px) {
  .shell {
    width: calc(100% - 40px);
  }
  .site-header {
    flex-wrap: wrap;
    gap: 0;
    min-height: 0;
    padding-top: 24px;
  }
  .wordmark {
    font-size: 31px;
  }
  .site-header nav {
    order: 3;
    width: 100%;
    margin: 18px 0 0;
    justify-content: space-between;
    gap: 12px;
  }
  .site-header nav a {
    font-size: 13px;
    padding: 10px 0 18px;
  }
  .theme-toggle {
    margin-left: auto;
    min-height: 40px;
  }
  .journal-intro {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 38px 0 30px;
  }
  .journal-intro h1 {
    font-size: clamp(43px, 9.6vw, 70px);
  }
  .intro-note p:first-child {
    max-width: none;
    font-size: 17px;
    margin-bottom: 3px;
  }
  .intro-note p + p {
    font-size: 13px;
  }
  .featured {
    grid-template-columns: 1fr;
    margin-bottom: 46px;
  }
  .featured-copy {
    padding: 26px 24px;
  }
  .featured h2 {
    font-size: 32px;
    margin-top: 20px;
  }
  .featured-art {
    min-height: 200px;
    padding: 16px 24px;
  }
  .bracket-art {
    font-size: 130px;
    height: 125px;
  }
  .art-asterisk {
    padding-top: 27px;
  }
  .art-top,
  .art-bottom {
    font-size: 10px;
    padding-block: 5px;
  }
  .journal-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .section-heading h2 {
    font-size: 20px;
  }
  .section-heading > a {
    font-size: 11px;
  }
  .post-row h3 {
    font-size: 25px;
  }
  .journal-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .topics {
    margin-top: 0;
  }
  .topics h2 {
    margin-top: 0;
  }
  .animal-note {
    margin-top: 0;
    grid-column: 1/-1;
    max-width: 360px;
  }
  .site-footer {
    margin-top: 60px;
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 30px;
  }
  .colophon {
    grid-column: auto;
  }
  .colophon > span:last-child {
    margin-left: 0;
  }
  .footer-links {
    gap: 20px;
  }
  .reading-header {
    padding: 30px 0;
  }
  .reading-header h1 {
    font-size: 38px;
  }
  .reading-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-top: 24px;
  }
  .contents {
    position: static;
    order: -1;
    width: 100%;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 18px;
  }
  .contents details {
    max-height: 220px;
  }
  .contents .back-to-top {
    display: none;
  }
  .article-content {
    font-size: 18px;
    width: 100%;
  }
  .article-content h2 {
    font-size: 28px;
  }
  .article-content pre,
  .article-content .highlight {
    padding: 18px 14px;
    font-size: 12px;
  }
  .article-content .highlight .gutter {
    padding-right: 14px;
  }
  .post-navigation {
    gap: 24px;
  }
  .post-navigation strong {
    font-size: 17px;
  }
  .archive-heading {
    padding-top: 12px;
  }
  .archive-heading h1 {
    font-size: 45px;
  }
  .post-meta {
    gap: 6px 12px;
  }
}
@media (max-width: 380px) {
  .shell {
    width: calc(100% - 32px);
  }
  .journal-aside {
    grid-template-columns: 1fr;
  }
  .animal-note {
    grid-column: auto;
  }
  .featured h2 {
    font-size: 28px;
  }
  .section-heading {
    align-items: start;
  }
  .section-heading h2 {
    max-width: 180px;
  }
  .post-navigation {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  .site-header nav,
  .theme-toggle,
  .contents,
  .journal-aside,
  .site-footer,
  .post-navigation {
    display: none;
  }
  .shell {
    width: 100%;
  }
  .reading-layout {
    display: block;
  }
  .article-content {
    font-size: 11pt;
  }
  .reading-header h1 {
    font-size: 28pt;
  }
  :root {
    --paper: #fff;
    --ink: #000;
    --muted: #333;
  }
  a {
    color: inherit !important;
  }
  .article-content pre,
  .article-content .highlight {
    white-space: pre-wrap;
    break-inside: avoid;
  }
}
.section-heading h1 {
  font-size: 22px;
  letter-spacing: -0.025em;
  margin: 0;
}
.site-search {
  grid-column: 1/-1;
  max-width: 420px;
}
.site-search label {
  display: block;
  font-size: 13px;
  margin-bottom: 10px;
}
.site-search > div {
  display: flex;
}
.site-search input {
  min-width: 0;
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-right: 0;
  padding: 12px;
  color: var(--ink);
  font: 14px var(--display);
  caret-color: var(--accent);
}
.site-search input::placeholder {
  color: var(--muted);
}
.site-search input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.site-search button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  font-size: 13px;
}
.site-search button:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.image-zoom {
  display: block;
  border: 0;
  padding: 0;
  background: none;
  max-width: 100%;
  margin: 28px auto;
  cursor: zoom-in;
}
.image-zoom img {
  margin: 0;
}
.image-dialog {
  border: 1px solid var(--rule);
  padding: 56px 18px 18px;
  background: var(--paper);
  color: var(--ink);
  max-width: 96vw;
  max-height: 96vh;
}
.image-dialog::backdrop {
  background: rgb(0 0 0 / 85%);
}
.image-dialog img {
  display: block;
  max-height: calc(90vh - 74px);
  max-width: 90vw;
  object-fit: contain;
}
.image-close {
  position: absolute;
  right: 18px;
  top: 6px;
  background: none;
  border: 0;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 14px;
}
@media (max-width: 760px) {
  .bracket-art {
    font-size: 100px;
  }
  .art-asterisk {
    padding-top: 20px;
  }
  .section-heading h1 {
    font-size: 20px;
  }
}
