@font-face {
  font-family: 'DM Sans';
  src: url('assets/fonts/dm-sans.woff2') format('woff2');
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('assets/fonts/dm-sans-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #20211e;
  --muted: #60625a;
  --blue: #183cc4;
  --line: #d9d9ce;
  --sans: 'DM Sans', "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.65 var(--sans); color: var(--ink); background: var(--paper); }
body:has(dialog[open]) { overflow: hidden; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
button:disabled { cursor: default; opacity: .4; }
img { display: block; max-width: 100%; }
.arrow { width: 19px; height: 19px; flex: none; display: inline-block; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.down-arrow { rotate: 90deg; }
.up-arrow { rotate: -45deg; }
.previous-arrow { rotate: -135deg; }
.next-arrow { rotate: 45deg; }
.hero-piece .arrow { width: 12px; height: 12px; }
.hero-caption .arrow { width: 10px; height: 10px; vertical-align: middle; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 350; }
.shell { width: min(1340px, calc(100% - 112px)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 4; top: 8px; left: 8px; padding: 9px 14px; background: white; }
.header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; text-decoration: none; }
.mark { width: 28px; height: 28px; display: grid; place-items: center; background: var(--blue); border-radius: 50%; }
.mark span { width: 9px; height: 9px; background: #f7cd34; transform: rotate(45deg); }
.header nav { display: flex; gap: 30px; }
.header nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 13px; }
.header nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.header-note { font-size: 10px; letter-spacing: .12em; color: var(--muted); }

.hero { display: grid; grid-template-columns: 44fr 56fr; gap: 30px; min-height: 545px; align-items: center; padding-block: 56px 60px; }
.kicker { font-size: 10px; line-height: 1.3; letter-spacing: .16em; font-weight: 600; color: var(--muted); }
.hero-copy > .kicker { display: flex; align-items: center; gap: 7px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
h1 { font-size: clamp(56px, 5.9vw, 90px); line-height: 1.02; letter-spacing: -.065em; margin: 22px 0 19px; }
h1 em, h2 em { font-family: inherit; font-weight: inherit; color: var(--blue); }
.intro { max-width: 29ch; font-size: 17px; line-height: 1.5; color: var(--muted); }
.primary-link { display: inline-flex; align-items: center; gap: 27px; min-height: 46px; margin-top: 22px; padding-bottom: 2px; color: var(--blue); border-bottom: 1px solid var(--blue); text-decoration: none; font-size: 13px; font-weight: 600; }
.primary-link:hover { color: #0d2490; }
.primary-link span { font-size: 24px; line-height: 1; font-weight: 400; }
.hero-footnote { display: flex; align-items: center; gap: 9px; margin-top: 32px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.hero-footnote small { font-size: 10px; }
.sun { display: inline-block; width: 34px; height: 34px; flex: none; fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; }
.hero-gallery { position: relative; min-height: 350px; display: grid; grid-template-columns: 1fr 1.22fr .92fr; gap: 14px; align-items: center; padding: 12px 6px 34px; }
.hero-piece { min-width: 0; border: 0; padding: 0; background: white; box-shadow: 0 7px 20px #20211e12; transition: transform .18s; }
.hero-piece img { width: 100%; height: auto; }
.hero-piece > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px; color: var(--muted); font-size: 9px; text-align: left; }
.hero-one { transform: rotate(-6deg); }
.hero-two { transform: translateY(-30px) rotate(3deg); position: relative; z-index: 1; }
.hero-three { transform: translateY(24px) rotate(6deg); }
.hero-piece:hover { transform: translateY(-6px) rotate(0); z-index: 2; }
.hero-caption { position: absolute; bottom: 0; right: 6px; color: var(--muted); font-size: 9px; letter-spacing: .12em; }

section[id] { scroll-margin-top: 24px; }
.work-section { padding-top: 40px; padding-bottom: 65px; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: end; padding-bottom: 27px; }
h2 { font-size: clamp(35px, 3.4vw, 53px); letter-spacing: -.055em; line-height: 1.1; margin-top: 10px; }
.section-head > p { justify-self: end; color: var(--muted); font-size: 13px; line-height: 1.6; }
.gallery-context { margin: 0 0 25px; max-width: 76ch; font-size: 14px; line-height: 1.7; color: var(--muted); }
.portrait-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(20px, 4vw, 56px); align-items: center; margin-bottom: 30px; padding: clamp(16px, 3vw, 36px); background: #f7f6f0; }
.portrait-feature h3 { margin: 0 0 10px; font-size: clamp(26px, 4vw, 47px); letter-spacing: -.045em; line-height: 1.1; }
.portrait-feature .gallery-context { margin: 0; }
.portrait-triptych { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); aspect-ratio: 1; }
.portrait-panel { position: relative; display: block; overflow: hidden; }
.portrait-panel:focus-visible { z-index: 1; outline: 3px solid white; outline-offset: -6px; }
.portrait-panel img { position: absolute; left: 50%; top: 50%; max-width: none; width: var(--portrait-width); height: auto; transform: translate(var(--portrait-x), var(--portrait-y)); mask-image: linear-gradient(transparent, #000 8% 92%, transparent); }
.portrait-panel[data-open="retrato-em-vermelho"] { --portrait-width: 163%; --portrait-x: -47%; --portrait-y: -55%; background: #cc1500; }
.portrait-panel[data-open="retrato-em-azul"] { --portrait-width: 184%; --portrait-x: -50%; --portrait-y: -52%; background: #073ad4; }
.portrait-panel[data-open="retrato-em-amarelo"] { --portrait-width: 161%; --portrait-x: -50%; --portrait-y: -51%; background: #ffbe00; }
@media (max-width: 760px) {
  .portrait-feature { grid-template-columns: 1fr; }
}
.allegories { margin: 0 0 30px; padding: 23px clamp(12px, 2.3vw, 29px) 26px; background: #f7f6f0; }
.allegories h3 { font-size: clamp(23px, 3.1vw, 35px); letter-spacing: -.045em; line-height: 1.15; margin: 0 0 9px; }
.allegories .gallery-context { margin-bottom: 18px; }
.allegory-pairs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 27px); }
.allegory-pair { min-width: 0; padding-top: 11px; border-top: 1px solid var(--line); }
.allegory-pair h4 { margin: 0 0 12px; font-size: 14px; font-weight: 650; }
.allegory-pair-works { display: grid; grid-template-columns: minmax(0, .55fr) minmax(0, 1fr); gap: 10px; }
.allegory-pair .art-card { min-width: 0; margin: 0; }
.allegory-pair .art-picture { height: clamp(97px, 12vw, 160px); background: transparent; }
.allegory-pair .art-picture img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.allegory-pair .art-caption { padding-top: 6px; }
.allegory-pair .art-arrow .arrow { width: 14px; height: 14px; }
@media (max-width: 760px) {
  .allegory-pairs { grid-template-columns: 1fr; gap: 18px; }
  .allegory-pair .art-picture { height: clamp(100px, 40vw, 185px); }
}
.gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 25px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filters button { border: 1px solid #cecec2; min-height: 40px; padding: 7px 14px; border-radius: 3px; background: transparent; font-size: 12px; color: #55574f; }
.filters button:hover { border-color: var(--blue); color: var(--blue); }
.filters button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: white; }
.result-count { white-space: nowrap; color: var(--muted); font-size: 11px; }
.art-grid { columns: 3; column-gap: 23px; }
.art-variants { break-inside: avoid; }
.art-card { break-inside: avoid; margin: 0 0 25px; display: block; width: 100%; padding: 0; background: transparent; border: 0; text-align: left; text-decoration: none; scroll-margin-top: 110px; }
.art-picture { display: block; background: #edeee6; overflow: hidden; }
.art-room { position: relative; }
.art-room .room-artwork, .viewer-stage.has-room .room-artwork {
  position: absolute; left: 29.1%; top: 14.5%; width: 41.6%; height: 29.4%;
  object-fit: cover; margin: 0;
}
.art-card img { width: 100%; height: auto; transition: opacity .18s; }
.art-card:hover img { opacity: .88; }
.art-caption { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; padding: 10px 1px 0; }
.art-title { font-size: 13px; font-weight: 600; line-height: 1.3; }
.art-category { grid-column: 1; font-size: 10px; color: var(--muted); }
.art-arrow { grid-row: 1/3; grid-column: 2; color: var(--blue); font-size: 21px; }
.art-description { grid-column: 1 / -1; color: var(--muted); font-size: 12px; line-height: 1.5; }
.empty-state { font-size: 15px; padding-block: 24px; color: var(--muted); }

.about { display: grid; grid-template-columns: .7fr 1.8fr auto; gap: 30px; align-items: start; padding: 45px 0 49px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-label { display: flex; align-items: center; gap: 10px; }
.about h2 { margin: 0 0 21px; font-size: clamp(32px, 3.3vw, 48px); }
.about [data-about] { color: var(--muted); max-width: 58ch; font-size: 14px; }
.outline-link { margin-top: 5px; display: inline-flex; align-items: center; gap: 24px; min-height: 44px; padding: 8px 12px; border: 1px solid #c8cabd; color: var(--blue); text-decoration: none; font-size: 12px; }
.outline-link:hover { background: #eeefe8; }
.contact { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; padding-block: 45px; border-bottom: 1px solid var(--line); }
.contact-links { display: flex; gap: 22px; flex-wrap: wrap; }
.contact-links a { color: var(--blue); font-size: 16px; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 23px; font-size: 11px; color: var(--muted); }
.footer > span:first-child { color: var(--ink); font-weight: 600; }
.footer a { text-decoration: none; min-height: 44px; display: inline-flex; gap: 12px; align-items: center; }

dialog { border: 1px solid #575a53; padding: 0; width: min(1200px, calc(100% - 36px)); height: calc(100dvh - 36px); max-width: none; max-height: none; color: #f4f4ec; background: #161813; }
dialog::backdrop { background: #10110ee8; }
dialog a:focus-visible, dialog button:focus-visible { outline-color: #f7cf37; }
.viewer-layout { height: 100%; display: flex; flex-direction: column; min-height: 0; }
.viewer-header { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex: none; min-height: 77px; padding: 12px 20px; border-bottom: 1px solid #44473f; }
.viewer-header .kicker { color: #bfc3b6; font-size: 9px; }
.viewer-header h2 { margin-top: 5px; color: #fff; letter-spacing: -.02em; font-size: 24px; line-height: 1.12; }
.icon-button { display: inline-grid; place-items: center; background: transparent; color: inherit; border: 1px solid #777b6f; border-radius: 50%; width: 44px; height: 44px; padding: 0; font-size: 22px; line-height: 1; flex: none; }
.icon-button:hover { background: #30342b; border-color: #bfc3b6; }
#close-viewer { font-size: 30px; }
.viewer-stage { display: flex; flex: 1; min-height: 0; min-width: 0; overflow: auto; padding: 12px; background: #11130f; touch-action: pan-y; }
.viewer-stage.has-transparent-artwork { background: #edeee6; }
.viewer-stage img { display: block; margin: auto; width: 100%; height: 100%; min-width: 0; object-fit: contain; max-width: 100%; max-height: 100%; }
.viewer-stage.is-zoomed { touch-action: auto; }
.viewer-stage.is-zoomed img { height: auto; max-width: none; max-height: none; flex: none; }
.viewer-image-frame { display: contents; }
.viewer-stage.has-room { container-type: size; }
.viewer-stage.has-room .viewer-image-frame {
  position: relative; display: block; flex: none; margin: auto;
  width: min(100cqw, 100cqh); aspect-ratio: 1;
}
.viewer-stage.has-room.is-zoomed .viewer-image-frame { align-self: start; }
.viewer-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 73px; padding: 12px 20px; flex: none; border-top: 1px solid #44473f; }
.viewer-navigation { display: flex; gap: 12px; align-items: center; }
#viewer-position { color: #d4d8ca; min-width: 50px; text-align: center; font-size: 12px; }
.viewer-actions { display: flex; align-items: center; gap: 20px; }
.viewer-actions a, .text-button { color: #eceee5; font-size: 12px; text-decoration: none; }
.text-button { background: transparent; border: 1px solid #777b6f; padding: 9px 12px; min-height: 40px; border-radius: 3px; }
.text-button[aria-pressed="true"] { color: #25271f; background: #f7cf37; border-color: #f7cf37; }
.viewer-actions a { min-height: 44px; display: inline-flex; align-items: center; gap: 5px; }
.viewer-actions a:hover { text-decoration: underline; }

@media (min-width: 1600px) {
  .art-grid { columns: 4; }
}
@media (max-width: 1100px) {
  .shell { width: calc(100% - 72px); }
  .hero { gap: 22px; min-height: 485px; padding-block: 45px; }
  .hero-gallery { min-height: 320px; gap: 9px; }
  .hero-footnote { margin-top: 24px; }
  .hero-piece > span { font-size: 8px; padding: 6px; }
  .header-note { display: none; }
  .about { grid-template-columns: .8fr 2fr; }
  .about .outline-link { grid-column: 2; justify-self: start; margin-top: 0; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { min-height: 72px; gap: 15px; }
  .wordmark { font-size: 13px; gap: 7px; }
  .mark { width: 22px; height: 22px; }
  .mark span { width: 7px; height: 7px; }
  .header nav { gap: 15px; }
  .header nav a { font-size: 11px; }
  .hero { grid-template-columns: 1fr; padding-block: 34px 32px; gap: 20px; }
  h1 { font-size: clamp(52px, 11vw, 78px); margin: 17px 0 16px; }
  .intro { font-size: 16px; max-width: 33ch; }
  .hero-footnote { display: none; }
  .primary-link { margin-top: 15px; }
  .hero-gallery { min-height: 0; padding: 22px 12px 34px; gap: 10px; grid-template-columns: 1fr 1.12fr .92fr; }
  .hero-two { transform: translateY(-13px) rotate(3deg); }
  .hero-three { transform: translateY(9px) rotate(6deg); }
  .hero-piece > span { font-size: 8px; padding: 6px; }
  .hero-caption { font-size: 8px; }
  .work-section { padding-top: 30px; padding-bottom: 37px; }
  .section-head { grid-template-columns: 1fr; gap: 12px; padding-bottom: 20px; }
  .section-head > p { justify-self: start; }
  h2 { font-size: 38px; }
  .gallery-toolbar { align-items: start; gap: 8px; flex-direction: column; margin-bottom: 20px; }
  .filters { gap: 6px; }
  .filters button { padding: 7px 11px; font-size: 11px; min-height: 40px; }
  .art-grid { columns: 2; column-gap: 16px; }
  .art-card { margin-bottom: 22px; }
  .art-title { font-size: 12px; }
  .art-arrow { font-size: 18px; }
  .art-caption { gap: 3px 6px; }
  .about { grid-template-columns: 1fr; padding-block: 31px; gap: 20px; }
  .about .outline-link { grid-column: 1; }
  .about h2 { font-size: 37px; }
  .about .sun { width: 30px; height: 30px; }
  .footer { flex-wrap: wrap; gap: 4px 18px; padding-block: 16px; }
  .footer > span:nth-child(2) { order: 3; width: 100%; font-size: 10px; }
  dialog { width: calc(100% - 16px); height: calc(100dvh - 16px); }
  .viewer-header { padding: 10px 12px; min-height: 72px; }
  .viewer-header h2 { font-size: 21px; }
  .viewer-footer { padding: 10px 12px; flex-wrap: wrap; justify-content: center; gap: 10px 25px; }
  .viewer-navigation { gap: 10px; }
  .viewer-actions { gap: 15px; }
  .viewer-stage { padding: 7px; }
}
@media (max-width: 400px) {
  .shell { width: calc(100% - 28px); }
  .header-inner { flex-wrap: wrap; align-content: center; padding-block: 10px; gap: 1px 10px; }
  .header nav { margin-left: 29px; }
  .header nav a { min-height: 33px; }
  .hero-piece > span { display: none; }
  .hero-gallery { padding-inline: 10px; }
  .art-grid { columns: 1; }
  .art-card { margin-bottom: 25px; }
  .art-title { font-size: 13px; }
  .viewer-header h2 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Motion and color details shared by the portfolio sections. */
.header { position: sticky; top: 0; z-index: 4; background: #ffffffed; backdrop-filter: blur(14px); }
.header nav a { position: relative; }
.header nav a::after { position: absolute; content: ""; height: 1px; background: var(--blue); bottom: 8px; left: 0; width: 100%; transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.header nav a[aria-current="location"] { color: var(--blue); }
.header nav a[aria-current="location"]::after { transform: scaleX(1); }
section[id] { scroll-margin-top: 114px; }
.hero-piece { transition: transform .65s cubic-bezier(.2,.7,.2,1), box-shadow .65s; }
.hero-piece:hover { box-shadow: 0 16px 32px #20211e1e; }
.art-picture { position: relative; }
.art-card img { transition: opacity .45s, transform .7s cubic-bezier(.2,.7,.2,1); }
.art-card:hover img { opacity: .94; transform: scale(1.015); }
.art-card:hover .art-room img { opacity: 1; transform: none; }
.art-caption .arrow { transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.art-card:hover .arrow { transform: translate(2px,-2px); }
.filters button, .outline-link { transition: color .3s, background .3s, border-color .3s; }
.about { grid-template-columns: minmax(140px,.85fr) minmax(0,1.8fr) minmax(125px,.65fr); gap: clamp(24px,4vw,65px); align-items: center; padding-block: 68px; border-bottom: 0; }
.bio-art { max-width: 230px; margin: 0; }
.bio-art img { width: 100%; height: auto; border: 10px solid white; box-shadow: 0 5px 18px #20211e10; }
.bio-art figcaption { margin-top: 7px; color: var(--muted); font-size: 10px; }
.bio-copy h2 { margin-top: 16px; font-size: clamp(38px,4vw,57px); }
.bio-copy [data-about] { max-width: 49ch; font-size: 15px; line-height: 1.8; }
.profile-note { margin-top: 13px; color: #66685e; font-size: 11px; line-height: 1.6; }
.bio-copy .outline-link { margin-top: 23px; gap: 18px; }
.bio-side { align-self: stretch; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid var(--line); padding-left: 25px; }
.bio-side > span { font-size: 60px; font-weight: 350; letter-spacing: -.07em; line-height: 1.1; color: var(--blue); }
.bio-side > p { font-size: 11px; color: var(--muted); }
.color-study { display: flex; margin: 25px 0 16px; }
.color-study i { width: 30px; height: 30px; border-radius: 50%; background: #ff643e; }
.color-study i + i { margin-left: -6px; background: #eec437; }
.color-study i:last-child { background: #0e7752; }
.bio-side small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.contact { display: block; padding-block: 63px 69px; border: 0; background: #183cc4; color: #fffdf3; }
.contact-inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px,6vw,100px); align-items: center; }
.contact-copy .kicker { color: #dadff4; }
.contact-copy h2 { font-size: clamp(40px,4.6vw,65px); margin-top: 18px; letter-spacing: -.06em; }
.contact-copy h2 em { color: #eee8cd; }
.contact-copy > p:last-child { margin-top: 22px; color: #e2e6f9; font-size: 14px; max-width: 36ch; }
.contact-card { border: 1px solid #8094e3; padding: 30px; min-height: 205px; display: flex; flex-direction: column; justify-content: center; background: #ffffff08; }
.contact-star { display: block; width: 28px; height: 28px; color: #f7cd34; margin-bottom: 23px; }
.contact-pending { color: #fffdf3; font-size: 15px; line-height: 1.7; }
.contact-pending span { font-size: 12px; color: #e0e5fc; }
.contact-links { flex-direction: column; align-items: flex-start; gap: 12px; }
.contact-links a { color: #fffdf3; font-size: 18px; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.contact-links:empty { display: none; }
.contact-links a { overflow-wrap: anywhere; }
.print-section { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(35px,7vw,110px); align-items: center; padding-block: 65px; border-top: 1px solid var(--line); }
.print-art { display: block; width: 100%; max-width: 490px; padding: 0; border: 0; background: white; text-align: left; }
.print-art img { width: 100%; height: auto; }
.print-caption { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 18px; font-size: 11px; color: var(--muted); }
.print-art .arrow { width: 14px; height: 14px; color: var(--blue); }
.print-copy h2 { font-size: clamp(40px,4.8vw,67px); margin-top: 20px; }
.print-copy > p:not(.kicker) { max-width: 34ch; margin-top: 25px; color: var(--muted); font-size: 15px; }
.print-copy small { display: block; margin-top: 17px; color: var(--muted); font-size: 10px; }
.viewer-series { display: flex; flex: none; align-items: center; gap: 8px; overflow-x: auto; padding: 9px 20px; border-top: 1px solid #44473f; }
.viewer-series > span { flex: none; max-width: 60px; font-size: 10px; line-height: 1.4; color: #bfc3b6; }
.viewer-series button { flex: none; display: flex; align-items: center; gap: 8px; max-width: 190px; padding: 4px 9px 4px 4px; border: 1px solid #575b50; border-radius: 3px; background: transparent; color: #d4d8ca; text-align: left; font-size: 10px; line-height: 1.3; }
.viewer-series button[aria-pressed="true"] { border-color: #f7cf37; color: #f7cf37; }
.viewer-series img { width: 35px; height: 35px; object-fit: contain; background: #edeee6; }
.viewer-actions .viewer-shop { color: #f7cf37; }
.contact a:focus-visible { outline-color: #f7cd34; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.7,.2,1) var(--reveal-delay,0ms), transform .8s cubic-bezier(.2,.7,.2,1) var(--reveal-delay,0ms); }
.reveal.is-visible, .reveal:focus-visible { opacity: 1; transform: translateY(0); }
@media (max-width: 1100px) {
  .about { grid-template-columns: minmax(130px,.8fr) minmax(0,1.7fr); }
  .bio-side { grid-column: 2; border-left: 0; padding-left: 0; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; }
  .bio-side > span { font-size: 36px; }
  .bio-side .color-study { margin: 0 0 0 15px; }
  .bio-side small { display: none; }
}
@media (max-width: 760px) {
  section[id] { scroll-margin-top: 103px; }
  .header nav { gap: 16px; }
  .about { grid-template-columns: 110px minmax(0,1fr); padding-block: 40px; gap: 23px 18px; align-items: start; }
  .bio-art img { border-width: 6px; }
  .bio-copy h2 { font-size: 36px; }
  .bio-copy [data-about] { font-size: 14px; }
  .bio-side { grid-column: 1/-1; padding-top: 18px; border-top: 1px solid var(--line); }
  .bio-side > span { font-size: 32px; }
  .contact { padding-block: 40px 44px; }
  .contact-inner { grid-template-columns: 1fr; gap: 25px; }
  .contact-copy h2 { font-size: 43px; }
  .contact-card { min-height: 165px; padding: 22px; }
  .header-inner { flex-wrap: wrap; justify-content: center; gap: 0 20px; padding-block: 10px; }
  .header nav { gap: 20px; }
  .header nav a { min-height: 36px; }
  .print-section { grid-template-columns: 1fr; gap: 28px; padding-block: 35px; }
  .print-art { max-width: 460px; }
  .print-copy h2 { font-size: 45px; }
  .print-copy > p:not(.kicker) { margin-top: 18px; }
  .viewer-actions { flex-wrap: wrap; justify-content: center; gap: 5px 16px; }
  .viewer-series { padding: 9px 12px; }
}
@media (max-width: 560px) {
  .about { grid-template-columns: 1fr; }
  .bio-art { max-width: 140px; }
  .bio-copy h2 { font-size: 40px; }
}
@media (max-width: 400px) {
  section[id] { scroll-margin-top: 128px; }
  .header nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-piece, .art-card img, .art-caption .arrow, .filters button, .outline-link, .header nav a::after { transition: none; }
}

/* Uiliam Lima's identity and the dedicated books page. */
.wordmark { gap: 10px; font-size: 25px; letter-spacing: -.055em; font-weight: 600; }
.brand-animation { display: block; flex: none; width: auto; height: 58px; }
.header nav a[aria-current="page"] { color: var(--blue); }
.header nav a[aria-current="page"]::after { transform: scaleX(1); }
.bio-art { max-width: 240px; }
.bio-art img { border: 0; box-shadow: none; }
.bio-art figcaption { margin-top: 15px; }
.bio-writing { margin-top: 15px; max-width: 44ch; font-size: 14px; color: var(--muted); line-height: 1.8; }
.bio-writing a { display: block; margin-top: 10px; color: var(--blue); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.bio-writing .arrow { width: 13px; height: 13px; vertical-align: middle; margin-left: 4px; }
.books-page { min-height: 100dvh; display: flex; flex-direction: column; }
.books-contact { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 25px; padding-block: 25px; border-block: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.books-contact a { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; overflow-wrap: anywhere; color: var(--blue); text-underline-offset: 5px; }
.books-page .footer { width: min(1340px, calc(100% - 112px)); }
@media (max-width: 1100px) {
  .books-page .footer { width: calc(100% - 72px); }
}
@media (max-width: 760px) {
  .wordmark { font-size: 23px; gap: 8px; }
  .brand-animation { height: 42px; }
  .header-inner { gap: 0 20px; }
  .header nav { gap: 18px; }
  .books-page .footer { width: calc(100% - 36px); }
}
@media (max-width: 400px) {
  .header-inner { gap: 0 10px; }
  .header nav { margin-left: 0; }
  .hero h1 { font-size: clamp(2.6rem, 12.8vw, 3rem); }
  .books-page .footer { width: calc(100% - 28px); }
}
@media (max-width: 560px) {
  .bio-art { max-width: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-animation { display: none; }
}
