@font-face {
  font-family: Manrope;
  src: url('/assets/manrope-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/assets/cormorant-garamond-latin-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/assets/cormorant-garamond-latin-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #fbf9fc;
  --surface: #fff;
  --ink: #232745;
  --reading-ink: #383b55;
  --muted: #585b73;
  --line: #e4dfec;
  --line-strong: #d4c8e1;
  --accent: #6349a5;
  --accent-hover: #513986;
  --accent-soft: #f1eaf8;
  --accent-wash: #f8f4fc;
  --success: #196a58;
  --success-soft: #e6f4ee;
  --shadow: 0 3px 12px #31254106;
  --radius: .72rem;
  --sans: Manrope, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Cormorant Garamond', Georgia, serif;
  --focus-ring: #876abd;
  --home-glass: linear-gradient(115deg, #fffafdba, #fff8fa7a);
  --home-card-shadow: 0 13px 22px #6b365414, 0 1px 2px #61324e14;
  --header-ink: #351b44;
  --header-muted: #675e76;
  --header-accent: #77318e;
  --header-accent-soft: #f2dff7;
  --header-icon-background: linear-gradient(145deg, #f8ebfa, #e9cdef);
  --catalog-ink: #351b44;
  --catalog-surface: linear-gradient(135deg, #fffcfef2, #fdf3fbde);
  --catalog-border: #e9d8e9;
  --catalog-chip: #f7e9f7;
  --catalog-accent: #733389;
  --catalog-shadow: 0 9px 25px #63364f13, 0 1px 2px #63364f10;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--canvas); color: var(--ink); font: 1rem/1.58 var(--sans); }
main { flex: 1; min-width: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .62; }
p, h1, h2, h3, figure { margin: 0; }
svg { width: 1.2rem; height: 1.2rem; flex: none; vertical-align: middle; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { position: absolute; z-index: 5; left: 1rem; top: 1rem; padding: .65rem .9rem; background: var(--surface); color: var(--ink); border-radius: .5rem; }
.wrap { width: min(72rem, calc(100% - 3rem)); margin-inline: auto; }

.masthead { position: relative; z-index: 2; background: var(--surface); border-bottom: 1px solid var(--line); }
.masthead-inner { position: relative; min-height: 4.5rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; width: fit-content; color: var(--ink); font-size: 1.19rem; font-weight: 750; line-height: 1.18; letter-spacing: -.019em; white-space: nowrap; }
.brand-mark { width: 2.35rem; height: 2.35rem; display: grid; flex: none; place-items: center; color: var(--accent); background: var(--accent-soft); border-radius: .55rem; }
.brand-mark svg { width: 1.27rem; height: 1.27rem; }
.brand small { display: block; margin-top: .1rem; color: var(--muted); font-size: .75rem; font-weight: 550; line-height: 1.18; }
.nav { display: flex; align-items: center; gap: .22rem; }
.nav a, .write-link, .mobile-write-link { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .52rem .8rem; border-radius: .5rem; color: var(--muted); font-size: .9rem; font-weight: 650; line-height: 1.3; white-space: nowrap; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--accent-hover); }
.nav a:hover { background: var(--accent-wash); }
.write-link, .mobile-write-link { justify-self: end; gap: .42rem; padding-inline: .9rem; border: 1px solid var(--accent); color: var(--accent-hover); }
.write-link:hover, .write-link[aria-current='page'], .mobile-write-link:hover, .mobile-write-link[aria-current='page'] { background: var(--accent-soft); }
.write-link svg, .mobile-write-link svg { width: 1rem; height: 1rem; }
.mobile-nav { display: none; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .48rem; min-height: 2.75rem; padding: .58rem .93rem; border: 1px solid transparent; border-radius: .5rem; font-size: .9rem; font-weight: 700; line-height: 1.35; transition: background .15s ease, border-color .15s ease, box-shadow .15s ease; }
.button svg { width: 1.05rem; height: 1.05rem; }
.button-primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.button-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button-secondary { color: var(--accent-hover); background: var(--surface); border-color: var(--line-strong); }
.button-secondary:hover { background: var(--accent-soft); border-color: var(--line-strong); }

.search-form { display: flex; align-items: stretch; gap: .3rem; width: min(100%, 31.5rem); min-width: 0; margin-top: 1.55rem; padding: .25rem; border: 1px solid var(--line-strong); border-radius: .64rem; background: var(--surface); }
.search-form:focus-within { border-color: var(--accent); }
.search-field { display: flex; flex: 1; align-items: center; gap: .55rem; min-width: 0; min-height: 2.54rem; padding-inline: .62rem .2rem; color: var(--accent); border-radius: .41rem; }
.search-field input { min-width: 0; width: 100%; min-height: 2.5rem; padding: .3rem 0; border: 0; color: var(--ink); background: transparent; font-size: 1rem; }
.search-field input:focus { outline: none; }
.search-field input::placeholder { color: var(--muted); opacity: 1; }
.search-field svg { width: 1.1rem; height: 1.1rem; }
.search-submit { padding-inline: 1rem; min-width: 5.25rem; }

.section-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .4rem 1rem; margin-bottom: .95rem; }
.section-heading p, .section-heading > span { color: var(--muted); font-size: .875rem; }
.section-title { color: var(--ink); font-size: clamp(1.4rem, 2.2vw, 1.83rem); font-weight: 750; line-height: 1.23; letter-spacing: -.028em; overflow-wrap: anywhere; }
.category-icon, .post-icon, .category-menu-icon { display: grid; place-items: center; flex: none; color: var(--accent-hover); background: var(--accent-soft); border-radius: .55rem; }
.category-icon { width: 3.1rem; height: 3.1rem; }
.category-icon svg { width: 1.45rem; height: 1.45rem; }
.post-chevron { color: var(--accent); }
.post-chevron svg { width: 1rem; height: 1rem; }

.feed-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(15rem, 1fr); align-items: start; gap: 1.45rem; }
.feed-section, .sidebar, .reading-sidebar { min-width: 0; }
.post-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.post-row + .post-row { border-top: 1px solid var(--line); }
.post-link { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .8rem; padding: 1rem 1.12rem; border-radius: .35rem; transition: background .15s ease; }
.post-row:first-child .post-link { border-start-start-radius: var(--radius); border-start-end-radius: var(--radius); }
.post-row:last-child .post-link { border-end-start-radius: var(--radius); border-end-end-radius: var(--radius); }
.post-link:hover { background: var(--accent-wash); }
.post-link:focus-visible { position: relative; z-index: 1; outline-offset: -3px; }
.post-icon { width: 2.55rem; height: 2.55rem; align-self: start; margin-top: .12rem; }
.post-icon svg { width: 1.08rem; height: 1.08rem; }
.post-content { min-width: 0; overflow-wrap: anywhere; }
.post-content h3, .post-content h2 { margin-top: .25rem; color: var(--ink); font-size: clamp(1rem, 2vw, 1.13rem); font-weight: 725; line-height: 1.36; letter-spacing: -.017em; }
.post-link:hover :is(h3,h2) { color: var(--accent-hover); }
.post-content p { margin-top: .24rem; color: var(--muted); font-size: .92rem; line-height: 1.47; }
.post-meta, .reading-kind, .reading-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .26rem .52rem; color: var(--muted); font-size: .8125rem; line-height: 1.35; }
.type-label, .example-label { display: inline-flex; align-items: center; gap: .27rem; width: fit-content; padding: .19rem .43rem; border-radius: .35rem; color: var(--accent-hover); background: var(--accent-soft); font-size: .75rem; font-weight: 690; line-height: 1.32; }
.type-label svg { width: .9rem; height: .9rem; }
.example-label { color: #5e526c; background: #f1edf4; }
.sidebar-panel, .toc-panel { padding: 1.05rem 1.12rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.sidebar-panel + .sidebar-panel { margin-top: .85rem; }
.sidebar-panel :is(h2,h3), .toc-panel :is(h2,h3) { font-size: 1.06rem; font-weight: 740; letter-spacing: -.02em; }
.sidebar-panel > p { margin-top: .35rem; color: var(--muted); font-size: .94rem; }
.topic-list { display: grid; gap: .2rem; margin: .55rem 0 0; padding: 0; list-style: none; }
.topic-list a { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .47rem; min-height: 2.75rem; padding: .4rem .48rem; border-radius: .42rem; color: var(--accent-hover); font-size: .9rem; font-weight: 630; line-height: 1.3; overflow-wrap: anywhere; }
.topic-list a:hover { background: var(--accent-soft); }
.topic-list a > svg { width: .86rem; height: .86rem; color: var(--accent); }
.topic-icon svg, svg.topic-icon { width: .98rem; height: .98rem; }
.sidebar-panel h2 > svg, .toc-panel h2 > svg, .mobile-toc summary > svg { margin-right: .2rem; color: var(--accent-hover); }

.footer { padding-block: .48rem; border-top: 1px solid var(--line); color: var(--muted); background: var(--surface); font-size: .875rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .7rem 1.25rem; }
.footer .brand { font-size: .98rem; }
.footer .brand-mark { width: 2rem; height: 2rem; border-radius: .48rem; }
.footer .brand-mark svg { width: 1.05rem; height: 1.05rem; }
.footer-inner > a:not(.brand) { color: var(--accent-hover); font-weight: 650; }
.footer-inner > a:not(.brand):hover { text-decoration: underline; text-underline-offset: .17em; }
.footer-inner > a:not(.brand) svg { width: 1rem; height: 1rem; }

.page-content, .message-page { padding-block: 1.45rem 3.8rem; }
.breadcrumbs { min-width: 0; margin-bottom: 1rem; color: var(--muted); font-size: .875rem; font-weight: 550; line-height: 1.42; overflow-wrap: anywhere; }
.breadcrumbs, .breadcrumbs :is(ol,ul) { gap: .25rem .55rem; align-items: center; }
.breadcrumbs :is(ol,ul) { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.breadcrumbs :is(li,span) { min-width: 0; }
.breadcrumbs li { display: flex; align-items: center; gap: .48rem; }
.breadcrumbs a { color: var(--accent-hover); }
.breadcrumbs a:hover { text-decoration: underline; text-underline-offset: .15em; }
.breadcrumbs svg { width: .8rem; height: .8rem; }
.page-header { margin-bottom: 1.5rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.page-header[data-kind] { border-color: var(--line); background: linear-gradient(120deg, var(--accent-soft), var(--surface) 79%); }
.page-header[data-kind] .page-inner { display: flex; align-items: center; gap: .9rem; }
.page-header .category-icon { width: 3.35rem; height: 3.35rem; }
.page-title, .reading-header h1 { color: var(--ink); font-size: clamp(1.9rem, 4.2vw, 2.85rem); font-weight: 755; line-height: 1.14; letter-spacing: -.046em; text-wrap: balance; overflow-wrap: anywhere; }
.page-description { max-width: 43rem; margin-top: .65rem; color: var(--muted); overflow-wrap: anywhere; }
.category-content, .search-results { min-width: 0; }
.search-page-header .search-form { max-width: 100%; margin-top: .95rem; }
.empty-state { padding: clamp(1.15rem, 3vw, 1.72rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--muted); }
.empty-state :is(h2,h3) { color: var(--ink); font-size: 1.12rem; }
.empty-state .button, .message-page .button { margin-top: .75rem; }
.message-page p { margin-top: .6rem; color: var(--muted); }

.reading-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(13rem, 17.5rem); align-items: start; gap: 1.45rem; }
.reading-layout--single { grid-template-columns: minmax(0, 53rem); }
.reading-article { min-width: 0; padding: clamp(1.3rem, 3.8vw, 2.65rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.reading-header { padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.reading-kind { margin-bottom: .58rem; }
.reading-header h1 { text-wrap: pretty; }
.reading-summary { margin-top: .68rem; color: var(--muted); font-size: clamp(1rem,2.1vw,1.16rem); line-height: 1.6; overflow-wrap: anywhere; }
.reading-meta { margin-top: .75rem; }
.reading-meta svg { width: .9rem; height: .9rem; }
.reading-body { margin-top: 1.35rem; min-width: 0; color: var(--reading-ink); font-size: 1.03rem; line-height: 1.72; overflow-wrap: anywhere; }
.reading-body > * + * { margin-top: .9rem; }
.reading-body :is(h2,h3) { margin-top: 1.55rem; color: var(--ink); font-size: clamp(1.24rem,2.5vw,1.55rem); font-weight: 745; line-height: 1.3; letter-spacing: -.023em; scroll-margin-top: 1rem; }
.reading-body :is(ul,ol) { padding-left: 1.35rem; }
.reading-body a, .sources a { color: var(--accent-hover); text-decoration: underline; text-underline-offset: .17em; }
.sources { margin-top: 1.8rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.sources :is(h2,h3) { margin-top: 0; }
.sources ul { margin-bottom: 0; }
.reading-sidebar { position: sticky; top: 1.25rem; }
.toc-list { margin: .55rem 0 0; padding: 0; border-left: 1px solid var(--line); list-style: none; }
.toc-list a { display: block; padding: .36rem .7rem; color: var(--accent-hover); font-size: .91rem; line-height: 1.35; overflow-wrap: anywhere; }
.toc-list a:hover { background: var(--accent-soft); }
.toc-list a[aria-current="location"] {
  color: var(--accent-hover);
  background: var(--accent-soft);
  box-shadow: inset .2rem 0 var(--accent);
  font-weight: 750;
  border-radius: 0 .35rem .35rem 0;
}
.mobile-toc { display: none; }

.editor-page[data-editor] { max-width: 54rem; padding-block: 2.65rem 4rem; }
.editor-top { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.2rem; }
.eyebrow { display: flex; align-items: center; gap: .45rem; color: var(--accent-hover); font-size: .875rem; font-weight: 690; line-height: 1.4; }
.editor-intro .section-title, .editor-composer > .section-title, .editor-page[data-editor] > .section-title { margin-top: .45rem; font-size: clamp(1.85rem,4.5vw,2.65rem); }
.editor-intro-copy { margin-top: .45rem; color: var(--muted); }
.editor-list { display: grid; gap: .7rem; padding: 0; list-style: none; }
.editor-list-item { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .95rem 1.08rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.editor-list-item h2 { font-size: 1.13rem; line-height: 1.35; overflow-wrap: anywhere; }
.editor-list-meta { margin-top: .28rem; color: var(--muted); font-size: .86rem; }
.editor-list-meta svg { width: .94rem; height: .94rem; margin-right: .13rem; }
.editor-list-actions { display: flex; align-items: center; flex: none; gap: .55rem; }
.editor-status { padding: .27rem .55rem; border-radius: .35rem; color: var(--accent-hover); background: var(--accent-soft); font-size: .8rem; font-weight: 640; }
.editor-status[data-status='published'] { color: var(--success); background: var(--success-soft); }
.editor-empty { padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); background: var(--surface); }
.editor-empty svg { margin-right: .25rem; color: var(--accent-hover); }
.editor-composer > .section-title { margin-block: .9rem; }
.editor-form { display: grid; gap: 1rem; padding: clamp(1rem,3vw,1.65rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.field-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.field { display: grid; gap: .3rem; }
.field label { color: var(--ink); font-weight: 650; }
.field-hint { color: var(--muted); font-size: .875rem; font-weight: 400; }
.field :is(input,textarea,select) { width: 100%; min-width: 0; min-height: 2.75rem; padding: .54rem .65rem; border: 1px solid var(--line-strong); border-radius: .45rem; color: var(--ink); background: var(--surface); }
.field select { appearance: none; padding-right: 2.2rem; background-image: url('/assets/select.svg'); background-repeat: no-repeat; background-position: right .65rem center; background-size: 1rem; }
.field textarea { resize: vertical; }
.form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .5rem; }
.notice { margin: .5rem 0; padding: .6rem .82rem; border-radius: .5rem; color: var(--accent-hover); background: var(--accent-soft); }
.notice-error { color: #862c36; background: #fdecee; }
.notice-success { color: var(--success); background: var(--success-soft); }

@media (max-width: 820px) {
  .feed-layout { grid-template-columns: minmax(0,1fr) minmax(12rem,.53fr); gap: 1rem; }
  .reading-layout:not(.reading-layout--single) { grid-template-columns: minmax(0,1fr) minmax(11rem,.48fr); gap: .78rem; }
}

@media (max-width: 730px) {
  .masthead-inner { grid-template-columns: minmax(0,1fr) auto; min-height: 3.8rem; gap: .55rem; }
  .masthead-inner > .nav, .masthead-inner > .write-link { display: none; }
  .brand { gap: .53rem; font-size: 1.04rem; }
  .brand-mark { width: 2.12rem; height: 2.12rem; }
  .mobile-nav { display: block; justify-self: end; }
  .mobile-nav summary { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; color: var(--accent-hover); cursor: pointer; list-style: none; border-radius: .45rem; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary:hover, .mobile-nav[open] summary { background: var(--accent-soft); }
  .mobile-nav-panel { position: absolute; top: calc(100% - .08rem); right: 0; width: min(18rem, 100%); padding: .45rem; border: 1px solid var(--line-strong); border-radius: .6rem; background: var(--surface); box-shadow: 0 12px 24px #30204124; }
  .mobile-nav-links { display: grid; gap: .1rem; }
  .mobile-nav-links a { display: flex; align-items: center; min-height: 2.75rem; padding: .4rem .75rem; border-radius: .4rem; color: var(--ink); font-size: .92rem; font-weight: 700; }
  .mobile-nav-links a:hover, .mobile-nav-links a[aria-current='page'] { color: var(--accent-hover); background: var(--accent-soft); }
  .mobile-write-link { display: flex; width: 100%; justify-content: flex-start; margin-top: .42rem; padding-inline: .75rem; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 2rem); }
  .search-form { margin-top: .85rem; }
  .search-submit { min-width: auto; padding-inline: .8rem; }
  .section-heading { margin-bottom: .64rem; }
  .feed-layout, .reading-layout:not(.reading-layout--single) { grid-template-columns: minmax(0,1fr); gap: .7rem; }
  .category-icon { width: 2.55rem; height: 2.55rem; }
  .category-icon svg { width: 1.23rem; height: 1.23rem; }
  .post-link { padding: .76rem .74rem; gap: .56rem; }
  .post-icon { width: 2.18rem; height: 2.18rem; }
  .sidebar { margin-top: .48rem; }
  .reading-sidebar { display: none; }
  .mobile-toc { display: block; margin-top: .9rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--accent-wash); }
  .mobile-toc summary { display: flex; align-items: center; gap: .32rem; min-height: 2.75rem; padding: .5rem .73rem; cursor: pointer; font-size: .92rem; font-weight: 680; list-style: none; }
  .mobile-toc summary::-webkit-details-marker { display: none; }
  .mobile-toc summary::after { width: .4rem; height: .4rem; margin-inline: auto .15rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; content: ''; transform: rotate(45deg); }
  .mobile-toc[open] summary::after { transform: rotate(225deg); }
  .mobile-toc .toc-list { margin: .15rem .75rem .65rem; }
  .toc-list a { min-height: 2.75rem; padding-block: .58rem; }
  .page-content, .message-page { padding-block: 1rem 2.6rem; }
  .page-header { margin-bottom: 1rem; }
  .breadcrumbs { margin-bottom: .75rem; }
  .footer { padding-block: .27rem; }
  .footer-inner { gap: .5rem .7rem; }
  .editor-page[data-editor] { padding-block: 1.6rem 2.65rem; }
}

@media (max-width: 390px) {
  .wrap { width: calc(100% - 1.6rem); }
  .search-field { gap: .35rem; padding-inline: .48rem .12rem; }
  .post-content p { font-size: .88rem; }
  .editor-top, .editor-list-item { flex-direction: column; align-items: start; }
  .field-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* Portfólio de Sociologia */
@media (min-width: 641px) {
  .portfolio-page { width: min(88rem, calc(100% - 3rem)); }
  .reading-layout.reading-layout--portfolio { grid-template-columns: clamp(11rem, 18vw, 15rem) minmax(0, 1fr); }
}

.portfolio-byline { display: flex; flex-wrap: wrap; gap: .12rem .8rem; margin-top: 1.25rem; color: var(--muted); }
.portfolio-byline strong { color: var(--ink); }
.portfolio-credit { margin-top: .35rem; color: var(--muted); }
.portfolio-download { margin-top: 1.2rem; }
.portfolio-section { margin-block: 1.75rem 2.15rem; }
.portfolio-section + .portfolio-section { padding-top: 1.15rem; border-top: 1px solid var(--line); }
.portfolio-section > * + * { margin-top: .84rem; }
.portfolio-section > h2 { margin-top: 0; font-size: clamp(1.42rem, 2.65vw, 1.9rem); }
.portfolio-section li { padding-block: .13rem; }
.portfolio-note { padding: .85rem 1rem; border-left: 3px solid var(--accent); background: var(--accent-wash); font-size: .92rem; }
.portfolio-citations { color: var(--muted); font-size: .88rem; }
.portfolio-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
.portfolio-stats > div { min-width: 0; padding: .78rem .82rem; border-radius: .55rem; background: var(--accent-wash); }
.portfolio-stats dt { color: var(--muted); font-size: .88rem; line-height: 1.4; }
.portfolio-stats dd { margin: .16rem 0 0; color: var(--accent-hover); font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 760; line-height: 1.28; }
.portfolio-map, .portfolio-photo { overflow: hidden; border: 1px solid var(--line); border-radius: .7rem; background: var(--surface); }
.portfolio-map img, .portfolio-photo img { display: block; width: 100%; height: auto; }
.portfolio-map figcaption, .portfolio-photo figcaption { padding: .72rem .82rem; color: var(--muted); background: var(--accent-wash); font-size: .87rem; line-height: 1.46; }
.portfolio-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: .6rem; }
.portfolio-table { width: 100%; border-collapse: collapse; text-align: left; overflow-wrap: normal; font-size: .91rem; line-height: 1.45; }
.portfolio-table :is(th,td) { padding: .7rem .75rem; vertical-align: top; }
.portfolio-table thead th { color: var(--accent-hover); background: var(--accent-soft); }
.portfolio-table tbody th { color: var(--ink); font-weight: 670; }
.portfolio-table tbody tr + tr > * { border-top: 1px solid var(--line); }
.portfolio-table caption { padding: .65rem .7rem; color: var(--muted); text-align: left; }
.portfolio-charts { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,16rem),1fr)); gap: .65rem; }
.portfolio-chart { padding: .85rem; border: 1px solid var(--line); border-radius: .6rem; }
.portfolio-chart figcaption { color: var(--ink); font-weight: 740; line-height: 1.35; }
.portfolio-chart .portfolio-meters { display: grid; gap: .6rem; margin: .65rem 0 0; padding: 0; list-style: none; }
.portfolio-meter-label { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .12rem .65rem; font-size: .88rem; }
.portfolio-meter-label strong { color: var(--accent-hover); }
.portfolio-meters meter { display: block; width: 100%; height: .75rem; margin-top: .22rem; }
.portfolio-meters meter::-webkit-meter-bar { border: 0; background: var(--accent-soft); }
.portfolio-meters meter::-webkit-meter-optimum-value { background: var(--accent); }
.portfolio-meters meter::-moz-meter-bar { background: var(--accent); }
.portfolio-evidence > * + * { margin-top: .72rem; }
.portfolio-evidence h3 { margin-top: 0; }
.portfolio-sources { color: var(--muted); }
.portfolio-sources li { scroll-margin-top: 1rem; }
@media (max-width: 430px) {
  .portfolio-byline { flex-direction: column; }
  .portfolio-table { min-width: 14rem; table-layout: fixed; font-size: .83rem; }
  .portfolio-table :is(th,td) { padding: .55rem .42rem; }
  .portfolio-table thead th:first-child { width: 35%; }
  .portfolio-table thead th:nth-child(2) { width: 35%; }
  .portfolio-table tbody th { overflow-wrap: anywhere; }
  .portfolio-credit { font-size: .93rem; }
}

.article-categories { display: flex; flex-wrap: wrap; gap: .4rem; margin-block: 0 1.1rem; }
.article-categories a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 2.75rem;
  padding: .45rem .8rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: var(--surface);
  color: var(--accent-hover);
  font-size: .92rem;
  font-weight: 690;
}
.article-categories a:hover, .article-categories a[aria-current="page"] {
  border-color: var(--line-strong);
  background: var(--accent-soft);
}
.article-categories a > svg { width: 1rem; height: 1rem; }
.curiosity-header { background: linear-gradient(115deg, var(--accent-soft), var(--surface) 83%); }
.curiosity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .95rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.curiosity-card { display: flex; min-width: 0; }
.curiosity-card > a {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.curiosity-card > a:hover { border-color: var(--line-strong); background: var(--accent-wash); }
.curiosity-thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  background: var(--accent-soft);
}
.curiosity-card-copy { padding: .9rem 1rem 1.05rem; }
.curiosity-subject { color: var(--accent-hover); font-size: .84rem; font-weight: 700; }
.curiosity-card h2 { margin-top: .2rem; color: var(--ink); font-size: 1.18rem; line-height: 1.32; overflow-wrap: anywhere; }
.curiosity-card p { margin-top: .38rem; color: var(--muted); font-size: .93rem; line-height: 1.53; overflow-wrap: anywhere; }
.article-photo { max-width: 48rem; margin-top: 1.25rem; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.article-photo img { display: block; width: 100%; height: auto; }
.article-photo figcaption { padding: .6rem .8rem; color: var(--muted); background: var(--accent-wash); font-size: .86rem; line-height: 1.5; }
.article-photo .photo-credit { display: block; margin-top: .1rem; }
.photo-credit a { color: var(--accent-hover); text-decoration: underline; text-underline-offset: .16em; }
.reading-body p.reading-topic-lead { color: var(--ink); font-weight: 550; }
.reading-topic-lead + .article-photo { max-inline-size: 42rem; }
.curiosity-return { margin-top: 1.25rem; }

@media (max-width: 830px) {
  .curiosity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
  .curiosity-grid { grid-template-columns: minmax(0, 1fr); }
}

.curiosity-grid--single { grid-template-columns: minmax(0, 1fr); }
.curiosity-topic + .curiosity-topic {
  margin-top: 1.9rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.curiosity-topic > h2 { margin-top: 0; }
.curiosity-topic > p { margin-top: .5rem; }
.curiosity-topic > h3 { font-size: 1.15rem; }
.curiosity-topic .sources h3 { font-size: 1.02rem; }

@media (min-width: 700px) {
  .curiosity-grid--single .curiosity-card > a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.36fr); align-items: center; }
  .curiosity-grid--single .curiosity-thumb { border-radius: calc(var(--radius) - 1px) 0 0 calc(var(--radius) - 1px); }
  .curiosity-grid--single .curiosity-card-copy { padding: clamp(1.2rem, 3vw, 2.2rem); }
  .curiosity-grid--single .curiosity-card h2 { font-size: clamp(1.25rem, 2.5vw, 1.85rem); }
}


/* Página inicial */
.home-page { position: relative; }

.home-page, .home-content {
  --ink: var(--home-ink, #351b44);
  --muted: var(--home-muted, #675e76);
  --accent: var(--home-accent, #883aa0);
  --accent-hover: var(--home-accent-hover, #6e2d89);
  --accent-soft: var(--home-accent-soft, #f2dff7);
  --accent-wash: var(--home-accent-wash, #fcf2fa);
  --line: var(--home-line, #e9d9e6);
  --line-strong: var(--home-line-strong, #d9badf);
}

.home-page, .editorial-frame {
  --school-width: min(20.43vw, 20.25rem, calc(37.5vw - 16.5rem));
  background: var(--editorial-canvas, #fbf2f5);
}

.home-page:not(.site-frame)::before,
.site-backdrop-art {
  position: absolute;
  inset: 0 auto auto 0;
  width: var(--school-width);
  aspect-ratio: 324 / 502;
  background: var(--school-scene, none) left top / contain no-repeat;
  mask-image: var(--school-edge, none);
  pointer-events: none;
}

.home-page:not(.site-frame)::before {
  z-index: 3;
  content: '';
}

.site-backdrop {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: clip;
  pointer-events: none;
}

.site-backdrop-art { opacity: var(--editorial-art-opacity, .24); }
.site-frame:has(.home-content) .site-backdrop-art { opacity: var(--home-art-opacity, 1); }

@media (prefers-reduced-motion: no-preference) {
  .site-backdrop-art { transition: opacity .2s ease; }
}

.home-page .masthead { border: 0; background: linear-gradient(105deg, #fdf8fa 15%, #f8edf4 61%, #f0e3f1); }
.home-page .masthead-inner { inset-inline-start: 1.8rem; width: min(76%, 75rem); min-height: 4.8125rem; }

.home-page .brand {
  gap: 1.2rem;
  color: var(--ink);
  font: 400 2.22rem/.87 var(--display);
  letter-spacing: -.038em;
}
.home-page .brand small {
  margin-top: .55rem;
  font: 550 .79rem/1 var(--sans);
  letter-spacing: .34em;
  text-transform: uppercase;
}
.home-page .brand-mark { width: 3.25rem; height: 3rem; border-radius: .78rem; background: linear-gradient(145deg, #f8eef8, #e9cfee); }
.home-page .brand-mark svg { width: 2.15rem; height: 2.15rem; }
.home-page .nav { gap: clamp(1rem, 2.06vw, 2.05rem); }
.home-page .nav a { position: relative; padding-inline: .36rem; font-size: 1.17rem; font-weight: 500; }
.home-page .nav a[aria-current='page'] { color: var(--accent-hover); font-weight: 650; }
.home-page .nav a[aria-current='page']::after {
  position: absolute;
  inset: auto .12rem .1rem;
  height: .19rem;
  border-radius: 1rem;
  background: var(--accent);
  content: '';
}

.home-page .write-link {
  gap: .62rem;
  min-height: 3rem;
  padding-inline: 1.18rem;
  border-radius: .76rem;
  background-color: #fffaff55;
  font-size: 1.22rem;
  font-weight: 600;
}
.home-page .write-link:hover { background-color: var(--accent-soft); }
.home-page .write-link svg { width: 1.45rem; height: 1.45rem; }

.home-page:not(.site-frame) main {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.home-page:not(.site-frame) main,
.site-backdrop {
  background:
    radial-gradient(ellipse 28% 17rem at 44% -5%, var(--editorial-glow-top, #e0c8e5) 0%, transparent 74%),
    radial-gradient(ellipse 43% 17rem at 89% 6%, var(--editorial-glow-right, #e6cde9a6) 0%, transparent 78%),
    radial-gradient(ellipse 38% 11rem at 72% 40%, var(--editorial-glow-middle, #dfbde588) 0%, transparent 77%),
    radial-gradient(ellipse 24% 7rem at 40% 43%, var(--editorial-glow-center, #dab5df6b) 0%, transparent 80%),
    radial-gradient(ellipse 12rem 9rem at -3% 62%, var(--editorial-glow-left, #f0d8f2) 28%, transparent 75%),
    var(--editorial-base-gradient, linear-gradient(145deg, #fbf0f2, #faf1f5 42%, #fbf2f4 70%, #fdf5f7));
}
.home-page:not(.site-frame) main::before,
.home-page:not(.site-frame) main::after,
.site-backdrop::before,
.site-backdrop::after,
.footer--editorial::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: '';
}
.home-page:not(.site-frame) main::before,
.site-backdrop::before {
  background: var(--editorial-upper-decoration, linear-gradient(115deg, #ead1ed8c, #e4bfed00 61%, #e1b9e962));
  clip-path: inset(100%);
  clip-path: shape(from 83% 0, line to 100% 0, line to 100% 6%, curve to 76% 39% with 91% 21% / 85% 28%, curve to 83% 0 with 74% 24% / 78% 6%, close,
    move to 100% 33%, line to 100% 45%, curve to 80% 57% with 92% 45% / 86% 54%, curve to 100% 33% with 88% 49% / 95% 41%, close);
}
.home-page:not(.site-frame) main::after,
.site-backdrop::after {
  background: var(--editorial-lower-decoration, linear-gradient(145deg, #e6c2ef30 71%, #deb5e95c 92%, #ebcef32b));
  clip-path: inset(100%);
  clip-path: shape(from 74% 100%, curve to 100% 91.5% with 83% 92% / 91% 88%, line to 100% 100%, close,
    move to 85% 100%, curve to 100% 79% with 91% 93% / 96% 81%, line to 100% 100%, close,
    move to 0 55%, curve to 11% 53% with 5% 51% / 9% 51%, curve to 0 70% with 7% 60% / 4% 68%, close);
}

.home-content { padding-block: clamp(1.85rem, 2.52vw, 2.5rem) clamp(3rem, 4.66vw, 4.625rem); }
.editorial-hero {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.55rem, 3.02vw, 3rem);
  width: min(91.8%, 91rem);
  margin-inline: auto;
  padding-inline-start: clamp(0rem, calc(30vw - 15rem), 14.65rem);
}
.editorial-intro { min-width: 0; padding-top: 1.6rem; }
.editorial-intro h1 { color: var(--ink); font: 400 clamp(3.65rem, 5.49vw, 5.45rem)/.98 var(--display); letter-spacing: -.041em; }
.editorial-intro h1 em { display: inline-block; color: #8b469f; transform: scaleX(1.12); transform-origin: left; }
.editorial-intro p { max-width: 35rem; margin: .8rem 0 0 .2rem; color: var(--muted); font-size: clamp(1.1rem, 1.45vw, 1.43rem); line-height: 1.39; }

.editorial-intro .search-form {
  width: 100%;
  min-height: 4.05rem;
  margin-top: 1.48rem;
  padding: .2rem;
  border: 2px solid #fff;
  border-radius: 2.2rem;
  background: linear-gradient(120deg, #fffefc9e, #fcf7fbb3);
  box-shadow: 0 18px 25px #62356125, 0 2px 6px #733d6e15, inset 0 0 18px #ffffffa3;
}
.editorial-intro .search-form:focus-within { border-color: var(--home-search-focus, #a760b0); }
.editorial-intro .search-field { gap: 1rem; padding-inline: clamp(.8rem, 1.3vw, 1.3rem) .4rem; color: #675278; }
.editorial-intro .search-field svg { width: 1.6rem; height: 1.6rem; }
.editorial-intro .search-field input { font-size: clamp(1rem, 1.17vw, 1.17rem); }
.editorial-intro .search-field input::placeholder { color: var(--home-search-placeholder, #766b82); }
.editorial-intro .search-submit {
  min-width: clamp(5.3rem, 8.3vw, 8.25rem);
  border: 0;
  border-radius: 1.55rem;
  background: var(--home-search-action, radial-gradient(ellipse at top left, #bc77c1 0%, transparent 65%), linear-gradient(144deg, #894b99, #4d265f 96%));
  box-shadow: inset 1px 2px 5px #eab8ed67;
  font-size: clamp(1rem, 1.17vw, 1.17rem);
  font-weight: 570;
}
.editorial-intro .search-submit:hover { background: var(--home-search-action-hover, linear-gradient(140deg, #9a51ad, #4d265f)); }
.editorial-intro .search-submit:focus-visible { outline-offset: 0; }

.featured-work {
  display: grid;
  align-items: start;
  min-width: 0;
  min-height: clamp(16rem, 19.3vw, 19.2rem);
  padding: clamp(1.3rem, 1.65vw, 1.65rem) clamp(1.4rem, 2.3vw, 2.3rem) 2.4rem;
  border: 2px solid #fff9;
  border-radius: 1.4rem;
  color: var(--featured-ink, #fff8fc);
  background: var(--featured-background, radial-gradient(ellipse at 90% 2%, #b276ad, transparent 75%), linear-gradient(120deg, #6f477c, #4c304f));
  box-shadow: 0 19px 27px #67356032, 0 4px 9px #5e355a18;
}
.featured-work--covered {
  background:
    var(--featured-cover-overlay, linear-gradient(90deg, #5a3766ec, #643d6ea8 32%, #643d6e19 54%, transparent 65%)),
    var(--featured-cover, none) center / cover no-repeat var(--featured-cover-background, #724a7d);
}
.featured-work:hover { border-color: #fff; box-shadow: 0 19px 30px #67356050; }
.featured-copy { display: grid; justify-items: start; min-width: 0; }
.featured-label {
  display: inline-flex;
  align-items: center;
  gap: .47rem;
  min-height: 2.25rem;
  padding: .25rem .98rem;
  border-radius: 2rem;
  color: #fff9ff;
  background: #f6caff36;
  font-size: clamp(.72rem, .94vw, .92rem);
  font-weight: 500;
  letter-spacing: .045em;
  line-height: 1.25;
  text-transform: uppercase;
}
.featured-label svg { width: 1.33rem; height: 1.33rem; }
.featured-copy h2 {
  max-width: 6.9em;
  margin-block: .78rem .8rem;
  color: inherit;
  font: 400 clamp(2.48rem, 3.23vw, 3.2rem)/.87 var(--display);
  letter-spacing: -.026em;
  overflow-wrap: anywhere;
}
.featured-subject { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .35rem; position: relative; font-size: clamp(1rem, 1.2vw, 1.18rem); overflow-wrap: anywhere; }
.featured-subject::after {
  position: absolute;
  inset: calc(100% + .52rem) auto auto 0;
  width: 4.1rem;
  height: 1.5px;
  border-radius: 2px;
  background: #fdf0fa;
  content: '';
}

.editorial-feed {
  grid-template-columns: minmax(0, 2.24fr) minmax(13.8rem, 1fr);
  gap: clamp(1.4rem, 3.42vw, 3.38rem);
  width: min(84%, 83rem);
  margin: clamp(2.3rem, 3.78vw, 3.75rem) auto 0;
  position: relative;
  inset-inline-start: .3rem;
}
.editorial-feed .section-heading { margin: 0 0 1.59rem .4rem; }
.editorial-feed .section-title {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-height: 1.32rem;
  color: var(--accent-hover);
  font-size: .94rem;
  font-weight: 575;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.editorial-feed .section-title::before { width: 2.9rem; height: 1.5px; flex: none; background: var(--accent); content: ''; }
.editorial-feed .post-list { display: grid; gap: 1.28rem; border: 0; background: transparent; box-shadow: none; }
.editorial-feed .post-row,
.category-menu a {
  border: 1px solid var(--line);
  border-radius: 1.38rem;
  background: var(--home-glass);
  box-shadow: var(--home-card-shadow), inset 0 1px 2px #fffc;
}
.editorial-feed .post-link {
  grid-template-columns: minmax(0, 29.7%) minmax(0, 1fr) auto;
  gap: 0;
  min-height: 5.75rem;
  padding: .54rem 1.18rem .54rem .6rem;
  border-radius: inherit;
}
.editorial-feed .post-cover { display: block; width: 100%; max-height: 7.62rem; aspect-ratio: auto 2.15; object-fit: cover; border-radius: .85rem; }
.editorial-feed .post-icon { align-self: stretch; justify-self: stretch; width: auto; height: auto; margin: 0; }
.editorial-feed .post-icon svg { width: 1.55rem; height: 1.55rem; }
.editorial-feed .post-content { margin-inline: clamp(.75rem, 1.91vw, 1.9rem) .72rem; padding-block: .25rem .45rem; }
.editorial-feed .post-meta { gap: .35rem .68rem; color: var(--accent-hover); }
.editorial-feed .post-meta > span { padding: .26rem .83rem; border: 1px solid #e8d3ed; border-radius: 2rem; font-size: .875rem; font-weight: 540; line-height: 1.17; }
.editorial-feed .post-subject { background: #faf0f75e; }
.editorial-feed .type-label { background: linear-gradient(145deg, #f3e4f7, #ebd3f1); }
.editorial-feed .post-link h3 { margin-top: .37rem; font: 400 clamp(1.38rem, 1.99vw, 2rem)/1 var(--display); letter-spacing: -.014em; }
.editorial-feed .post-link p { margin-top: .35rem; font-size: .9rem; line-height: 1.45; }
.editorial-feed .post-chevron { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: linear-gradient(140deg, #f8edfa, #efdcf3); }
.editorial-feed .post-chevron svg { width: 1.28rem; height: 1.28rem; }

.category-sidebar { min-width: 0; }
.category-sidebar .section-title { margin: 0 0 1.59rem -.38rem; }
.category-menu {
  --category-gutter: clamp(.65rem, 1.42vw, 1.4rem);
  --category-icon-size: 2.74rem;
  display: grid;
  gap: .82rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.category-menu a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.75rem, 1.5vw, 1.48rem);
  min-height: 4.37rem;
  padding: .42rem var(--category-gutter);
  border-radius: 1.24rem;
  color: #552464;
  font-size: clamp(1.01rem, 1.43vw, 1.43rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.category-menu a:hover { border-color: var(--line-strong); background: #f0dff3; }
.category-menu-icon { width: var(--category-icon-size); height: var(--category-icon-size); border-radius: .8rem; background: linear-gradient(140deg, #fcf4fa, #f0dff4); }
.category-menu-icon svg { width: 1.98rem; height: 1.98rem; }
.category-menu a > svg { width: 1.38rem; height: 1.38rem; color: var(--accent-hover); }

.category-menu-children {
  --branch-gap: .42rem;
  --branch-width: .9rem;
  position: relative;
  margin-block-start: var(--branch-gap);
  margin-inline-start: calc(var(--category-gutter) + var(--category-icon-size) / 2);
  padding: 0;
  padding-inline-start: var(--branch-width);
  list-style: none;
}
.category-menu-children::before {
  position: absolute;
  inset-block-start: calc(-1 * var(--branch-gap));
  inset-inline-start: 0;
  width: var(--branch-width);
  height: calc(50% + var(--branch-gap));
  border-inline-start: 1px solid #b78cc4;
  border-block-end: 1px solid #b78cc4;
  border-end-start-radius: .4rem;
  pointer-events: none;
  content: '';
}
.category-menu .category-menu-children a {
  gap: .65rem;
  min-height: 2.9rem;
  padding: .35rem .78rem;
  border-radius: .85rem;
  background: linear-gradient(140deg, #faf0fa, #f2e3f5);
  box-shadow: inset 0 1px 2px #fffc;
  font-size: clamp(1rem, 1.15vw, 1.15rem);
}
.category-menu .category-menu-children a:hover { background: #f0dff3; }
.category-menu-children .category-menu-icon { width: 1.55rem; height: 1.55rem; background: transparent; }
.category-menu-children .category-menu-icon svg { width: 1.4rem; height: 1.4rem; }

.footer--editorial {
  position: relative;
  isolation: isolate;
  border: 0;
  padding-block: .45rem;
  color: var(--footer-ink, #fff9ff);
  background: var(--footer-background,
    radial-gradient(ellipse 24% 130% at 60% 81%, #a65e9b 0%, #683a75 65%, transparent),
    radial-gradient(ellipse 24% 115% at 0% -14%, #99559b 0%, transparent),
    linear-gradient(112deg, #48275e, #58336a 57%, #442159));
  font-size: .95rem;
}
.footer--editorial::before {
  background: var(--footer-decoration, linear-gradient(110deg, transparent 39%, #c383bb44 62%, transparent 77%));
  clip-path: inset(100%);
  clip-path: shape(from 42% 100%, curve to 62% 67% with 54% 13% / 56% 71%, curve to 78% 0 with 67% 67% / 69% -2%, line to 85% 0, curve to 63% 73% with 74% 11% / 72% 61%, curve to 56% 100% with 61% 81% / 59% 91%, close);
}
.footer--editorial .footer-inner { justify-content: start; gap: .75rem clamp(1.2rem, 2.65vw, 2.65rem); width: min(84%, 83.5rem); position: relative; inset-inline-start: .55rem; }
.footer.footer--editorial .brand { gap: 1.35rem; color: inherit; font: 400 1.85rem/.87 var(--display); letter-spacing: -.038em; }
.footer.footer--editorial .brand small { margin-top: .55rem; color: inherit; font: 550 .73rem/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; }
.footer.footer--editorial .brand-mark { width: 3rem; height: 3rem; border-radius: .78rem; color: var(--footer-mark-ink, #fffaff); background: var(--footer-mark-background, linear-gradient(145deg, #ae71ba, #89549e)); }
.footer.footer--editorial .brand-mark svg { width: 2rem; height: 2rem; }
.footer-nav { display: flex; flex-wrap: wrap; align-items: center; min-height: 1.9rem; gap: .4rem clamp(1rem, 2.85vw, 2.85rem); padding-inline-start: clamp(1rem, 2.4vw, 2.4rem); border-inline-start: 1px solid #fff9; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: .2em; }
.footer.footer--editorial .footer-search { display: inline-flex; align-items: center; gap: .6rem; width: min(13.35rem, 100%); margin-inline-start: auto; padding-bottom: .54rem; border-bottom: 1px solid #fffe; color: inherit; font-weight: 500; }
.footer.footer--editorial .footer-search svg { width: 1.35rem; height: 1.35rem; }
.footer--editorial :focus-visible { outline-color: #edd2f4; }

@media (max-width: 1250px) {
  .home-page, .editorial-frame {
    --school-width: clamp(8rem, 16.85vw, 13.15rem);
    --school-edge: linear-gradient(90deg, #000 70%, transparent);
  }
  .home-page .masthead { z-index: auto; }
  .home-page .masthead-inner {
    z-index: 4;
    inset-inline-start: 0;
    width: auto;
    margin-inline: clamp(5.5rem, 13.2vw, 10.25rem) 1.5rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .65rem;
  }
  .home-page .nav { justify-self: center; }
  .editorial-hero { padding-inline-start: clamp(4.35rem, 10.7vw, 8.4rem); }
  .editorial-intro h1 { font-size: clamp(2.5rem, 5.3vw, 4.15rem); }
}
@media (max-width: 1000px) {
  .home-page .brand { gap: .8rem; font-size: 1.9rem; }
  .home-page .nav { gap: .65rem; }
  .home-page .nav a, .home-page .write-link { font-size: 1rem; }
  .editorial-intro { padding-top: .35rem; }
  .editorial-feed, .footer--editorial .footer-inner { width: 91.8%; inset-inline-start: 0; }
}
@media (min-width: 731px) and (max-width: 850px) {
  .footer--editorial { padding-block: .3rem; }
  .footer--editorial .footer-inner { row-gap: .25rem; }
  .home-page .brand { gap: .55rem; font-size: 1.65rem; }
  .home-page .brand-mark { width: 2.8rem; }
  .home-page .nav { gap: .3rem; }
  .home-page .nav a { padding-inline: .2rem; font-size: .94rem; }
  .home-page .write-link { gap: .4rem; padding-inline: .72rem; font-size: .94rem; }
}
@media (max-width: 730px) {
  .home-page, .editorial-frame {
    --school-width: clamp(7rem, 37vw, 9.5rem);
    --school-edge: linear-gradient(90deg, #000 42%, transparent);
    --home-art-opacity: .46;
  }
  .home-page {
    --home-masthead-height: 4.14rem;
  }
  .site-backdrop::before { content: none; }
  .home-page:not(.site-frame)::before {
    height: var(--home-masthead-height);
    aspect-ratio: auto;
    background-size: 100% auto;
    opacity: .65;
  }
  .home-page:not(.site-frame) main::before {
    inset: 0 auto auto 0;
    width: var(--school-width);
    height: calc(var(--school-width) * 502 / 324 - var(--home-masthead-height));
    background: var(--school-scene, none) left calc(-1 * var(--home-masthead-height)) / 100% auto no-repeat;
    clip-path: none;
    mask-image: var(--school-edge);
    opacity: .46;
  }
  .home-page .masthead-inner {
    min-height: var(--home-masthead-height);
    margin-inline: clamp(2.9rem, 13vw, 4.75rem) 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .home-page .brand { font-size: 1.8rem; }
  .home-page .brand-mark { width: 2.65rem; height: 2.65rem; }
  .home-page .brand small { margin-top: .35rem; font-size: .63rem; }
  .home-page .brand-mark svg { width: 1.74rem; height: 1.74rem; }
  .editorial-hero, .editorial-feed, .footer--editorial .footer-inner { width: calc(100% - 2rem); }
  .editorial-hero, .editorial-feed { grid-template-columns: minmax(0, 1fr); }
  .editorial-hero { padding-inline-start: 0; }
  .editorial-intro h1 { font-size: clamp(2.6rem, 10.6vw, 4.1rem); }
  .editorial-intro h1 em { transform: none; }
  .editorial-intro p { margin-inline-start: 0; }
  .editorial-intro .search-form { min-height: 3.45rem; margin-top: 1.05rem; }
  .editorial-intro .search-field { gap: .5rem; }
  .editorial-intro .search-field svg { width: 1.32rem; height: 1.32rem; }
  .featured-work { min-height: 15.2rem; }
  .featured-work--covered {
    background-image: var(--featured-cover-overlay-mobile, linear-gradient(90deg, #513056f5, #55315ba3 54%, #5130560d 88%)), var(--featured-cover, none);
  }
  .featured-copy h2 { margin-block: .65rem .59rem; }
  .editorial-feed { gap: 1.65rem; margin-top: 1.85rem; }
  .editorial-feed .section-heading, .category-sidebar .section-title { margin: 0 0 .8rem; }
  .editorial-feed .section-title { gap: .62rem; font-size: .82rem; letter-spacing: .18em; }
  .editorial-feed .section-title::before { width: 1.75rem; }
  .editorial-feed .post-list { gap: .75rem; }
  .editorial-feed .post-link { gap: .68rem; grid-template-columns: minmax(0, 27%) minmax(0, 1fr) auto; padding-inline: .5rem .7rem; }
  .editorial-feed .post-content { margin-inline: 0; }
  .editorial-feed .post-cover { min-height: 4.25rem; }
  .editorial-feed .post-meta { gap: .26rem .38rem; }
  .editorial-feed .post-meta > span { padding: .2rem .47rem; font-size: .73rem; }
  .editorial-feed .post-link p { font-size: .84rem; }
  .editorial-feed .post-chevron { width: 1.7rem; height: 1.7rem; }
  .editorial-feed .post-chevron svg { width: 1.1rem; height: 1.1rem; }
  .category-menu a { min-height: 3.7rem; }
  .footer--editorial { padding-block: .3rem; }
  .footer--editorial .footer-inner { gap: .45rem 1.2rem; }
  .footer.footer--editorial .brand small { margin-top: .35rem; }
  .footer-nav { order: 1; width: 100%; padding-inline-start: 0; border: 0; }
  .footer.footer--editorial .footer-search { width: auto; }
}
@media (max-width: 405px) {
  .editorial-feed .post-link { grid-template-columns: minmax(0, 25%) minmax(0, 1fr); }
  .editorial-feed .post-chevron { display: none; }
  .footer.footer--editorial .brand { gap: .56rem; font-size: 1.38rem; }
  .footer.footer--editorial .brand-mark { width: 2.3rem; height: 2.3rem; }
  .footer.footer--editorial .brand small { font-size: .58rem; }
  .footer.footer--editorial .footer-search { gap: .3rem; font-size: .81rem; }
}
