:root {
  --paper: #f5f1e8;
  --paper-2: #ebe5da;
  --white: #fffdf8;
  --ink: #1d1d1b;
  --muted: #6a675f;
  --line: #c8c0b4;
  --soft-line: #d9d1c5;
  --max: 1180px;
  --sans: Arial, Helvetica, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  line-height: 1.55;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; }
code { font-size: .9em; }

.top-note {
  padding: .5rem 1rem;
  background: var(--ink);
  color: #f7f4ee;
  text-align: center;
  font: 700 .7rem/1.2 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.15rem 1.5rem 1.35rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}
.kicker,
.eyebrow {
  font: 700 .7rem var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.masthead {
  display: inline-block;
  margin-top: .5rem;
  text-decoration: none;
  color: var(--ink);
  font-family: Impact, "Arial Black", var(--sans);
  font-size: clamp(2.6rem, 6vw + 1rem, 6.2rem);
  font-weight: 900;
  line-height: .82;
  letter-spacing: .035em;
  transform: scaleX(.96);
  transform-origin: left bottom;
}
.subhead {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: .98rem;
  text-align: right;
}
.nav-wrap { border-top: 1px solid var(--line); }
.primary-nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}
.nav-links a,
.search-toggle {
  display: block;
  padding: 1rem .9rem;
  border: 0;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  font: 700 .75rem var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.nav-links a:hover,
.nav-links a:focus-visible,
.search-toggle:hover,
.search-toggle:focus-visible { background: var(--paper-2); }

.search-panel {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid var(--line);
}
.search-panel label {
  display: block;
  margin-bottom: .4rem;
  color: var(--muted);
  font: 700 .7rem var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.search-row { display: grid; grid-template-columns: 1fr auto; gap: .6rem; }
.search-row input {
  width: 100%;
  padding: .78rem .9rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 0;
}
.search-row button {
  border: 1px solid var(--ink);
  background: transparent;
  padding: .75rem 1rem;
  cursor: pointer;
  font: 700 .72rem var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.search-results { margin-top: .8rem; }
.search-result {
  padding: .65rem 0;
  border-top: 1px solid var(--soft-line);
  font-size: .94rem;
}
.search-result button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.2rem 1.5rem 4.7rem;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 4rem;
  align-items: center;
}
h1 {
  margin: .7rem 0 1.1rem;
  font-size: clamp(2.75rem, 5vw, 4.9rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.035em;
}
.hero-copy > p {
  max-width: 660px;
  color: #3a3936;
  font-size: 1.12rem;
}
blockquote {
  max-width: 650px;
  margin: 2rem 0 2.1rem;
  padding: .2rem 0 .2rem 1.2rem;
  border-left: 3px solid var(--ink);
  font-size: clamp(1.05rem, 1rem + .6vw, 1.22rem);
  font-style: italic;
}
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn {
  display: inline-block;
  padding: .88rem 1.15rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  text-decoration: none;
  font: 700 .73rem var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.btn.secondary { background: transparent; color: var(--ink); }
.btn:hover { opacity: .82; }
.hero-cover {
  max-width: 370px;
  margin: 0;
  justify-self: end;
  position: relative;
}
.hero-cover img {
  width: 100%;
  display: block;
  border: 1px solid #a9a49b;
  background: white;
  box-shadow: 14px 18px 0 var(--paper-2);
  filter: grayscale(1);
}
.hero-cover figcaption {
  position: absolute;
  right: -1.3rem;
  bottom: 2rem;
  padding: .58rem .72rem;
  background: var(--ink);
  color: white;
  font: 700 .66rem var(--sans);
  letter-spacing: .11em;
  text-transform: uppercase;
}

.archive-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.archive,
.directory,
.about {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.archive { padding-top: 4rem; padding-bottom: 5rem; }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.2rem;
}
.section-head.compact { margin-bottom: 1.7rem; }
.section-head h2,
.about h2 {
  margin: .35rem 0 0;
  font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -.02em;
}
.section-head p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
}
.archive-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.25rem;
  align-items: start;
}
/* itens de grid não encolhem abaixo do conteúdo sem isto (a faixa de anos estourava a página) */
.archive-shell > * { min-width: 0; }
.year-nav {
  position: sticky;
  top: 1rem;
  border: 1px solid var(--line);
  background: var(--paper);
}
.year-nav-title {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 700 .7rem var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.year-list { margin: 0; padding: 0; list-style: none; }
.year-list button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .72rem 1.1rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: 700 .82rem var(--sans);
  letter-spacing: .07em;
}
.year-list button:hover,
.year-list button.active { background: var(--ink); color: white; }
.year-list small { font-weight: 400; opacity: .7; }
.month-menu { padding: .9rem 1rem 1rem; }
.month-menu button {
  width: 100%;
  display: block;
  padding: .45rem .2rem;
  border: 0;
  border-bottom: 1px dotted #cfc7ba;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: var(--serif);
  font-size: .93rem;
}
.month-menu button:hover { font-weight: 700; }
.empty-note { padding: .35rem .1rem; color: var(--muted); font-size: .9rem; }
.year-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.year-title { margin: 0; font-size: 1.9rem; font-weight: 500; }
.year-meta {
  color: var(--muted);
  font: 600 .7rem var(--sans);
  letter-spacing: .11em;
  text-transform: uppercase;
}
.issue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.issue-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--paper);
}
.issue-image {
  aspect-ratio: 3 / 4.4;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #ddd;
}
.issue-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: grayscale(1);
}
.issue-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.1rem 1.2rem;
}
.issue-date {
  color: var(--muted);
  font: 700 .67rem var(--sans);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.issue-copy h4 {
  margin: .3rem 0 .35rem;
  font-size: 1.37rem;
  font-weight: 500;
  line-height: 1.13;
}
.issue-copy p {
  flex: 1;
  margin: .2rem 0 1.05rem;
  color: #55524d;
  font-size: .92rem;
}
.text-link {
  align-self: flex-start;
  padding: 0 0 .12rem;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: none;
  cursor: pointer;
  font: 700 .7rem var(--sans);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.issue-detail {
  margin-top: 2.2rem;
  padding-top: 1.7rem;
  border-top: 3px solid var(--ink);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
}
.detail-cover img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  filter: grayscale(1);
}
.detail-label {
  color: var(--muted);
  font: 700 .68rem var(--sans);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.detail h3 {
  margin: .2rem 0 .45rem;
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 500;
}
.detail-theme { margin: 0 0 1rem; color: var(--muted); font-style: italic; }
.detail-actions { margin: .9rem 0 1.35rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.detail-actions a {
  padding: .55rem .75rem;
  border: 1px solid var(--ink);
  text-decoration: none;
  font: 700 .67rem var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.detail-actions a:hover { background: var(--ink); color: white; }
.article-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.article-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  padding: .72rem 0;
  border-bottom: 1px solid var(--line);
}
.article-title { font-weight: 700; }
.article-title a { text-underline-offset: .17em; }
.article-author { color: var(--muted); text-align: right; }
.article-page { color: var(--muted); font-size: .86rem; white-space: nowrap; }

.directory { padding-top: 4rem; padding-bottom: 4.5rem; }
.directory-alt {
  max-width: none;
  /* % usa a largura do body (sem a barra de rolagem), evitando rolagem horizontal */
  padding-left: max(1.5rem, calc((100% - var(--max)) / 2 + 1.5rem));
  padding-right: max(1.5rem, calc((100% - var(--max)) / 2 + 1.5rem));
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pill-grid { display: flex; flex-wrap: wrap; gap: .55rem; }
.pill {
  padding: .5rem .7rem;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: .9rem;
}
.pill button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--serif);
}
.pill button:hover { text-decoration: underline; text-underline-offset: .15em; }

.about {
  padding-top: 4.6rem;
  padding-bottom: 4.8rem;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 4rem;
}
.about p { margin-top: 0; color: #494742; }
.design-note {
  margin-top: 1.5rem;
  padding: 1.35rem 1.4rem;
  border-left: 3px solid var(--ink);
  background: var(--paper-2);
  font-size: .94rem;
}

footer { border-top: 1px solid var(--line); background: var(--ink); color: #f5f1e8; }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.4rem 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
}
.footer-mark {
  font-family: Impact, "Arial Black", var(--sans);
  font-size: 1.9rem;
  letter-spacing: .04em;
}
.footer-small {
  max-width: 580px;
  color: #c9c4ba;
  text-align: right;
  font: 400 .74rem var(--sans);
}

/* Reading view */
.article-page-main {
  max-width: 840px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}
.article-full {
  background: var(--white);
  padding: 3rem;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.article-title {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  line-height: 1.22;
}
.article-author-lead {
  font-style: italic;
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}
.article-body, .article-summary {
  font-size: 1.15rem;
  line-height: 1.85;
  word-break: break-word;
}
.article-body p, .article-summary p {
  margin-bottom: 1.5rem;
}
.article-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border-radius: 4px;
  border: 1px solid var(--soft-line);
}
.article-actions-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* ---------- Responsivo ---------- */

/* Notebooks e tablets em paisagem */
@media (max-width: 1100px) {
  .hero { gap: 2.5rem; }
  .archive-shell { grid-template-columns: 200px 1fr; gap: 1.75rem; }
  .issue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { gap: 2.5rem; }
}

/* Tablets */
@media (max-width: 900px) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: 1rem; padding-top: 1.75rem; }
  .subhead { text-align: left; }
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 3rem; padding-bottom: 3.5rem; }
  .hero-cover { justify-self: start; max-width: 320px; }
  .archive { padding-top: 3rem; padding-bottom: 3.5rem; }
  .section-head { gap: 1rem; }
  .archive-shell { grid-template-columns: 1fr; gap: 1.5rem; }
  .year-nav { position: static; }
  .year-list {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    border-bottom: 1px solid var(--line);
  }
  .year-list li { flex: 0 0 auto; min-width: 84px; scroll-snap-align: start; }
  .year-list button {
    min-height: 44px;
    gap: .5rem;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    white-space: nowrap;
  }
  .month-menu { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
  .month-menu button { width: auto; min-height: 40px; border: 0; }
  .issue-detail { grid-template-columns: 180px 1fr; gap: 1.5rem; }
  .directory { padding-top: 3rem; padding-bottom: 3.5rem; }
  .about { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .article-full { padding: 2rem 1.5rem; }
}

/* Celulares */
@media (max-width: 650px) {
  .top-note { letter-spacing: .1em; }
  .header-inner { padding: 1.4rem 1rem 1rem; }
  .subhead { font-size: .92rem; }

  .primary-nav { flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
  .nav-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 .5rem;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links li { flex: 0 0 auto; }
  .nav-links a { padding: .9rem .65rem; white-space: nowrap; }
  .search-toggle {
    width: 100%;
    padding: .85rem 1rem;
    border-top: 1px solid var(--line);
    text-align: left;
  }
  .search-panel { padding: .9rem 1rem 1rem; }

  .hero,
  .archive,
  .directory,
  .about,
  .footer-inner { padding-left: 1rem; padding-right: 1rem; }
  .directory-alt { padding-left: 1rem; padding-right: 1rem; }

  .hero { padding-top: 2.2rem; padding-bottom: 3rem; gap: 2rem; }
  h1 { font-size: clamp(2.2rem, 9vw, 2.9rem); line-height: 1.02; }
  .hero-copy > p { font-size: 1.02rem; }
  blockquote { margin: 1.5rem 0 1.6rem; }
  .hero-cover { max-width: 280px; }
  .hero-cover img { box-shadow: 8px 10px 0 var(--paper-2); }
  .hero-cover figcaption { right: .6rem; bottom: 1.2rem; }

  .archive { padding-top: 2.5rem; padding-bottom: 3rem; }
  .section-head { align-items: flex-start; flex-direction: column; margin-bottom: 1.5rem; }
  .year-title-row { flex-wrap: wrap; gap: .25rem 1rem; }
  .year-title { font-size: 1.6rem; }
  .issue-grid { gap: 1rem; }
  .issue-copy h4 { font-size: 1.2rem; }

  .issue-detail { grid-template-columns: 1fr; margin-top: 1.75rem; padding-top: 1.4rem; }
  .detail-cover { max-width: 200px; }
  .detail h3 { font-size: 1.6rem; }
  .article-list li { grid-template-columns: 1fr; gap: .2rem; }
  .article-author { text-align: left; }

  .directory { padding-top: 2.5rem; padding-bottom: 3rem; }
  .pill { font-size: .88rem; }

  .about { padding-top: 2.8rem; padding-bottom: 3rem; }
  .design-note { padding: 1.1rem 1.1rem; }

  .footer-inner { align-items: flex-start; flex-direction: column; gap: 1rem; padding-top: 2rem; padding-bottom: 2rem; }
  .footer-small { text-align: left; }

  .article-page-main { margin: 1.25rem auto 2.5rem; padding: 0 .75rem; }
  .article-full { padding: 1.5rem 1rem; }
  .article-title { font-size: 1.65rem; }
  .article-body, .article-summary { font-size: 1.05rem; line-height: 1.7; }
  .article-actions-bottom { flex-direction: column; align-items: stretch; gap: .75rem; }
  .article-actions-bottom a { display: block; width: 100%; text-align: center; }
}

/* Celulares estreitos: cards em formato horizontal */
@media (max-width: 480px) {
  .issue-grid { grid-template-columns: 1fr; }
  .issue-card { flex-direction: row; }
  .issue-image {
    flex: 0 0 38%;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .issue-copy { padding: .85rem .9rem .95rem; }
  .issue-copy p { margin-bottom: .8rem; font-size: .88rem; }

  .cta-row { flex-direction: column; }
  .btn { text-align: center; }

  .search-row { grid-template-columns: 1fr; }
  .search-row button { justify-self: start; }
}
