:root {
  color-scheme: light;
  --ink: #221b18;
  --muted: #62534a;
  --paper: #fbf8f2;
  --line: #ded4c8;
  --red: #99352c;
  --amber: #ffce68;
  --serif: Iowan Old Style, Palatino Linotype, Book Antiqua, Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .21em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3, .wordmark { font-family: var(--serif); }
h2 { font-size: clamp(2.6rem, 5.7vw, 5.2rem); font-weight: 400; line-height: .99; letter-spacing: -.055em; }
.wrap { width: min(100% - 112px, 1232px); margin-inline: auto; }
.eyebrow { font-size: .875rem; letter-spacing: .16em; font-weight: 740; text-transform: uppercase; }
.skip { position: absolute; z-index: 4; left: 12px; top: 12px; transform: translateY(-160%); padding: 8px 14px; background: white; }
.skip:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.masthead { color: #fff8eb; background: #191511; position: relative; z-index: 2; border-bottom: 1px solid #ffffff24; }
.masthead-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { display: inline-flex; gap: 11px; align-items: center; width: fit-content; font-size: 1.65rem; line-height: 1.15; letter-spacing: -.045em; font-weight: 700; text-decoration: none; white-space: nowrap; }
.flag { width: 24px; height: 18px; background: url(media/senyera.svg) center/cover no-repeat; box-shadow: 0 0 0 1px #ffffff38; flex: none; }
.masthead nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 42px); }
.masthead nav a { font-size: .9rem; font-weight: 625; text-decoration: none; white-space: nowrap; }
.masthead nav a:hover, footer nav a:hover { text-decoration: underline; }
.masthead .nav-sale { color: var(--amber); border: 1px solid #b78a54; padding: 8px 15px; }
.menu { display: none; color: inherit; border: 1px solid #a48d75; background: none; padding: 5px 12px; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: #211710; color: #fff9ee; }
.hero-images, .hero-image, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-images { z-index: -2; }
.hero-image { object-fit: cover; object-position: center 49%; opacity: 0; transition: opacity .55s ease; }
.hero-image.is-current { opacity: 1; }
.hero::after { z-index: -1; content: ""; background: linear-gradient(90deg, #1a100cf2 0%, #1a100ca8 33%, #1a100c23 75%), linear-gradient(0deg,#160f0cce,transparent 32%); }
.hero-inner { min-height: clamp(600px, 76svh, 810px); display: grid; grid-template-rows: 1fr auto; }
.slides { align-self: center; padding: 55px 0 29px; }
.slide .eyebrow { color: var(--amber); display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.slide .eyebrow::before { content: ""; width: 35px; height: 1px; background: currentColor; }
.slide h1, .slide h2 { font-size: clamp(5rem, 11vw, 10.5rem); line-height: .88; font-weight: 400; letter-spacing: -.068em; }
.slide h2 { font-size: clamp(3.9rem, 8.5vw, 7.7rem); }
.hero-lead { max-width: 31rem; font-size: clamp(1.13rem, 2.2vw, 1.5rem); color: #f4e7d8; margin: 24px 0 34px; line-height: 1.45; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 12px 24px; font-size: .93rem; font-weight: 730; text-align: center; text-decoration: none; transition: background-color .18s ease, color .18s ease; }
.button-light { background: var(--amber); color: #211714; }
.button-light:hover { background: #ffe3a2; }
.hero-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 76px; padding-block: 12px; border-top: 1px solid #ffffff4a; }
.image-note { color: #efe0d2; font-size: .8125rem; }
.slide-controls { display: flex; gap: 7px; align-items: center; flex-shrink: 0; }
.slide-controls button { border: 0; background: transparent; color: #fff9ee; height: 44px; min-width: 26px; display: grid; place-items: center; }
.slide-controls [data-step] { border: 1px solid #fff9ee80; width: 44px; border-radius: 50%; font-size: 1.72rem; line-height: 1; }
.slide-controls [data-step]:hover { background: #ffffff20; }
.slide-dot::after { content: ""; width: 8px; height: 8px; border: 1px solid #fff9ee; border-radius: 100%; }
.slide-dot[aria-current]::after { background: var(--amber); border-color: var(--amber); }

.history { padding-block: clamp(65px, 10vw, 142px); }
.section-intro { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(35px, 8vw, 100px); }
.section-intro .eyebrow { grid-column: 1 / -1; margin-bottom: 20px; }
.history .eyebrow, .sources .eyebrow { color: var(--red); }
.intro-copy p + p, .today-copy p + p { margin-top: 16px; }
.intro-copy, .timeline p { color: var(--muted); }
.intro-copy { align-self: end; font-size: clamp(1rem, 1.45vw, 1.15rem); }
.cite { color: var(--red); white-space: nowrap; font-size: .82em; font-weight: 720; text-decoration: none; }
.cite:hover { text-decoration: underline; }
.timeline { list-style: none; margin: clamp(46px, 7vw, 88px) 0 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: clamp(118px, 21vw, 255px) 1fr; gap: 20px; padding-block: 25px; border-bottom: 1px solid var(--line); }
.timeline time { color: var(--red); font: 400 clamp(1.6rem, 3.2vw, 2.9rem)/1.1 var(--serif); letter-spacing: -.05em; }
.timeline h3 { font-size: clamp(1.3rem, 2.35vw, 2rem); line-height: 1.15; font-weight: 500; margin-bottom: 7px; }
.timeline p { max-width: 50rem; }

.today { background: #261b17; color: #fff6ea; padding-block: clamp(65px, 8vw, 112px); }
.today-inner { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(30px, 6vw, 84px); }
.today-image img { width: 100%; aspect-ratio: 1.28; object-fit: cover; object-position: 70%; }
.today-image figcaption { color: #e2cfc0; font-size: .8125rem; margin-top: 8px; }
.today-copy .eyebrow, .today-copy .cite { color: var(--amber); }
.today-copy h2 { margin: 14px 0 28px; }
.today-copy p:not(.eyebrow) { color: #f2e4d7; }
.sources { padding-block: clamp(65px, 10vw, 138px); display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 7vw, 100px); }
.sources h2 { font-size: clamp(2.5rem, 4.65vw, 4.3rem); margin-top: 15px; }
.sources ol { margin: 0; padding-left: 1.65em; }
.sources li { padding: 14px 5px; border-bottom: 1px solid var(--line); scroll-margin-top: 18px; }
.sources li:first-child { border-top: 1px solid var(--line); }
.sources li::marker { color: var(--red); font-weight: 700; }
.sources li > a { font-weight: 680; }
.sources li a:hover { color: var(--red); }
.sources li p { color: var(--muted); margin-top: 2px; }
.sources li:target { background: #f8ebd9; }

.sale { background: #f2bc62; color: #261b17; }
.sale-inner { padding-block: clamp(53px, 8vw, 110px); display: flex; justify-content: space-between; align-items: flex-end; gap: 26px; }
.sale h2 { margin-block: 13px 15px; font-size: clamp(3.4rem, 10vw, 8.1rem); }
.sale p:not(.eyebrow) { font-size: 1.1rem; }
.button-dark { background: #261b17; color: #fff6ea; flex-shrink: 0; }
.button-dark:hover { background: #4a2d24; }
footer { background: #191511; color: #fff8eb; }
.footer-top, .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-top { padding-block: 39px; }
.footer-bottom { border-top: 1px solid #ffffff45; padding-block: 21px; }
footer p { color: #e4d4c7; font-size: .9rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
footer nav a { font-size: .9rem; text-decoration: none; }

.has-dialog .legal-docs { display: none; }
.legal-docs article { padding-block: 25px; }
.legal-docs article h2, dialog h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 21px; letter-spacing: -.045em; }
.legal-docs article p + p, dialog p + p { margin-top: 15px; }
dialog { width: min(690px, calc(100% - 30px)); max-height: 88vh; border: 1px solid var(--line); color: var(--ink); background: var(--paper); padding: clamp(24px, 6vw, 49px); }
dialog::backdrop { background: #130e0bd0; }
dialog article.wrap { width: auto; }
.dialog-close { display: flex; justify-content: flex-end; margin-bottom: 9px; }
.dialog-close button { background: transparent; border: 1px solid var(--muted); border-radius: 50%; color: var(--ink); width: 43px; height: 43px; font-size: 1.58rem; line-height: 1; }
.dialog-close button:hover { background: #f5e8d6; }

@media (max-width: 800px) {
  .wrap { width: calc(100% - 48px); }
  .masthead-inner { min-height: 66px; flex-wrap: wrap; }
  .has-menu .menu { display: block; }
  .masthead nav { width: 100%; flex-wrap: wrap; padding-bottom: 15px; }
  .has-menu .masthead nav { display: none; }
  .has-menu .masthead nav.is-open { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 100%; left: 0; padding: 10px 24px 20px; background: #191511; border-bottom: 1px solid #ffffff45; gap: 0; }
  .masthead nav.is-open a { padding: 11px 0; }
  .masthead nav.is-open .nav-sale { margin-top: 7px; padding-inline: 12px; width: fit-content; }
  .hero-image { object-position: 61% center; }
  .hero::after { background: linear-gradient(90deg, #1a100cdd, #1a100c34), linear-gradient(0deg,#160f0cdd,transparent 50%); }
  .hero-inner { min-height: clamp(530px, 75svh, 660px); }
  .section-intro, .today-inner, .sources { grid-template-columns: 1fr; }
  .section-intro { row-gap: 22px; }
  .section-intro .eyebrow { margin-bottom: 0; }
  .today-copy { grid-row: 1; }
  .today-image img { aspect-ratio: 1.58; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 38px); }
  .wordmark { font-size: 1.51rem; }
  .slide .eyebrow { gap: 8px; }
  .slide .eyebrow::before { width: 18px; }
  .slide h1 { font-size: clamp(4.5rem, 14vw, 5.8rem); }
  .slide h2 { font-size: clamp(3rem, 10.3vw, 4.35rem); }
  .hero-lead { max-width: 21rem; }
  .hero-bottom { gap: 9px; }
  .slide-controls { gap: 2px; }
  .image-note { max-width: 11rem; }
  .timeline li { grid-template-columns: 1fr; gap: 8px; padding-block: 21px; }
  .footer-top, .footer-bottom, .sale-inner { align-items: flex-start; flex-direction: column; }
  .footer-top { padding-block: 31px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
