/* Morada — padrões compartilhados de acabamento, aplicados em todas as páginas. */
:root {
  --color-paper: #f4efe6;
  --color-card: #f8f4ed;
  --color-sand: #eae2d3;
  --color-ink: #242321;
  --color-night: #202427;
  --color-muted: #665b51;
  --color-red: #a53735;
  --color-red-hover: #81332f;
  --color-red-soft: #d49086;
  --color-line: #d4c8b9;
  --color-on-night: #d0c6bb;
  --color-night-line: #615c57;
  --color-stone: #777a79;
  --color-rose: #b77b70;
  --paper: var(--color-paper);
  --paper-light: var(--color-card);
  --paper-deep: var(--color-sand);
  --ink: var(--color-ink);
  --ink-soft: var(--color-muted);
  --petrol: var(--color-night);
  --terracotta: var(--color-red);
  --line: var(--color-line);
  --content-width: 1240px;
  --page-gutter: 48px;
  --section-space: 64px;
  --closing-band-height: 64px;
  --button-height: 48px;
  --title-size: clamp(3.2rem, 5.2vw, 5rem);
  --heading-size: clamp(2.1rem, 3.2vw, 3.1rem);
}
body { color: var(--color-ink); background: var(--color-paper); }
:where(.page-shell,.section-shell,.nav-shell,.hero-grid,.editorial-index) {
  width: min(var(--content-width), calc(100% - var(--page-gutter) * 2));
  margin-inline: auto;
}
/* These containers occur in older editorial pages too. */
.page-shell,.section-shell,.nav-shell,.hero-grid,.editorial-index {
  width: min(var(--content-width), calc(100% - var(--page-gutter) * 2));
}
.site-header { background: var(--color-paper); border-bottom: 1px solid var(--color-line); }
.nav-shell { min-height: 100px; gap: 24px; }
.site-header .brand-logo { width: 220px; height: auto; }
.site-nav { gap: 24px; }
.site-nav a { color: var(--color-muted); font-size: .75rem; line-height: 1.5; letter-spacing: .1em; }
.site-nav a:hover,.site-nav a[aria-current] { color: var(--color-red-hover); }
.site-nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; }
.site-nav .nav-shop { min-height: var(--button-height); display: inline-flex; align-items: center; gap: 18px; padding: 12px 16px; border: 1px solid var(--color-line); text-decoration: none; }
.site-nav .nav-shop:hover { background: var(--color-sand); border-color: var(--color-red); }
.nav-toggle { width: var(--button-height); height: var(--button-height); border-color: var(--color-line); color: var(--color-ink); background: transparent; }
main h1 { font-size: var(--title-size); font-weight: 400; line-height: 1.04; letter-spacing: -.04em; }
.direct-home .direct-hero h1,.product-direct h1,.subpage-hero h1,.status-hero h1,.aqp-title { font-size: var(--title-size); line-height: 1.04; }
main h2,.product-direct h2,.direct-home h2 { font-size: var(--heading-size); font-weight: 400; line-height: 1.1; letter-spacing: -.035em; }
main p,main li { text-justify: auto; }
/* Left aligned body copy avoids uneven word spacing across the different pages. */
main p,.knowledge-page .intro-grid .prose p:not(:first-child),.knowledge-page .feature-copy p,.status-lead,.status-intro-grid>p,.status-ethics-grid>p,.status-ethics-grid>div:last-child,.status-pending p { text-align: left; }
.eyebrow,.shop-copy>.eyebrow,.editorial-kicker { color: var(--color-red); font-size: .66rem; line-height: 1.65; font-weight: 600; letter-spacing: .12em; }
.section,.pd-section,.shop-section,.about-brief,.access-brief,.pd-buy,.status-section { padding-block: var(--section-space); }
.direct-closing { padding-block: 40px; }
.subpage-hero,.status-hero,.aqp-hero { padding-block: var(--section-space); background-color: var(--color-paper); }
.section.tint,.pd-sand,.shop-section,.status-section.tint { background: var(--color-sand); }
.section.dark,.about-brief,.pd-buy,.status-ethics { background: var(--color-night); color: var(--color-paper); }
.section.dark p,.status-ethics p,.about-brief p:not(.eyebrow),.pd-buy p:not(.eyebrow) { color: var(--color-on-night); }
.section.dark .eyebrow,.status-ethics .eyebrow,.about-brief .eyebrow,.pd-buy .eyebrow { color: var(--color-red-soft); }
.shop-card,.material-card { border: 1px solid var(--color-line); border-radius: 0; box-shadow: none; background: var(--color-card); }
.shop-copy>p:not(.eyebrow),.pd-items p { font-size: .875rem; line-height: 1.75; }
.shop-bottom>span,.pd-hero-offer>span,.pd-price>span,.pd-price small { font-size: .75rem; line-height: 1.65; }
.shop-image,.pd-covers,.pd-previews a { background: var(--color-sand); border-color: var(--color-line); }
.pd-covers figcaption,.pd-previews figcaption,.direct-art figcaption,.art-caption { color: var(--color-muted); font-size: .75rem; line-height: 1.6; }
.pd-covers figure,.pd-previews figure { min-width: 0; }
.pd-covers img,.pd-previews img { border-radius: 0; }
.card,.status-steps article,.status-visual img,.status-pill,.feature-panel,.feature-image,.lia-shortcut-art { border-radius: 0; box-shadow: none; }
.button,.direct-button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: var(--button-height); padding: 13px 20px; border: 1px solid var(--color-ink);
  border-radius: 0; background: var(--color-ink); color: var(--color-paper);
  font-family: var(--sans); font-size: .84rem; font-weight: 400; line-height: 1.5;
  letter-spacing: 0; text-transform: none; text-align: left; text-decoration: none;
  box-shadow: none; transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.button:hover,.direct-button:hover,.button:focus-visible { transform: none; background: var(--color-red-hover); border-color: var(--color-red-hover); color: var(--color-paper); box-shadow: none; }
.pd-buy .direct-button { background: var(--color-paper); color: var(--color-ink); border-color: var(--color-paper); }
.pd-buy .direct-button:hover { background: var(--color-sand); border-color: var(--color-sand); }
.button.secondary { min-height: 44px; padding: 10px 0; font: .84rem/1.5 var(--sans); border: 0; border-bottom: 1px solid var(--color-line); color: var(--color-red-hover); background: transparent; }
.button.secondary:hover { color: var(--color-red); border-bottom-color: var(--color-red); }
[aria-disabled="true"].button,[aria-disabled="true"].button:hover { background: transparent; color: var(--color-muted); border-color: var(--color-line); cursor: default; transform: none; }
.text-link,.pd-jump,.pd-bottom a,.shop-bottom>a { color: var(--color-red-hover); text-underline-offset: 4px; }
.text-link:hover,.pd-jump:hover,.pd-bottom a:hover,.shop-bottom>a:hover { color: var(--color-red); text-decoration: underline; }
.product-direct details,.access-faq details { border-color: var(--color-line); }
.product-direct summary,.access-faq summary { min-height: var(--button-height); padding: 18px 32px 18px 0; font: 400 1.18rem/1.4 var(--serif); }
.product-direct summary::after,.access-faq summary::after { right: 0; color: var(--color-red); }
.product-direct summary::-webkit-details-marker,.access-faq summary::-webkit-details-marker { display: none; }
.pd-buy details { border-color: var(--color-night-line); }
.pd-buy summary::after { color: var(--color-red-soft); }
/* One band, one height, one background. No page-specific sizing. */
.site-breathing-band {
  display: block; width: 100%; height: var(--closing-band-height); min-height: var(--closing-band-height);
  max-height: var(--closing-band-height); padding: 0; margin: 0; border: 0;
  position: relative; overflow: hidden;
  background: linear-gradient(100deg, var(--color-paper), var(--color-sand) 55%, var(--color-paper));
}
.site-breathing-band::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/morada-hero-abstrata.png") center 50% / cover no-repeat;
  opacity: .22; filter: grayscale(1) sepia(.15); mix-blend-mode: multiply;
  mask-image: linear-gradient(to bottom, transparent, black 35%, black 65%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 35%, black 65%, transparent);
}
.site-breathing-band::after { content: none; }
.site-footer,.direct-home+.site-footer { padding: 40px 0 24px; margin: 0; border-top: 1px solid var(--color-line); background: var(--color-paper); color: var(--color-muted); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; }
.site-footer .brand-logo { width: 185px; height: auto; }
.footer-note { font-size: .75rem; line-height: 1.7; color: var(--color-muted); margin: 10px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 14px 24px; }
.footer-links a,.footer-bottom>a { color: var(--color-muted); font-size: .75rem; line-height: 1.6; text-decoration: none; }
.footer-links a:hover,.footer-bottom>a:hover { color: var(--color-red-hover); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--color-line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-bottom .footer-note { margin: 0; }
/* The helper controls use the same palette and focus treatment. */
.back-to-top,.lia-assistant-trigger,.lia-panel-close { background: var(--color-card); color: var(--color-ink); border: 1px solid var(--color-line); box-shadow: none; }
.lia-assistant-panel { border: 1px solid var(--color-line); border-radius: 0; background: var(--color-card); box-shadow: 0 16px 48px #2423211f; }
.lia-search-field,.lia-quick-links button { border-radius: 0; border-color: var(--color-line); color: var(--color-muted); background: var(--color-paper); }
.lia-search-results a { border-color: var(--color-line); border-radius: 0; }
.lia-search-results a:hover { background: var(--color-sand); }
.lia-search-field:focus-within { border-color: var(--color-red); box-shadow: none; }
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible { outline: 2px solid var(--color-red); outline-offset: 4px; }
@media (max-width: 1050px) { .site-nav { gap: 16px; } .site-header .brand-logo { width: 195px; } }
@media (max-width: 650px) {
  :root { --page-gutter: 24px; --section-space: 40px; --closing-band-height: 48px; --title-size: 3.2rem; --heading-size: 2.1rem; }
  .nav-shell { min-height: 84px; gap: 16px; }
  .site-header .brand-logo { width: 185px; }
  .site-nav.open { background: var(--color-paper); border-color: var(--color-line); }
  .site-nav .nav-shop { justify-content: space-between; }
  .direct-closing { padding-block: 36px; }
  .shop-copy>.eyebrow { font-size: .65rem; }
  .pd-hero-offer .direct-button { width: 100%; }
  .pd-covers figcaption,.pd-previews figcaption { font-size: .7rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-links { justify-content: flex-start; gap: 14px 20px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 12px; margin-top: 24px; }
  .site-footer,.direct-home+.site-footer { padding: 32px 0 24px; }
  .site-footer .brand-logo { width: 170px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
.knowledge-project-section { background: var(--color-sand); }
.knowledge-page .long-title { font-size: var(--heading-size); line-height: 1.1; }
.notice { background: var(--color-card); border-color: var(--color-line); border-radius: 0; color: var(--color-muted); }
.lia-boundary,.lia-no-results,.lia-search-results span { color: var(--color-muted); font-size: .75rem; }
.shop-heading h1 { font-size: var(--heading-size); margin: 8px 0; line-height: 1.1; }
@media (max-width: 920px) { .site-header { background: var(--color-paper); box-shadow: none; } }
/* Centered closing invitations retain their own intentional alignment. */
.direct-closing .eyebrow,.direct-closing h2,.direct-closing>div>p { text-align: center; margin-inline: auto; }
.direct-closing h2 { max-width: 28ch; }
/* Keep footer links clear of the floating navigation controls. */
.footer-links { padding-right: 72px; }
.footer-bottom>a { margin-right: 72px; }
@media (max-width: 650px) { .footer-links { padding-right: 48px; } .footer-bottom>a { margin-right: 48px; } }
