.tag-hero {
  padding-bottom: 5.6rem;
}

.tag-hero__dek {
  max-width: 74rem;
  margin: 0 auto;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3.4vw, 3.6rem);
  font-style: italic;
  line-height: 1.34;
}

.tag-hero__media {
  position: relative;
  overflow: hidden;
  width: min(118rem, calc(100% - 6.4rem));
  max-height: 42rem;
  margin: 4rem auto 0;
  border: 0.1rem solid var(--rule-soft);
  box-shadow: var(--shadow-paper);
}

.tag-hero__media img {
  width: 100%;
  height: 100%;
  min-height: 28rem;
  object-fit: cover;
  filter: sepia(0.14) saturate(0.86) contrast(0.96);
}

.tag-search-card {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  margin-top: 2rem;
  padding: 1.6rem;
  border: 0.1rem solid var(--rule);
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink-strong);
  font-family: var(--font-smallcaps);
  font-size: 1.2rem;
  letter-spacing: 0.24em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: var(--shadow-paper);
  transition: border-color 180ms ease, color 180ms ease;
}

.tag-search-card:focus,
.tag-search-card:hover {
  border-color: var(--accent);
  color: var(--accent-soft);
}

.tag-search-card__icon {
  width: 1.8rem;
  height: 1.8rem;
}

.tag-search-card__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.tag-latest-list {
  display: grid;
  gap: 1.4rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.tag-latest-list a {
  display: grid;
  gap: 0.6rem;
  padding-top: 1.4rem;
  border-top: 0.1rem solid var(--rule-soft);
  text-decoration: none;
}

.tag-latest-list span {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 2rem;
  font-style: italic;
  line-height: 1.18;
}

.tag-latest-list time {
  color: var(--muted);
  font-family: var(--font-smallcaps);
  font-size: 1.1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.tag-latest-list a:focus span,
.tag-latest-list a:hover span {
  color: var(--accent-soft);
}

.editorial-subscribe-notice {
  max-width: 72rem;
  margin: 5.2rem auto 0;
  padding: clamp(2.4rem, 4vw, 3.6rem);
  border: 0.1rem solid var(--rule);
  background: linear-gradient(135deg, rgba(154, 176, 120, 0.09), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow-paper);
}

.editorial-subscribe-notice__eyebrow {
  margin: 0 0 1rem;
  color: var(--muted);
  font-family: var(--font-smallcaps);
  font-size: 1.2rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.editorial-subscribe-notice__title {
  margin: 0 0 2rem;
  color: var(--ink-strong);
  font-family: var(--font-display);
  font-size: clamp(3rem, 4vw, 4.2rem);
  font-weight: 500;
  line-height: 1.08;
}

.editorial-subscribe-notice__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-bottom: 2.4rem;
}

.editorial-subscribe-notice h3 {
  margin: 0 0 1rem;
  color: var(--accent-soft);
  font-family: var(--font-smallcaps);
  font-size: 1.2rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.editorial-subscribe-notice ul {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding-left: 1.8rem;
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1.45;
}

.editorial-subscribe-notice p {
  margin: 0 0 1.4rem;
  color: var(--ink-soft);
  font-size: 1.8rem;
  line-height: 1.6;
}

.editorial-subscribe-notice__action {
  display: inline-flex;
  margin-top: 0.8rem;
  padding: 1.2rem 1.6rem;
  border: 0.1rem solid var(--accent);
  color: var(--ink-strong);
  font-family: var(--font-smallcaps);
  font-size: 1.2rem;
  letter-spacing: 0.24em;
  text-decoration: none;
  text-transform: uppercase;
}

.editorial-subscribe-notice__action:focus,
.editorial-subscribe-notice__action:hover {
  background: var(--accent);
  color: var(--bg);
}

@media (max-width: 640px) {
  .tag-hero__media {
    width: calc(100% - 3.2rem);
  }

  .editorial-subscribe-notice__grid {
    grid-template-columns: 1fr;
  }
}

.site-nav .nav-pseudointellektuelli,
.site-nav .nav-field-notes {
  display: none;
}

body.home-template .home-index {
  grid-template-columns: minmax(0, 76rem);
  justify-content: center;
}

.home-feed {
  max-width: 76rem;
}

.tag-index {
  grid-template-columns: 22rem minmax(0, 76rem) 22rem;
  justify-content: center;
}

.tag-index .home-sidebar {
  position: static;
  top: auto;
  z-index: auto;
}

.tag-tools,
.tag-latest {
  align-self: start;
}

.mobile-dock {
  display: none;
}

.blog-description {
  min-height: 1.3em;
}

@media (max-width: 1100px) {
  .tag-index {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .tag-tools {
    order: 1;
  }

  .tag-feed {
    order: 2;
  }

  .tag-latest {
    order: 3;
  }
}

@media (max-width: 900px) and (min-width: 761px) {
  .site-header__inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: min(118rem, calc(100% - 4.8rem));
    gap: 2rem;
  }

  .site-nav {
    width: auto;
    margin-left: auto;
  }

  .site-nav .nav,
  .site-nav > ul {
    flex-wrap: nowrap;
    gap: 1.6rem;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: calc(8.2rem + env(safe-area-inset-bottom));
  }

  .site-header {
    display: none;
  }

  .mobile-dock {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    display: block;
    padding: 0.8rem 1.2rem calc(0.8rem + env(safe-area-inset-bottom));
    border-top: 0.1rem solid rgba(255, 255, 255, 0.1);
    background: rgba(20, 17, 14, 0.97);
    backdrop-filter: blur(1.4rem);
  }

  .mobile-dock__bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .mobile-dock__bar a,
  .mobile-dock__bar button,
  .mobile-tag-panel__close {
    min-height: 4.8rem;
    border: 0.1rem solid rgba(255, 255, 255, 0.1);
    border-radius: 999rem;
    background: rgba(255, 255, 255, 0.035);
    color: var(--ink);
    font-family: var(--font-smallcaps);
    font-size: 1rem;
    letter-spacing: 0.18em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
  }

  .mobile-dock__bar a,
  .mobile-dock__bar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 0.7rem 0.95rem;
  }

  .mobile-dock__bar button {
    cursor: pointer;
  }

  .mobile-dock__bar button[aria-expanded="true"] {
    background: var(--accent);
    color: var(--bg);
  }

  .mobile-tag-panel[hidden] {
    display: none;
  }

  .mobile-tag-panel {
    position: fixed;
    right: 1.2rem;
    bottom: calc(7.4rem + env(safe-area-inset-bottom));
    left: 1.2rem;
    overflow: hidden;
    max-height: min(56vh, 42rem);
    border: 0.1rem solid rgba(255, 255, 255, 0.12);
    border-radius: 0.8rem;
    background: rgba(20, 17, 14, 0.97);
    box-shadow: 0 2.2rem 7rem rgba(0, 0, 0, 0.42);
  }

  .mobile-tag-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem;
    border-bottom: 0.1rem solid var(--rule-soft);
    color: var(--muted);
    font-family: var(--font-smallcaps);
    font-size: 1.1rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
  }

  .mobile-tag-panel__close {
    width: 4.4rem;
    min-height: 4.4rem;
    padding: 0;
    font-size: 1.8rem;
    letter-spacing: 0;
  }

  .mobile-tag-panel__list {
    display: grid;
    gap: 0.8rem;
    overflow-y: auto;
    max-height: calc(min(56vh, 42rem) - 6.9rem);
    padding: 1.2rem;
  }

  .mobile-tag-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.8rem;
    padding: 1.2rem 1.3rem;
    border: 0.1rem solid var(--rule-soft);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.035);
    color: var(--ink);
    text-decoration: none;
  }

  .mobile-tag-link span {
    overflow: hidden;
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-tag-link small {
    flex: 0 0 auto;
    color: var(--muted);
    font-family: var(--font-smallcaps);
    font-size: 1rem;
    letter-spacing: 0.16em;
  }

  body.home-template {
    background:
      radial-gradient(circle at 10% 0%, rgba(154, 176, 120, 0.16), transparent 28rem),
      linear-gradient(180deg, #11100d 0%, #17130f 48%, #0d0b09 100%);
  }

  .site-header__inner {
    width: calc(100% - 2.4rem);
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.2rem;
    padding: 1rem 0;
  }

  .site-mark {
    min-width: 0;
  }

  .site-mark__word {
    overflow: visible;
    max-width: 16rem;
    font-size: 2.3rem;
    line-height: 1.04;
    text-overflow: clip;
    white-space: normal;
  }

  .site-mark__dot,
  .site-mark__meta,
  .site-chronicle {
    display: none;
  }

  .site-login {
    min-height: 4.4rem;
    padding: 1.3rem 1.4rem 1.1rem;
    border: 0.1rem solid var(--rule-soft);
    border-radius: 999rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--ink);
    font-size: 1rem;
  }

  .site-nav {
    grid-column: 1 / -1;
    overflow-x: auto;
    width: calc(100% + 2.4rem);
    margin: 0 -1.2rem;
    padding: 0 1.2rem 0.2rem;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav .nav,
  .site-nav > ul {
    gap: 0.8rem;
  }

  .site-nav a {
    min-height: 4.4rem;
    padding: 1.35rem 1.4rem 1.15rem;
    border: 0.1rem solid rgba(255, 255, 255, 0.1);
    border-radius: 999rem;
    background: rgba(255, 255, 255, 0.045);
    white-space: nowrap;
  }

  .site-nav .nav-current a,
  .site-nav .active a {
    background: var(--accent);
    color: var(--bg);
    text-decoration: none;
  }

  .page-wrapper {
    overflow: hidden;
  }

  .home-hero {
    padding: 3.2rem 0 1.6rem;
    text-align: left;
  }

  .home-hero .inner {
    width: calc(100% - 2.4rem);
    max-width: none;
    padding: 2.4rem;
    border: 0.1rem solid rgba(255, 255, 255, 0.08);
    border-radius: 0.8rem;
    background:
      linear-gradient(135deg, rgba(154, 176, 120, 0.13), rgba(255, 255, 255, 0.035)),
      rgba(255, 255, 255, 0.025);
    box-shadow: 0 2.4rem 7rem rgba(0, 0, 0, 0.28);
  }

  .home-hero__eyebrow {
    margin-bottom: 1.6rem;
    letter-spacing: 0.2em;
  }

  .home-hero__title {
    margin: 0;
    max-width: 100%;
    font-family: var(--font-display);
    font-size: clamp(2.7rem, 9.4vw, 3.8rem);
    line-height: 1.02;
    overflow-wrap: break-word;
    text-wrap: balance;
  }

  .home-hero__title.blog-description {
    min-height: 1.05em;
  }

  .home-hero__dek {
    max-width: none;
    margin: 1.8rem 0 0;
    padding: 0;
    border: 0;
    color: var(--ink-soft);
    font-family: var(--font-body);
    font-size: 1.7rem;
    font-style: normal;
    letter-spacing: 0;
    line-height: 1.5;
    text-transform: none;
  }

  .home-hero .editorial-rule {
    justify-content: flex-start;
    margin-top: 2rem;
  }

  .home-feature {
    width: calc(100% - 2.4rem);
    margin: 1.2rem auto 0;
  }

  .home-feature .inner {
    overflow: hidden;
    gap: 0;
    padding: 0;
    border-radius: 0.8rem;
  }

  .home-feature__content {
    order: 2;
    padding: 2.2rem;
  }

  .home-feature__title {
    font-size: clamp(3.2rem, 12vw, 4.6rem);
  }

  .home-feature__dek {
    font-size: 1.7rem;
  }

  .home-feature__art {
    order: 1;
    aspect-ratio: 16 / 10;
    border-width: 0 0 0.1rem;
  }

  .home-feature__art::before {
    display: none;
  }

  body.home-template .home-index,
  .tag-index {
    width: calc(100% - 2.4rem);
    max-width: none;
    padding-bottom: 4rem;
  }

  .home-card {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    margin-top: 1.2rem;
    padding: 1.6rem;
    border: 0.1rem solid rgba(255, 255, 255, 0.08);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: 0 1.8rem 5rem rgba(0, 0, 0, 0.18);
  }

  .home-card__index {
    font-size: 1.1rem;
  }

  .home-card__media {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .home-card__media::before {
    display: none;
  }

  .home-card__title {
    font-size: clamp(2.8rem, 9vw, 3.8rem);
  }

  .home-card__excerpt {
    font-size: 1.6rem;
  }
}
