@font-face {
  font-family: Archivo;
  font-style: normal;
  font-weight: 300 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('./assets/fonts/archivo-normal-latin.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  font-family: Archivo, 'Helvetica Neue', Arial, sans-serif;
  background: #171817;
  color: #f4f2ed;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: #ff8150; }
a:focus-visible { outline: 2px solid #59ccc4; outline-offset: 4px; }
::selection { background: #ff6a32; color: #191513; }

.skip-link {
  position: absolute;
  z-index: 10;
  left: 20px;
  top: -80px;
  padding: 10px 14px;
  background: #f4f2ed;
  color: #171817;
}
.skip-link:focus { top: 12px; }

.site-header,
.site-footer,
main { width: min(100% - clamp(36px, 6.8vw, 112px), 1540px); margin-inline: auto; }

.site-header {
  min-height: 83px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid #3a3b37;
}
.museum-mark { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.museum-mark strong { font-size: 15px; font-weight: 600; }
.museum-mark span { color: #b9b7b0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.return-link { font-size: 13px; text-decoration: none; }
.return-link span { color: #ff6a32; margin-left: 8px; }

.page-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 26px;
  padding: clamp(56px, 9vw, 136px) 0 clamp(44px, 7vw, 94px);
}
.page-intro h1 {
  margin: 0 0 -.08em -.065em;
  font-size: clamp(80px, 13vw, 200px);
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: -.075em;
  line-height: .9;
}
.page-intro h1 span { color: #ff6a32; }
.page-intro p { justify-self: end; margin: 0; max-width: 35ch; color: #dedcd6; font-size: clamp(17px, 1.45vw, 22px); line-height: 1.45; }

.page-layout { display: grid; grid-template-columns: minmax(180px, 23%) minmax(0, 1fr); gap: clamp(32px, 5vw, 90px); }
.contents {
  position: sticky;
  top: 32px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid #ff6a32;
}
.contents a { color: #b9b7b0; font-size: 14px; text-decoration: none; }
.contents a:hover, .contents a:focus-visible { color: #f4f2ed; }
.credit-sections { min-width: 0; }
.credit-section { padding: 24px 0 clamp(56px, 7vw, 104px); border-top: 1px solid #3a3b37; scroll-margin-top: 30px; }
.credit-section h2 { margin: 0 0 36px; font-size: clamp(27px, 3.1vw, 45px); font-stretch: 112%; letter-spacing: -.035em; line-height: 1.1; }
.credit-section p { max-width: 65ch; margin: 0 0 20px; color: #c8c6bf; line-height: 1.6; }
.credit-section .principal-name { margin: 0 0 20px; font-size: clamp(42px, 5.5vw, 86px); font-weight: 650; font-stretch: 112%; letter-spacing: -.055em; line-height: 1.02; }
.principal-name a { text-decoration: none; color: #f4f2ed; }
.principal-name a:hover { color: #ff8150; }

.credit-list { margin: 0; }
.credit-list > div { display: grid; grid-template-columns: minmax(180px, 35%) minmax(0, 1fr); gap: 24px; padding: 23px 0; border-top: 1px solid #3a3b37; }
.credit-list dt { font-weight: 620; line-height: 1.4; }
.credit-list dd { margin: 0; color: #c8c6bf; line-height: 1.55; }
.credit-list a, .sound-list a, .source-note a { color: #f4f2ed; }
.mapscan-logo { display: block; width: min(100%, 340px); height: 108px; overflow: hidden; margin-top: 18px; background: #fff; }
.mapscan-logo img { display: block; width: 100%; height: 100%; object-fit: cover; }

.institution-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; margin-top: 38px; }
.institution-list figure { min-width: 0; margin: 0; }
.institution-list img { display: block; width: 100%; height: 145px; object-fit: contain; padding: 20px; border: 1px solid #3a3b37; background: #202220; }
.institution-list figure:last-child img { padding: 8px; }
.institution-list figcaption { margin-top: 12px; color: #b9b7b0; font-size: 13px; line-height: 1.4; }

.sound-list { padding: 0; margin: 30px 0 20px; list-style: none; }
.sound-list li { display: grid; grid-template-columns: minmax(180px, 35%) minmax(0, 1fr); gap: 24px; padding: 13px 0; border-top: 1px solid #3a3b37; font-size: 14px; line-height: 1.5; }
.sound-list li span:last-child { color: #c8c6bf; }
.credit-section .source-note { margin-top: 27px; }

.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 30px 0 38px; border-top: 1px solid #3a3b37; color: #b9b7b0; font-size: 13px; }
.site-footer a { color: #f4f2ed; }

@media (max-width: 850px) {
  .page-intro { grid-template-columns: 1fr; gap: 28px; }
  .page-layout { grid-template-columns: 1fr; gap: 24px; }
  .contents { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px 18px; }
}
@media (max-width: 580px) {
  .site-header { min-height: 72px; }
  .museum-mark strong { font-size: 13px; }
  .museum-mark span { font-size: 10px; }
  .return-link { font-size: 12px; white-space: nowrap; }
  .page-intro { padding: 60px 0 52px; }
  .page-intro h1 { font-size: clamp(62px, 16vw, 104px); }
  .credit-list > div, .sound-list li { grid-template-columns: 1fr; gap: 5px; }
  .institution-list { grid-template-columns: 1fr; gap: 22px; }
  .institution-list img { height: 128px; }
  .site-footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
