:root {
  --bg: #111315;
  --bg-elevated: #171a1d;
  --line: rgba(233, 236, 239, 0.12);
  --text: #ece7dd;
  --muted: #a9a39a;
  --accent: #d8cfbf;
  --link: #f5efe3;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  --display: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --serif: "Source Serif 4", Georgia, serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --content-width: 46rem;
  --shell-width: 72rem;
}

:root[data-theme="light"] {
  --bg: #ece7de;
  --bg-elevated: #f4efe7;
  --line: rgba(23, 21, 20, 0.14);
  --text: #171514;
  --muted: #69625c;
  --accent: #2a241f;
  --link: #171514;
  --shadow: 0 24px 80px rgba(40, 35, 29, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  line-height: 1.72;
  font-size: 1.02rem;
  transition: background-color 160ms ease, color 160ms ease;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.15em;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-shell {
  width: min(calc(100% - 2rem), var(--shell-width));
  margin: 0 auto;
  padding: 1rem 0 0.8rem;
}

.site-header,
.site-footer {
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.85rem 0 1rem;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 0.1rem;
  padding-top: 0.45rem;
  color: var(--muted);
  justify-content: center;
}

.section-label,
.entry-meta,
.post-card__meta,
.menu,
.footer-copy,
.taxonomy-card__meta {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-label,
.site-description,
.entry-meta,
.post-card__meta,
.footer-copy,
.archive-description,
.taxonomy-card__meta {
  color: var(--muted);
}

.site-title,
.site-title a {
  margin: 0;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.site-mini-mark {
  margin: 0;
  display: flex;
  align-items: center;
  min-height: 100%;
}

.site-mini-mark a {
  color: var(--text);
  text-decoration: none;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.22rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
  transform: translateY(0.34rem);
}

.site-mini-mark__initial {
  font-weight: 300;
}

.site-mini-mark__rest {
  font-weight: 300;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.primary-nav .menu,
.footer-nav .menu {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu a {
  color: var(--muted);
  text-decoration: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.98rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.header-social {
  color: var(--muted);
  text-decoration: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.98rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.menu a:hover,
.menu a:focus-visible,
.header-home-link:hover,
.header-home-link:focus-visible,
.header-social:hover,
.header-social:focus-visible {
  color: var(--text);
}

.theme-toggle {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 0.72rem 0.9rem;
  cursor: pointer;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.98rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.site-main {
  min-height: 60vh;
}

.hero,
.archive-intro,
.entry,
.home-section {
  width: min(100%, var(--content-width));
}

.home .site-main {
  min-height: calc(100vh - 8rem);
  display: flex;
  align-items: center;
  overflow: hidden;
}

body.admin-bar.home .site-main {
  min-height: calc(100vh - 8rem - 32px);
}

.home .site-header {
  border-bottom: 0;
  padding-bottom: 0.15rem;
  align-items: center;
}

.home .site-branding {
  min-width: 0;
}

.home-minimal {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: calc(100vh - 9rem);
  padding: 0 0 0.1rem;
  overflow: hidden;
}

body.admin-bar.home .home-minimal {
  min-height: calc(100vh - 9rem - 32px);
}

.home-minimal__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex: 1 1 auto;
  min-height: 100%;
}

.home-mark-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  padding-top: 0;
}

.home-mark {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2.85rem, 7.4vw, 6.2rem);
  font-weight: 300;
  line-height: 0.88;
  letter-spacing: -0.06em;
}

.home-mark__first,
.home-mark__last {
  display: inline-block;
}

.home-mark__initial {
  font-weight: 500;
}

.home-mark__rest,
.home-mark__letter {
  font-weight: 200;
}

.home-mark__last {
  margin-left: 0.18em;
  color: var(--accent);
}

.home-mark__last .home-mark__initial,
.home-mark__last .home-mark__letter {
  display: inline-block;
  transition: transform 0.5s ease;
}

.home-mark__last .home-mark__initial {
  transition-delay: 0.4s;
}

.home-mark__last .home-mark__letter:nth-child(2) {
  transition-delay: 0.3s;
}

.home-mark__last .home-mark__letter:nth-child(3) {
  transition-delay: 0.2s;
}

.home-mark__last .home-mark__letter:nth-child(4) {
  transition-delay: 0.1s;
}

.home-mark__last .home-mark__letter:nth-child(5) {
  transition-delay: 0s;
}

.home-mark:hover .home-mark__last .home-mark__initial {
  transform: translateX(0.28em);
  transition-delay: 0.4s;
}

.home-mark:hover .home-mark__last .home-mark__letter:nth-child(2) {
  transform: translateX(0.28em);
  transition-delay: 0.3s;
}

.home-mark:hover .home-mark__last .home-mark__letter:nth-child(3) {
  transform: translateX(0.28em);
  transition-delay: 0.2s;
}

.home-mark:hover .home-mark__last .home-mark__letter:nth-child(4) {
  transform: translateX(0.28em);
  transition-delay: 0.1s;
}

.home-mark:hover .home-mark__last .home-mark__letter:nth-child(5) {
  transform: translateX(0.28em);
  transition-delay: 0s;
}

.home-tagline {
  margin: 0;
  color: var(--muted);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  text-align: right;
  padding-right: 0.2rem;
}

.home-feed {
  width: min(100%, 68rem);
  margin-top: auto;
  transform: translateY(-9.8rem);
  padding-top: 0;
  padding-bottom: 0;
}

.home-feed__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.12rem 0;
}

.home-feed__title,
.home-feed__category,
.home-feed__date {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-decoration: none;
}

.home-feed__title {
  color: var(--text);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  font-weight: 300;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-feed__category,
.home-feed__date {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 300;
  white-space: nowrap;
}

.home-feed__category {
  min-width: 7rem;
  text-align: left;
}

.home-feed__date {
  min-width: 6rem;
  text-align: right;
}

.home-feed__item:hover .home-feed__title,
.home-feed__item:focus-within .home-feed__title {
  color: var(--accent);
}

:root[data-theme="light"] .home-feed__title {
  font-weight: 400;
}

:root[data-theme="light"] .home-feed__category,
:root[data-theme="light"] .home-feed__date {
  font-weight: 400;
}

.hero,
.archive-intro,
.entry-header {
  padding: 3.6rem 0 2rem;
}

.archive-intro {
  text-align: left;
}

.hero-title,
.archive-intro h1,
.entry-title {
  margin: 0.35rem 0 0.85rem;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.hero-intro,
.entry-summary,
.archive-intro p,
.editorial-note p {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--accent);
  max-width: 42rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.button-link,
.search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 0.95rem 1.15rem;
  text-decoration: none;
}

.text-link {
  align-self: center;
}

.home-section {
  padding: 1rem 0 2rem;
}

.section-heading {
  margin-bottom: 1.25rem;
}

.section-heading h3 {
  margin: 0.3rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.post-list {
  display: grid;
  gap: 1rem;
}

.post-card,
.taxonomy-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.01);
  padding: 1.25rem;
}

.post-card__meta,
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.post-card__title,
.post-card__title a {
  margin: 0.55rem 0 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.post-card__excerpt > :first-child,
.entry-content > :first-child {
  margin-top: 0;
}

.taxonomy-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.taxonomy-card {
  color: var(--text);
  text-decoration: none;
}

.taxonomy-card__name {
  display: block;
  font-size: 1.05rem;
}

.editorial-note {
  border-left: 2px solid var(--line);
  padding-left: 1rem;
}

.entry-content {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.04rem;
  line-height: 1.85;
}

.entry {
  margin-left: auto;
  margin-right: auto;
  width: min(100%, 49rem);
}

.entry--with-sidebar {
  width: min(100%, 65rem);
}

.entry-layout {
  display: block;
}

.entry-header {
  padding-top: 2.6rem;
}

.entry-meta {
  gap: 0.8rem;
  color: var(--muted);
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
}

.entry-summary {
  margin-top: 1.2rem;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  max-width: 38rem;
}

.entry-content a {
  text-decoration-thickness: 0.05em;
}

.entry-content > p:first-of-type::first-letter {
  float: left;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 4.2em;
  line-height: 0.8;
  font-weight: 300;
  margin: 0.08em 0.12em 0 0;
  color: var(--text);
}

.is-eldan-page .entry-content > p:first-of-type::first-letter {
  float: none;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  margin: 0;
}

.is-eldan-page .entry-header {
  display: none;
}

.is-eldan-page .entry-content {
  padding-top: 2.2rem;
}

.eldan-book {
  margin-top: 4rem;
  margin-bottom: 3rem;
  display: grid;
  gap: 2rem;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
}

.eldan-book__title {
  margin: 0 0 0.8rem;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.eldan-book__title a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease, opacity 160ms ease;
}

.eldan-book__title a:hover,
.eldan-book__title a:focus-visible {
  color: var(--link);
}

.eldan-book__text {
  margin: 0;
  max-width: none;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.85;
  color: var(--text);
}

.eldan-book__text p {
  color: var(--text);
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.eldan-book__content {
  display: grid;
  align-content: start;
}

.eldan-book__cover {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 0.6rem;
  height: 100%;
}

.eldan-book__cover a,
.eldan-book__cover > img {
  display: flex;
  justify-content: center;
  width: 100%;
}

.eldan-book__cover img {
  width: auto;
  max-width: 100%;
  max-height: 18rem;
  height: auto;
  display: block;
  filter: grayscale(1);
  transition: filter 180ms ease;
}

.eldan-book__cover a:hover img,
.eldan-book__cover a:focus-visible img {
  filter: grayscale(0);
}

@media (min-width: 961px) {
  .is-eldan-page .entry {
    width: min(100%, 52rem);
  }

  .is-eldan-page .entry-layout.has-sidebar {
    grid-template-columns: minmax(0, 34rem) 8.75rem;
    gap: 2.75rem;
  }

  .is-eldan-page .entry-content p,
  .is-eldan-page .entry-content ul,
  .is-eldan-page .entry-content ol,
  .is-eldan-page .entry-content blockquote,
  .is-eldan-page .entry-content h2,
  .is-eldan-page .entry-content h3,
  .is-eldan-page .entry-content h4,
  .is-eldan-page .entry-content pre {
    max-width: 34rem;
  }

  .is-eldan-page .entry-sidebar {
    padding-top: 1rem;
  }

  .is-eldan-page .eldan-book {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 1.6rem;
    padding: 1rem;
  }
}

@media (max-width: 960px) {
  .eldan-book {
    grid-template-columns: 1fr;
  }
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content pre {
  max-width: 45rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 2.6rem;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.entry-content h2 {
  font-size: clamp(1.6rem, 2.3vw, 2rem);
}

.entry-content h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
}

.entry-content h4 {
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
}

.entry-content blockquote {
  margin: 2rem 0;
  padding-left: 1rem;
  border-left: 1px solid var(--line);
  color: var(--accent);
  font-style: normal;
  font-size: 1em;
}

.entry-content code,
.entry-content pre,
.term-list,
.search-field {
  font-family: var(--mono);
}

.entry-content pre {
  padding: 1rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

.entry-content strong {
  color: var(--link);
}

.entry-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.term-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.term-list a {
  display: inline-flex;
  padding: 0;
  text-decoration: none;
  color: var(--muted);
  border: 0;
}

.entry-footer {
  width: min(100%, 45rem);
  padding-top: 2rem;
  margin-top: 2rem;
}

.entry-footer__meta {
  display: flex;
  justify-content: flex-start;
}

.search-form {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.search-field {
  min-width: 16rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}

.footer-title {
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.45rem;
}

.footer-minimal {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
}

.footer-minimal a {
  color: var(--muted);
  text-decoration: none;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.84rem;
  font-weight: 350;
  text-transform: none;
}

.footer-minimal a:hover,
.footer-minimal a:focus-visible {
  color: var(--text);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.pagination,
.nav-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.page-numbers {
  border: 1px solid var(--line);
  padding: 0.55rem 0.75rem;
  text-decoration: none;
}

.texts-list {
  width: min(100%, 68rem);
  display: grid;
  gap: 0.2rem;
  margin-top: 0.5rem;
}

.texts-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.2rem 0;
}

.texts-line__title,
.texts-line__category,
.texts-line__date {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-decoration: none;
}

.texts-line__title {
  color: var(--text);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  font-weight: 300;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.texts-line__category,
.texts-line__date {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 300;
  white-space: nowrap;
}

.texts-line__category {
  min-width: 7rem;
}

.texts-line__date {
  min-width: 6rem;
  text-align: right;
}

.texts-line:hover .texts-line__title,
.texts-line:focus-within .texts-line__title {
  color: var(--accent);
}

:root[data-theme="light"] .texts-line__title,
:root[data-theme="light"] .texts-line__category,
:root[data-theme="light"] .texts-line__date {
  font-weight: 400;
}

:root[data-theme="light"] .entry-title,
:root[data-theme="light"] .entry-summary,
:root[data-theme="light"] .entry-content,
:root[data-theme="light"] .entry-meta {
  font-weight: 400;
}

@media (min-width: 961px) {
  .entry-layout.has-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 50rem) 10.5rem;
    gap: 4.5rem;
    align-items: start;
  }

  .entry--with-sidebar .entry-header,
  .entry--with-sidebar .entry-footer {
    width: min(100%, 50rem);
  }

  .entry--with-sidebar .entry-content p,
  .entry--with-sidebar .entry-content ul,
  .entry--with-sidebar .entry-content ol,
  .entry--with-sidebar .entry-content blockquote,
  .entry--with-sidebar .entry-content h2,
  .entry--with-sidebar .entry-content h3,
  .entry--with-sidebar .entry-content h4,
  .entry--with-sidebar .entry-content pre {
    max-width: 50rem;
  }

  .entry-sidebar {
    display: grid;
    gap: 1.75rem;
    padding-top: 0.2rem;
  }

  .entry-sidebar__item img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(1);
    transition: filter 180ms ease;
  }

  .entry-sidebar__item a:hover img,
  .entry-sidebar__item a:focus-visible img {
    filter: grayscale(0);
  }
}

@media (max-width: 960px) {
  .entry-sidebar {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
    width: min(100%, 12rem);
  }

  .entry-sidebar__item img {
    width: 100%;
    height: auto;
    display: block;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(calc(100% - 1.25rem), var(--shell-width));
  }

  .site-header,
  .site-footer,
  .header-actions,
  .primary-nav .menu,
  .footer-nav .menu,
  .search-form,
  .post-navigation {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .archive-intro,
  .entry-header {
    padding-top: 2.4rem;
  }

  .home .site-main {
    min-height: auto;
    display: block;
    overflow: visible;
  }

  body.admin-bar.home .site-main {
    min-height: auto;
  }

  .home-minimal {
    min-height: auto;
    padding-top: 0.5rem;
    overflow: visible;
  }

  body.admin-bar.home .home-minimal {
    min-height: auto;
  }

  .home-minimal__inner,
  .home-mark-wrap {
    align-items: center;
    width: 100%;
  }

  .home-minimal__inner {
    justify-content: flex-start;
    gap: 2.5rem;
  }

  .home-mark {
    font-size: clamp(3rem, 17vw, 5.2rem);
  }

  .home-tagline {
    text-align: right;
  }

  .home-feed {
    width: 100%;
    transform: none;
    padding-top: 0;
    padding-bottom: 0;
  }

  .home-feed__item {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.15rem;
    padding: 0.7rem 0;
  }

  .home-feed__title {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .home-feed__category,
  .home-feed__date {
    font-size: 0.84rem;
  }

  .home-feed__category {
    min-width: 0;
  }

  .home-feed__date {
    min-width: 0;
    text-align: left;
  }

  .texts-list {
    width: 100%;
  }

  .texts-line {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.15rem;
    padding: 0.6rem 0;
  }

  .texts-line__title {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .texts-line__category,
  .texts-line__date {
    font-size: 0.84rem;
  }

  .texts-line__category,
  .texts-line__date {
    min-width: 0;
    text-align: left;
  }

  .entry-content {
    font-size: 1rem;
    line-height: 1.8;
  }

  .entry-header {
    padding-top: 2rem;
  }

  .post-navigation {
    grid-template-columns: 1fr;
  }

  .search-field {
    min-width: 0;
  }

  .footer-minimal {
    gap: 1rem;
  }
}

.photo-page {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

.is-photo-gallery-page .photo-page {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

.video-page {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

.is-video-gallery-page .video-page {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

.photo-page__fallback {
  margin-left: auto;
  margin-right: auto;
  width: min(100%, 42rem);
}

.photo-sequence {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.photo-sequence__item {
  margin: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.photo-sequence__trigger {
  display: block;
  width: min(100%, 17rem);
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.photo-sequence__item img {
  width: 100%;
  height: auto;
  display: block;
}

.video-sequence {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.video-sequence__item {
  margin: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.video-sequence__trigger {
  display: block;
  position: relative;
  width: min(100%, 17rem);
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.video-sequence__media {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(1);
  transition: filter 180ms ease;
}

.video-sequence__trigger::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 0.6rem solid transparent;
  border-bottom: 0.6rem solid transparent;
  border-left: 0.9rem solid rgba(244, 239, 231, 0.92);
  transform: translate(-40%, -50%);
  pointer-events: none;
  transition: opacity 180ms ease;
}

.video-sequence__trigger:hover .video-sequence__media,
.video-sequence__trigger:focus-visible .video-sequence__media {
  filter: grayscale(0);
}

.video-sequence__trigger:hover::after,
.video-sequence__trigger:focus-visible::after {
  opacity: 1;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.photo-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.photo-lightbox__dialog {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1rem;
  padding: 2rem;
}

.photo-lightbox__image {
  max-width: min(92vw, 1200px);
  max-height: 84vh;
  width: auto;
  height: auto;
  display: block;
}

.photo-lightbox__close {
  position: absolute;
  top: 1.8rem;
  right: 1rem;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.photo-lightbox__external {
  color: #fff;
  text-decoration: none;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 350;
}

.has-photo-lightbox {
  overflow: hidden;
}

.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.video-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.video-lightbox__dialog {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1rem;
  padding: 2rem;
}

.video-lightbox__media {
  max-width: min(92vw, 1200px);
  max-height: 84vh;
  width: auto;
  height: auto;
  display: block;
  background: #000;
}

.video-lightbox__close {
  position: absolute;
  top: 1.8rem;
  right: 1rem;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.has-video-lightbox {
  overflow: hidden;
}

@media (max-width: 760px) {
  .photo-page {
      width: 100%;
    }

  .video-page {
      width: 100%;
    }

  .is-photo-gallery-page .photo-page {
      width: 100%;
      margin-left: auto;
      margin-right: auto;
    }

  .is-video-gallery-page .video-page {
      width: 100%;
      margin-left: auto;
      margin-right: auto;
    }

  .photo-sequence {
    gap: 1.5rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .photo-sequence__trigger {
      width: min(100%, 14rem);
    }

  .video-sequence {
      gap: 1.5rem;
      padding-top: 1.5rem;
      padding-bottom: 1.5rem;
    }

  .video-sequence__trigger {
      width: min(100%, 14rem);
    }
  }
