﻿@font-face {
  font-family: DM;
  src: url('fonts/dm-sans.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: DM;
  src: url('fonts/dm-sans-700.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}
:root {
  --navy: #102b43;
  --blue: #21445c;
  --paper: #f4f1e9;
  --white: #fffefa;
  --bronze: #b3935b;
  --bronze-ink: #80622e;
  --steel: #526574;
  --line: #c0c8ca;
  --font: DM, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 105px; }
body { margin: 0; background: var(--paper); color: var(--navy); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
::selection { background: #d2bd93; color: var(--navy); }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid #af7130; outline-offset: 5px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.12; letter-spacing: -.025em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 20; padding: 14px; background: white; color: var(--navy); }
.skip:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 5; min-height: 86px; padding: 16px 6%; display: flex; justify-content: space-between; align-items: center; gap: 30px; background: var(--navy); color: var(--paper); }
.identity { display: block; font-size: 22px; font-weight: 700; letter-spacing: .01em; }
.site-header nav { display: flex; gap: 30px; font-size: 14px; }
.site-header nav a:hover { color: #e7cb9b; }
.hero { padding: 50px 6% 0; }
.hero-top { display: grid; grid-template-columns: 1.5fr .7fr; gap: 60px; align-items: end; }
h1 { font-size: clamp(54px, 5.4vw, 78px); line-height: .99; letter-spacing: -.035em; }
h1 span { color: var(--bronze-ink); }
.hero-copy { max-width: 365px; padding-bottom: 5px; }
.hero-copy p { margin-bottom: 24px; font-size: 16px; line-height: 1.7; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 54px; padding: 14px 20px; color: white; background: var(--navy); font-size: 14px; font-weight: 700; }
.button:hover { background: #28536d; }
.featured-piece { margin: 42px 0 0; background: var(--blue); padding: 30px; display: grid; grid-template-columns: 1fr minmax(0, 610px) 1fr; gap: 25px; align-items: end; color: var(--paper); }
.featured-piece figcaption { padding-bottom: 8px; }
.featured-piece h2 { font-size: 19px; letter-spacing: -.015em; margin-bottom: 12px; }
.featured-piece figcaption p { max-width: 175px; font-size: 14px; line-height: 1.65; margin-bottom: 18px; }
.featured-piece figcaption>span { color: #e4cd9f; font-size: 13px; line-height: 1.6; display: block; }
.piece-photo { display: block; position: relative; background: #e6e4dc; }
.piece-photo img { object-fit: contain; }
.featured-photo { background: transparent; }
.featured-photo img { height: 485px; }
.photo-action { position: absolute; right: 0; bottom: 0; display: inline-flex; align-items: center; gap: 9px; background: var(--navy); color: white; padding: 10px 13px; font-size: 13px; line-height: 1.4; }
.piece-photo:hover .photo-action { background: #315b71; }
.featured-note { text-align: right; padding-bottom: 8px; }
.featured-note>p { font-size: 14px; margin-bottom: 20px; line-height: 1.7; }
.source-link { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; line-height: 1.5; text-decoration: underline; text-underline-offset: 5px; }
.source-link svg { width: 15px; height: 15px; }
.source-link:hover { text-decoration-thickness: 2px; }
.collection { padding: 86px 9% 90px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 50px; padding-bottom: 35px; margin-bottom: 44px; border-bottom: 1px solid var(--line); }
.section-heading h2 { font-size: clamp(30px, 3vw, 44px); }
.section-heading>p { max-width: 350px; font-size: 15px; color: var(--steel); line-height: 1.7; }
.work-grid { display: grid; grid-template-columns: 1.05fr .95fr; column-gap: 70px; row-gap: 55px; align-items: start; }
.rabizas { grid-column: 1; grid-row: 1 / 3; }
.rabizas img { height: 680px; }
.tenida { grid-column: 2; grid-row: 1; }
.tenida img { height: 410px; }
.medalla { grid-column: 2; grid-row: 2; width: 78%; justify-self: end; }
.medalla img { height: 350px; }
.work-description { padding-top: 20px; }
.work h3 { font-size: 23px; line-height: 1.2; margin-bottom: 9px; }
.work p { font-size: 14px; line-height: 1.7; color: var(--steel); margin-bottom: 17px; max-width: 410px; }
.tradition { background: #e1e6e6; padding: 65px 9%; display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; }
.tradition h2 { font-size: 38px; line-height: 1.15; }
.tradition-copy>p { font-size: 16px; line-height: 1.75; margin-bottom: 15px; }
.tradition-sources { display: flex; flex-wrap: wrap; column-gap: 24px; row-gap: 8px; margin-top: 25px; font-size: 13px; }
.tradition-sources>span { width: 100%; color: #40586b; }
.tradition-sources a { text-decoration: underline; text-underline-offset: 4px; }
.contact { padding: 65px 9%; display: flex; justify-content: space-between; align-items: center; gap: 40px; background: var(--navy); color: var(--paper); }
.contact h2 { font-size: 36px; line-height: 1.2; margin-bottom: 18px; }
.contact p { font-size: 15px; color: #d3dfe6; }
.button-light { background: var(--paper); color: var(--navy); }
.button-light:hover { background: #dfcda9; }
footer { padding: 25px 6%; display: flex; justify-content: space-between; gap: 22px; font-size: 13px; }
footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.viewer { width: min(1120px, 96vw); max-height: 96dvh; padding: 0; border: 0; background: var(--paper); color: var(--navy); }
.viewer::backdrop { background: rgba(7, 23, 37, .94); }
.viewer-shell { padding: 20px 24px 24px; }
.viewer-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.viewer-heading h2 { font-size: 23px; line-height: 1.2; }
.viewer-close { display: inline-flex; align-items: center; gap: 10px; padding: 9px 13px; background: var(--navy); color: white; border: 0; font-size: 14px; min-height: 44px; }
.viewer-stage { height: 58dvh; overflow: auto; background: #dfe2df; padding: 8px; overscroll-behavior: contain; }
.viewer-stage img { display: block; margin: 0 auto; width: auto; max-width: 100%; max-height: 100%; }
.viewer-controls { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 0; }
.viewer-controls button { height: 42px; min-width: 44px; padding: 5px 12px; border: 1px solid #6b8090; color: var(--navy); background: var(--paper); font-size: 22px; }
.viewer-controls button:hover:not(:disabled) { background: #d6dfe4; }
.viewer-controls button:disabled { opacity: .45; cursor: default; }
.viewer-controls .zoom-reset { font-size: 13px; margin-left: 12px; }
.zoom-level { min-width: 62px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }
#viewer-description { font-size: 14px; line-height: 1.6; margin-bottom: 7px; }
.viewer-help { font-size: 13px; color: var(--steel); line-height: 1.6; margin-bottom: 10px; }
.viewer-source { font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.viewer-error { margin-top: 10px; color: #9f3129; font-size: 14px; }
@media (max-width: 1000px) {
  .hero-top { gap: 40px; grid-template-columns: 1.4fr .8fr; }
  .featured-piece { grid-template-columns: .75fr 1.5fr; }
  .featured-note { grid-column: 1 / 3; display: flex; align-items: center; justify-content: space-between; gap: 20px; text-align: left; padding: 0; }
  .featured-note>p { margin: 0; }
  .featured-note br { display: none; }
  .featured-photo img { height: 420px; }
  .collection { padding-left: 6%; padding-right: 6%; }
  .work-grid { column-gap: 35px; }
  .rabizas img { height: 580px; }
  .tradition { gap: 45px; padding-left: 6%; padding-right: 6%; }
  .contact { padding-left: 6%; padding-right: 6%; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 85px; }
  .site-header { min-height: 70px; padding: 14px 6%; gap: 18px; }
  .identity { font-size: 17px; max-width: 140px; line-height: 1.2; }
  .site-header nav { gap: 16px; font-size: 13px; }
  .site-header nav a:nth-child(2) { display: none; }
  .hero { padding-top: 30px; }
  .hero-top { display: block; }
  h1 { font-size: clamp(39px, 10.5vw, 57px); line-height: 1.02; }
  .hero-copy { padding: 0; margin-top: 20px; max-width: none; }
  .hero-copy p { font-size: 14px; line-height: 1.65; margin-bottom: 17px; }
  .button { min-height: 49px; font-size: 13px; padding: 12px 16px; }
  .featured-piece { margin-top: 26px; padding: 14px; display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
  .featured-photo { order: 0; }
  .featured-photo img { height: auto; aspect-ratio: 1; width: 100%; }
  .featured-piece figcaption { order: 1; padding: 0; }
  .featured-piece h2 { font-size: 18px; margin-bottom: 7px; }
  .featured-piece figcaption p { max-width: none; margin-bottom: 8px; font-size: 13px; }
  .featured-note { order: 2; display: block; }
  .featured-note>p { display: none; }
  .collection { padding-top: 55px; padding-bottom: 55px; }
  .section-heading { display: block; padding-bottom: 26px; margin-bottom: 30px; }
  .section-heading h2 { font-size: 29px; }
  .section-heading>p { margin-top: 18px; font-size: 14px; }
  .work-grid { display: flex; flex-direction: column; gap: 38px; }
  .work, .medalla { width: 100%; }
  .rabizas img, .tenida img, .medalla img { width: 100%; height: auto; aspect-ratio: 4 / 4.6; object-fit: contain; }
  .work-description { padding-top: 17px; }
  .work h3 { font-size: 22px; }
  .tradition { display: block; padding-top: 45px; padding-bottom: 45px; }
  .tradition h2 { font-size: 30px; margin-bottom: 24px; }
  .tradition-copy>p { font-size: 15px; }
  .tradition-sources { gap: 10px 20px; }
  .contact { display: block; padding-top: 45px; padding-bottom: 45px; }
  .contact h2 { font-size: 29px; }
  .contact p { font-size: 14px; margin-bottom: 24px; }
  footer { font-size: 12px; flex-wrap: wrap; gap: 16px; }
  .viewer { width: 100vw; max-width: 100vw; max-height: 100dvh; }
  .viewer-shell { padding: 14px; }
  .viewer-heading { gap: 12px; }
  .viewer-heading h2 { font-size: 18px; }
  .viewer-stage { height: 47dvh; }
  .viewer-help { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
