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

.journal-shell {
  background: #fbfbfa;
  min-height: 100vh;
  padding-top: 63px;
}

@media (min-width: 1001px) {
  .journal-page .nav .nav-inner,
  .journal-page .nav.scrolled .nav-inner {
    height: 62px;
    padding-block: 0;
  }

  .journal-page .nav-brand {
    transform: translateX(36px);
  }

  .journal-page .nav-brand img.nav-wordmark {
    height: 27px;
  }

  .journal-page .nav-links {
    transform: translateX(16px);
  }

  .journal-page .nav-cta,
  .journal-page .nav-cta:hover {
    transform: translateX(-1px);
  }
}

.journal-frame {
  margin: 0 auto;
  max-width: 978px;
  width: calc(100% - 40px);
}

.journal-hero {
  background: #050505;
  color: #fff;
  height: 314px;
  overflow: hidden;
  position: relative;
}

.journal-hero-art {
  height: 313px;
  object-fit: cover;
  object-position: right top;
  position: absolute;
  right: 0;
  top: 0;
  width: 826px;
}

.journal-hero-decoration {
  height: 313px;
  left: 0;
  object-fit: cover;
  position: absolute;
  top: 0;
  width: 220px;
}

.journal-hero-content {
  height: 314px;
  padding: 48px 0 42px;
  position: relative;
  z-index: 1;
}

.journal-kicker,
.journal-section-heading,
.journal-sidebar h2,
.journal-sidebar-kicker {
  color: #e21a22;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.journal-kicker {
  align-items: center;
  display: inline-flex;
  gap: 13px;
  letter-spacing: 0.28em;
}

.journal-hero .journal-kicker {
  color: #e9272f;
}

.journal-kicker::before {
  background: #e21a22;
  content: "";
  height: 1px;
  width: 26px;
}

.journal-hero .journal-kicker::before {
  background: #e9272f;
}

.journal-hero h1 {
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 22px 0 0;
  max-width: 690px;
}

.journal-hero h1 span,
.journal-hero h1 em {
  display: block;
}

.journal-hero h1 span {
  font-size: clamp(42px, 4vw, 56px);
  font-weight: 900;
  letter-spacing: -0.052em;
}

.journal-hero h1 em {
  color: #e21a22;
  font-family: var(--serif);
  font-size: clamp(43px, 4.25vw, 58px);
  font-weight: 400;
  letter-spacing: -0.059em;
  margin-top: 2px;
}

.journal-hero-content > p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12.2px;
  line-height: 1.6;
  margin: 23px 0 0;
  max-width: 390px;
}

.journal-index {
  padding: 24px 0 92px;
}

.journal-layout {
  align-items: start;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 314px;
}

.journal-primary {
  min-width: 0;
  padding-right: 24px;
}

.journal-search {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(10, 10, 10, 0.14);
  border-radius: 9px;
  display: flex;
  gap: 11px;
  height: 45px;
  padding: 0 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.journal-search:focus-within {
  border-color: rgba(226, 26, 34, 0.62);
  box-shadow: 0 0 0 3px rgba(226, 26, 34, 0.1);
}

.journal-search .material-symbols-rounded {
  color: #151515;
  font-size: 21px;
}

.journal-search input {
  background: transparent;
  border: 0;
  color: #111;
  font: 400 13px/1.4 var(--sans);
  min-width: 0;
  outline: 0;
  width: 100%;
}

.journal-search input::placeholder {
  color: #707070;
}

.journal-mobile-filters {
  display: none;
}

.journal-section-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 27px 0 7px;
}

.journal-section-heading small {
  color: #707070;
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.08em;
}

.story-list {
  display: flex;
  flex-direction: column;
}

.story-row {
  border-bottom: 1px solid rgba(10, 10, 10, 0.1);
  display: grid;
  gap: 21px;
  grid-template-columns: 230px minmax(0, 1fr);
  padding: 16px 0;
}

.story-row:first-child {
  padding-top: 3px;
}

.story-row:not(:first-child) {
  padding-bottom: 15px;
  padding-top: 17px;
}

.story-row:last-child {
  border-bottom: 0;
}

.story-media-link {
  align-self: start;
  aspect-ratio: 16 / 9;
  background: #f2efe9;
  border: 1px solid rgba(10, 10, 10, 0.11);
  border-radius: 8px;
  display: block;
  min-height: 0;
  overflow: hidden;
}

.story-media-link img {
  aspect-ratio: 16 / 9;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  width: 100%;
}

.story-row:hover .story-media-link img {
  transform: scale(1.025);
}

.story-copy {
  align-self: center;
  min-width: 0;
}

.story-meta {
  align-items: center;
  color: #707070;
  display: flex;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  gap: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.story-meta span + span::before {
  color: #bbb;
  content: "·";
  margin-right: 9px;
}

.story-category {
  color: #e21a22;
  font-weight: 700;
}

.story-copy h2 {
  font-size: 17px;
  letter-spacing: -0.035em;
  line-height: 1.18;
  margin: 10px 0 7px;
}

.story-copy h2 a:hover {
  color: #bf0e15;
}

.story-copy p {
  color: #6b6b6b;
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
}

.story-read-link {
  align-items: center;
  color: #e21a22;
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-top: 15px;
  text-transform: uppercase;
}

.story-read-link .material-symbols-rounded,
.journal-text-action .material-symbols-rounded {
  font-size: 14px;
  margin-left: 3px;
}

.story-read-link:hover {
  color: #a80000;
}

.journal-sidebar {
  border-left: 1px solid rgba(10, 10, 10, 0.09);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding-left: 25px;
}

.journal-sidebar-section h2,
.newsletter-card h2 {
  margin: 6px 0 9px;
}

.journal-sidebar-section > h2 {
  margin: 7px 0 9px;
}

.category-list {
  display: flex;
  flex-direction: column;
}

.category-filter {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(10, 10, 10, 0.09);
  cursor: pointer;
  display: grid;
  font-size: 12px;
  gap: 10px;
  grid-template-columns: 20px 1fr auto;
  padding: 6px 0;
  text-align: left;
  width: 100%;
}

.category-filter .material-symbols-rounded {
  font-size: 18px;
}

.category-filter small {
  color: #707070;
  font-size: 10px;
}

.category-filter:hover,
.category-filter.is-active {
  color: #e21a22;
}

.journal-text-action {
  background: transparent;
  border: 0;
  color: #e21a22;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.2;
  margin-top: 5px;
  min-height: 28px;
  padding: 8px 0;
  text-transform: uppercase;
}

.newsletter-card {
  background: #fff;
  border: 1px solid rgba(10, 10, 10, 0.12);
  border-radius: 9px;
  overflow: hidden;
  padding: 15px 14px 14px;
  position: relative;
}

.newsletter-card::after {
  background-image: url('/assets/blog/generated/featured-story-curly-brace-reference.webp');
  background-position: 56% 50%;
  background-size: 320px auto;
  content: "";
  height: 82px;
  opacity: 0.08;
  pointer-events: none;
  position: absolute;
  right: -48px;
  top: -10px;
  width: 142px;
}

.journal-sidebar-kicker {
  display: block;
  line-height: 1.1;
  position: relative;
  z-index: 1;
}

.newsletter-card h2 {
  color: #111;
  font: 800 18px/1.08 var(--sans);
  letter-spacing: -0.035em;
  position: relative;
  text-transform: none;
  z-index: 1;
}

.newsletter-card > p:not(.newsletter-status) {
  color: #707070;
  font-size: 10px;
  line-height: 1.55;
  margin: 0 0 12px;
  max-width: 35ch;
}

.newsletter-form {
  border: 1px solid rgba(10, 10, 10, 0.13);
  border-radius: 7px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 28px;
  overflow: hidden;
}

.newsletter-form:focus-within {
  border-color: #a80000;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #a80000;
}

.newsletter-form input {
  border: 0;
  font: 400 10px/1.4 var(--sans);
  min-width: 0;
  outline: 0;
  padding: 6px 10px;
}

.newsletter-form button {
  background: #0a0a0a;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0 14px;
  text-transform: uppercase;
}

.newsletter-form button:hover {
  background: #e21a22;
}

.newsletter-form button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.newsletter-trap {
  display: none;
}

.newsletter-status {
  color: #666;
  font-size: 10px;
  line-height: 1.4;
  margin: 8px 0 0;
}

.newsletter-status:empty {
  display: none;
}

.newsletter-status.is-error {
  color: #b30b12;
}

.journal-tags h2 {
  margin-bottom: 12px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-filter {
  background: #fff;
  border: 1px solid rgba(10, 10, 10, 0.12);
  border-radius: 5px;
  color: #3d3d3d;
  cursor: pointer;
  font-size: 10px;
  padding: 5px 9px;
}

.tag-filter:hover,
.tag-filter.is-active {
  border-color: #e21a22;
  color: #e21a22;
}

.blog-state {
  border-radius: 9px;
  font-size: 13px;
  margin-top: 16px;
  padding: 34px 20px;
}

.journal-search input:focus-visible,
.newsletter-form input:focus-visible {
  outline: 0;
}

@media (max-width: 900px) {
  .journal-hero::after {
    background: linear-gradient(90deg, rgba(5, 5, 5, 0.98) 0%, rgba(5, 5, 5, 0.84) 48%, rgba(5, 5, 5, 0.08) 100%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
  }

  .journal-hero-art {
    opacity: 0.58;
    right: -300px;
  }

  .journal-hero-decoration-left {
    opacity: 0.55;
  }

  .journal-hero h1 span {
    font-size: clamp(44px, 7vw, 54px);
  }

  .journal-hero h1 em {
    font-size: clamp(46px, 7.4vw, 56px);
  }

  .journal-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .story-meta {
    flex-wrap: nowrap;
    font-size: 8px;
    gap: 6px;
    letter-spacing: 0.06em;
  }

  .story-meta span + span::before {
    margin-right: 4px;
  }

  .story-row {
    grid-template-columns: 190px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .journal-shell {
    padding-top: 72px;
  }

  .journal-frame {
    width: calc(100% - 36px);
  }

  .journal-hero,
  .journal-hero-content {
    height: auto;
    min-height: 390px;
  }

  .journal-hero-art {
    opacity: 0.38;
    right: -245px;
    top: -16px;
    width: 620px;
  }

  .journal-hero-decoration-left {
    display: none;
  }

  .journal-hero-content {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 42px;
  }

  .journal-hero::after {
    background: linear-gradient(90deg, rgba(5, 5, 5, 0.94) 0%, rgba(5, 5, 5, 0.58) 72%, rgba(5, 5, 5, 0.12) 100%);
  }

  .journal-hero h1 span {
    font-size: clamp(37px, 11vw, 50px);
  }

  .journal-hero h1 em {
    font-size: clamp(39px, 11.5vw, 52px);
  }

  .journal-hero-content > p {
    font-size: 12px;
    max-width: 36ch;
  }

  .journal-index {
    padding-top: 20px;
  }

  .journal-layout {
    grid-template-columns: 1fr;
  }

  .journal-primary {
    padding-right: 0;
  }

  .journal-mobile-filters {
    display: block;
    margin-top: 14px;
  }

  .journal-mobile-filters > span {
    color: #e21a22;
    display: block;
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.13em;
    margin-bottom: 8px;
    text-transform: uppercase;
  }

  .journal-mobile-filter-list {
    display: flex;
    gap: 7px;
    margin-inline: -18px;
    overflow-x: auto;
    padding: 0 18px 4px;
    scrollbar-width: none;
  }

  .journal-mobile-filter-list::-webkit-scrollbar {
    display: none;
  }

  .journal-mobile-filter-list button {
    background: #fff;
    border: 1px solid rgba(10, 10, 10, 0.14);
    border-radius: 999px;
    color: #343434;
    flex: 0 0 auto;
    font: 600 11px/1 var(--sans);
    min-height: 34px;
    padding: 0 13px;
  }

  .journal-mobile-filter-list button.is-active {
    background: #0a0a0a;
    border-color: #0a0a0a;
    color: #fff;
  }

  .journal-sidebar {
    border-left: 0;
    border-top: 1px solid rgba(10, 10, 10, 0.1);
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 32px;
    padding: 28px 0 0;
  }

  .newsletter-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .story-row {
    gap: 14px;
    grid-template-columns: 1fr;
    padding: 18px 0 20px;
  }

  .story-media-link {
    min-height: 0;
  }

  .story-copy h2 {
    font-size: 20px;
  }

  .story-copy p {
    font-size: 13px;
  }

  .journal-sidebar {
    display: flex;
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .newsletter-form button {
    min-height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-media-link img,
  .journal-search,
  .newsletter-form button {
    transition: none;
  }
}
