@import url('./assets/colors.css');
@import url('./assets/spacing.css');
@import url('./assets/typography.css');
@import url('./assets/motion.css');

@font-face {
  font-family: "Helvetica FRENKS"; src: url('./assets/helvetica-light.woff2') format('woff2');
  font-style: normal; font-weight: 300; font-display: swap;
}
@font-face {
  font-family: "Helvetica FRENKS"; src: url('./assets/helvetica-regular.woff2') format('woff2');
  font-style: normal; font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Helvetica FRENKS"; src: url('./assets/helvetica-light-oblique.woff2') format('woff2');
  font-style: italic; font-weight: 300; font-display: swap;
}
@font-face {
  font-family: "Addington CF"; src: url('./assets/addington-thin-italic.woff2') format('woff2');
  font-style: italic; font-weight: 300; font-display: swap;
}
@font-face {
  font-family: Yondu; src: url('./assets/yondu.woff2') format('woff2'); font-display: swap;
}
@font-face {
  font-family: Megren; src: url('./assets/megren.woff2') format('woff2'); font-display: swap;
}

[data-theme] {
  --bg: var(--ink-void); --text: var(--white-primary); --muted: var(--white-secondary);
  --rule: var(--border-strong); --edge: clamp(20px, 3.2vw, 48px);
}
* { box-sizing: border-box }
html { scroll-behavior: smooth }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 300 16px/1.55 var(--font-ui); -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none }
button,input,summary { color: inherit; font: inherit }
button { cursor: pointer }
a,button,summary { -webkit-tap-highlight-color: transparent }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid currentColor; outline-offset: 5px;
}
h1,h2,h3,h4,p { font-weight: 300; margin: 0 }
img { display: block; max-width: 100% }
[hidden] { display: none !important }
.wrap { width: 100%; max-width: 1480px; margin-inline: auto; padding-inline: var(--edge) }
.title-word { white-space: nowrap }
.title-line { display: block; white-space: nowrap }
.title-prelude {
  display: block; font-size: .43em; margin-bottom: .42em; line-height: 1.15; letter-spacing: -.02em;
}
h1, .catalog h2, .recommendations h2,.section-topline h2 {
  text-wrap: balance; line-height: 1.06; letter-spacing: -.045em;
}
.acc-addington, .acc-megren, .acc-yondu {
  display: inline; vertical-align: baseline; line-height: 0; padding: 0;
}
.acc-addington,.acc-yondu { margin: 0 }
.acc-megren { margin-left: .2em }
.acc-megren.acc-start { margin-left: 0 }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 5; background: var(--paper); color: var(--ink); padding: 10px }
.skip-link:focus { top: 10px }

.topbar,.footer-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 76px;
}
.topbar nav,.footer-inner nav { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 14px }
.topbar nav a:hover,.footer-inner nav a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px }
.brand img,.footer-inner img { width: 116px; height: auto }
.site-footer { background: #000; border-top: 1px solid var(--rule) }
.footer-inner { min-height: 110px }
.button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 20px;
  background: transparent; color: inherit; border: 1px solid var(--rule); border-radius: 4px;
  padding: 10px 15px; font-size: 14px;
}
.button:hover { background: var(--text); color: var(--bg) }

.hub-hero {
  position: relative; isolation: isolate; min-height: clamp(490px, 73vh, 750px);
  display: grid; align-items: end; overflow: hidden;
  background: radial-gradient(ellipse at 78% 14%, color-mix(in srgb, var(--blunk) 20%, transparent), transparent 63%), var(--bg);
}
.hub-image {
  position: absolute; z-index: -1; inset: 0 0 0 auto; width: 79%; opacity: .92;
  mask-image: linear-gradient(90deg, transparent, #000 56%), linear-gradient(0deg, transparent, #000 38%);
  mask-composite: intersect;
}
.hub-image img { width: 100%; height: 100%; object-fit: cover; object-position: 76% 54% }
.hub-heading { padding-block: 100px 68px }
.hub-heading h1 { font-size: clamp(62px, 8.5vw, 140px); max-width: 9em; text-align: left; text-wrap: wrap }
.hub-heading p { color: var(--white-primary); font-size: clamp(17px, 1.8vw, 23px); margin-block: 24px 32px; max-width: 26em }
.hero-button { border-color: color-mix(in srgb, var(--paper) 50%, transparent) }

.paper,.reading-surface { background: var(--bg); color: var(--text) }
.catalog { padding-block: clamp(44px, 6vw, 90px) }
.catalog h2,.recommendations h2,.section-topline h2 { font-size: clamp(35px, 5vw, 70px) }
.catalog-tools { margin-block: 34px 38px; padding-block: 16px; border-block: 1px solid var(--rule) }
.search-line,.filter-line { display: flex; align-items: center; gap: 20px }
.search-line label { font-size: 14px }
.search-line input {
  flex: 1; min-width: 0; padding: 10px 0; border: 0; border-bottom: 1px solid var(--rule);
  background: transparent; border-radius: 0; font-size: 18px;
}
.search-line input::placeholder { color: var(--muted) }
.search-line button,.share-button { border: 0; border-bottom: 1px solid currentColor; background: none; padding: 6px 0; font-size: 14px }
.filter-line { justify-content: space-between; margin-top: 20px; flex-wrap: wrap }
.results { font-size: 14px; color: var(--muted) }
.segments { display: flex; flex-wrap: wrap; max-width: 100%; gap: 3px; padding: 3px; border: 1px solid var(--rule); border-radius: 6px }
.segments button { background: transparent; border: 0; border-radius: 4px; padding: 8px 12px; font-size: 14px }
.segments button[aria-pressed="true"] { color: var(--bg); background: var(--text) }
.catalog-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 44px 24px }
.entry-card { display: block; min-width: 0; border-bottom: 1px solid var(--rule) }
.card-image { background: var(--ink); overflow: hidden; aspect-ratio: 8/5 }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: scale .25s ease }
.entry-card:hover .card-image img { scale: 1.035 }
.card-content { position: relative; padding: 17px 27px 18px 0; min-height: 141px }
.card-content h3 { font-size: clamp(21px, 2.05vw, 32px); letter-spacing: -.025em; line-height: 1.19 }
.card-content p { font-size: 15px; color: var(--muted); margin: 9px 0 13px; line-height: 1.45; text-wrap: pretty }
.card-meta { font-size: 12px; color: var(--muted) }
.card-arrow { position: absolute; top: 17px; right: 2px; font-size: 21px; line-height: 1.2 }
.entry-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px }
.empty { padding-block: 38px; font-size: 18px }
.recommendations { padding-block: 66px; border-bottom: 1px solid var(--rule) }
.picks { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin-top: 30px }
.picks a { border-block: 1px solid var(--rule); padding: 18px 0; font-size: 21px }
.picks a span[aria-hidden] { float: right; padding-left: 8px }
.picks a:hover { text-decoration: underline }

.breadcrumb {
  display: flex; align-items: center; gap: 12px; color: var(--muted); min-height: 52px;
  font-size: 14px; border-top: 1px solid var(--rule);
}
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 4px }
.article-hero {
  display: grid; grid-template-columns: minmax(0,1.02fr) minmax(0,1fr); align-items: center;
  gap: clamp(32px, 5vw, 82px); padding-block: 46px 62px;
}
.article-heading { min-width: 0; container-type: inline-size }
.article-heading h1 { font-size: clamp(32px, 11.6cqw, 82px); color: var(--text) }
.article-heading .subtitle { color: var(--muted); font-size: clamp(16px,1.65vw,22px); margin-top: 22px; max-width: 58ch; text-wrap: pretty }
.article-meta { color: var(--muted); font-size: 13px; margin: 19px 0 22px }
.article-meta span { padding-inline: 4px }
.article-visual { margin: 0; min-width: 0; isolation: isolate }
.article-visual img { width: 100%; height: auto; aspect-ratio: 8/5; object-fit: cover }
.article-visual figcaption { margin-top: 8px; color: var(--muted); font-size: 12px }
.article-hero.image-left { grid-template-columns: minmax(0,1fr) minmax(0,1fr) }
.image-left .article-heading { grid-column: 2; grid-row: 1 }
.image-left .article-visual { grid-column: 1; grid-row: 1 }
.article-hero.landscape { grid-template-columns: minmax(0,1fr); gap: 26px; padding-top: 34px }
.landscape .article-heading h1 { max-width: 17ch; font-size: clamp(46px, 8cqw, 108px); text-wrap: wrap }
.landscape .article-visual img { max-height: 52vh; aspect-ratio: 2.25 }
.article-hero.work-spread { grid-template-columns: minmax(0,1.12fr) minmax(0,1fr) }
.work-spread .article-visual { background: var(--ink); padding: 14px }
.work-spread .article-heading h1 { font-size: clamp(28px, 9.7cqw, 74px) }
.article-hero[data-article="por-que-historias-importam"] h1 { max-width: none; font-size: clamp(32px,7.35cqw,101px) }

.reading-surface { padding-block: clamp(36px, 6vw, 88px) }
.reading-layout { display: grid; grid-template-columns: 235px minmax(0,740px); gap: clamp(36px, 7vw, 100px); justify-content: center }
.reading-sidebar { position: sticky; align-self: start; top: 30px }
.reading-sidebar summary { font-size: 16px; cursor: pointer }
.reading-sidebar ol { margin: 18px 0 24px; padding: 0; list-style: none }
.reading-sidebar a {
  border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 24px 1fr; gap: 6px;
  padding: 9px 0; font-size: 14px; line-height: 1.4; color: var(--muted);
}
.reading-sidebar a[aria-current="true"] { color: var(--text); border-color: currentColor }
.reading-sidebar a span:first-child { font-variant-numeric: tabular-nums }
.reading-sidebar .button { font-size: 13px }
.article-column { min-width: 0 }
.article-copy { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.71; overflow-wrap: anywhere }
.article-copy > div { display: contents }
.article-copy p { margin-bottom: 1.1em }
.article-copy section { margin-top: 2.3em; scroll-margin-top: 24px }
.article-copy h2 { font-size: clamp(27px,3vw,38px); line-height: 1.15; letter-spacing: -.03em; margin: 0 0 .65em; text-wrap: pretty }
.article-copy h3,.article-copy h4 { font-size: 1.21em; line-height: 1.3; margin: 1.1em 0 .48em; text-wrap: pretty }
.article-copy strong,.article-copy b { font-weight: 400 }
.article-copy a { text-decoration: underline; text-underline-offset: .17em }
.article-copy ul,.article-copy ol { margin: 1em 0; padding-left: 1.33em }
.article-copy li { padding-left: .11em; margin-bottom: .7em }
.article-copy aside { margin-bottom: 1.5em }
.article-copy aside > strong { display: block; font-size: 13px; color: var(--muted); margin-bottom: 12px }
.article-copy aside[data-ai-block="answer"] { padding-bottom: 24px; border-bottom: 1px solid var(--rule); font-size: clamp(24px, 3vw, 37px); line-height: 1.35; letter-spacing: -.026em }
.article-copy aside[data-ai-block="answer"] p { margin: 0 }
.article-copy aside[data-ai-block="concepts"] span { display: inline-block; font-size: 14px; margin-right: 12px }
.article-copy blockquote { margin: 24px 0; padding-inline-start: 1em; border-inline-start: 1px solid var(--rule) }
.article-copy table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45 }
.article-copy th,.article-copy td { text-align: left; vertical-align: top; font-weight: 300; padding: 12px 8px; border-bottom: 1px solid var(--rule) }
.article-copy img { max-width: 100%; height: auto }
.article-end { border-top: 1px solid var(--rule); margin-top: 44px; padding-top: 20px; display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 14px }
.related { padding-block: 60px; background: var(--bg) }
.section-topline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px 28px; justify-content: space-between; margin-bottom: 29px }
.section-topline a,.related-other a { font-size: 14px; text-decoration: underline; text-underline-offset: 4px }
.related-other { margin-top: 24px; display: flex; gap: 10px 24px; flex-wrap: wrap; color: var(--muted) }
.reading-progress { height: 2px; position: fixed; top: 0; inset-inline: 0; pointer-events: none; z-index: 4 }
.reading-progress span { display: block; width: 0; height: 100%; background: var(--paper); mix-blend-mode: difference }

@media (max-width: 960px) {
  .catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)) }
  .article-hero { gap: 28px }
  .reading-layout { grid-template-columns: 180px minmax(0,1fr); gap: 30px }
}
@media (max-width: 760px) {
  .topbar { min-height: 65px; gap: 12px }
  .topbar nav { display: none }
  .hub-hero { min-height: 530px }
  .hub-image { width: 100%; mask-image: linear-gradient(0deg, transparent, #000 55%); opacity: .78 }
  .hub-image img { object-position: 58% 42% }
  .hub-heading { padding-block: 95px 37px; background: linear-gradient(0deg, var(--bg), transparent) }
  .hub-heading h1 { font-size: clamp(44px, 11vw, 76px); max-width: 10em }
  .hub-heading p { margin-block: 19px 22px }
  .picks { grid-template-columns: 1fr; gap: 0 }
  .picks a+a { border-top: 0 }
  .article-hero,.article-hero.image-left,.article-hero.work-spread { grid-template-columns: minmax(0,1fr); padding-block: 22px 34px; gap: 24px }
  .article-hero .article-heading,.article-hero .article-visual { grid-column: 1; grid-row: auto }
  .article-hero .article-heading h1 { font-size: clamp(31px, 10cqw, 70px) }
  .article-hero[data-article="por-que-historias-importam"] h1 { font-size: clamp(27px,9.5cqw,63px) }
  .article-heading .subtitle { margin-top: 17px }
  .landscape .article-visual img { aspect-ratio: 8/5; max-height: none }
  .article-meta { margin: 13px 0 17px }
  .reading-layout { display: block }
  .reading-sidebar { position: static; margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--rule) }
  .reading-sidebar .button { margin-top: 12px }
  .reading-sidebar ol { margin-bottom: 12px }
  .related { padding-block: 38px }
  .footer-inner { align-items: start; flex-direction: column; justify-content: center; padding-block: 25px; gap: 14px }
  .footer-inner nav { flex-wrap: wrap; gap: 10px 16px }
}
@media (max-width: 560px) {
  .catalog-grid { grid-template-columns: 1fr; gap: 26px }
  .search-line { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 14px }
  .search-line label { grid-column: 1/-1 }
  .filter-line { gap: 12px }
  .segments button { padding: 7px 8px; font-size: 12px }
  .card-content { min-height: 0 }
  .card-content h3 { font-size: 27px }
  .topbar .button { font-size: 12px; gap: 12px; padding: 8px 10px }
  .brand img { width: 98px }
  .breadcrumb { min-height: 47px; font-size: 12px; gap: 9px }
  .article-copy table { font-size: 13px }
  .article-copy td,.article-copy th { padding: 8px 4px }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *,*::before,*::after { transition: none!important; animation: none!important }
  .entry-card:hover .card-image img { scale: 1 }
}
@media print {
  .topbar,.breadcrumb,.reading-sidebar,.related,.site-footer,.reading-progress,.article-hero .button,.article-end,.article-visual { display: none }
  .article-hero,.reading-layout { display: block!important }
  .wrap { padding-inline: 0 }
  body,[data-theme] { background: white!important; color: black!important; --text:black; --muted:#444 }
  h2,h3 { break-after: avoid }
  p { orphans: 3; widows: 3 }
}

.article-hero[data-article="3-atos"] h1 { max-width: none; font-size: clamp(26px, 9.05cqw, 92px) }
.article-hero[data-article="especies-e-racas"] h1 { font-size: clamp(30px, 9.3cqw, 76px) }
