/* Home · "capa da edição" (Juliana, 21 Nov 2026; built on the copy index-capa.html, approved the same day).
   The newest essay (the first card of the grid) becomes the cover of the first screen; the masthead
   shrinks to a data line, the title and her dek; the topics become text tabs between the cover and the
   grid. The approved starfield, the glass of the header, author card, search and footer, and every
   card's own art and motion stay as they are. */

/* Masthead */
.hero.hero-capa{grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:30px;align-items:center;padding:30px 0 4px}
.hero-capa .hero-main::before{top:4px;bottom:8px}
.hero-capa .hero-meta{margin:0 0 10px;font:500 .8rem/1.5 "DM Mono",ui-monospace,monospace;letter-spacing:.02em;color:var(--text-muted)}
.hero-capa .hero-main h1{font-size:clamp(2rem,1.6vw + 1.3rem,2.8rem);line-height:1.08;margin:0 0 12px}
.hero-capa .hero-dek{max-width:38rem;margin:0;font-size:.95rem;line-height:1.7;color:var(--text-muted)}

/* Author card: the approved bio of the essays, with the approved portrait (12 px corners) */
body[data-home-background="refined-plus"] .hero-side.hero-author{display:grid;grid-template-columns:96px minmax(0,1fr);gap:16px;align-items:start;padding:18px 20px}
.hero-author-photo{display:block;width:96px;height:96px;border-radius:12px;object-fit:cover}
.hero-author-text{position:relative;min-width:0}
.hero-author-text p{margin:0}
.hero-author-label{font:500 .7rem/1.4 "DM Mono",ui-monospace,monospace;letter-spacing:.08em;text-transform:uppercase;color:#d6cade}
.hero-author-text .hero-author-name{margin:2px 0 6px;font:400 1.15rem/1.3 "DM Serif Text","Times New Roman",serif}
.hero-author-name a{color:#ffb6dd;text-decoration:none}
.hero-author-name a:hover{text-decoration:underline;text-underline-offset:3px}
.hero-author-name a:focus-visible{outline:2px solid #bcefff;outline-offset:3px;border-radius:4px}
.hero-author-bio{font-size:.84rem;line-height:1.6;color:var(--ui-glass-muted,#ded4e9)}

/* Cover: the grid item right after the toolbar is the newest card (home-card-depth.js wraps every card in a
   .home-depth-stage, so the grid items are those wrappers, or the bare article without that script). It fills
   its row and comes first; the toolbar comes right after it. With a topic or a search on, home-capa.js
   removes .has-feature and the grid falls back to the source order. */
.posts-grid.has-feature>*{order:3}
.posts-grid.has-feature>.grid-toolbar{order:2}
.posts-grid.has-feature>.grid-toolbar+*{order:1;grid-column:1/-1;min-width:0}
/* The card depth sway uses a 960 px perspective sized for a grid card; on the wide cover the same angle
   moved its edge about 12 px past the grid, so the cover gets a deeper perspective (same motion, scaled). */
.posts-grid.has-feature>.grid-toolbar+.home-depth-stage:not(.hd-far){perspective:2600px}
@media (min-width:582px){
  :is(.posts-grid.has-feature>.grid-toolbar+article.post-card,.posts-grid.has-feature>.grid-toolbar+* article.post-card){display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);align-items:stretch;min-height:320px;contain-intrinsic-size:auto 340px}
  :is(.posts-grid.has-feature>.grid-toolbar+article.post-card,.posts-grid.has-feature>.grid-toolbar+* article.post-card) .post-image{height:auto!important;min-height:300px;border-bottom:0;border-right:1px solid rgba(255,255,255,.12)}
  .posts-grid.has-feature>.grid-toolbar+.home-depth-stage .post-card.home-art-card .post-image.home-art{width:auto;height:auto!important;margin:8px;border-right:1px solid #f0f8ff70}
  :is(.posts-grid.has-feature>.grid-toolbar+article.post-card,.posts-grid.has-feature>.grid-toolbar+* article.post-card) .post-content{display:flex;flex-direction:column;justify-content:center;padding:26px 30px}
  :is(.posts-grid.has-feature>.grid-toolbar+article.post-card,.posts-grid.has-feature>.grid-toolbar+* article.post-card) .post-title{font-size:clamp(1.5rem,1vw + 1.1rem,2.1rem);line-height:1.15;margin-bottom:10px}
  :is(.posts-grid.has-feature>.grid-toolbar+article.post-card,.posts-grid.has-feature>.grid-toolbar+* article.post-card) .post-excerpt{font-size:1rem;line-height:1.6}
  :is(.posts-grid.has-feature>.grid-toolbar+article.post-card,.posts-grid.has-feature>.grid-toolbar+* article.post-card) .read-more{align-self:flex-start}
}
@media (max-width:581px){
  :is(.posts-grid.has-feature>.grid-toolbar+article.post-card,.posts-grid.has-feature>.grid-toolbar+* article.post-card) .post-image{height:210px!important}
  :is(.posts-grid.has-feature>.grid-toolbar+article.post-card,.posts-grid.has-feature>.grid-toolbar+* article.post-card) .post-title{font-size:1.4rem;line-height:1.2}
}

/* Toolbar: topics as text tabs (no pill, no glass), the search and the motion pause */
.grid-toolbar{grid-column:1/-1;min-width:0;display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px 20px;padding:2px 0 0;border-bottom:1px solid rgba(233,246,255,.16)}
.grid-toolbar .filter-container{flex:1 1 520px;display:flex;flex-wrap:wrap;gap:0 18px;min-width:0;padding:0}
body[data-home-background="refined-plus"] .grid-toolbar .filter-btn{min-height:42px;padding:10px 0 7px;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;color:var(--text-muted);font:500 .78rem/1.4 "Space Grotesk",system-ui,sans-serif;letter-spacing:.07em;text-transform:uppercase}
body[data-home-background="refined-plus"] .grid-toolbar .filter-btn:hover{color:var(--text);background:none;box-shadow:none;border-bottom-color:rgba(255,255,255,.4)}
body[data-home-background="refined-plus"] .grid-toolbar .filter-btn.active{color:#fff;background:none;box-shadow:none;border-bottom-color:var(--primary)}
body[data-home-background="refined-plus"] .grid-toolbar .filter-btn:focus-visible{outline:2px solid #bcefff;outline-offset:2px;border-bottom-color:transparent}
.grid-toolbar .search-container{flex:0 1 270px;max-width:none;margin:1px 0 8px}
.grid-toolbar .search-bar{padding:.62rem 1rem;font-size:.84rem}
.grid-toolbar .home-motion-controls{margin:1px 0 8px;min-height:0}

/* Tablet and small laptop: the masthead stacks, so the author card keeps a readable width. */
@media (min-width:781px) and (max-width:1100px){
  .hero.hero-capa{grid-template-columns:minmax(0,1fr);gap:16px}
  body[data-home-background="refined-plus"] .hero-side.hero-author{grid-template-columns:72px minmax(0,1fr);align-items:center}
  .hero-author-photo{width:72px;height:72px}
}

@media (max-width:780px){
  .hero.hero-capa{grid-template-columns:minmax(0,1fr);gap:12px;padding:18px 0 2px}
  .hero-capa .hero-meta{font-size:.74rem;margin-bottom:6px}
  .hero-capa .hero-main h1{font-size:2rem;margin-bottom:0}
  .hero-capa .hero-dek{display:none}
  body[data-home-background="refined-plus"] .hero-side.hero-author{grid-template-columns:44px minmax(0,1fr);gap:12px;align-items:center;padding:9px 14px;border-radius:16px}
  .hero-author-photo{width:44px;height:44px}
  .hero-author-text .hero-author-name{margin:0;font-size:1rem}
  .hero-author-bio{display:none}
  /* nowrap: in a multi-line flex container each line takes the widest item, and the 930 px topic row
     would widen the page. */
  .grid-toolbar{flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:6px;border-bottom:0}
  /* One row that scrolls sideways; the page keeps its own vertical scroll and zoom. */
  .grid-toolbar .filter-container{flex:none;flex-wrap:nowrap;gap:0 18px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,#000 86%,transparent);mask-image:linear-gradient(90deg,#000 86%,transparent);border-bottom:1px solid rgba(233,246,255,.16)}
  .grid-toolbar .filter-container::-webkit-scrollbar{display:none}
  body[data-home-background="refined-plus"] .grid-toolbar .filter-btn{flex:0 0 auto;white-space:nowrap;min-height:44px}
  .grid-toolbar .search-container{flex:none;width:100%;margin:4px 0 0}
  .grid-toolbar .home-motion-controls{justify-content:flex-start;margin:0}
}

@media print{
  .posts-grid.has-feature>*{order:0}
  :is(.posts-grid.has-feature>.grid-toolbar+article.post-card,.posts-grid.has-feature>.grid-toolbar+* article.post-card){display:block}
  .grid-toolbar{display:none!important}
  .hero-author-photo{width:64px;height:64px}
}
