@font-face {
  font-family: "Manrope Local";
  src: url("assets/fonts/manrope-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond Local";
  src: url("assets/fonts/cormorant-garamond-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond Local";
  src: url("assets/fonts/cormorant-garamond-semibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond Local";
  src: url("assets/fonts/cormorant-garamond-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --olive: #6a6232;
  --olive-deep: #574f25;
  --olive-card: #81773a;
  --gold: #95723f;
  --cream: #fffdf4;
  --paper: #fffefa;
  --card: #faf7ee;
  --ink: #231f1b;
  --muted: #68615d;
  --line: #e6dfd1;
  --shadow: 0 18px 28px rgb(56 45 20 / 15%);
  --serif: "Cormorant Garamond Local", Georgia, serif;
  --sans: "Manrope Local", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 126px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

body.menu-open,
body.document-lightbox-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 4px;
  background: #fff;
  color: #111;
}

.skip-link:focus {
  transform: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.mobile-only {
  display: none;
}

.hero {
  position: relative;
  min-height: 850px;
  overflow: hidden;
  background: var(--olive);
  color: #fff;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  z-index: 1;
  background: rgb(84 77 37 / 60%);
  pointer-events: none;
}

.hero-picture,
.hero-picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-picture {
  opacity: .82;
}

.hero-picture img {
  object-fit: cover;
  object-position: center 52%;
}

.site-header {
  position: fixed;
  z-index: 80;
  top: 0;
  right: 0;
  left: 0;
  isolation: isolate;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: 126px;
  padding: 37px max(80px, calc((100vw - 1280px) / 2)) 0;
  background: transparent;
}

.site-header::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background: rgb(102 94 49 / 71%);
  -webkit-backdrop-filter: blur(17px);
  backdrop-filter: blur(17px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 83.6538%, transparent 88.9423%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 83.6538%, transparent 88.9423%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: none;
}

.site-header > * {
  position: relative;
  z-index: 1;
}

.stf-signature {
  display: flex;
  align-items: center;
  gap: 17px;
  text-decoration: none;
}

.stf-signature picture,
.stf-signature img {
  width: 102px;
  height: 29px;
  object-fit: contain;
}

.stf-signature > span {
  width: 1px;
  height: 25px;
  background: rgb(255 255 255 / 65%);
}

.stf-signature strong {
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 50px;
}

.desktop-nav a {
  position: relative;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle,
.mobile-menu {
  display: none;
}

.hero-content {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: min(1120px, calc(100% - 80px));
  transform: translate(-50%, -37%);
  text-align: center;
}

.hero-mark {
  position: relative;
  width: 420px;
  height: 165px;
  margin: 0 auto 34px;
}

.hero-mark picture,
.hero-mark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-mark img {
  filter: brightness(0) invert(1);
}

.hero-mark-detail {
  z-index: 2;
}

.hero h1 {
  max-width: 1000px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(31px, 2.5vw, 38px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -.015em;
}

.section {
  padding-right: max(80px, calc((100vw - 1280px) / 2));
  padding-left: max(80px, calc((100vw - 1280px) / 2));
}

.intro {
  padding-top: 122px;
  padding-bottom: 102px;
  background: var(--cream);
}

.intro-top {
  display: grid;
  grid-template-columns: 515px minmax(0, 1fr);
  gap: 64px;
}

.eyebrow {
  margin: 0 0 26px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.intro h2,
.section-heading h2,
.timeline-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.018em;
}

.intro h2 {
  color: #746a33;
  font-size: 44px;
  line-height: 1.05;
}

.short-rule {
  display: block;
  width: 80px;
  height: 2px;
  margin-top: 34px;
  background: #9b7743;
}

.intro-copy {
  padding-top: 8px;
  color: #2f2a26;
  font-size: 16px;
  line-height: 1.75;
}

.intro-copy p,
.starting-point p {
  margin: 0 0 20px;
}

.intro-copy strong {
  color: var(--gold);
  font-weight: 700;
}

.starting-point {
  margin-top: 80px;
}

.starting-point h3 {
  margin: 0 0 38px;
  color: #a07c48;
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 600;
  line-height: 1;
}

.starting-point p {
  font-size: 15px;
  line-height: 1.75;
}

.timeline {
  position: relative;
  height: 702px;
  padding-top: 53px;
  padding-bottom: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}

.timeline-heading {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 40px;
  align-items: start;
  padding-bottom: 27px;
  border-bottom: 1px solid var(--line);
}

.date-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  padding: 5px 11px;
  border: 1px solid #8a7c3d;
  border-radius: 5px;
  color: #796d34;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}

.date-badge i,
.postcard-copy i,
.feature-label i {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.timeline-heading h2 {
  color: #766c33;
  font-size: 41px;
  line-height: 1.05;
}

.timeline-heading p {
  max-width: 775px;
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.timeline-brand {
  width: 240px;
  height: 150px;
  padding: 40px;
  border: 1px solid #9a824e;
  border-radius: 4px;
  object-fit: contain;
}

.timeline-viewport {
  height: 365px;
  overflow: auto;
  scrollbar-width: none;
  overscroll-behavior: contain;
}

.timeline-viewport::-webkit-scrollbar,
.postcards::-webkit-scrollbar {
  display: none;
}

.timeline-list {
  margin: 0;
  padding: 36px 0 120px;
  list-style: none;
}

.timeline-list li {
  display: grid;
  grid-template-columns: 225px 36px 1fr;
  min-height: 150px;
  align-items: start;
}

.timeline-list time {
  padding-top: 3px;
  color: #756a31;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

.timeline-axis {
  position: relative;
  display: flex;
  justify-content: center;
  height: 100%;
}

.timeline-axis::after {
  position: absolute;
  top: 18px;
  bottom: 0;
  width: 1px;
  border-left: 2px dotted #a07d48;
  content: "";
}

.timeline-axis img {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
}

.timeline-list li > div {
  padding-left: 40px;
}

.timeline-list h3 {
  margin: 0 0 8px;
  color: #756a31;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.15;
}

.timeline-list p {
  margin: 0;
  color: #68615d;
  font-size: 13px;
  line-height: 1.55;
}

.timeline::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 110px;
  content: "";
  background: linear-gradient(transparent, #fff 65%);
  pointer-events: none;
}

.timeline-more {
  position: absolute;
  z-index: 2;
  bottom: 26px;
  left: 50%;
  width: 42px;
  height: 42px;
  padding: 13px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transform: translateX(-50%);
}

.timeline-more:hover {
  background: #faf7ef;
}

.collection,
.exhibitions,
.events {
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.collection {
  padding-top: 123px;
  padding-bottom: 119px;
  overflow: hidden;
}

.section-heading h2,
.collection-heading h2 {
  font-size: 42px;
  line-height: 1.04;
}

.collection-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
}

.collection-heading > div {
  max-width: 780px;
}

.collection-heading > div > p:last-child {
  margin: 21px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-olive {
  background: #72682f;
  color: #fff;
}

.button-olive:hover {
  background: #5b5226;
}

.postcards-shell {
  position: relative;
  margin-top: 64px;
}

.postcards {
  display: flex;
  gap: 18px;
  width: calc(100vw - max(80px, (100vw - 1280px) / 2));
  overflow-x: auto;
  padding: 0 70px 20px 0;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.postcard {
  flex: 0 0 354px;
  min-height: 345px;
  overflow: hidden;
  border: 1px solid #ded7c8;
  border-radius: 7px;
  outline: none;
  background: #fff;
  scroll-snap-align: start;
  perspective: 1000px;
}

.postal-visual {
  position: relative;
  height: 220px;
  transform-style: preserve-3d;
  transition: transform 400ms ease-in-out;
}

.postcard:hover .postal-visual,
.postcard:focus-visible .postal-visual,
.postcard.flipped .postal-visual {
  transform: rotateY(180deg);
}

.postal-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
}

.postal-front {
  padding: 12px 16px 10px;
  background: #f3efe4;
}

.postal-front picture,
.postal-front img {
  width: 100%;
  height: 100%;
}

.postal-front img {
  object-fit: cover;
}

.postal-back {
  padding: 22px;
  border-bottom: 1px solid #ded7c8;
  background: #fff;
  color: #4a443f;
  transform: rotateY(180deg);
}

.postal-back .stamp {
  position: absolute;
  top: 34px;
  right: 88px;
  width: 40px;
  height: 50px;
  border: 1px solid #d1ccc3;
}

.postal-back .address-lines {
  position: absolute;
  top: 105px;
  right: 72px;
  width: 82px;
  height: 57px;
  background: repeating-linear-gradient(to bottom, transparent 0 11px, #c7c2ba 11px 12px);
}

.postal-back small {
  position: absolute;
  bottom: 44px;
  left: 92px;
  font-family: var(--serif);
  font-size: 5px;
  line-height: 1.25;
}

.postal-back b {
  position: absolute;
  right: 173px;
  bottom: 39px;
  font-size: 11px;
}

.postcard-copy {
  min-height: 124px;
  padding: 14px 20px 20px;
  text-align: center;
}

.postcard-copy p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 9px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.postcard-copy h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.12;
}

.postcard-copy span {
  display: block;
  color: #68615d;
  font-size: 11px;
  line-height: 1.35;
}

.carousel-next {
  position: absolute;
  z-index: 2;
  top: 130px;
  right: -28px;
  display: grid;
  width: 55px;
  height: 55px;
  padding: 19px;
  border: 1px solid #ddd5c8;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 18px rgb(40 34 20 / 10%);
  cursor: pointer;
  place-items: center;
}

@media (min-width: 768px) {
  .postcards-shell {
    width: calc(100vw - max(80px, calc((100vw - 1280px) / 2)));
  }

  .postcards {
    width: 100%;
    padding-right: 84px;
  }

  .carousel-next {
    right: 16px;
  }
}

.exhibitions {
  padding-top: 120px;
  padding-bottom: 120px;
  background: #fff;
}

.exhibitions .eyebrow {
  margin-bottom: 16px;
}

.exhibitions .section-heading h2 {
  font-size: 38px;
  font-weight: 600;
  line-height: 1.2;
}

.exhibition-content {
  display: grid;
  grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
  gap: 50px;
  margin-top: 56px;
}

.exhibition-intro p {
  margin: 0;
  color: #1c1819;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 300;
  line-height: 1.4;
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.document-card {
  display: flex;
  min-width: 0;
  min-height: 773px;
  padding: 24px;
  border: 0;
  border-radius: 4px;
  background: #faf6f0;
  color: #332e1f;
  cursor: pointer;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  text-align: left;
  transition: background-color 180ms ease;
}

.document-card:hover {
  background: #f6f0e7;
}

.document-card:focus-visible,
.document-lightbox-close:focus-visible {
  outline: 2px solid #8d734a;
  outline-offset: 4px;
}

.document-image {
  display: block;
  width: 100%;
  aspect-ratio: 351 / 493;
  overflow: hidden;
  border-radius: 2px;
  flex: 0 0 auto;
  transition: height 300ms ease-in-out;
}

.document-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.document-title,
.document-description {
  display: block;
  width: 100%;
  font-family: var(--serif);
}

.document-title {
  color: #332e1f;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.document-description {
  color: #4d4738;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
}

.document-lightbox[hidden] {
  display: none;
}

.document-lightbox {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  padding: 20px;
  background: rgb(0 0 0 / 80%);
  animation: lightbox-fade-in 300ms ease-out both;
  place-items: center;
}

.document-lightbox-dialog {
  position: relative;
  display: flex;
  width: min(1041px, calc(100vw - 40px));
  height: min(873px, calc(100dvh - 40px));
  min-height: 0;
  padding: 60px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
}

.document-lightbox-dialog h2 {
  max-width: calc(100% - 110px);
  margin: 0;
  color: #f5f0e5;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.document-lightbox-dialog > img {
  width: 499px;
  height: 700px;
  min-height: 0;
  max-width: 100%;
  max-height: calc(100% - 53px);
  border-radius: 4px;
  object-fit: contain;
}

.document-lightbox-close {
  position: absolute;
  top: 51px;
  right: 27px;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 12%);
  color: #e5e0d9;
  cursor: pointer;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  place-items: center;
}

.document-lightbox-close:hover {
  background: rgb(255 255 255 / 20%);
}

@keyframes lightbox-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.events {
  padding-top: 121px;
  padding-bottom: 125px;
}

.event-card {
  position: relative;
  margin-top: 48px;
  min-height: 266px;
  padding: 35px 32px 28px;
  border: 1px solid #ded7c9;
  border-radius: 4px;
  background: #fff;
}

.event-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #6f6530;
  font-size: 11px;
  line-height: 1;
}

.event-card h3 {
  max-width: 850px;
  margin: 28px 0 12px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.1;
}

.event-card > p {
  max-width: 930px;
  margin: 0;
  color: #655e59;
  font-size: 13px;
}

.event-program {
  position: absolute;
  top: 111px;
  right: 32px;
}

.event-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.2;
}

.event-footer a {
  color: #6f6530;
}

.floating-back-to-top {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: 24px;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 16px;
  border: 0;
  border-radius: 50%;
  background: var(--olive);
  box-shadow: 0 8px 18px rgb(40 34 20 / 22%);
  place-items: center;
}

.floating-back-to-top svg {
  width: 100%;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-width: 2;
  transition: transform 160ms ease;
}

.floating-back-to-top::after {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  padding: 7px 10px;
  border-radius: 3px;
  background: var(--olive-deep);
  color: #fff;
  content: attr(data-tooltip);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.floating-back-to-top:hover::after,
.floating-back-to-top:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.floating-back-to-top:hover svg {
  transform: translateY(-2px);
}

.floating-back-to-top:focus-visible {
  outline: 2px solid var(--olive-deep);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .floating-back-to-top svg,
  .floating-back-to-top::after {
    transition: none;
  }
}

@media (min-width: 768px) {
  .event-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    column-gap: 32px;
  }

  .event-kicker,
  .event-footer {
    grid-column: 1 / -1;
  }

  .event-card h3,
  .event-card > p {
    grid-column: 1;
    min-width: 0;
  }

  .event-program {
    position: static;
    grid-column: 2;
    grid-row: 2 / 4;
    align-self: center;
    justify-self: end;
  }
}

.footer {
  padding: 114px max(80px, calc((100vw - 1280px) / 2)) 33px;
  background: #6b6431;
  color: rgb(255 255 255 / 67%);
}

.footer-main {
  display: flex;
  justify-content: space-between;
  min-height: 260px;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 47px;
}

.footer-logos img {
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-stf {
  width: 126px;
  height: 48px;
}

.footer-bicentenario {
  width: 130px;
  height: 52px;
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 38px;
}

.socials a,
.socials img {
  width: 25px;
  height: 25px;
}

.socials a {
  display: grid;
  border-radius: 50%;
  place-items: center;
}

.socials a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.footer-nav {
  display: flex;
  width: 280px;
  flex-direction: column;
  gap: 16px;
}

.footer-nav h2 {
  margin: 0 0 4px;
  color: #bdb387;
  font-size: 11px;
  font-weight: 500;
}

.footer-nav a {
  font-size: 13px;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  padding-top: 31px;
  border-top: 1px solid rgb(255 255 255 / 15%);
  font-size: 11px;
}

.footer-legal p {
  margin: 0;
}

.footer-legal div {
  display: flex;
  gap: 36px;
}

@media (max-width: 1100px) and (min-width: 768px) {
  .site-header,
  .section,
  .footer {
    padding-right: 40px;
    padding-left: 40px;
  }

  .site-header {
    gap: clamp(12px, 2vw, 22px);
    padding-right: clamp(24px, 3.64vw, 40px);
    padding-left: clamp(24px, 3.64vw, 40px);
  }

  .stf-signature {
    min-width: 0;
    gap: clamp(8px, 1.4vw, 15px);
    flex: 0 1 auto;
  }

  .stf-signature picture,
  .stf-signature img {
    width: clamp(74px, 9vw, 96px);
    height: auto;
    flex: 0 0 auto;
  }

  .stf-signature strong {
    font-size: clamp(8px, .9vw, 10px);
  }

  .desktop-nav {
    gap: clamp(10px, 2vw, 22px);
    flex: 0 0 auto;
  }

  .desktop-nav a {
    font-size: clamp(11px, 1.25vw, 14px);
    line-height: 1.2;
  }

  .intro-top {
    grid-template-columns: 42% 1fr;
    gap: 45px;
  }

  .postcards-shell {
    width: calc(100vw - 40px);
  }

  .postcards {
    width: 100%;
  }

  .exhibition-content {
    grid-template-columns: 1fr;
  }

  .exhibition-intro {
    max-width: 760px;
  }

  .document-card {
    min-height: 0;
  }
}

@media (max-width: 767px) {
  html {
    scroll-padding-top: 56px;
  }

  body {
    font-size: 14px;
    line-height: 1.62;
  }

  .desktop-only,
  .desktop-nav,
  .hero-mark-detail,
  .timeline-brand,
  .timeline-more {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .hero {
    min-height: 696px;
  }

  .hero::after {
    background: rgb(84 77 37 / 58%);
  }

  .hero-picture img {
    object-position: 48% center;
  }

  .site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 80;
    align-items: center;
    height: 56px;
    padding: 0 15px;
    background: rgb(102 94 49 / 90%);
  }

  .site-header::before {
    display: none;
  }

  .stf-signature {
    gap: 10px;
  }

  .stf-signature picture,
  .stf-signature img {
    width: 72px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
  }

  .stf-signature > span {
    height: 22px;
  }

  .stf-signature strong {
    font-size: 7.8px;
  }

  .menu-toggle {
    position: relative;
    display: flex;
    width: 30px;
    height: 30px;
    padding: 5px;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }

  .menu-toggle i {
    display: block;
    width: 20px;
    height: 1.5px;
    background: #fff;
    transition: transform 220ms ease, opacity 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] i:nth-of-type(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] i:nth-of-type(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] i:nth-of-type(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .mobile-menu {
    position: fixed;
    z-index: 79;
    top: 56px;
    right: 0;
    left: 0;
    display: flex;
    max-height: calc(100dvh - 56px);
    overflow-y: auto;
    padding: 0 24px;
    background: #574f25;
    color: #fff;
    flex-direction: column;
    overscroll-behavior: contain;
  }

  .mobile-menu[hidden] {
    display: none;
  }

  .mobile-menu a {
    padding: 14px 0;
    border-bottom: 1px solid rgb(255 255 255 / 16%);
    font-size: 16px;
    line-height: 1.4;
    text-decoration: none;
  }

  .mobile-menu a:last-child {
    border: 0;
  }

  .hero-content {
    top: 241px;
    width: calc(100% - 40px);
    transform: translateX(-50%);
  }

  .hero-mark {
    width: 212px;
    height: 101px;
    margin-bottom: 49px;
  }

  .hero h1 {
    max-width: 330px;
    font-size: 22px;
    line-height: 1.25;
  }

  .section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .intro {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .intro-top {
    display: block;
    min-height: 439px;
  }

  .eyebrow {
    margin-bottom: 20px;
    font-size: 10px;
  }

  .intro .eyebrow {
    margin-bottom: 16px;
    font-size: 11px;
  }

  .intro h2 {
    font-size: 30px;
    line-height: 1.2;
  }

  .short-rule {
    width: 59px;
    height: 2px;
    margin-top: 16px;
  }

  .intro-copy {
    padding-top: 16px;
    font-size: 15px;
    line-height: 1.65;
  }

  .intro-copy p,
  .starting-point p {
    margin-bottom: 16px;
  }

  .intro-copy p:last-child,
  .starting-point p:last-child {
    margin-bottom: 0;
  }

  .starting-point {
    min-height: 313px;
    margin-top: 40px;
  }

  .starting-point h3 {
    margin-bottom: 16px;
    font-size: 26px;
  }

  .starting-point p {
    font-size: 15px;
    line-height: 1.65;
  }

  .timeline {
    height: 541px;
    padding-top: 31px;
    padding-right: 0;
    padding-bottom: 31px;
    padding-left: 23px;
  }

  .timeline-heading {
    display: block;
    padding-right: 23px;
    padding-bottom: 0;
    border: 0;
  }

  .date-badge {
    margin-bottom: 24px;
    padding: 7px 11px;
    border-radius: 13px;
    font-size: 9px;
  }

  .timeline-heading h2 {
    max-width: 320px;
    color: var(--ink);
    font-size: 29px;
    line-height: 1.06;
  }

  .timeline-heading p {
    margin-top: 20px;
    font-size: 12px;
    line-height: 1.5;
  }

  .timeline-viewport {
    height: 250px;
    margin-top: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
  }

  .timeline-viewport.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    -webkit-user-select: none;
    user-select: none;
  }

  .timeline-viewport:focus-visible {
    outline: 2px solid #8d734a;
    outline-offset: 3px;
  }

  .timeline-list {
    display: flex;
    width: max-content;
    gap: 16px;
    padding: 0 23px 0 0;
  }

  .timeline-list li {
    display: block;
    flex: 0 0 240px;
    min-height: 224px;
    padding: 22px 20px;
    border-radius: 12px;
    background: #faf7ee;
    scroll-snap-align: start;
  }

  .timeline-list time {
    display: block;
    padding: 0 0 13px;
    border-bottom: 2px solid #ded2b9;
    font-size: 28px;
    text-align: left;
  }

  .timeline-axis {
    display: none;
  }

  .timeline-list li > div {
    padding: 14px 0 0;
  }

  .timeline-list h3 {
    margin-bottom: 11px;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.12;
  }

  .timeline-list p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
  }

  .timeline::after {
    display: none;
  }

  .collection {
    padding-top: 48px;
    padding-right: 0;
    padding-bottom: 48px;
    padding-left: 20px;
  }

  .collection-heading {
    display: block;
    padding-right: 20px;
  }

  .section-heading h2,
  .collection-heading h2 {
    font-size: 29px;
    line-height: 1.1;
  }

  .collection-heading .eyebrow {
    margin-bottom: 12px;
    font-size: 11px;
  }

  .collection-heading h2 {
    font-size: 28px;
    line-height: 1.2;
  }

  .collection-heading > div > p:last-child {
    min-height: 63px;
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.6;
  }

  .button {
    min-height: 42px;
    padding: 0 15px;
    font-size: 12px;
  }

  .collection-heading .button {
    min-height: 46px;
    margin-top: 12px;
    border-color: #967545;
    background: transparent;
    color: #6f6530;
  }

  .postcards-shell {
    min-height: 341px;
    margin-top: 24px;
  }

  .postcards {
    width: 100%;
    gap: 16px;
    padding: 0 20px 10px 0;
    scroll-snap-type: x mandatory;
  }

  .postcard {
    flex-basis: 280px;
    min-height: 279px;
    border: 0;
    border-radius: 7px;
    background: #f8f5ec;
  }

  .postal-visual {
    height: 173px;
    border: 12px solid #e7e3d9;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
  }

  .postal-front {
    padding: 0;
  }

  .postal-back {
    padding: 12px;
  }

  .postal-back .stamp {
    top: 18px;
    right: 44px;
    width: 32px;
    height: 40px;
  }

  .postal-back .address-lines {
    top: 67px;
    right: 35px;
    width: 72px;
    height: 56px;
  }

  .postal-back small {
    bottom: 23px;
    left: 35px;
    font-size: 4px;
  }

  .postal-back b {
    right: 116px;
    bottom: 20px;
    font-size: 9px;
  }

  .postcard-copy {
    min-height: 106px;
    padding: 12px 14px 15px;
  }

  .postcard-copy p {
    margin-bottom: 8px;
    font-size: 9px;
    text-transform: none;
  }

  .postcard-copy h3 {
    font-size: 18px;
  }

  .postcard-copy span {
    font-size: 11px;
  }

  .carousel-next {
    top: 73px;
    right: 7px;
    width: 42px;
    height: 42px;
    padding: 14px;
  }

  .floating-back-to-top {
    right: 0;
    bottom: 16px;
    width: 40px;
    height: 40px;
    padding: 13px;
  }

  .exhibitions {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .exhibitions .eyebrow {
    margin-bottom: 12px;
    font-size: 11px;
  }

  .exhibitions .section-heading h2 {
    font-size: 28px;
    line-height: 1.1;
  }

  .exhibition-content {
    display: flex;
    gap: 32px;
    margin-top: 32px;
    flex-direction: column;
  }

  .exhibition-intro p {
    font-size: 18px;
    line-height: 1.5;
  }

  .documents-grid {
    display: flex;
    width: 100%;
    gap: 24px;
    flex-direction: column;
  }

  .document-card {
    width: 100%;
    min-height: 0;
    padding: 20px;
    gap: 16px;
  }

  .document-image {
    height: 240px;
    aspect-ratio: auto;
  }

  .document-card[aria-expanded="true"] .document-image {
    height: 435px;
  }

  .document-title {
    font-size: 20px;
    line-height: 1.2;
  }

  .document-description {
    font-size: 14px;
    line-height: 1.5;
  }

  .document-lightbox {
    display: none;
  }

  .events {
    padding-top: 49px;
    padding-bottom: 45px;
  }

  .event-card {
    display: block;
    min-height: 292px;
    margin-top: 28px;
    padding: 25px 18px 19px;
  }

  .event-kicker {
    display: block;
    font-size: 10px;
    line-height: 1.6;
  }

  .event-kicker time {
    display: block;
  }

  .event-card h3 {
    margin: 23px 0 17px;
    font-size: 21px;
    line-height: 1.18;
  }

  .event-card > p {
    color: #504945;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
  }

  .event-program {
    position: absolute;
    top: auto;
    right: 18px;
    bottom: 19px;
  }

  .event-footer {
    display: block;
    margin-top: 18px;
    padding-top: 13px;
    font-size: 10px;
  }

  .event-footer strong {
    display: block;
    max-width: 130px;
    margin-bottom: 14px;
    line-height: 1.1;
  }

  .event-footer a {
    display: inline-block;
    max-width: 130px;
  }

  .footer {
    min-height: 510px;
    padding: 55px 20px 23px;
  }

  .footer-main {
    display: block;
    min-height: auto;
  }

  .footer-logos {
    gap: 24px;
  }

  .footer-stf {
    width: 96px;
    height: 31px;
  }

  .footer-bicentenario {
    width: 89px;
    height: 36px;
  }

  .socials {
    gap: 7px;
    margin-top: 17px;
  }

  .socials a,
  .socials img {
    width: 17px;
    height: 17px;
  }

  .footer-nav {
    width: auto;
    gap: 13px;
    margin-top: 45px;
  }

  .footer-nav h2 {
    font-size: 10px;
  }

  .footer-nav a {
    font-size: 12px;
  }

  .footer-legal {
    display: block;
    margin-top: 36px;
    padding-top: 24px;
    font-size: 10px;
  }

  .footer-legal div {
    display: flex;
    gap: 5px;
    margin-top: 20px;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* Página de programação */
.program-page {
  min-width: 320px;
  background: #ab2536;
  color: #fff9ee;
}

.program-shell {
  min-height: 100vh;
  background: #ab2536;
}

.program-desktop {
  position: relative;
  width: min(1165px, calc(100vw - 120px));
  margin: 0 auto;
  padding: 123px 0 61px;
  animation: program-enter-desktop 300ms ease-out both;
}

.program-desktop > img {
  width: 100%;
  height: auto;
}

.program-close {
  display: inline-flex;
  align-items: center;
  gap: 25px;
  color: #fff9ee;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.program-close b {
  font-weight: 400;
}

.program-close-desktop {
  position: absolute;
  z-index: 2;
  top: 65px;
  right: 0;
}

.program-mobile {
  display: none;
}

@keyframes program-enter-desktop {
  from { opacity: 0; transform: translateX(80px); }
  to { opacity: 1; transform: none; }
}

@keyframes program-enter-mobile {
  from { opacity: 0; transform: translateY(80px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 767px) {
  .program-desktop {
    display: none;
  }

  .program-mobile {
    display: block;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 24px 20px 47px;
    animation: program-enter-mobile 300ms ease-out both;
  }

  .program-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .program-session {
    padding: 6px 10px;
    border: 1px solid #d9a05b;
    border-radius: 5px;
    color: #d9a05b;
    font-size: 9px;
    line-height: 1;
  }

  .program-mobile .program-close {
    gap: 10px;
    font-size: 16px;
  }

  .program-mobile .program-close b {
    display: grid;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: rgb(255 255 255 / 13%);
    font-family: var(--sans);
    font-size: 19px;
    place-items: center;
  }

  .program-venue {
    display: flex;
    min-height: 89px;
    margin-top: 30px;
    padding: 13px 18px;
    border: 1px solid #d9a05b;
    border-radius: 8px;
    text-align: center;
    flex-direction: column;
    justify-content: center;
  }

  .program-venue time {
    color: #d9a05b;
    font-size: 10px;
    font-weight: 600;
  }

  .program-venue strong {
    margin-top: 2px;
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
  }

  .program-venue span {
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.25;
  }

  .program-mobile-mark {
    width: 87px;
    height: 118px;
    margin: 31px auto 25px;
    object-fit: contain;
  }

  .program-mobile-intro h1 {
    margin: 0;
    color: #d9a05b;
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
  }

  .program-mobile-intro p {
    margin: 13px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgb(255 255 255 / 14%);
    font-size: 12px;
    line-height: 1.76;
    text-align: justify;
  }

  .program-list {
    margin-top: 30px;
  }

  .program-list > h2 {
    margin: 0 0 8px;
    padding-left: 20px;
    color: #d9a05b;
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: .04em;
  }

  .program-list > h2::before {
    position: relative;
    left: -20px;
    display: inline-block;
    width: 13px;
    height: 1px;
    background: #d9a05b;
    content: "";
    vertical-align: middle;
  }

  .program-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid rgb(255 255 255 / 15%);
  }

  .program-item h3 {
    margin: 0;
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
  }

  .program-item p {
    margin: 5px 0 0;
    font-size: 10px;
    line-height: 1.5;
  }

  .program-item-long p + p {
    margin-top: 7px;
  }

  .program-item time {
    color: #d9a05b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
  }

  .commendation {
    margin-top: 32px;
    padding: 16px 15px 17px;
    border: 1px solid #d9a05b;
    border-radius: 8px;
  }

  .commendation h2 {
    margin: 0;
    color: #d9a05b;
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
  }

  .commendation > p {
    margin: 9px 0 14px;
    font-size: 10px;
    line-height: 1.5;
  }

  .commendation h3 {
    margin: 0 0 3px;
    color: #d9a05b;
    font-size: 9px;
    font-weight: 700;
  }

  .commendation ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .commendation li {
    font-size: 10px;
    line-height: 1.6;
  }

  .commendation li::before {
    margin-right: 5px;
    color: #d9a05b;
    content: "•";
  }

  .program-support {
    margin-top: 31px;
    padding-top: 23px;
    border-top: 1px solid rgb(255 255 255 / 15%);
    text-align: center;
  }

  .program-support p {
    margin: 0;
    color: #d9a05b;
    font-size: 9px;
    font-weight: 600;
  }

  .program-support div {
    display: flex;
    justify-content: center;
    gap: 23px;
    margin-top: 13px;
  }

  .program-support span {
    display: grid;
    min-width: 48px;
    height: 32px;
    padding: 0 10px;
    border-radius: 4px;
    background: rgb(255 255 255 / 10%);
    font-size: 11px;
    font-weight: 700;
    place-items: center;
  }
}
