:root {
  --forest: #183d36;
  --forest-deep: #112c28;
  --ink: #24372f;
  --muted: #58685e;
  --cream: #f5f2e9;
  --card: #fffcf4;
  --line: #dcded2;
  --gold: #ba8f58;
  --gold-light: #ecd8b2;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
button, select { font: inherit; }
a { color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .58; }
button:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
[hidden] { display: none !important; }
.page-shell { max-width: 1600px; padding: 0 clamp(22px, 5vw, 80px); margin: 0 auto; }
.site-header { height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; }
.brand-icon { width: 37px; height: 37px; border: 1.5px solid var(--gold); border-radius: 50%; display: grid; place-items: center; transform: rotate(-22deg); }
.brand-icon span { display: block; width: 20px; height: 20px; border: 1.5px solid var(--forest); border-radius: 50% 50% 50% 7%; position: relative; }
.brand-icon span::after { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); position: absolute; left: 8px; top: 8px; }
.brand-name, .site-footer > span:first-child { font: 500 27px/1 'Fraunces', Georgia, serif; letter-spacing: -.07em; color: var(--forest); }
.brand-dot { color: var(--gold); padding: 0 2px; }
.top-nav { display: flex; align-items: center; gap: 36px; font-size: 13px; font-weight: 600; }
.top-nav a { text-decoration: none; transition: color .2s; }
.top-nav a:hover, .site-footer a:hover { color: #70512f; }
.header-label { letter-spacing: .14em; color: var(--muted); font-size: 10px; font-weight: 700; white-space: nowrap; }
.studio { display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1fr); align-items: start; gap: clamp(44px, 6vw, 104px); padding: 64px 0 92px; }
.intro-column { min-width: 0; padding-top: 20px; }
.eyebrow, .small-kicker, .art-label-row, .source-label { font-size: 10px; font-weight: 700; letter-spacing: .17em; }
.eyebrow { display: flex; gap: 12px; align-items: center; color: #6b5e49; }
.eyebrow-line { width: 35px; height: 1px; background: var(--gold); }
h1, h2, p { margin-top: 0; }
h1, .editorial h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; letter-spacing: -.059em; }
h1 { font-size: clamp(46px, 5.1vw, 80px); line-height: 1.06; margin: 23px 0 20px; color: var(--forest-deep); }
h1 em, .editorial h2 em { font-style: italic; color: #947043; font-weight: 400; }
.hero-lead { max-width: 460px; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.75; color: var(--muted); margin-bottom: 36px; }
.controls-card { padding: 28px 30px 24px; border: 1px solid var(--line); background: rgba(255, 252, 244, .68); box-shadow: 0 16px 34px rgba(27, 52, 43, .035); }
.controls-title-row { display: flex; justify-content: space-between; align-items: flex-start; }
.small-kicker { color: #71542f; display: inline-block; }
.controls-card h2 { font: 500 27px/1.2 'Fraunces', Georgia, serif; letter-spacing: -.035em; margin: 9px 0 25px; color: var(--forest); }
.subtle-spark { font-size: 29px; color: var(--gold); line-height: 1; }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 17px; }
.filters label { display: flex; flex-direction: column; gap: 8px; font-size: 11px; color: var(--muted); font-weight: 700; }
.filters select { width: 100%; height: 46px; border: 1px solid #d7ded3; border-radius: 0; color: var(--forest); background: var(--card); font-size: 13px; font-weight: 500; padding: 0 11px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23183d36'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 26px; }
.primary-button { border: none; width: 100%; background: var(--forest); color: #fffdf6; min-height: 60px; display: flex; gap: 12px; align-items: center; padding: 0 19px; font-size: 14px; font-weight: 700; transition: background .2s, transform .2s; }
.primary-button:not(:disabled):hover { background: #275e50; transform: translateY(-2px); }
.button-symbol { color: var(--gold-light); font-size: 21px; font-weight: 400; }
.button-arrow { margin-left: auto; font-size: 19px; font-weight: 400; }
.micro-note { color: #5d6a61; line-height: 1.5; font-size: 11px; margin: 13px 0 0; }
.source-card { margin-top: 25px; padding: 26px 30px 27px; border: 1px solid var(--line); position: relative; background: rgba(245, 242, 233, .48); }
.source-card::before { content: ''; position: absolute; left: 0; top: 25px; bottom: 25px; width: 2px; background: var(--gold); }
.source-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.source-tags span { background: #e9eee7; color: #426359; padding: 6px 9px; font-size: 10px; font-weight: 700; }
.source-tags span + span { background: #f0e8da; color: #6b5438; }
#objectiveTag { background: #e8e9dc; color: var(--forest); }
.current-quote { font: 500 clamp(21px, 2vw, 28px)/1.35 'Fraunces', Georgia, serif; white-space: pre-line; letter-spacing: -.022em; color: var(--forest-deep); margin: 18px 0 25px; }
.source-divider { height: 1px; background: var(--line); margin-bottom: 18px; }
.source-label { color: #6b5e49; margin-bottom: 8px; }
.source-work { font-size: 13px; font-weight: 700; color: var(--forest); margin-bottom: 3px; }
.source-institution, .source-author { font-size: 12px; line-height: 1.5; color: var(--muted); margin: 0; }
.source-author { font-style: italic; margin-top: 3px; }
.source-link, .context-link, .editorial-link { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; color: var(--forest); text-underline-offset: 4px; }
.source-link { margin-top: 15px; }
.context-link { margin: 11px 0 0 15px; }
.art-column { min-width: 0; position: sticky; top: 24px; }
.art-label-row { display: flex; justify-content: space-between; gap: 10px; color: #66583f; margin-bottom: 15px; }
.art-label-row span:last-child { color: var(--muted); }
.art-frame { position: relative; width: 100%; aspect-ratio: 1; background: linear-gradient(145deg, #203e36, #657b66 58%, #b39168); overflow: hidden; border: 8px solid #fffdf6; box-shadow: 0 24px 58px rgba(30, 47, 35, .17), 0 0 0 1px var(--line); }
.art-frame canvas { display: block; width: 100%; height: 100%; }
.loading-layer { position: absolute; inset: 0; background: rgba(16, 43, 38, .63); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px; color: white; font-size: 14px; font-weight: 700; text-align: center; }
.loading-ring { width: 40px; height: 40px; border: 2px solid rgba(255,255,255,.25); border-top-color: var(--gold-light); border-radius: 50%; animation: rotate 1s linear infinite; }
@keyframes rotate { to { transform: rotate(360deg); } }
.art-underbar { display: flex; align-items: center; gap: 9px; min-height: 54px; border-bottom: 1px solid var(--line); }
.art-state-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--gold); }
.art-underbar p { font-size: 11px; line-height: 1.35; color: var(--muted); margin: 0; }
.art-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 15px; }
.art-actions button { min-height: 51px; text-align: left; padding: 0 15px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; transition: background .2s; }
.secondary-button { border: 1px solid var(--forest); color: var(--forest); background: transparent; }
.secondary-button:not(:disabled):hover { background: #e5ece3; }
.download-button { border: 1px solid var(--gold); background: #dfc198; color: #342c1e; }
.download-button:not(:disabled):hover { background: #e8cda8; }
.art-actions button span { font-size: 20px; font-weight: 400; }
.asset-note { font-size: 11px; line-height: 1.55; color: #5d6a61; margin: 15px 0 0; }
.editorial { display: grid; grid-template-columns: .94fr 1fr; gap: clamp(50px, 8vw, 120px); border-top: 1px solid var(--line); padding: 72px 0 100px; }
.editorial h2 { margin: 17px 0 0; font-size: clamp(38px, 4vw, 58px); line-height: 1.12; color: var(--forest); }
.editorial-copy { max-width: 600px; padding-top: 6px; }
.editorial-copy p { font-size: 15px; line-height: 1.82; color: #56665b; margin: 0 0 15px; }
.editorial-copy strong { font-weight: 700; color: var(--forest); }
.editorial-link { margin-top: 8px; }
.site-footer { border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 102px; }
.site-footer > span:first-child { font-size: 22px; }
.site-footer > span:nth-child(2) { color: var(--muted); font-size: 11px; }
.site-footer a { color: var(--forest); font-size: 11px; font-weight: 700; white-space: nowrap; text-decoration: none; }
@media (max-width: 1180px) { .header-label { display: none; } .studio { gap: 42px; } h1 { font-size: clamp(47px, 5.1vw, 68px); } }
@media (max-width: 880px) { .studio { grid-template-columns: 1fr; padding: 42px 0 70px; } .intro-column { padding-top: 0; } .hero-lead { max-width: 670px; } .art-column { position: static; max-width: 690px; margin: 0 auto; width: 100%; } .editorial { gap: 38px; } }
@media (max-width: 620px) { .page-shell { padding: 0 20px; } .site-header { height: 74px; } .brand-name { font-size: 23px; } .brand-icon { width: 30px; height: 30px; } .brand-icon span { width: 16px; height: 16px; } .brand-icon span::after { left: 6px; top: 6px; } .top-nav { display: none; } .studio { gap: 36px; } h1 { font-size: clamp(46px, 11vw, 62px); margin-top: 19px; } .hero-lead { font-size: 15px; margin-bottom: 25px; } .controls-card, .source-card { padding-left: 21px; padding-right: 21px; } .filters { grid-template-columns: 1fr 1fr; gap: 9px; } .filters select { font-size: 11px; } .art-label-row { font-size: 9px; } .art-frame { border-width: 5px; } .art-actions { gap: 8px; } .art-actions button { font-size: 11px; padding: 0 10px; } .editorial { grid-template-columns: 1fr; gap: 22px; padding: 58px 0 68px; } .site-footer { flex-wrap: wrap; justify-content: flex-start; padding: 23px 0; gap: 10px 20px; } .site-footer > span:nth-child(2) { order: 3; width: 100%; } .site-footer a { margin-left: auto; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }

/* Navegação e catálogo editorial */
.workspace-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); padding-top: 14px; }
.workspace-tab { appearance: none; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); padding: 18px 24px 16px; font-size: 13px; font-weight: 700; text-align: left; transition: color .2s, background .2s; }
.workspace-tab:first-child { padding-left: 0; }
.workspace-tab:hover { color: var(--forest); background: rgba(233, 238, 231, .35); }
.workspace-tab[aria-selected="true"] { color: var(--forest); border-bottom-color: var(--gold); }
.workspace-tab > span:first-child { font-size: 10px; letter-spacing: .12em; color: #785b37; margin-right: 9px; }
.tab-count { display: inline-block; border: 1px solid #b3c5b5; color: var(--forest); border-radius: 50px; padding: 2px 7px; font-size: 10px; margin-left: 4px; }
.availability-note { color: var(--forest); font-size: 12px; font-weight: 700; margin: 16px 0 0; line-height: 1.5; }
.availability-note.is-empty { color: #7a5935; }
.library-panel { padding: 58px 0 86px; }
.library-heading { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, .6fr); gap: 52px; align-items: end; padding-bottom: 35px; }
.library-heading h1 { margin: 13px 0 18px; font-size: clamp(44px, 5vw, 70px); }
.library-heading h1 em { font-style: italic; color: #947043; }
.library-heading p { color: var(--muted); max-width: 620px; line-height: 1.7; font-size: 15px; margin: 0; }
.library-progress { display: grid; gap: 8px; padding: 22px 25px; background: #e8e9dc; border-left: 2px solid var(--gold); }
.library-progress strong { font: 500 28px/1.2 'Fraunces', Georgia, serif; color: var(--forest); }
.library-progress span { font-size: 13px; color: var(--muted); }
.library-progress progress { width: 100%; height: 8px; accent-color: var(--forest); }
.library-progress small { font-size: 11px; line-height: 1.5; color: var(--muted); }
.storage-warning { border: 1px solid #b99558; background: #fff4db; padding: 15px 18px; line-height: 1.55; font-size: 13px; }
.catalog-toolbar { display: grid; grid-template-columns: minmax(180px, 1.5fr) repeat(3, minmax(135px, 1fr)) auto; gap: 14px; align-items: end; border-top: 1px solid var(--line); padding: 27px 0 18px; }
.catalog-toolbar label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.catalog-toolbar input, .catalog-toolbar select { height: 48px; border: 1px solid #c9d2c8; background: var(--card); color: var(--forest); border-radius: 0; padding: 0 13px; font: 500 13px 'DM Sans', system-ui, sans-serif; min-width: 0; }
.catalog-toolbar input:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.reset-button { height: 48px; padding: 0 17px; border: 1px solid var(--forest); background: transparent; color: var(--forest); font-size: 12px; font-weight: 700; white-space: nowrap; }
.reset-button:not(:disabled):hover { background: #e5ece3; }
.catalog-results-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin: 6px 0 22px; }
.catalog-summary { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 0; }
.clear-filters { border: 0; background: transparent; color: var(--forest); padding: 4px 0; font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.clear-filters:hover:not(:disabled) { color: #70512f; }
.catalog-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.catalog-card { min-width: 0; padding: 25px 28px; border: 1px solid var(--line); background: rgba(255, 252, 244, .77); display: flex; flex-direction: column; gap: 13px; }
.catalog-card.is-used { background: #f0f1e9; border-color: #b5c7b9; }
.catalog-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.catalog-index { font-size: 11px; color: #735735; font-weight: 700; letter-spacing: .12em; }
.catalog-badge { white-space: nowrap; color: var(--forest); background: #dce8dd; border: 1px solid #a7c1aa; font-size: 11px; font-weight: 700; padding: 5px 9px; }
.catalog-card.is-used .catalog-badge { color: #4d4738; background: #e5ddcd; border-color: #cbb898; }
.catalog-card h2 { font: 500 25px/1.25 'Fraunces', Georgia, serif; letter-spacing: -.035em; color: var(--forest-deep); margin: 0; }
.catalog-card blockquote { font: 500 18px/1.5 'Fraunces', Georgia, serif; color: #314e42; margin: 0; white-space: pre-line; }
.catalog-card-meta { color: var(--muted); font-size: 12px; line-height: 1.55; margin: auto 0 0; padding-top: 5px; }
.catalog-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); padding-top: 15px; }
.catalog-card-actions a { font-size: 11px; font-weight: 700; text-underline-offset: 3px; }
.catalog-card-actions button { background: var(--forest); border: 1px solid var(--forest); color: #fffdf6; font-size: 12px; font-weight: 700; min-height: 40px; padding: 0 15px; }
.catalog-card-actions button:not(:disabled):hover { background: #275e50; }
.catalog-error { grid-column: 1 / -1; border-left: 3px solid var(--gold); background: var(--card); padding: 25px; }
.catalog-error p { color: var(--forest); line-height: 1.55; margin-bottom: 16px; }
.catalog-error button { border: 1px solid var(--forest); background: var(--forest); color: #fffdf6; min-height: 44px; padding: 0 18px; font-size: 13px; font-weight: 700; }
.catalog-error button:hover { background: #275e50; }
@media (max-width: 1050px) {
  .library-heading { grid-template-columns: 1fr; gap: 24px; }
  .library-progress { max-width: 440px; }
  .catalog-toolbar { grid-template-columns: 1fr 1fr; }
  .catalog-toolbar label:first-child { grid-column: 1 / -1; }
  .catalog-toolbar .reset-button { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 620px) {
  .workspace-tab { flex: 1; text-align: center; padding: 16px 7px 13px; }
  .workspace-tab:first-child { padding-left: 7px; }
  .library-panel { padding: 38px 0 65px; }
  .library-heading h1 { font-size: clamp(44px, 11vw, 62px); }
  .library-heading p { font-size: 14px; }
  .catalog-toolbar { grid-template-columns: 1fr; gap: 12px; }
  .catalog-toolbar label { grid-column: 1 / -1; }
  .catalog-results-row { align-items: flex-start; flex-wrap: wrap; }
  .catalog-list { grid-template-columns: 1fr; gap: 12px; }
  .catalog-card { padding: 21px; }
  .catalog-card h2 { font-size: 23px; }
  .catalog-card blockquote { font-size: 17px; }
}
