@font-face{font-family:Inter;src:url("/assets/fonts/inter-400.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Inter;src:url("/assets/fonts/inter-500.ttf") format("truetype");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:Inter;src:url("/assets/fonts/inter-600.ttf") format("truetype");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:Inter;src:url("/assets/fonts/inter-700.ttf") format("truetype");font-weight:700;font-style:normal;font-display:swap}

:root {
  --page: #d6d6d6;
  --panel: #ededed;
  --text: #2b2b2b;
  --dark: #0a0a0a;
  --muted: #7a7a7a;
  --nav: #21252b;
  --content: 1160px;
  --article: 824px;
  --inner: 804px;
  --header-height: 210px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--page); }
body {
  margin: 0;
  background: linear-gradient(to bottom, var(--page) 0, var(--page) var(--header-height), var(--panel) var(--header-height), var(--panel) 100%);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 19px;
  line-height: 30px;
}

img, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .18s ease; }
a:hover { color: #000; }

.wrap {
  width: min(var(--content), calc(100vw - 40px));
  margin-inline: auto;
}

.site-header {
  height: var(--header-height);
  background: var(--page);
}

.header-wrap {
  width: min(var(--content), calc(100vw - 40px));
  height: var(--header-height);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand {
  display: block;
  width: 300px;
  margin-top: 45px;
  transform: translateX(-18px);
}

.brand img {
  display: block;
  width: 300px;
  height: auto;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  height: 50px;
  margin-top: 15px;
  font-size: 20px;
  line-height: 50px;
  color: var(--nav);
}

.main-nav > a,
.nav-menu > a {
  display: block;
  padding-inline: 25px;
  text-align: center;
}

.main-nav > a:first-child { width: 114px; }
.nav-menu > a { width: 142px; }
.main-nav > a[href="/reticulum/"] { width: 160px; }
.main-nav > a[href="/ueber-cactusblog/"] { width: 244px; }

.main-nav .active { color: var(--nav); }
.nav-menu { position: relative; }
.nav-menu > a::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 8px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  vertical-align: middle;
  transform: translateY(-2px);
}

.nav-menu:hover > a::after,
.nav-menu:focus-within > a::after {
  transform: translateY(-2px) rotate(180deg);
}

.dropdown {
  position: absolute;
  top: 50px;
  left: 0;
  z-index: 4;
  width: 225px;
  display: none;
  background: var(--panel);
  border-top: 1px solid rgba(33,37,43,.12);
  box-shadow: 0 12px 26px rgba(0,0,0,.14);
  line-height: 1.35;
}

.dropdown a {
  display: block;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--nav);
  background: var(--panel);
}

.dropdown a + a {
  border-top: 1px solid #d6d6d6;
}

.dropdown a:hover,
.dropdown a:focus {
  color: #000;
  background: #e4e4e4;
}

.nav-menu:hover .dropdown,
.nav-menu:focus-within .dropdown { display: block; }

.search-icon {
  position: relative;
  display: block;
  width: 40px;
  height: 80px;
}

.search-icon::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 30px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--nav);
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  left: 25px;
  top: 44px;
  width: 9px;
  height: 2px;
  background: var(--nav);
  transform: rotate(45deg);
  transform-origin: left center;
}

.mobile-nav { display: none; }

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

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 824px) 278px;
  gap: 58px;
  padding-block: 48px;
}

.archive-post {
  margin: 0 0 42px;
  padding-bottom: 20px;
}

.archive-image {
  display: block;
}

.archive-image img {
  display: block;
  width: 100%;
}

.archive-content {
  width: calc(100% - 76px);
  margin-inline: auto;
  padding-top: 38px;
  padding-bottom: 38px;
  text-align: center;
}

.archive-title {
  margin: 0 0 24px;
  color: var(--dark);
  font-size: 30px;
  line-height: normal;
  font-weight: 400;
}

.archive-excerpt {
  margin: 0 0 12px;
  color: var(--dark);
}

.read-more { color: #000; font-weight: 500; white-space: nowrap; }

.sidebar {
  min-height: 100%;
  background: var(--panel);
}

.widget {
  margin: 0 0 40px;
  color: #bababa;
  font-size: 13px;
  text-align: center;
}

.widget-title {
  margin: 0 0 20px;
  padding: 9px 0 5px;
  background: var(--page);
  color: var(--nav);
  font-size: 19px;
  line-height: normal;
  font-weight: 600;
  text-align: center;
  text-transform: none;
}

.about-image {
  display: block;
  width: 100%;
  margin-inline: auto;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: 0;
  color: #000;
  background: transparent;
}

.sidebar .social-link {
  width: 28px;
  height: 28px;
  color: #383838;
  background: #f4f4f4;
}

.social-link svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.sidebar .social-link svg {
  width: 15px;
  height: 15px;
}

.latest {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 12px;
  margin-bottom: 12px;
  text-align: left;
}

.latest img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  flex: none;
}

.latest strong {
  display: block;
  color: var(--dark);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 400;
}

.latest small {
  display: block;
  margin-top: 4px;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.4;
}

.single-main {
  padding-block: 48px;
}

.single-article {
  width: min(var(--article), 100%);
  margin-inline: auto;
}

.single-title {
  min-height: 114px;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  font-size: 38px;
  line-height: 1.5;
  font-weight: 400;
  text-align: center;
}

.feature-image {
  margin: 0 0 24px;
}

.feature-image img {
  display: block;
  width: 100%;
}

.article-body {
  margin-bottom: 40px;
  color: var(--dark);
}

.article-body.video-first {
  margin-top: 36px;
  padding-top: 10px;
}

.article-inner {
  width: min(var(--inner), 100%);
  margin-inline: auto;
}

.article-body p,
.about-card p {
  margin: 0 0 30px;
  color: var(--muted);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 19px;
  line-height: 30px;
  font-weight: 400;
}

.article-body h2,
.article-body h3 {
  width: min(var(--inner), 100%);
  margin: 42px auto 18px;
  color: var(--dark);
  font-weight: 500;
}

.article-body h2 {
  font-size: 27px;
  line-height: 1.35;
}

.article-body h3 {
  font-size: 23px;
  line-height: 1.4;
}

.article-body a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body ul,
.article-body ol {
  width: min(var(--inner), 100%);
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 19px;
  line-height: 30px;
}

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

.code-block {
  position: relative;
  width: min(var(--inner), 100%);
  margin: 0 auto 30px;
  background: #e4e4e4;
  border: 1px solid #cdcdcd;
}

.code-block pre {
  margin: 0;
  padding: 46px 20px 20px;
  overflow-x: auto;
  color: #1f1f1f;
  font-size: 15px;
  line-height: 1.55;
  white-space: pre;
}

.code-block code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

.copy-code {
  position: absolute;
  top: 9px;
  right: 9px;
  border: 1px solid #bcbcbc;
  background: #efefef;
  color: #333;
  font: inherit;
  font-size: 13px;
  line-height: 1;
  padding: 7px 9px;
  cursor: pointer;
}

.copy-code:hover {
  background: #f7f7f7;
  color: #000;
}

.article-body strong,
.about-card strong {
  font-weight: 700;
}

.article-video {
  margin: 0 0 50px;
}

.article-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.article-map {
  width: min(640px, 100%);
  margin: 0 auto 30px;
  text-align: center;
}

.article-map img {
  display: block;
  width: 100%;
}

.markdown-image {
  width: min(var(--inner), 100%);
  margin: 0 auto 30px;
}

.markdown-image img {
  display: block;
  width: 100%;
}

.about-main {
  padding: 81px 0 72px;
}

.about-card {
  width: min(560px, calc(100vw - 40px));
  margin-inline: auto;
}

.about-card h1 {
  margin: 0 0 40px;
  color: #191919;
  font-size: 35px;
  line-height: 40px;
  font-weight: 400;
  text-align: center;
}

.divider {
  border-top: 1px solid #c9c9c9;
  margin: 44px 0;
}

.donation {
  text-align: center;
}

.donation .address {
  overflow-wrap: anywhere;
}

.donation img {
  width: 150px;
  height: 150px;
}

.reticulum-main {
  padding-block: 56px 76px;
}

.reticulum-intro {
  width: min(824px, 100%);
  margin-inline: auto;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
  text-align: center;
}

.reticulum-intro h1 {
  margin: 0 0 24px;
  color: var(--dark);
  font-size: 38px;
  line-height: 1.35;
  font-weight: 400;
  text-align: center;
}

.reticulum-copy {
  width: min(680px, 100%);
  margin-inline: auto;
}

.reticulum-copy p {
  margin: 0 0 24px;
  color: var(--muted);
  text-align: left;
}

.reticulum-copy p:first-child {
  text-align: center;
  font-weight: 600;
}

.reticulum-card-grid {
  width: min(960px, 100%);
  margin: 46px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.reticulum-card {
  display: block;
  min-height: 190px;
  padding: 28px 30px;
  background: #e7e7e7;
  border-top: 1px solid #cfcfcf;
}

.reticulum-card span {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
}

.reticulum-card h2 {
  margin: 0 0 14px;
  color: var(--dark);
  font-size: 25px;
  line-height: 1.3;
  font-weight: 400;
}

.reticulum-card p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.reticulum-article .section-kicker {
  text-align: center;
}

.reticulum-guide-nav {
  width: min(var(--inner), 100%);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid #cfcfcf;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: center;
}

.reticulum-guide-nav a {
  color: var(--dark);
  font-size: 15px;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer {
  min-height: 144px;
  background: var(--panel);
  color: #6b6b6b;
  font-size: 14px;
}

.footer-wrap {
  display: block;
  padding-top: 16px;
  text-align: center;
}

.copyright {
  margin-bottom: 12px;
}

.copyright p {
  margin: 0;
}

.footer-social {
  display: flex;
  justify-content: center;
}

.footer-social .social-link {
  color: #848484;
}

@media (max-width: 1199px) {
  .home-grid {
    grid-template-columns: minmax(0, 1fr) 278px;
    gap: 40px;
  }
}

@media (max-width: 1024px) {
  .site-header {
    height: auto;
  }

  .header-wrap {
    height: auto;
    min-height: 150px;
  }

  .brand {
    width: min(300px, 70vw);
    margin-top: 36px;
    margin-bottom: 28px;
    transform: none;
  }

  .brand img { width: 100%; }
  .main-nav { display: none; }

  .mobile-nav {
    display: block;
    background: var(--page);
    border-top: 1px solid var(--page);
    border-bottom: 1px solid var(--page);
  }

  .mobile-nav summary {
    cursor: pointer;
    padding: 16px 20px;
    color: #111;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
  }

  .mobile-nav a {
    display: block;
    padding: 12px 20px;
    border-top: 1px solid var(--page);
  }

  .home-grid {
    display: block;
    padding-top: 32px;
  }

  .sidebar {
    margin-top: 32px;
  }

  .single-title {
    min-height: auto;
    padding-block: 8px 22px;
    font-size: 32px;
  }

  .reticulum-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 18px;
    line-height: 29px;
  }

  .wrap {
    width: calc(100vw - 32px);
  }

  .archive-content {
    width: 100%;
    padding-inline: 0;
  }

  .archive-title {
    font-size: 28px;
  }

  .single-main {
    padding-top: 32px;
  }

  .article-body p,
  .about-card p {
    font-size: 18px;
    line-height: 29px;
  }

  .about-main {
    padding-top: 48px;
  }

  .reticulum-main {
    padding-top: 40px;
  }

  .reticulum-intro h1 {
    font-size: 32px;
  }

  .reticulum-card {
    padding: 24px 22px;
  }

}