/* Theme setting variants and homepage-specific adjustments. */
.site-header-centered .header-inner {
  position: relative;
  justify-content: center;
}
.site-header-centered .site-navigation {
  margin-inline: 0;
}
.site-header-centered .header-actions {
  position: absolute;
  right: 0;
}
.site-header-two-lines .header-inner {
  flex-wrap: wrap;
  row-gap: 0;
  padding-top: 16px;
}
.site-header-two-lines .site-navigation {
  flex: 0 0 100%;
  order: 4;
  margin: 0;
  padding: 14px 0 16px;
}
.site-header-two-lines .site-navigation ul {
  justify-content: center;
}
.site-header-two-lines .header-actions {
  margin-left: auto;
}
.home-intro {
  grid-template-columns: 1.05fr 0.65fr;
  align-items: end;
  gap: 72px;
}
.home-intro-copy {
  min-width: 0;
}
.home-intro-copy .intro-copy {
  margin: 36px 0 0;
  max-width: 360px;
}
.home-hero-media {
  position: relative;
  aspect-ratio: 4/5;
  margin: 0;
  background: #d9b59e;
  overflow: hidden;
}
.home-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-hero-media .placeholder-shape {
  inset: 8%;
}
.taxonomy-links {
  align-self: start;
  column-gap: 24px;
}
.taxonomy-links.taxonomy-links--1 {
  grid-template-columns: 1fr;
}
.menu-toggle span:not(.visually-hidden) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px 0;
  background: var(--ink);
}
.arrow {
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease;
}
.arrow-icon {
  display: block;
  width: 1em;
  height: 1em;
}
a:hover .arrow,
a:focus-visible .arrow,
button:hover .arrow,
button:focus-visible .arrow {
  transform: translate(3px, -3px);
}
.has-scroll-animation .scroll-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.55s ease,
    transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.has-scroll-animation .scroll-reveal.is-visible {
  opacity: 1;
  transform: none;
}
.has-scroll-animation .post-card:nth-child(2),
.has-scroll-animation .taxonomy-links a:nth-child(2) {
  transition-delay: 0.06s;
}
.has-scroll-animation .post-card:nth-child(3),
.has-scroll-animation .taxonomy-links a:nth-child(3) {
  transition-delay: 0.12s;
}
.has-scroll-animation .post-card:nth-child(4),
.has-scroll-animation .taxonomy-links a:nth-child(4) {
  transition-delay: 0.18s;
}
@media (prefers-reduced-motion: reduce) {
  .has-scroll-animation .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .has-scroll-animation .post-card:nth-child(n),
  .has-scroll-animation .taxonomy-links a:nth-child(n) {
    transition-delay: 0;
  }
  .arrow {
    transition: none;
  }
}
.site-footer-compact {
  padding-top: 28px;
}
.site-footer-compact .footer-grid {
  padding-bottom: 35px;
  gap: 35px;
}
.site-footer-compact .footer-bottom {
  padding-bottom: 18px;
}
.site-footer-compact .footer-grid p {
  margin-top: 6px;
}
.site-footer-compact .footer-brand {
  margin-bottom: 10px;
}
.site-footer-centered {
  text-align: center;
}
.site-footer-centered .footer-grid {
  grid-template-columns: 1fr;
  padding-bottom: 55px;
  justify-items: center;
}
.site-footer-centered .footer-grid p {
  margin-inline: auto;
}
.site-footer-centered .footer-grid ul {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.site-footer-centered .footer-bottom {
  justify-content: center;
  gap: 20px;
}
.home-feed-dense .post-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 16px;
}
.home-feed-dense .card-title {
  font-size: clamp(22px, 2vw, 30px);
}
.post-focused .post-header {
  padding-top: 56px;
  padding-bottom: 34px;
}
.post-focused .post-header h1 {
  font-size: clamp(44px, 6vw, 88px);
  max-width: 820px;
}
.post-focused .post-layout {
  grid-template-columns: 170px minmax(0, 760px);
  gap: 48px;
}
.post-focused .post-content {
  font-size: 17px;
}
.post-focused .post-cover {
  max-height: 520px;
  margin-bottom: 48px;
}
@media (max-width: 1000px) {
  .home-feed-dense .post-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 800px) {
  .home-feed-dense .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .post-focused .post-layout {
    display: block;
  }
  .post-focused .post-header h1 {
    font-size: clamp(44px, 10vw, 72px);
  }
}
@media (max-width: 500px) {
  .home-intro {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .home-hero-media {
    aspect-ratio: 1.2;
  }
  .home-feed-dense .post-grid {
    grid-template-columns: 1fr;
  }
}

/* Accessible focus and complete Koenig card coverage. */
:where(a, button, input, textarea, select, [tabindex="0"]):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.post-content {
  overflow-wrap: anywhere;
}
.post-content p {
  margin: 0 0 1.5em;
}
.post-content a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.post-content ul,
.post-content ol {
  padding-left: 1.4em;
  margin: 0 0 1.5em;
}
.post-content li + li {
  margin-top: 0.45em;
}
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  margin: 2em 0 0.65em;
}
.post-content h1 {
  font-size: clamp(38px, 5vw, 64px);
}
.post-content h4 {
  font-size: 24px;
}
.post-content h5,
.post-content h6 {
  font-size: 18px;
  letter-spacing: -0.02em;
}
.post-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 3em 0;
}
.post-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 15px;
}
.post-content th,
.post-content td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}
.post-content th {
  font-weight: 700;
  background: rgba(28, 28, 26, 0.05);
}
.post-content code {
  font-size: 0.88em;
  background: rgba(28, 28, 26, 0.08);
  padding: 0.15em 0.35em;
  border-radius: 3px;
}
.post-content pre code {
  background: none;
  padding: 0;
}
.post-content figure {
  margin: 2.2em 0;
}
.post-content figure img {
  display: block;
  width: 100%;
}
.post-content figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 9px;
}
.post-content iframe,
.post-content video,
.post-content audio {
  max-width: 100%;
}
.post-content video {
  width: 100%;
  height: auto;
}
.post-content audio {
  width: 100%;
  margin: 1em 0;
}
.post-content .kg-gallery-card,
.post-content .kg-image-card,
.post-content .kg-video-card,
.post-content .kg-audio-card,
.post-content .kg-embed-card,
.post-content .kg-bookmark-card,
.post-content .kg-button-card,
.post-content .kg-signup-card {
  margin: 2.5em 0;
}
.post-content .kg-gallery-card img {
  height: auto;
}
.post-content .kg-bookmark-card a {
  text-decoration: none;
}
.post-content .kg-bookmark-container {
  border: 1px solid var(--line);
  background: rgba(28, 28, 26, 0.035);
}
.post-content .kg-button-card {
  text-align: center;
}
.post-content .kg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  padding: 13px 20px;
  text-decoration: none;
}
.post-content .kg-signup-card {
  border: 1px solid var(--line);
  padding: 28px;
  background: rgba(28, 28, 26, 0.035);
}
.post-content .kg-signup-card input {
  max-width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 10px;
}
/* Additional editor content and Koenig card coverage. */
.post-content dl {
  margin: 0 0 1.5em;
}
.post-content dt {
  font-weight: 700;
}
.post-content dd {
  margin: 0 0 0.8em 1.4em;
}
.post-content mark {
  background: color-mix(in srgb, var(--accent) 28%, transparent);
  color: inherit;
  padding: 0.05em 0.2em;
}
.post-content kbd {
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 3px;
  padding: 0.1em 0.35em;
  font-family: var(--sans);
  font-size: 0.8em;
}
.post-content sub,
.post-content sup {
  line-height: 0;
}
.post-content details {
  border-block: 1px solid var(--line);
  margin: 2em 0;
  padding: 1em 0;
}
.post-content summary {
  cursor: pointer;
  font-weight: 700;
}
.post-content .kg-code-card pre,
.post-content .kg-code-card code {
  background: #232421;
  color: #fff;
}
.post-content .kg-code-card pre {
  margin: 0;
  border-radius: var(--radius);
}
.post-content .kg-callout-card,
.post-content .kg-toggle-card,
.post-content .kg-file-card,
.post-content .kg-product-card,
.post-content .kg-header-card,
.post-content .kg-cta-card {
  border: 1px solid var(--line);
  margin: 2.5em 0;
  padding: 24px;
  background: rgba(28, 28, 26, 0.035);
}
.post-content .kg-callout-card {
  border-left: 4px solid var(--accent);
}
.post-content .kg-toggle-card {
  padding: 0 20px;
}
.post-content .kg-toggle-heading {
  padding: 20px 0;
  font-weight: 700;
}
.post-content .kg-toggle-content {
  padding: 0 0 20px;
}
.post-content .kg-file-card a,
.post-content .kg-product-card a,
.post-content .kg-cta-card a {
  text-decoration: none;
}
.post-content .kg-file-card-icon {
  color: var(--accent);
}
.post-content .kg-header-card {
  min-height: 260px;
  display: flex;
  align-items: end;
  color: var(--paper);
  background: var(--ink);
}
.post-content .kg-header-card h2,
.post-content .kg-header-card h3 {
  color: inherit;
}
.post-content .kg-gallery-container {
  display: grid;
  gap: 12px;
}
.post-content .kg-gallery-row {
  display: flex;
  gap: 12px;
}
.post-content .kg-gallery-image {
  min-width: 0;
  flex: 1;
}
.post-content .kg-gallery-image img {
  height: 100%;
  object-fit: cover;
}
.post-content .kg-video-card video,
.post-content .kg-audio-card audio,
.post-content .kg-embed-card iframe {
  display: block;
  width: 100%;
}
.post-content .kg-image-card figcaption,
.post-content .kg-gallery-card figcaption,
.post-content .kg-video-card figcaption {
  text-align: center;
}
.post-comments {
  max-width: 900px;
  margin-top: 100px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.private-page {
  min-height: 55vh;
}
.site-footer a:focus-visible,
.site-navigation a:focus-visible {
  outline-offset: 6px;
}
@media (max-width: 800px) {
  .post-content .kg-width-wide {
    width: 100%;
    margin-left: 0;
  }
  .post-content .kg-bookmark-container {
    display: block;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .post-content * {
    scroll-behavior: auto;
  }
}
.about-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: end;
  padding-top: 96px;
  padding-bottom: 78px;
  border-bottom: 1px solid var(--ink);
}
.about-hero h1 {
  font-family: var(--display);
  font-size: clamp(72px, 12vw, 190px);
  line-height: 0.82;
  letter-spacing: -0.09em;
  margin: 0;
  max-width: 900px;
}
.about-hero__lead {
  max-width: 390px;
  padding-bottom: 8px;
}
.about-hero__lead p {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0;
}
.about-media {
  position: relative;
  aspect-ratio: 2.2;
  margin-top: 44px;
  margin-bottom: 92px;
  overflow: hidden;
  background: #d9b59e;
}
.about-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-media figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: var(--paper);
  color: var(--ink);
  padding: 7px 10px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.about-media--placeholder {
  display: grid;
  place-items: center;
}
.about-media--placeholder .placeholder-shape {
  inset: 12% 26%;
  transform: rotate(-5deg);
}
.about-media__label {
  position: relative;
  background: var(--paper);
  padding: 10px 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.about-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 680px);
  justify-content: center;
  gap: 70px;
  padding-bottom: 110px;
}
.about-aside {
  border-top: 1px solid var(--ink);
  padding-top: 14px;
  font-size: 12px;
  color: var(--muted);
}
.about-aside p:last-child {
  max-width: 160px;
}
.about-content {
  min-width: 0;
}
.about-content > p:first-child {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.15;
}
.about-content h3 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 64px;
}
.about-content h3::before {
  content: "";
  width: 30px;
  height: 6px;
  background: var(--accent);
  border-radius: 99px;
  flex: 0 0 auto;
}
.about-cta {
  border-top: 1px solid var(--ink);
  padding-top: 24px;
  padding-bottom: 110px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.about-cta h2 {
  font-family: var(--display);
  font-size: clamp(42px, 6vw, 84px);
  letter-spacing: -0.08em;
  line-height: 0.9;
  margin: 0;
}
.about-cta > div:last-child {
  max-width: 360px;
  color: var(--muted);
  font-size: 18px;
}
@media (max-width: 800px) {
  .about-hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 60px;
    padding-bottom: 56px;
  }
  .about-hero h1 {
    font-size: clamp(72px, 20vw, 120px);
  }
  .about-hero__lead {
    max-width: 480px;
  }
  .about-media {
    aspect-ratio: 1.35;
    margin-top: 24px;
    margin-bottom: 64px;
  }
  .about-layout {
    display: block;
    padding-bottom: 75px;
  }
  .about-aside {
    margin-bottom: 42px;
  }
  .about-aside p:last-child {
    max-width: 280px;
  }
  .about-cta {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-bottom: 75px;
  }
}
