@font-face{font-family:Atlas Serif;src:url("assets/serif.woff") format("woff");font-weight:400;font-display:swap}
@font-face{font-family:Atlas Serif;src:url("assets/serif-italico.woff") format("woff");font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:Atlas Sans;src:url("assets/sans.woff") format("woff");font-weight:400;font-display:swap}
@font-face{font-family:Atlas Sans;src:url("assets/sans-forte.woff") format("woff");font-weight:700;font-display:swap}

:root {
  --paper: #faf6fa;
  --white: #fffbff;
  --ink: #311d3b;
  --muted: #5c4963;
  --line: #e2d4e6;
  --purple: #482859;
  --purple-deep: #311b43;
  --pink: #f4d4e5;
  --pink-deep: #803663;
  --green: #dce9c7;
  --green-deep: #344f31;
  --lavender: #eee4f6;
  --focus: #87469d;
  --serif: "Atlas Serif", Georgia, serif;
  --sans: "Atlas Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 15px/1.65 var(--sans); }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.connections button:focus-visible { outline-color: #f7c5df; outline-offset: -3px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
.icon { display: inline-block; width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.container { width: min(calc(100% - 112px), 1280px); 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: 5; top: 8px; left: 8px; padding: 8px 14px; background: var(--white); }
.header { border-bottom: 1px solid var(--line); background: #f7eff6; }
.masthead { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font: 400 21px/1.16 var(--serif); flex: none; }
.brand small { display: block; margin-top: 5px; color: var(--muted); font: 700 9px/1 var(--sans); letter-spacing: .20em; }
.brand-mark { width: 41px; height: 41px; padding: 6px; border-radius: 14px; color: var(--purple); background: var(--pink); stroke-width: 2; }
.masthead nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 45px); }
.masthead nav a, .back-top { font-size: 13px; text-decoration: none; font-weight: 700; white-space: nowrap; }
.masthead nav a { display: inline-flex; align-items: center; min-height: 44px; }
.masthead nav a:hover, .back-top:hover { color: var(--pink-deep); text-decoration: underline; text-underline-offset: 5px; }
.art-link { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #c5d7ac; background: var(--green); border-radius: 40px; min-height: 40px; padding: 6px 13px; white-space: nowrap; color: var(--green-deep); font-size: 12px; font-weight: 700; text-decoration: none; }
.art-link:hover { background: #cbdcb1; }

.book-return { margin-block: 16px; }
.book-return a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; }
.book-return + .hero { margin-top: 0; }

.hero { display: grid; grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); align-items: stretch; min-height: 541px; gap: 15px; margin-top: 28px; }
.hero-copy { position: relative; display: grid; align-items: center; padding: clamp(36px, 4.3vw, 65px); isolation: isolate; overflow: hidden; border: 1px solid #e7c7db; border-radius: 28px; background: radial-gradient(ellipse at 94% 0%, #e9d8f3 0, transparent 60%), linear-gradient(154deg, #fae8f1, #f4d8e7 78%, #eac8df); }
.hero-thread { position: absolute; width: min(77%, 420px); right: -18px; bottom: -5px; z-index: -1; opacity: .46; stroke: #a9588a; stroke-width: 1.2; stroke-linecap: round; }
.hero-thread use { stroke-width: 1.4; }
.eyebrow { color: var(--pink-deep); font: 700 11px/1.4 var(--sans); letter-spacing: .17em; }
.eyebrow span { margin-right: 8px; }
.hero .eyebrow { display: inline-flex; align-items: center; padding: 8px 12px; color: var(--green-deep); background: var(--green); border: 1px solid #c6d7ac; border-radius: 24px; font-size: 10px; }
.hero .eyebrow span { margin-right: 6px; }
.hero h1 { margin: 19px 0 23px; font-size: clamp(48px, 6.1vw, 92px); line-height: .98; letter-spacing: -.07em; }
.hero h1 em { color: var(--pink-deep); font-weight: 400; white-space: nowrap; }
.hero-inner > p:not(.eyebrow) { max-width: 38ch; color: #4e3654; font-size: clamp(14px, 1.24vw, 17px); line-height: 1.73; }
.hero-button { display: inline-flex; min-height: 51px; align-items: center; gap: 23px; margin-top: 29px; padding: 10px 19px; border-radius: 26px; color: #fff6fe; background: var(--purple); font-size: 13px; font-weight: 700; text-decoration: none; transition: background .18s; }
.hero-button:hover { background: #60326b; }
.hero-button .icon { width: 20px; height: 20px; }

.hero-gallery { display: grid; position: relative; min-width: 0; scroll-margin-top: 18px; border: 1px solid var(--line); border-radius: 28px; background: var(--white); }
.hero-art { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; }
.gallery-frame { position: relative; min-width: 0; min-height: 280px; border-radius: 26px 26px 0 0; overflow: hidden; background: #ead3e7; }
.gallery-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 57%; }
.gallery-frame[data-art="cidade"] img { object-position: 59% 50%; }
.gallery-frame[data-art="capa"] { background: radial-gradient(ellipse at center, #6a436d, var(--purple-deep) 75%); }
.gallery-frame[data-art="capa"] img { object-fit: contain; object-position: center; padding: 10px 0; }
.gallery-badge { position: absolute; z-index: 1; top: 15px; left: 15px; display: inline-flex; align-items: center; gap: 6px; color: #fff5fb; background: var(--purple-deep); border-radius: 22px; padding: 7px 10px; font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.gallery-badge span { color: #f6b7d5; }
.hero-art figcaption { display: flex; align-items: center; min-height: 73px; gap: 13px; padding: 8px 130px 8px 18px; line-height: 1.2; }
.gallery-ordinal { color: var(--pink-deep); font-size: 10px; font-weight: 700; letter-spacing: .12em; white-space: nowrap; }
.gallery-title { font: 400 clamp(15px, 1.65vw, 22px)/1.24 var(--serif); }
.gallery-controls { display: flex; gap: 6px; position: absolute; right: 13px; bottom: 14px; }
.gallery-controls button { display: grid; place-items: center; padding: 0; width: 44px; height: 44px; border: 1px solid #c9b1d1; border-radius: 50%; color: var(--purple); background: var(--lavender); transition: background .18s; }
.gallery-controls button:hover { background: var(--pink); }
.gallery-controls button:first-child .icon { rotate: 180deg; }
.gallery-controls .icon { width: 19px; height: 19px; }

section[id] { scroll-margin-top: 22px; }
.gifts { padding-block: 68px 78px; }
.section-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: end; margin-bottom: 29px; }
.section-head h2 { font-size: clamp(37px, 4.25vw, 64px); line-height: 1.1; letter-spacing: -.057em; margin-top: 10px; }
.section-head > p { color: var(--muted); max-width: 51ch; padding-bottom: 4px; justify-self: end; }
.section-head .eyebrow span { display: inline-grid; place-items: center; width: 27px; height: 27px; border: 1px solid #d9bdd4; border-radius: 50%; background: #f6e2ee; letter-spacing: .02em; }
.gift-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gift { display: flex; align-items: center; text-align: left; min-height: 169px; gap: 24px; padding: 23px; border: 1px solid #bfd0a9; border-radius: 22px; background: #e6efd8; transition: background .18s, border-color .18s; }
.gift-sky { background: #f5e1ef; border-color: #e5c6dc; }
.gift-sea:hover { background: #dceacb; border-color: #92aa76; }
.gift-sky:hover { background: #eed5e8; border-color: #bc87ad; }
.gift-emblem { display: grid; place-items: center; width: 93px; height: 93px; flex: none; color: var(--green-deep); border: 1px solid #a5ba8d; outline: 1px dashed #a5ba8d; outline-offset: -7px; border-radius: 42% 58% 54% 46%; background: #f0f6e6; }
.gift-sky .gift-emblem { color: var(--pink-deep); border-color: #cfa5c2; outline-color: #cfa5c2; border-radius: 57% 43% 47% 53%; background: #faedf6; }
.gift-emblem .icon { width: 52px; height: 52px; stroke-width: 1.15; }
.gift-copy { display: grid; gap: 4px; flex: 1; }
.gift-sea .eyebrow { color: var(--green-deep); }
.gift-title { font: 400 clamp(26px, 3vw, 40px)/1.15 var(--serif); letter-spacing: -.045em; }
.gift-description { color: var(--muted); font-size: 14px; }
.action-arrow { width: 21px; height: 21px; }

.catalog-section { background: #f1e9f5; padding: 66px 0 74px; border-block: 1px solid var(--line); }
.atlas-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; padding-top: 10px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button, .outline { min-height: 44px; padding: 8px 16px; border: 1px solid #cbb4d4; border-radius: 24px; background: #f9f2fa; color: var(--purple); font-size: 13px; font-weight: 700; }
.filters button:hover, .outline:hover { background: var(--pink); border-color: #b890b6; }
.filters button[aria-pressed="true"] { background: var(--purple); border-color: var(--purple); color: #fff6fe; }
.search { display: flex; align-items: center; gap: 9px; background: var(--white); border: 1px solid #c8afcf; border-radius: 24px; min-height: 46px; width: min(100%, 300px); padding: 0 15px; }
.search:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.search .icon { color: var(--pink-deep); width: 19px; height: 19px; }
.search input { background: transparent; border: 0; outline: none; width: 100%; min-width: 0; color: var(--ink); min-height: 43px; font-size: 16px; }
.search input:focus-visible { outline: none; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.result-count { margin: 15px 0 11px; color: var(--muted); font-size: 12px; min-height: 20px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.card { background: var(--white); text-align: left; display: grid; align-content: start; border: 1px solid #decee3; border-radius: 18px; min-height: 181px; padding: 16px 20px 20px; color: var(--ink); transition: border-color .18s, background .18s, box-shadow .18s; }
.card:hover { border-color: #b897c4; background: #fff; box-shadow: 0 5px 15px #48285912; }
.card-top { display: flex; gap: 9px; align-items: center; margin-bottom: 11px; }
.card-icon { width: 36px; height: 36px; border-radius: 12px; background: var(--lavender); display: grid; place-items: center; flex: none; color: var(--purple); }
.card-icon .icon { width: 22px; height: 22px; }
.card[data-type="objetos"] .card-icon { color: var(--pink-deep); background: var(--pink); }
.card[data-type="reinos"] .card-icon { color: #5b3a7a; background: #eadbf4; }
.card[data-type="povos"] .card-icon { color: var(--green-deep); background: var(--green); }
.card .eyebrow { font-size: 10px; letter-spacing: .13em; }
.card .action-arrow { margin-left: auto; color: var(--pink-deep); }
.card-title { font: 400 clamp(21px, 2.1vw, 28px)/1.16 var(--serif); letter-spacing: -.045em; }
.card-summary { margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.56; }
.atlas-more { text-align: center; }
.atlas-more button { margin-top: 24px; }
.empty { grid-column: 1/-1; background: var(--white); border: 1px dashed #bca5c4; border-radius: 18px; padding: 24px; }
.empty button { margin-top: 12px; }

.connections { background: radial-gradient(ellipse at 95% 0%, #593462, transparent 66%), var(--purple-deep); color: #fff4fc; padding: 67px 0 74px; }
.connections .eyebrow { color: #f6c3e1; }
.connections .eyebrow span { background: #623862; border-color: #925a89; }
.connections .section-head > p { color: #eedfee; }
.relationship { display: grid; grid-template-columns: minmax(200px, 26%) minmax(0, 1fr); border: 1px solid #86658d; border-radius: 20px; overflow: hidden; }
.relation-select { display: flex; flex-direction: column; background: #3d254c; border-right: 1px solid #86658d; }
.relation-select button { flex: 1; min-height: 59px; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 0; border-bottom: 1px solid #86658d; color: #f6e9f6; background: transparent; padding: 12px 17px; font-weight: 700; font-size: 13px; }
.relation-select button:last-child { border-bottom: 0; }
.relation-select button:hover { background: #643f6c; }
.relation-select button[aria-pressed="true"] { background: #f1cbe3; color: #4b284f; }
.relation-panel { padding: 23px clamp(18px, 3vw, 37px); background: #4c3159; }
.relation-panel h3 { font-size: 29px; letter-spacing: -.035em; }
.relation-panel > p { font-size: 13px; color: #f1e2f0; }
.relation-list { list-style: none; padding: 0; margin: 13px 0 0; display: grid; }
.relation-list li { display: flex; gap: 6px 10px; align-items: baseline; flex-wrap: wrap; padding-block: 4px; border-top: 1px solid #85658b; font-size: 13px; color: #eedfee; }
.relation-list button { padding: 5px 0; min-height: 36px; text-align: left; border: 0; background: transparent; color: #e2efc9; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.relation-list button:hover { color: white; }
.relation-list .rel-verb { color: #f2e3f2; }

.footer { padding-block: 33px; }
.footer-main { display: grid; grid-template-columns: 1fr 1.35fr auto; align-items: center; gap: 24px; }
.footer-note { color: var(--muted); font-size: 12px; max-width: 45ch; }
.back-top span { margin-left: 4px; }

dialog { color: var(--ink); background: var(--white); border: 1px solid #ccafcf; border-radius: 22px; width: min(605px, calc(100% - 28px)); max-height: calc(100dvh - 32px); padding: 0; overscroll-behavior: contain; box-shadow: 0 24px 60px #32194255; }
dialog::backdrop { background: #2e173bb8; }
.dialog-inner { padding: clamp(20px, 5vw, 38px); position: relative; }
.close { display: grid; place-items: center; position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border: 1px solid #d9bddc; border-radius: 50%; background: var(--lavender); }
.close:hover { background: var(--pink); }
.close .icon { width: 18px; height: 18px; }
.dialog-type { display: flex; align-items: center; gap: 10px; margin: 0 54px 14px 0; }
.dialog-type .card-icon { width: 44px; height: 44px; }
.dialog-type .icon { width: 28px; height: 28px; }
.dialog-inner h2 { font-size: clamp(32px, 6vw, 49px); letter-spacing: -.05em; line-height: 1.10; margin: 0 37px 6px 0; }
.dialog-subtitle { color: var(--pink-deep); font-weight: 700; font-size: 13px; margin-bottom: 14px; }
.dialog-description { color: var(--muted); margin: 0 0 17px; }
.dialog-related { border-top: 1px solid var(--line); padding-top: 13px; }
.dialog-related h3 { font-size: 22px; }
.dialog-related ul { list-style: none; padding: 0; margin: 7px 0 12px; display: grid; gap: 5px; }
.dialog-related button { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; text-align: left; align-items: center; padding: 8px 10px; background: #f3eaf5; border: 1px solid #e6d3eb; border-radius: 9px; font-size: 13px; min-height: 44px; }
.dialog-related button:hover { border-color: #b18dbf; }
.dialog-related button span:first-child { font-weight: 700; }
.dialog-related button small { grid-column: 1; color: var(--muted); }
.dialog-related button svg { grid-column: 2; grid-row: 1/3; }
.dialog-source { margin-top: 15px; color: var(--muted); font-size: 12px; }
.dialog-back { min-height: 44px; padding: 5px 0; color: var(--pink-deep); background: transparent; border: 0; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; font-weight: 700; }

@media (max-width: 1150px) {
  .container { width: calc(100% - 72px); }
  .hero { min-height: 465px; }
  .hero-copy { padding: 38px; }
}
@media (max-width: 930px) {
  .container { width: calc(100% - 48px); }
  .hero { grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); min-height: 424px; }
  .hero-copy { padding: 29px; }
  .gift { gap: 15px; padding: 16px; min-height: 145px; }
  .gift-emblem { width: 69px; height: 69px; }
  .gift-emblem .icon { width: 40px; height: 40px; }
  .card { padding-inline: 14px; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 32px); }
  .masthead { display: grid; grid-template-columns: 1fr auto; gap: 7px 9px; padding-top: 12px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand-mark { width: 33px; height: 33px; padding: 4px; border-radius: 11px; }
  .brand small { margin-top: 4px; font-size: 8px; }
  .masthead nav { grid-column: 1/-1; grid-row: 2; gap: 12px; justify-content: space-between; }
  .masthead nav a { font-size: 12px; }
  .art-link { padding: 5px 9px; min-height: 34px; font-size: 10px; gap: 4px; }
  .hero { margin-top: 14px; grid-template-columns: 1fr; min-height: 0; gap: 10px; }
  .hero-copy { padding: 30px 24px; border-radius: 23px; }
  .hero-thread { opacity: .34; }
  .hero h1 { font-size: clamp(44px, 11.8vw, 70px); margin-block: 13px 16px; }
  .hero-button { margin-top: 22px; min-height: 46px; }
  .hero-gallery { border-radius: 23px; }
  .gallery-frame { aspect-ratio: 1.25; min-height: 0; border-radius: 22px 22px 0 0; }
  .gallery-badge { top: 10px; left: 10px; font-size: 8px; }
  .hero-art figcaption { padding-left: 11px; padding-right: 111px; gap: 5px; flex-wrap: wrap; align-content: center; }
  .gallery-controls { right: 8px; gap: 4px; }
  .gifts, .catalog-section, .connections { padding-block: 47px 52px; }
  .section-head { grid-template-columns: 1fr; gap: 11px; margin-bottom: 19px; }
  .section-head h2 { margin-top: 6px; }
  .section-head > p { justify-self: start; font-size: 14px; }
  .gift-grid { gap: 9px; }
  .gift { min-height: 130px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: 1fr auto; gap: 15px; }
  .footer-note { grid-column: 1/-1; grid-row: 2; }
}
@media (max-width: 560px) {
  .hero-art figcaption { flex-direction: column; align-items: flex-start; align-content: flex-start; justify-content: center; }
  .gift-grid, .card-grid, .relationship { grid-template-columns: 1fr; }
  .gift { min-height: 112px; padding-inline: 15px; gap: 14px; }
  .card { min-height: 0; padding: 13px 15px 15px; }
  .card-top { margin-bottom: 6px; }
  .filters { gap: 6px; }
  .filters button { padding-inline: 11px; font-size: 12px; }
  .search { width: 100%; }
  .relation-select { display: grid; grid-template-columns: 1fr 1fr; border-right: 0; }
  .relation-select button { min-height: 51px; border-bottom: 1px solid #86658d; padding: 8px 10px; font-size: 12px; }
  .relation-select button:nth-child(odd) { border-right: 1px solid #86658d; }
  .relation-select button:last-child { border-bottom: 1px solid #86658d; }
  .relation-select .icon { width: 15px; height: 15px; }
  .relation-list li { gap: 0 7px; align-items: center; }
  .relation-list button { min-height: 44px; }
  .relation-panel { padding: 13px 14px 17px; }
  .relation-panel h3 { font-size: 24px; }
  .footer { padding-block: 23px; }
  .back-top { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
