@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500;
  font-optical-sizing: auto;
  font-display: swap;
  src: url("../fonts/fraunces-latin-500-650.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-optical-sizing: auto;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-400-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 650;
  font-optical-sizing: auto;
  font-display: swap;
  src: url("../fonts/fraunces-latin-500-650.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-optical-sizing: auto;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-400-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #fbf7f2;
  --paper-soft: #f3ede3;
  --ink: #201b16;
  --ink-muted: #5b5044;
  --accent: #c16a2c;
  --accent-soft: #e6b892;
  --line: #e8dfd2;
  --gh-font-heading: "IBM Plex Sans", "Helvetica Neue", "Arial", "sans-serif";
  --gh-font-body: "IBM Plex Sans", "Helvetica Neue", "Arial", "sans-serif";
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  font-family: var(--gh-font-body);
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  z-index: 0;
}

body > .site {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.nav a {
  text-decoration: none;
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: 58rem;
  margin: 0 auto;
  padding-inline: 1.5rem;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

.pagination {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.pagination a {
  color: var(--ink);
  text-decoration: none;
}

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

.mobile-menu__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
}

.mobile-menu__toggle svg,
.mobile-menu__close svg {
  width: 1.4rem;
  height: 1.4rem;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 4.5rem 1.5rem 2.5rem;
  background-color: var(--paper-soft);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mobile-menu__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 70%);
  color: inherit;
}

.mobile-menu__nav .nav {
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
}

.mobile-menu__footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(18rem, 100%);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.mobile-menu__link {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

body[data-menu-open="true"] {
  overflow: hidden;
}

body[data-menu-open="true"] .mobile-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (width >= 640px) {
  .mobile-menu {
    display: none;
  }

  .mobile-menu__toggle {
    display: none;
  }
}

.site-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-mark--sm {
  width: 1.75rem;
  height: 1.75rem;
}

.site-mark--fallback {
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgb(32 27 22 / 8%);
  background:
    radial-gradient(circle at 30% 30%, rgb(230 184 146 / 90%), transparent 55%),
    radial-gradient(circle at 70% 70%, rgb(193 106 44 / 65%), transparent 60%),
    var(--paper-soft);
}

.site-mark--fallback.site-mark--sm {
  box-shadow: 0 6px 14px rgb(32 27 22 / 6%);
}

.post-type {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0.2rem 0.6rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
  background: rgb(255 255 255 / 70%);
}

.kg-width-wide,
.kg-width-full {
  width: 100%;
}

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

@media (width >= 960px) {
  .wrap {
    padding-inline: 0;
  }
}

@media (width >= 640px) {
  .nav {
    gap: 1.25rem;
    font-size: 1rem;
  }
}
