:root {
  color-scheme: light;
  --paper: #f3efe7;
  --paper-deep: #e7dfd2;
  --surface: #f9f7f1;
  --ink: #20201d;
  --ink-soft: #5f5b53;
  --rule: #cfc6b8;
  --accent: #8a2e24;
  --accent-dark: #682119;
  --accent-wash: #ead8d2;
  --serif: Iowan Old Style, Palatino Linotype, Book Antiqua, Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --reading-size: 1.16rem;
  --shadow: 0 18px 45px rgba(56, 43, 27, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 75% -10%, rgba(255, 255, 255, 0.8), transparent 36rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  transform: translateY(-200%);
  border-radius: 999px;
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  min-height: 100vh;
}

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

.header-inner,
.main-inner,
.footer-inner {
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: end;
  padding: 2.15rem 0 1.35rem;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.15rem;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.nav-link {
  flex: 0 0 auto;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  text-decoration: none;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.nav-divider {
  flex: 0 0 auto;
  width: 1px;
  height: 1.3rem;
  margin: 0.55rem 0.35rem;
  background: var(--rule);
}

.intro {
  padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 6.5rem);
}

.essay-kicker {
  margin: 0 0 1.2rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.intro h1 {
  max-width: 850px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4.5rem, 10.2vw, 9rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.86;
  text-wrap: balance;
}

.intro-subtitle {
  max-width: 680px;
  margin: 1.65rem 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.6vw, 2.15rem);
  line-height: 1.2;
  text-wrap: balance;
}

.archive {
  padding: 0 0 6rem;
}

.archive-head {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.3rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--ink);
}

.archive-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.result-count {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.filters {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2.2rem;
}

.search-wrap {
  position: relative;
}

.search-wrap svg {
  position: absolute;
  top: 50%;
  left: 1rem;
  width: 1.1rem;
  transform: translateY(-50%);
  color: var(--ink-soft);
  pointer-events: none;
}

.search-input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 1rem 0.75rem 2.85rem;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: rgba(249, 247, 241, 0.62);
  color: var(--ink);
  outline: none;
}

.search-input:focus {
  border-color: var(--ink-soft);
  box-shadow: 0 0 0 3px rgba(138, 46, 36, 0.09);
}

.topic-pills {
  display: flex;
  gap: 0.45rem;
}

.topic-pill {
  min-height: 2.65rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}

.topic-pill:hover,
.topic-pill:focus-visible,
.topic-pill.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  outline: none;
}

.essay-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.essay-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  min-height: 25rem;
  overflow: hidden;
  background: var(--surface);
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: clamp(1.35rem, 3vw, 2rem);
}

.card-cover {
  display: grid;
  width: 100%;
  height: clamp(10rem, 18vw, 15rem);
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-deep);
  place-items: center;
}

.card-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.essay-card:nth-child(1),
.essay-card:nth-child(5) {
  grid-column: span 8;
}

.essay-card:hover,
.essay-card:focus-visible {
  position: relative;
  z-index: 1;
  background: #fffdf8;
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.card-topline,
.card-footer,
.essay-meta {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-topic {
  color: var(--accent);
  font-weight: 750;
}

.card-dot::before {
  content: "·";
  margin-right: 0.7rem;
}

.essay-card h3 {
  margin: 2.2rem 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.72rem, 2.7vw, 2.55rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.03;
  text-wrap: balance;
}

.essay-card p {
  max-width: 55ch;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.62;
}

.card-footer {
  justify-content: space-between;
  margin-top: auto;
  padding-top: 2rem;
}

.read-arrow {
  color: var(--accent);
  font-size: 1.2rem;
  transition: transform 160ms ease;
}

.essay-card:hover .read-arrow {
  transform: translateX(0.25rem);
}

.empty-state {
  padding: 4rem 1.5rem;
  border: 1px solid var(--rule);
  background: var(--surface);
  text-align: center;
}

.empty-state h3 {
  margin: 0 0 0.65rem;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
}

.empty-state p {
  margin: 0;
  color: var(--ink-soft);
}

.site-footer {
  border-top: 1px solid var(--rule);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0 2.2rem;
  color: var(--ink-soft);
  font-size: 0.76rem;
}

/* Página de leitura */
.reading-progress {
  position: fixed;
  z-index: 20;
  inset: 0 auto auto 0;
  width: 0;
  height: 3px;
  background: var(--accent);
}

.essay-main {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: clamp(3.8rem, 9vw, 7.5rem) 1.5rem 7rem;
}

.essay-header {
  max-width: 850px;
  margin-bottom: 4rem;
}

.essay-header h1 {
  margin: 0.65rem 0 1.6rem;
  font-family: var(--serif);
  font-size: clamp(2.75rem, 7.2vw, 5.7rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

.essay-deck {
  max-width: 670px;
  margin: 0 0 1.8rem;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.5vw, 1.42rem);
  line-height: 1.5;
}

.demo-note {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0 0 3.5rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-wash);
  color: var(--accent-dark);
  font-size: 0.82rem;
  line-height: 1.5;
}

.reading-toolbar {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.font-button {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.font-button:hover,
.font-button:focus-visible {
  border-color: var(--ink);
  background: var(--surface);
  outline: none;
}

.essay-body {
  width: min(100%, 690px);
  margin: 0 auto;
  font-family: var(--serif);
  font-size: var(--reading-size);
  line-height: 1.82;
}

.essay-body p {
  margin: 0 0 1.55em;
}

.essay-body > div {
  margin: 0 0 1.55em;
}

.essay-body p:first-child::first-letter {
  float: left;
  margin: 0.07em 0.09em 0 0;
  color: var(--accent);
  font-size: 4.35em;
  line-height: 0.77;
}

.essay-body h2 {
  margin: 2.7em 0 0.75em;
  font-size: 1.55em;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.essay-body blockquote {
  margin: 2.3em 0;
  padding: 0 0 0 1.25rem;
  border-left: 2px solid var(--accent);
  color: var(--ink-soft);
  font-size: 1.15em;
  font-style: italic;
}

.essay-body a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.essay-body figure {
  margin: 2.8em max(-5vw, -3.5rem);
}

.essay-body figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
}

.essay-body figcaption {
  max-width: 690px;
  margin: 0.75rem auto 0;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.72rem;
  line-height: 1.45;
  text-align: center;
}

.essay-body u { text-decoration-thickness: 1px; text-underline-offset: 0.12em; }

.essay-body hr {
  width: 4rem;
  margin: 3.5em auto;
  border: 0;
  border-top: 1px solid var(--accent);
}

.essay-end {
  width: min(100%, 690px);
  margin: 4.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink);
}

.essay-end a {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.15rem;
  text-underline-offset: 0.2em;
}

.essay-end-actions {
  display: flex;
  width: min(100%, 690px);
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0 auto;
  padding: 1.25rem 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}

.essay-more-link {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.06rem;
  line-height: 1.35;
  text-decoration: none;
}

.essay-more-link span {
  color: var(--accent);
}

.essay-more-link:hover,
.essay-more-link:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.25rem;
}

.essay-action-button,
.comment-toggle {
  display: inline-flex;
  min-height: 2.75rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.8125rem;
}

.essay-action-button:hover,
.essay-action-button:focus-visible {
  border-color: var(--accent-dark);
  color: var(--accent-dark);
  outline: none;
}

.share-section {
  width: min(100%, 690px);
  margin: 0 auto;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
}

.share-button {
  display: inline-flex;
  min-height: 2.4rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font: inherit;
  font-size: 0.8125rem;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.25rem;
}

.share-button:hover,
.share-button:focus-visible {
  color: var(--ink);
  outline: none;
}

.share-feedback {
  display: block;
  min-height: 0;
  margin-top: 0.35rem;
  color: var(--accent);
  font-size: 0.75rem;
}

.comments-section {
  width: min(100%, 690px);
  margin: 0 auto;
  padding: 2.4rem 0 3.25rem;
}

.comments-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.comments-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.85rem, 4vw, 2.1rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.comments-heading span,
.comment-item time {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.comments-list {
  display: grid;
  gap: 0;
}

.comments-content {
  border-top: 1px solid var(--rule);
}

.comments-section.is-empty .comments-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.1rem;
}

.comments-empty {
  margin: 0;
  padding: 1.25rem 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.5;
}

.comments-section.is-empty .comments-empty {
  padding: 0;
}

.comment-item {
  padding: 1.45rem 0;
  border-top: 1px solid var(--rule);
}

.comment-item:first-child {
  border-top: 0;
}

.comment-item header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.comment-item h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
}

.comment-item p {
  margin: 0.65rem 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

.comment-compose {
  margin-top: 1.35rem;
}

.comments-section.is-empty .comment-compose,
.comments-section.is-empty .comment-auth {
  margin-top: 0;
}

.comment-toggle {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.comment-toggle:hover,
.comment-toggle:focus-visible {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: white;
  outline: none;
}

.comment-auth {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.35rem;
}

.comment-auth p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.5;
}

.comment-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.share-section[hidden],
.comment-compose[hidden],
.comment-auth[hidden],
.comment-form[hidden] {
  display: none;
}

.comment-form label {
  display: grid;
  gap: 0.45rem;
}

.comment-form label > span {
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 700;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  outline: none;
  resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(138, 46, 36, 0.09);
}

.comment-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.15rem;
}

.comment-form-footer > span {
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.45;
}

.comment-submit {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

.comment-submit:hover,
.comment-submit:focus-visible {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  outline: none;
}

.comment-submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

.essay-site-footer {
  background: #ebe6dc;
}

.essay-footer-inner {
  display: flex;
  width: min(1080px, calc(100% - 4rem));
  min-height: 4.875rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 0 auto;
}

.essay-site-footer .home-screen,
.essay-site-footer .home-speaker {
  background: #ebe6dc;
}

.essay-footer-nav {
  display: flex;
  gap: 1.5rem;
  color: #49453f;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.essay-footer-nav a {
  color: inherit;
  text-decoration: none;
}

.essay-footer-nav a:hover,
.essay-footer-nav a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.about-main {
  padding-top: clamp(4.5rem, 10vw, 8rem);
}

.about-header {
  margin-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

.about-header h1 {
  max-width: 780px;
}

.about-body .about-lead {
  color: var(--ink);
  font-size: 1.16em;
  line-height: 1.7;
}

.about-end {
  margin-top: 5.5rem;
}

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
  }

  .site-nav {
    justify-content: flex-start;
    margin-inline: -0.55rem;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .topic-pills {
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
  }

  .essay-card,
  .essay-card:nth-child(1),
  .essay-card:nth-child(5) {
    grid-column: span 6;
  }
}

@media (max-width: 620px) {
  .header-inner,
  .main-inner,
  .footer-inner {
    width: min(100% - 2rem, 1180px);
  }

  .header-inner {
    padding-top: 1.35rem;
  }

  .intro {
    padding: 3.6rem 0 4rem;
  }

  .intro h1 {
    font-size: clamp(4rem, 20vw, 6rem);
  }

  .intro-subtitle {
    margin-top: 1.25rem;
    font-size: 1.35rem;
  }

  .archive-head {
    display: block;
  }

  .result-count {
    display: block;
    margin-top: 0.45rem;
  }

  .essay-card,
  .essay-card:nth-child(1),
  .essay-card:nth-child(5) {
    grid-column: 1 / -1;
    min-height: 22rem;
  }

  .card-cover {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .footer-inner {
    flex-direction: column;
  }

  .essay-main {
    padding: 2.5rem 1.15rem 5rem;
  }

  .essay-header h1 {
    font-size: clamp(2.8rem, 13vw, 4.3rem);
  }

  .essay-meta {
    flex-wrap: wrap;
    row-gap: 0.35rem;
  }

  .essay-body figure {
    margin-inline: 0;
  }

  .reading-toolbar span {
    margin-right: auto;
  }

  .share-actions .share-button {
    flex: 1 1 auto;
  }

  .essay-end-actions,
  .comments-section.is-empty .comments-content,
  .comment-auth {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .essay-action-button,
  .comment-toggle {
    width: 100%;
  }

  .essay-footer-inner {
    width: min(100% - 2rem, 1080px);
    min-height: 4.5rem;
  }

  .essay-footer-nav {
    gap: 1rem;
  }

  .comment-form-footer {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Página inicial — composição editorial aprovada */
.home-header .header-inner,
.reading-header .header-inner,
.home-main,
.home-footer .footer-inner {
  width: min(1080px, calc(100% - 4rem));
}

.home-header .header-inner,
.reading-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.4rem;
  padding: 1.55rem 0 1.05rem;
}

.home-brand-symbol,
.home-footer-symbol {
  position: relative;
  display: block;
  width: 2.8rem;
  height: 2rem;
  color: #252422;
  text-decoration: none;
}

.home-brand-symbol:focus-visible,
.home-footer-symbol:focus-visible {
  border-radius: 0.15rem;
  outline: 3px solid rgba(138, 46, 36, 0.16);
  outline-offset: 0.3rem;
}

.home-screen {
  position: absolute;
  top: 0.12rem;
  left: 0.06rem;
  width: 1.75rem;
  height: 1.31rem;
  border: 1.25px solid currentColor;
  border-radius: 1px;
  background: var(--paper);
  transform: rotate(-5deg);
}

.home-screen::before {
  position: absolute;
  bottom: -0.25rem;
  left: calc(50% - 0.5px);
  width: 1px;
  height: 0.25rem;
  background: currentColor;
  content: "";
}

.home-screen::after {
  position: absolute;
  bottom: -0.31rem;
  left: calc(50% - 0.28rem);
  width: 0.56rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.home-speaker {
  position: absolute;
  right: 0.06rem;
  bottom: 0.06rem;
  width: 1.44rem;
  height: 1.5rem;
  border: 1.25px solid var(--accent);
  border-radius: 1px;
  background: var(--paper);
  color: var(--accent);
  transform: rotate(5deg);
}

.home-speaker-tweeter {
  position: absolute;
  top: 0.19rem;
  left: 0.25rem;
  width: 0.25rem;
  height: 0.25rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.home-speaker-woofer {
  position: absolute;
  right: 0.19rem;
  bottom: 0.19rem;
  width: 0.88rem;
  height: 0.88rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.home-speaker-woofer::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.home-navigation {
  align-items: center;
  justify-content: flex-end;
  gap: 1.3rem;
  margin-inline: 0;
}

.home-navigation .nav-link {
  position: relative;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #49453f;
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-navigation .nav-link:hover,
.home-navigation .nav-link:focus-visible,
.home-navigation .nav-link.is-active {
  background: transparent;
  color: var(--ink);
}

.home-navigation .nav-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0.35rem;
}

.home-navigation .nav-link.is-active::after {
  position: absolute;
  right: 0;
  bottom: -1.18rem;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
}

.home-navigation .nav-divider {
  height: 0.9rem;
  margin: 0;
}

.home-main .intro {
  padding: clamp(0.9rem, 1.6vw, 1.45rem) 0 clamp(1.5rem, 2.5vw, 2.25rem);
}

.home-main .intro h1 {
  max-width: 850px;
  color: #181817;
  font-size: clamp(3.65rem, 8vw, 6.5rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.home-main .intro-subtitle {
  margin: 1.2rem 0 0;
  color: #5f5b54;
  font-size: clamp(1.12rem, 2vw, 1.5rem);
  font-style: italic;
  line-height: 1.35;
}

.home-main .archive {
  padding-bottom: 4.75rem;
}

.home-main .archive-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.9rem;
  margin: 0;
  padding: 1.75rem 0 1.05rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.archive-kicker,
.featured-meta {
  margin: 0;
  color: #762720;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-main .archive-head h2 {
  margin: 0.3rem 0 0;
  color: #181817;
  font-size: 2.12rem;
  font-weight: 400;
  line-height: 1.1;
}

.home-main .result-count {
  margin-bottom: 0.2rem;
  color: #56524c;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-main .filters {
  grid-template-columns: minmax(250px, 1fr) auto;
  gap: 1.1rem;
  margin: 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--rule);
}

.home-main .search-input {
  min-height: 2.9rem;
  border-color: #aaa196;
  background: #f8f5ee;
  color: #181817;
  font-size: 0.88rem;
}

.home-main .search-input::placeholder {
  color: #5b5750;
  opacity: 1;
}

.home-main .topic-pills {
  justify-content: flex-end;
  gap: 0.45rem;
}

.home-main .topic-pill {
  min-height: 2.65rem;
  padding: 0.58rem 0.95rem;
  border-color: #aaa196;
  color: #3f3c37;
  font-size: 0.8125rem;
}

.home-main .topic-pill:hover,
.home-main .topic-pill:focus-visible,
.home-main .topic-pill.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.featured-essay {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 290px);
  padding: 2.1rem 0 2.4rem;
  border-bottom: 1px solid var(--rule);
}

.featured-essay.landscape-feature {
  grid-template-columns: minmax(0, 0.95fr) minmax(390px, 1.05fr);
}

.featured-essay.no-cover {
  grid-template-columns: minmax(0, 760px);
}

.featured-copy {
  display: flex;
  grid-column: 1;
  grid-row: 1;
  flex-direction: column;
  justify-content: center;
  padding: 2.35rem 3.25rem 2.35rem 0.9rem;
}

.featured-essay h3 {
  margin: 1.1rem 0 1.25rem;
  color: #181817;
  font-family: var(--serif);
  font-size: clamp(2.15rem, 4.1vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.featured-essay h3 a {
  text-decoration: none;
}

.featured-essay h3 a:hover,
.featured-essay h3 a:focus-visible {
  color: var(--accent);
  outline: none;
}

.featured-summary {
  margin: 0 0 1.75rem;
  color: #5f5b54;
  font-family: var(--serif);
  font-size: 1.06rem;
  line-height: 1.65;
}

.featured-details {
  margin: -0.5rem 0 1.5rem;
  color: #615d56;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.featured-read-link {
  align-self: flex-start;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--accent);
  color: #181817;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.featured-read-link:hover,
.featured-read-link:focus-visible {
  color: var(--accent);
  outline: none;
}

.featured-cover {
  display: block;
  align-self: start;
  grid-column: 2;
  grid-row: 1;
  overflow: hidden;
  background: #24211d;
}

.featured-essay.landscape-feature .featured-cover {
  align-self: center;
}

.featured-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.more-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.9rem 0 0.9rem;
}

.more-head[hidden] {
  display: none;
}

.more-head h3 {
  margin: 0;
  color: #181817;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.1;
}

.more-count {
  color: #4d4943;
  font-size: 0.75rem;
}

.home-main .essay-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  border: 0;
  background: transparent;
}

.home-main .essay-grid.archive-masonry {
  grid-auto-rows: 1px;
  row-gap: 0;
}

.home-main .archive-card,
.home-main .archive-card:nth-child(n) {
  grid-column: auto;
  height: auto;
  min-height: 0;
  min-width: 0;
  align-self: start;
  background: #ede8de;
  box-shadow: inset 0 0 0 1px #b8b0a4;
  border-radius: 10px;
  overflow: hidden;
}

.home-main .archive-card:hover,
.home-main .archive-card:focus-visible {
  background: #f7f2e8;
}

.home-main .archive-card .card-content {
  padding: 1.625rem;
}

.archive-card-cover {
  display: block;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid #b8b0a4;
  background: var(--paper-deep);
}

.archive-card-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.home-main .archive-card.archive-card--portrait {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(95px, 0.4fr);
  column-gap: 1.25rem;
  align-items: start;
  padding-right: 1.625rem;
}

.home-main .archive-card.archive-card--portrait .card-content {
  grid-column: 1;
  grid-row: 1;
  padding: 1.625rem 0 1.625rem 1.625rem;
}

.home-main .archive-card.archive-card--portrait .archive-card-cover {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: auto;
  margin: 1.625rem 0;
  border: 0;
  background: transparent;
}

.home-main .archive-card.archive-card--portrait .archive-card-cover img {
  width: 100%;
  height: auto;
  max-height: 13.75rem;
  object-fit: contain;
  object-position: top center;
}

.home-main .archive-card.archive-card--interlude {
  min-height: 0;
  box-shadow: inset 0 0 0 1px #762720;
}

.home-main .archive-card.archive-card--interlude .card-topic {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.home-main .archive-card.archive-card--interlude .card-topic::before {
  width: 2px;
  height: 13px;
  background: #762720;
  content: "";
}

.home-main .archive-card.archive-card--interlude h3 {
  margin-bottom: 0;
  font-size: 1.6875rem;
}

.home-main .archive-card h3 {
  max-width: 830px;
  margin: 1.25rem 0 0.875rem;
  color: #181817;
  font-size: 1.875rem;
  font-weight: 400;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.home-main .archive-card p {
  max-width: 68ch;
  color: #45413b;
  font-size: 1.0625rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.home-main .archive-card .card-topline,
.home-main .archive-card .card-footer {
  color: #4d4943;
  font-size: 0.75rem;
  flex-wrap: wrap;
}

.home-main .archive-card .card-topic {
  color: #762720;
}

.home-main .archive-card .card-footer {
  margin-top: 0;
  padding-top: 1.625rem;
}

.home-main .empty-state {
  margin-top: 1.5rem;
  padding: 2.75rem 1.5rem;
  border-color: #b8b0a4;
}

.home-footer {
  background: #ebe6dc;
}

.home-footer .footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2.25rem;
  padding: 2.1rem 0 2.4rem;
}

.home-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.home-footer-symbol {
  flex: 0 0 auto;
  width: 1.95rem;
  height: 1.55rem;
}

.home-footer-symbol .home-screen {
  width: 1.28rem;
  height: 0.96rem;
}

.home-footer-symbol .home-screen::before {
  bottom: -0.2rem;
  height: 0.2rem;
}

.home-footer-symbol .home-screen::after {
  bottom: -0.25rem;
  left: calc(50% - 0.22rem);
  width: 0.44rem;
}

.home-footer-symbol .home-speaker {
  width: 1.03rem;
  height: 1.1rem;
}

.home-footer-symbol .home-speaker-tweeter {
  top: 0.12rem;
  left: 0.16rem;
  width: 0.19rem;
  height: 0.19rem;
}

.home-footer-symbol .home-speaker-woofer {
  right: 0.12rem;
  bottom: 0.12rem;
  width: 0.65rem;
  height: 0.65rem;
}

.home-footer-symbol .home-speaker-woofer::before {
  width: 0.36rem;
  height: 0.36rem;
}

.home-footer-name {
  margin: 0;
  color: #181817;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.1;
}

.home-footer-subtitle {
  margin: 0.3rem 0 0;
  color: #5c5851;
  font-family: var(--serif);
  font-size: 0.88rem;
  font-style: italic;
}

.home-footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
  color: #56524c;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-footer-links {
  display: flex;
  gap: 1.1rem;
}

.home-footer-links a {
  color: #282623;
  text-decoration: none;
}

.home-footer-links a:hover,
.home-footer-links a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

@media (max-width: 760px) {
  .home-header .header-inner,
  .reading-header .header-inner,
  .home-main,
  .home-footer .footer-inner {
    width: min(100% - 2.1rem, 1080px);
  }

  .home-header .header-inner,
  .reading-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0 0.95rem;
  }

  .home-brand-symbol {
    margin-bottom: 0;
  }

  .home-navigation {
    justify-content: flex-end;
    gap: 0.95rem;
    margin: 0;
  }

  .home-navigation .nav-link {
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .home-navigation .nav-link.is-active::after {
    bottom: -1rem;
  }

  .home-main .intro {
    padding: 3.6rem 0 1.75rem;
  }

  .home-main .intro h1 {
    font-size: clamp(3.25rem, 17vw, 4.6rem);
  }

  .home-main .intro-subtitle {
    font-size: 1.12rem;
  }

  .home-main .archive-head {
    display: none;
  }

  .home-main .filters {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding-top: 0.95rem;
    border-top: 1px solid var(--rule);
  }

  .home-main .topic-pills {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .featured-essay,
  .featured-essay.portrait-feature,
  .featured-essay.landscape-feature,
  .featured-essay.no-cover {
    grid-template-columns: minmax(0, 1fr);
    padding: 1.625rem 0 1.75rem;
  }

  .featured-copy {
    display: contents;
  }

  .featured-meta {
    grid-column: 1;
    grid-row: 1;
  }

  .featured-essay h3 {
    grid-column: 1;
    grid-row: 2;
    margin: 0.6875rem 0 1rem;
    font-size: clamp(2rem, 9.25vw, 2.25rem);
    line-height: 1.01;
  }

  .featured-cover {
    display: grid;
    grid-column: 1;
    grid-row: 3;
    width: 100%;
    min-height: 19.375rem;
    margin: 0;
    padding: 1.0625rem;
    border: 1px solid var(--rule);
    background: var(--paper-deep);
    place-items: center;
  }

  .featured-cover img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 17.25rem;
    box-shadow: 0 12px 28px rgba(33, 29, 24, 0.16);
  }

  .featured-summary {
    grid-column: 1;
    grid-row: 4;
    margin: 1rem 0 0;
    font-size: 1.125rem;
    line-height: 1.5;
  }

  .featured-foot {
    display: flex;
    grid-column: 1;
    grid-row: 5;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--rule);
  }

  .featured-details {
    margin: 0;
  }

  .more-head {
    padding-top: 1.6rem;
  }

  .home-main .essay-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
    gap: 16px;
  }

  .home-main .archive-card,
  .home-main .archive-card:nth-child(n) {
    grid-column: 1 / -1;
    min-height: 0;
  }

  .home-main .archive-card .card-content {
    padding: 1.25rem;
  }

  .home-main .archive-card h3 {
    font-size: 1.6875rem;
  }

  .home-main .archive-card.archive-card--portrait {
    grid-template-columns: minmax(0, 1fr) 90px;
    column-gap: 0.875rem;
    padding-right: 1.25rem;
  }

  .home-main .archive-card.archive-card--portrait .card-content {
    padding: 1.25rem 0 1.25rem 1.25rem;
  }

  .home-main .archive-card.archive-card--portrait .archive-card-cover {
    margin: 1.25rem 0;
  }

  .home-footer .footer-inner {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 1.75rem 0 2rem;
  }

  .home-footer-meta {
    align-items: flex-start;
  }
}

@media (max-width: 350px) {
  .featured-cover {
    min-height: 18rem;
    padding: 0.9375rem;
  }

  .featured-cover img {
    max-height: 15.875rem;
  }

  .featured-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 400px) {
  .home-main .archive-card.archive-card--portrait {
    display: flex;
    flex-direction: column;
    padding-right: 0;
  }
  .home-main .archive-card.archive-card--portrait .card-content {
    order: 0;
    padding: 1.25rem;
  }
  .home-main .archive-card.archive-card--portrait .archive-card-cover {
    order: 1;
    width: 110px;
    margin: 0 1.25rem 1.25rem;
  }
}
