:root {
  color-scheme:light;
  --ink:#173c38;
  --deep:#0d2d2b;
  --muted:#6a7770;
  --paper:#f5f3e9;
  --line:#d8d8c6;
  --gold:#a68c53;
  --accent:#8b514a;
  font-family:'DM Sans','Noto Sans SC',system-ui,sans-serif;
  background:var(--paper);
  color:var(--ink)
}

* {
  box-sizing:border-box
}

html {
  scroll-behavior:smooth
}

body {
  margin:0;
  background:radial-gradient(circle at 83% 12%,#dfeae4 0,transparent 36%),linear-gradient(90deg,transparent 49.9%,rgba(31,63,57,.025) 50%,transparent 50.1%),var(--paper)
}

button,input {
  font:inherit
}

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

a {
  color:inherit
}

button:focus-visible,a:focus-visible,input:focus-visible {
  outline:3px solid #bb8846;
  outline-offset:3px
}

.skip-link {
  position:absolute;
  top:-4rem;
  left:1rem;
  background:#fff;
  padding:.75rem;
  z-index:10
}

.skip-link:focus {
  top:1rem
}

.site-frame {
  max-width:1440px;
  margin:auto;
  padding:0 clamp(20px,4vw,64px)
}

.site-header {
  min-height:92px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  gap:24px
}

.brand {
  text-decoration:none;
  display:flex;
  align-items:center;
  gap:12px
}

.brand-mark {
  height:42px;
  width:42px;
  border:1px solid #799088;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:28px;
  color:var(--deep)
}

.brand strong {
  display:block;
  font-family:'Noto Serif SC',serif;
  letter-spacing:.16em;
  font-size:17px
}

.brand small {
  display:block;
  color:var(--gold);
  font-size:10px;
  letter-spacing:.22em;
  margin-top:2px
}

.site-nav {
  display:flex;
  align-items:center;
  gap:12px
}

.site-nav a {
  text-decoration:none;
  font-size:14px;
  padding:10px 15px;
  border-radius:3px
}

.site-nav a.active {
  background:var(--deep);
  color:#fff
}

.site-nav a:not(.active):hover,.text-action:hover {
  color:var(--accent)
}

.site-nav select {
  border:1px solid var(--line);
  background:transparent;
  color:var(--ink);
  padding:8px 6px;
  border-radius:3px;
  max-width:100px
}

.hero {
  min-height:550px;
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);
  align-items:center;
  gap:36px;
  border-bottom:1px solid var(--line);
  padding:70px 0 82px
}

.eyebrow,.section-topline {
  letter-spacing:.18em;
  color:var(--gold);
  font-size:11px;
  font-weight:700;
  text-transform:uppercase
}

.hero h1,h2 {
  font-family:'Noto Serif SC',serif;
  font-weight:500
}

.hero h1 {
  font-size:clamp(44px,5.4vw,79px);
  letter-spacing:-.035em;
  line-height:1.18;
  margin:24px 0
}

.hero h1 em {
  font-style:normal;
  color:#8e6b45
}

.lead {
  font-size:clamp(15px,1.3vw,18px);
  line-height:1.95;
  max-width:600px;
  color:#4d615b
}

.hero-actions {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:22px;
  margin-top:34px
}

.primary-action {
  display:inline-flex;
  min-width:180px;
  justify-content:space-between;
  gap:28px;
  background:var(--deep);
  color:#fff;
  padding:16px 19px;
  text-decoration:none;
  border-radius:3px;
  font-weight:600
}

.primary-action:hover {
  background:#24534e
}

.text-action {
  text-decoration:none;
  font-size:14px;
  border-bottom:1px solid var(--gold);
  padding-bottom:4px
}

.archive-art {
  position:relative;
  min-height:390px;
  display:grid;
  place-items:center;
  isolation:isolate;
  overflow:hidden
}

.archive-art::before {
  content:'';
  position:absolute;
  width:min(90%,490px);
  aspect-ratio:1;
  border-radius:50%;
  background:radial-gradient(circle,#d9e5dc 0,#e9ede3 38%,transparent 69%);
  z-index:-2
}

.art-orbit {
  position:absolute;
  width:min(100%,520px);
  height:230px;
  border:1px solid #b8c2b0;
  border-radius:50%;
  transform:rotate(-21deg)
}

.orbit-two {
  transform:rotate(24deg);
  height:280px;
  width:min(83%,430px);
  opacity:.7
}

.art-book {
  position:relative;
  width:210px;
  height:295px;
  transform:rotate(-9deg);
  background:linear-gradient(110deg,#d2d5bf 0 13%,#f9f7e8 14% 88%,#e4dfc6 100%);
  border:2px solid #8e977d;
  border-radius:4px 15px 14px 4px;
  box-shadow:14px 18px 0 -4px #8f5f46,22px 25px 35px #46554833;
  display:grid;
  place-items:center
}

.art-book::before {
  content:'';
  position:absolute;
  inset:15px;
  border:1px solid #c9c8ae
}

.book-spine {
  position:absolute;
  left:18px;
  top:0;
  height:100%;
  border-left:1px solid #aeb59c
}

.book-glyph {
  font:500 70px 'Noto Serif SC',serif;
  color:#1d4c47
}

.book-lines {
  position:absolute;
  bottom:58px;
  width:90px;
  border-top:1px solid #9ea894;
  border-bottom:1px solid #9ea894;
  height:8px
}

.art-label {
  position:absolute;
  color:#867b5c;
  font-size:10px;
  letter-spacing:.24em
}

.art-label-top {
  top:17%;
  right:8%
}

.art-label-bottom {
  bottom:12%;
  left:7%
}

.catalog-section,.collections-section {
  padding:76px 0 88px;
  border-bottom:1px solid var(--line)
}

.section-topline {
  display:flex;
  justify-content:space-between;
  gap:12px;
  border-top:2px solid var(--gold);
  padding-top:13px
}

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

.catalog-heading h2,.collections-section h2 {
  font-size:clamp(30px,3vw,44px);
  margin:34px 0 10px
}

.catalog-heading p {
  margin:0 0 29px;
  color:var(--muted);
  line-height:1.8
}

.search-bar {
  background:#fffdf6;
  border:1px solid #cbd1bf;
  padding:19px 20px 20px;
  box-shadow:0 11px 30px #163e3710
}

.search-bar label {
  display:block;
  font-size:12px;
  font-weight:700;
  color:#64746c;
  margin-bottom:12px
}

.search-row {
  display:flex;
  gap:10px
}

.search-row input {
  width:100%;
  min-width:0;
  border:0;
  border-bottom:1px solid #bcc6ba;
  background:transparent;
  font-size:18px;
  padding:9px 4px 12px;
  color:var(--ink)
}

.search-row button {
  border:0;
  background:var(--deep);
  color:#fff;
  min-width:118px;
  cursor:pointer
}

.search-row button:hover {
  background:#24534e
}

.catalog-tools {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
  margin:22px 0
}

.filters {
  display:flex;
  gap:8px;
  flex-wrap:wrap
}

.filters button {
  border:1px solid #bccabe;
  border-radius:100px;
  padding:9px 18px;
  background:transparent;
  color:var(--ink);
  cursor:pointer
}

.filters button[aria-pressed=true] {
  background:var(--deep);
  border-color:var(--deep);
  color:white
}

.result-status {
  font-size:13px;
  color:var(--muted)
}

.results {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px
}

.result-card {
  min-height:174px;
  text-align:left;
  border:1px solid var(--line);
  background:#fffdf7;
  padding:19px 20px;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  align-items:start;
  gap:12px;
  transition:transform .2s,box-shadow .2s
}

.result-card:hover {
  transform:translateY(-3px);
  box-shadow:0 11px 22px #173c3814
}

.result-card .kind {
  font-size:11px;
  color:#9c794a;
  letter-spacing:.16em
}

.result-card strong {
  font:500 20px 'Noto Serif SC',serif;
  line-height:1.35;
  overflow-wrap:anywhere
}

.result-card small {
  color:var(--muted);
  line-height:1.5;
  margin-top:auto
}

.result-card .source-id {
  margin-top:0;
  font-size:11px;
  color:#8f754e;
  overflow-wrap:anywhere
}

.empty-state {
  grid-column:1/-1;
  color:var(--muted);
  padding:36px 20px;
  border:1px dashed var(--line);
  text-align:center
}

.pagination {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:22px;
  margin-top:25px;
  color:var(--muted);
  font-size:13px
}

.pagination[hidden] {
  display:none
}

.pagination button {
  background:transparent;
  border:1px solid var(--line);
  padding:9px 14px;
  color:var(--ink);
  cursor:pointer
}

.pagination button:disabled {
  opacity:.4;
  cursor:default
}

.collections-section h2 {
  margin-bottom:27px
}

.collection-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px
}

.collection-grid a {
  min-height:222px;
  display:flex;
  flex-direction:column;
  text-decoration:none;
  padding:23px;
  border:1px solid var(--line);
  background:#ecf0e8;
  position:relative
}

.collection-grid a:nth-child(even) {
  background:#f0eee1
}

.collection-grid a:hover {
  border-color:#6b9083;
  box-shadow:0 10px 26px #183b3812
}

.collection-number {
  font-size:11px;
  color:var(--gold);
  letter-spacing:.2em;
  margin-bottom:38px
}

.collection-grid strong {
  font:500 24px 'Noto Serif SC',serif;
  margin-bottom:10px
}

.collection-grid a span:nth-of-type(2) {
  font-size:13px;
  color:var(--muted);
  line-height:1.65;
  max-width:22ch
}

.collection-grid b {
  position:absolute;
  top:22px;
  right:22px;
  font-size:20px;
  font-weight:400
}

.boundary-note {
  display:grid;
  grid-template-columns:230px 1fr;
  gap:36px;
  padding:48px 0 58px
}

.boundary-note>div {
  display:flex;
  align-items:center;
  gap:12px
}

.boundary-note h2 {
  font-size:24px;
  margin:0
}

.boundary-symbol {
  color:var(--gold);
  font-size:30px
}

.boundary-note p {
  line-height:1.85;
  color:#64746d;
  margin:0;
  font-size:14px
}

.site-footer {
  padding:24px 0 36px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:18px;
  color:#708079;
  font-size:12px;
  flex-wrap:wrap
}

.site-footer a {
  text-decoration:none;
  color:var(--ink)
}

.record-dialog {
  border:0;
  padding:0;
  width:min(880px,calc(100% - 24px));
  max-height:min(90vh,1000px);
  background:#fbfaf2;
  color:var(--ink);
  box-shadow:0 26px 80px #001b1d66
}

.record-dialog::backdrop {
  background:#102925b8;
  backdrop-filter:blur(4px)
}

.dialog-shell {
  max-height:90vh;
  overflow:auto
}

.dialog-top {
  position:sticky;
  top:0;
  z-index:2;
  background:#123b38;
  color:white;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 23px;
  font-size:12px;
  letter-spacing:.13em
}

.dialog-top button {
  background:transparent;
  border:0;
  color:white;
  font-size:30px;
  cursor:pointer;
  line-height:1
}

.dialog-body {
  padding:clamp(25px,5vw,58px)
}

.dialog-body h2 {
  font-size:clamp(28px,3vw,43px);
  line-height:1.3;
  margin:0 0 12px
}

.dialog-subtitle {
  color:var(--muted);
  line-height:1.7;
  margin:0 0 25px
}

.record-notice {
  border-left:3px solid #a78050;
  background:#f2eee0;
  padding:13px 17px;
  color:#6b5e49;
  font-size:13px;
  line-height:1.75;
  margin:22px 0
}

.record-part {
  border-top:1px solid var(--line);
  padding:19px 0
}

.record-part h3 {
  font:600 18px 'Noto Serif SC',serif;
  margin:0 0 12px
}

.record-part p {
  white-space:pre-wrap;
  line-height:1.9;
  margin:0;
  color:#384c45
}

.record-original {
  border:1px solid var(--line);
  background:#faf8f1;
  margin:24px 0;
  padding:0 18px
}

.record-original summary {
  cursor:pointer;
  color:var(--forest);
  font-weight:600;
  padding:15px 0
}

.record-original summary:focus-visible {
  outline:2px solid var(--forest);
  outline-offset:3px
}

.record-meta {
  border-top:1px solid var(--line);
  margin-top:20px;
  padding-top:20px;
  color:var(--muted);
  font-size:13px;
  line-height:1.8
}

.record-links {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px
}

.record-links a {
  border:1px solid #98afa1;
  padding:8px 12px;
  text-decoration:none;
  font-size:13px;
  overflow-wrap:anywhere
}

.record-links a:hover {
  background:#e6ede4
}

@media(max-width:900px) {
  .hero {
    grid-template-columns:1fr;
    min-height:0;
    padding:55px 0
  }

  .archive-art {
    min-height:310px
  }

  .art-book {
    transform:rotate(-7deg) scale(.83)
  }

  .collection-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }

  .results {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }

  .boundary-note {
    grid-template-columns:1fr;
    gap:12px
  }

}

@media(max-width:600px) {
  .site-frame {
    padding:0 18px
  }

  .site-header {
    min-height:76px;
    flex-wrap:wrap;
    padding:14px 0;
    gap:8px
  }

  .brand strong {
    font-size:14px
  }

  .brand small {
    font-size:8px;
    letter-spacing:.13em
  }

  .brand-mark {
    width:36px;
    height:36px
  }

  .site-nav {
    gap:3px;
    width:100%;
    justify-content:space-between;
    flex-wrap:wrap
  }

  .site-nav a {
    font-size:12px;
    padding:8px
  }

  .site-nav select {
    font-size:12px
  }

  .hero {
    padding:42px 0
  }

  .hero h1 {
    font-size:clamp(39px,10vw,58px)
  }

  .archive-art {
    min-height:260px
  }

  .art-book {
    transform:rotate(-7deg) scale(.67)
  }

  .catalog-section,.collections-section {
    padding:52px 0
  }

  .section-topline span:last-child {
    text-align:right
  }

  .search-row input {
    font-size:16px
  }

  .search-row button {
    min-width:84px
  }

  .results {
    grid-template-columns:1fr
  }

  .result-card {
    min-height:136px
  }

  .collection-grid {
    grid-template-columns:1fr
  }

  .collection-grid a {
    min-height:160px
  }

  .collection-number {
    margin-bottom:22px
  }

  .dialog-body {
    padding:24px
  }

  .site-footer {
    display:grid
  }

  .pagination {
    gap:8px
  }

}

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

  .result-card {
    transition:none
  }

}

