:root {
  --brand: #cd632f;
  --brand-dark: #5b3822;
  --accent: #5c7064;
  --ink: #15171a;
  --muted: #62676e;
  --line: #dde1e5;
  --paper: #ffffff;
  --soft: #f3f5f7;
  --shell: 1180px;
  --reading: 760px;
  --radius: 0.55rem;
  --shadow: 0 12px 35px rgb(18 24 30 / 10%);
  --font: Georgia, 'Times New Roman', serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--brand-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--brand);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.025em;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--paper);
}

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

.site-header {
  position: relative;
  z-index: 20;
  background: var(--paper);
}

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

.site-header__inner {
  min-height: 5.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-header__accent {
  height: 0.3rem;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.site-brand {
  flex: 0 1 auto;
}

.site-brand .custom-logo {
  width: auto;
  max-width: min(15rem, 55vw);
  max-height: 4rem;
}

.site-brand__name {
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 850;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.primary-navigation {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.primary-navigation__list,
.footer-navigation__list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-navigation a,
.header-search {
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 750;
  text-decoration: none;
}

.primary-navigation a:hover,
.primary-navigation .current-menu-item > a {
  color: var(--brand);
}

.header-search {
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 750;
}

.menu-toggle__icon,
.menu-toggle__icon::before,
.menu-toggle__icon::after {
  width: 1.1rem;
  height: 2px;
  display: block;
  background: currentColor;
  content: '';
}

.menu-toggle__icon {
  position: relative;
}

.menu-toggle__icon::before {
  position: absolute;
  top: -0.35rem;
}

.menu-toggle__icon::after {
  position: absolute;
  top: 0.35rem;
}

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

.home-layout,
.listing-layout {
  padding-block: clamp(2rem, 5vw, 4.5rem);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--ink);
}

.section-heading h1,
.archive-header h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 3.75rem);
}

.section-heading__eyebrow,
.archive-header__label,
.content-kicker {
  margin-bottom: 0.45rem;
  color: var(--brand-dark);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.content-kicker {
  display: inline-block;
  text-decoration: none;
}

.section-heading__date {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(17rem, 0.75fr);
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.lead-story {
  min-width: 0;
}

.lead-story__image,
.content-card__image {
  display: block;
  overflow: hidden;
  background: var(--soft);
  border-radius: var(--radius);
  text-decoration: none;
}

.lead-story__image {
  aspect-ratio: 16 / 9;
  margin-bottom: 1.25rem;
}

.lead-story__image img,
.content-card__image img,
.content-card__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.lead-story:hover img,
.content-card:hover img {
  transform: scale(1.025);
}

.content-card__placeholder {
  display: block;
  background: linear-gradient(135deg, var(--soft), color-mix(in srgb, var(--brand) 15%, white));
}

.lead-story h2 {
  max-width: 20ch;
  margin: 0 0 0.85rem;
  font-size: clamp(1.8rem, 4vw, 3.35rem);
}

.lead-story h2 a,
.content-card__title a {
  color: var(--ink);
  text-decoration: none;
}

.lead-story p {
  max-width: 65ch;
  margin-bottom: 0.8rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.lead-story time,
.content-card__date {
  color: var(--muted);
  font-size: 0.82rem;
}

.lead-grid__secondary {
  display: grid;
  align-content: start;
  gap: 1.5rem;
}

.lead-grid__secondary .content-card + .content-card {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.latest-section {
  padding-top: 2.5rem;
}

.latest-section > h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.content-card {
  min-width: 0;
}

.content-card__image {
  aspect-ratio: 16 / 9;
  margin-bottom: 1rem;
}

.content-card__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.content-card__excerpt {
  margin-bottom: 0.7rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.archive-header {
  max-width: 58rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--ink);
}

.archive-header__description {
  max-width: 65ch;
  margin-top: 1rem;
  color: var(--muted);
}

.navigation.pagination {
  margin-top: 3rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-numbers {
  min-width: 2.65rem;
  min-height: 2.65rem;
  display: inline-grid;
  place-items: center;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  text-decoration: none;
}

.page-numbers.current {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--paper);
}

.article-shell,
.page-shell {
  padding-block: clamp(2.5rem, 7vw, 6rem);
}

.article {
  max-width: var(--reading);
  margin-inline: auto;
}

.article__header {
  margin-bottom: 2rem;
}

.article__header h1,
.page-content__header h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.15rem, 6vw, 4.75rem);
}

.article__summary {
  margin-bottom: 1.25rem;
  color: #42474d;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  line-height: 1.5;
}

.article__date {
  color: var(--muted);
  font-size: 0.88rem;
}

.article__cover {
  width: min(var(--shell), calc(100vw - 2rem));
  margin: 0 50% 2.5rem;
  transform: translateX(-50%);
}

.article__cover img {
  width: 100%;
  max-height: 42rem;
  object-fit: cover;
  border-radius: var(--radius);
}

.article__cover figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.entry-content {
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
}

.entry-content > * {
  max-width: var(--reading);
  margin-right: auto;
  margin-left: auto;
}

.entry-content > * + * {
  margin-top: 1.35em;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 2em;
}

.entry-content blockquote {
  padding: 0.5rem 0 0.5rem 1.25rem;
  border-left: 4px solid var(--accent);
  color: #3b4045;
  font-size: 1.2em;
}

.entry-content .alignwide {
  width: min(var(--shell), calc(100vw - 2rem));
  max-width: none;
  margin-right: 50%;
  margin-left: 50%;
  transform: translateX(-50%);
}

.article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.article__tags a {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--soft);
  text-decoration: none;
}

.post-navigation {
  max-width: var(--reading);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.post-navigation > div:last-child {
  text-align: right;
}

.post-navigation a {
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.post-navigation span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

.page-content {
  max-width: var(--reading);
  margin-inline: auto;
}

.search-form {
  max-width: 42rem;
  margin-top: 1.5rem;
}

.search-form__label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 750;
}

.search-form__row {
  display: flex;
  gap: 0.55rem;
}

.search-form__field {
  min-width: 0;
  flex: 1;
  padding: 0.75rem 0.9rem;
  border: 1px solid #aeb4ba;
  border-radius: 0.35rem;
  color: var(--ink);
  font: inherit;
}

.search-form__submit,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border: 1px solid var(--brand);
  border-radius: 0.35rem;
  background: var(--brand);
  color: var(--paper);
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.search-form__submit:hover,
.button:hover {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
  color: var(--paper);
}

.empty-state,
.error-page {
  max-width: 42rem;
  margin-inline: auto;
  padding-block: clamp(4rem, 10vw, 8rem);
  text-align: center;
}

.empty-state p,
.error-page > p:not(.error-page__code) {
  color: var(--muted);
}

.error-page__code {
  margin-bottom: 0;
  color: var(--brand);
  font-size: clamp(4rem, 15vw, 8rem);
  font-weight: 900;
  line-height: 1;
}

.error-page__actions {
  margin: 1.5rem 0 2.5rem;
}

.site-footer {
  margin-top: 3rem;
  border-top: 0.3rem solid var(--brand);
  background: var(--ink);
  color: #d9dde1;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 2rem;
  align-items: start;
  padding-block: 3rem;
}

.site-footer__name {
  margin-bottom: 0.25rem;
  color: var(--paper);
  font-size: 1.2rem;
  font-weight: 850;
}

.site-footer__tagline,
.site-footer__copyright {
  margin: 0;
  color: #aeb4ba;
  font-size: 0.85rem;
}

.footer-navigation__list {
  flex-wrap: wrap;
}

.footer-navigation a {
  color: var(--paper);
  font-size: 0.9rem;
  text-decoration: none;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .primary-navigation {
    position: absolute;
    top: calc(100% - 0.3rem);
    right: 1rem;
    left: 1rem;
    display: none;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid var(--line);
    border-top: 3px solid var(--brand);
    border-radius: 0 0 var(--radius) var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-navigation__list {
    display: grid;
    gap: 0;
  }

  .primary-navigation__list a {
    display: block;
    padding: 0.75rem 0.35rem;
    border-bottom: 1px solid var(--line);
  }

  .header-search {
    display: inline-flex;
    margin-top: 1rem;
  }

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

  .lead-grid__secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lead-grid__secondary .content-card + .content-card {
    padding-top: 0;
    border-top: 0;
  }

  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__copyright {
    grid-column: 1 / -1;
  }
}

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

  .site-header__inner {
    min-height: 4.5rem;
    gap: 1rem;
  }

  .menu-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .lead-grid__secondary,
  .content-grid,
  .post-navigation,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .lead-grid__secondary .content-card {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 1rem;
  }

  .lead-grid__secondary .content-card__image {
    margin: 0;
  }

  .lead-grid__secondary .content-card__excerpt {
    display: none;
  }

  .article__cover,
  .entry-content .alignwide {
    width: 100vw;
  }

  .article__cover img {
    border-radius: 0;
  }

  .post-navigation > div:last-child {
    text-align: left;
  }

  .search-form__row {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .post-navigation,
  .article__tags {
    display: none;
  }

  .article,
  .article__cover {
    width: 100%;
    max-width: none;
    margin: 0;
    transform: none;
  }
}

/* Identidade Gente da Gente SE: revista comunitária quente e tátil. */
:root {
  --ink: #3f2a1d;
  --muted: #725f51;
  --line: #d8c7ad;
  --paper: #f9f2e0;
  --soft: #efe2ca;
  --radius: 1.4rem;
  --shadow: 0 18px 48px rgb(91 56 34 / 12%);
}

body {
  background:
    radial-gradient(circle at 8% 12%, rgb(205 99 47 / 8%) 0 0.35rem, transparent 0.4rem),
    radial-gradient(circle at 93% 28%, rgb(92 112 100 / 8%) 0 0.3rem, transparent 0.35rem),
    var(--paper);
  background-size: 4.75rem 4.75rem, 6rem 6rem, auto;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

h1,
h2,
h3,
.site-footer__name {
  font-family: Georgia, "Times New Roman", serif;
}

.site-header {
  border-top: 0.7rem solid var(--brand);
  background: rgb(249 242 224 / 96%);
  backdrop-filter: blur(12px);
}

.site-header__bar {
  border-bottom-color: var(--line);
}

.site-header__inner {
  min-height: 7.25rem;
}

.site-header__accent {
  height: 0.35rem;
  background: linear-gradient(90deg, var(--accent) 0 34%, var(--brand) 34% 67%, var(--brand-dark) 67%);
}

.site-brand {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 0.8rem;
}

.site-brand .custom-logo-link {
  grid-row: 1 / 3;
}

.site-brand .custom-logo {
  width: 5.1rem;
  max-width: none;
  max-height: 5.1rem;
  border-radius: 50%;
}

.site-brand__descriptor {
  margin: 0;
  color: var(--brand-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 700;
}

.site-brand::after {
  grid-column: 2;
  content: "Cultura · comunidade · memória";
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.primary-navigation a,
.header-search {
  color: var(--brand-dark);
}

.header-search {
  border: 0;
  border-radius: 0.65rem;
  background: var(--brand-dark);
}

.primary-navigation .header-search {
  color: #fffaf0;
}

.primary-navigation .header-search:hover {
  background: var(--brand);
  color: #fff;
}

.home-layout,
.listing-layout {
  padding-top: clamp(2rem, 5vw, 4rem);
}

.section-heading {
  position: relative;
  overflow: hidden;
  min-height: 12rem;
  align-items: center;
  margin-bottom: 2.75rem;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: 2rem 2rem 5rem 2rem;
  background: #fffaf0;
  box-shadow: var(--shadow);
}

.section-heading::after {
  position: absolute;
  right: clamp(1rem, 5vw, 4rem);
  width: clamp(5rem, 13vw, 9rem);
  aspect-ratio: 1;
  border: clamp(1rem, 2vw, 1.5rem) solid var(--brand);
  border-right-color: var(--accent);
  border-bottom-color: var(--brand-dark);
  border-radius: 50%;
  content: "";
  opacity: 0.88;
  transform: rotate(25deg);
}

.section-heading h1,
.archive-header h1 {
  max-width: 15ch;
  color: var(--brand-dark);
  font-size: clamp(2.5rem, 6vw, 5rem);
}

.section-heading__eyebrow,
.archive-header__label,
.content-kicker {
  color: var(--brand);
}

.section-heading__date {
  position: relative;
  z-index: 1;
  max-width: 16rem;
  padding-right: clamp(5rem, 12vw, 9rem);
  color: var(--accent);
  font-weight: 800;
  text-align: right;
}

.lead-grid {
  gap: clamp(1.5rem, 4vw, 3rem);
  border-bottom-color: var(--line);
}

.lead-story {
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 2rem 2rem 4rem 2rem;
  background: #fffaf0;
}

.lead-story__image,
.content-card__image {
  border: 1px solid var(--line);
  border-radius: 1.25rem 1.25rem 3rem 1.25rem;
  background: #eddfc4;
}

.content-card__placeholder {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, var(--brand) 0 9%, transparent 9.5%),
    radial-gradient(circle at 33% 64%, var(--accent) 0 15%, transparent 15.5%),
    radial-gradient(circle at 67% 64%, var(--brand-dark) 0 15%, transparent 15.5%),
    #eddfc4;
}

.content-card__placeholder::before,
.content-card__placeholder::after {
  position: absolute;
  top: 42%;
  width: 27%;
  height: 34%;
  border: 0.55rem solid var(--brand);
  border-radius: 50%;
  content: "";
}

.content-card__placeholder::before {
  left: 30%;
  border-right-color: transparent;
  transform: rotate(-28deg);
}

.content-card__placeholder::after {
  right: 30%;
  border-color: var(--accent) transparent var(--brand-dark) var(--accent);
  transform: rotate(28deg);
}

.lead-story h2 {
  color: var(--brand-dark);
}

.lead-story h2 a,
.content-card__title a {
  color: var(--brand-dark);
}

.lead-grid__secondary .content-card {
  padding-bottom: 1.5rem;
}

.latest-section > h2 {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--brand-dark);
}

.latest-section > h2::before {
  width: 1.25rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--brand);
  content: "";
}

.content-grid .content-card {
  padding: 0 0 1.25rem;
  border-bottom: 1px solid var(--line);
}

.content-card__date,
.lead-story time,
.article__date {
  color: var(--accent);
  font-weight: 750;
}

.article,
.page-content {
  padding: clamp(1.25rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 2rem 2rem 5rem 2rem;
  background: #fffaf0;
  box-shadow: var(--shadow);
}

.article__header h1,
.page-content__header h1 {
  color: var(--brand-dark);
}

.entry-content blockquote {
  color: var(--brand-dark);
}

.article__tags a {
  background: var(--soft);
}

.site-footer {
  border-top: 0;
  background: var(--brand-dark);
}

.site-footer::before {
  display: block;
  height: 0.45rem;
  background: linear-gradient(90deg, var(--brand), var(--accent), #f9f2e0);
  content: "";
}

.site-footer__name,
.footer-navigation a {
  color: #fffaf0;
}

.site-footer__tagline,
.site-footer__copyright {
  color: #e7d8c2;
}

@media (max-width: 900px) {
  .primary-navigation {
    background: #fffaf0;
  }

  .section-heading {
    min-height: 10rem;
  }
}

@media (max-width: 600px) {
  .site-header__inner {
    min-height: 5.2rem;
  }

  .site-brand {
    grid-template-columns: auto;
  }

  .site-brand .custom-logo-link {
    grid-row: auto;
  }

  .site-brand .custom-logo {
    width: 3.65rem;
    max-height: 3.65rem;
  }

  .site-brand__descriptor,
  .site-brand::after {
    display: none;
  }

  .section-heading {
    padding: 1.5rem;
    border-radius: 1.25rem 1.25rem 3rem 1.25rem;
  }

  .section-heading::after {
    right: 1rem;
    width: 4.75rem;
    border-width: 0.8rem;
    opacity: 0.45;
  }

  .section-heading h1 {
    position: relative;
    z-index: 1;
    max-width: 10ch;
    font-size: clamp(2.35rem, 13vw, 3.6rem);
  }

  .section-heading__date {
    display: none;
  }

  .lead-story,
  .article,
  .page-content {
    border-radius: 1.25rem 1.25rem 3rem 1.25rem;
  }

  .lead-grid__secondary .content-card {
    grid-template-columns: 6rem minmax(0, 1fr);
  }
}
