/* fundvaultpro.com: a small museum. Walls change color from room to room. */
@font-face { font-family: "Rozha One"; src: url("/assets/fonts/rozha-one.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Petrona"; src: url("/assets/fonts/petrona.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Petrona"; src: url("/assets/fonts/petrona-italic.woff2") format("woff2"); font-style: italic; font-weight: 400 700; font-display: swap; }

:root {
  --wine: #5A1A2B;
  --gold: #C9A227;
  --ultra: #23408E;
  --ivory: #F7F1E3;
  --green: #2E7D6B;
  --black: #171514;
  --paper: #FFFDF6;
  --gold-hi: #EFD67C;
  --gold-lo: #8A6B12;
  --ochre: #7A5A10;
  --display: "Rozha One", "Bodoni MT", Didot, Georgia, serif;
  --text: "Petrona", Georgia, "Times New Roman", serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--black); font-family: var(--text); font-size: 1.125rem; line-height: 1.65; overflow-wrap: break-word; }
img, svg { max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.14; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 1.3rem + 1.4vw, 2.35rem); }
h3 { font-size: 1.35rem; }
p, ul, ol { margin: 0 0 1.1em; }
a { color: var(--ultra); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; z-index: 20; background: var(--gold); color: var(--black); padding: .6rem 1rem; }
.skip:focus { left: .5rem; top: .5rem; }
.print-only { display: none; }

/* ---------- buttons and fields ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .55rem 1.4rem; border: 0; border-bottom: 4px solid rgba(0,0,0,.3); border-radius: 3px; background: var(--wine); color: var(--paper); font: 600 1.05rem/1.2 var(--text); text-decoration: none; text-align: center; cursor: pointer; }
.button:hover { filter: brightness(1.1); text-decoration: none; }
.button:active { transform: translateY(2px); border-bottom-width: 2px; }
.button--gold { background: var(--gold-hi); color: var(--black); }
.button--quiet { background: transparent; color: inherit; border: 2px solid currentColor; }
.button--small { min-height: 40px; padding: .3rem .9rem; font-size: .95rem; }
input, select, textarea { font: 1rem/1.4 var(--text); color: var(--black); background: var(--paper); border: 2px solid #6b625a; border-radius: 3px; padding: .55rem .7rem; max-width: 100%; min-height: 44px; }
textarea { resize: vertical; width: 100%; }

/* ---------- header ---------- */
.site-header { background: var(--black); color: var(--ivory); border-bottom: 5px solid var(--gold); }
.header-row { max-width: var(--max); margin: 0 auto; padding: .6rem var(--gutter); display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--display); font-size: 1.35rem; color: var(--ivory); text-decoration: none; }
.logo { flex: none; }
.menu-button { display: none; margin-left: auto; min-height: 44px; padding: .3rem 1rem; background: transparent; color: var(--ivory); border: 2px solid var(--gold); border-radius: 3px; font: 600 1rem var(--text); cursor: pointer; }
.site-nav { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.2rem; }
.site-nav > ul { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1.1rem; list-style: none; margin: 0; padding: 0; }
.site-nav a, .site-nav summary { display: inline-block; color: var(--ivory); text-decoration: none; padding: .45rem 0; border-bottom: 3px solid transparent; }
.site-nav a:hover, .site-nav summary:hover, .site-nav a[aria-current] { border-bottom-color: var(--gold); }
.has-sub { position: relative; }
.has-sub summary { cursor: pointer; list-style: none; }
.has-sub summary::-webkit-details-marker { display: none; }
.has-sub summary::after { content: ""; display: inline-block; margin-left: .4rem; width: .45rem; height: .45rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-.2rem) rotate(45deg); }
.has-sub ul { position: absolute; right: 0; top: 100%; z-index: 10; min-width: 17rem; margin: .3rem 0 0; padding: .6rem; list-style: none; background: var(--black); border: 2px solid var(--gold); }
.has-sub ul a { display: block; padding: .45rem .7rem; border: 0; border-left: 8px solid var(--swatch); }
.has-sub ul a:hover { background: #2c2825; }
.header-search { display: flex; gap: .3rem; }
.header-search input { width: 9rem; min-height: 40px; padding: .3rem .6rem; border-color: var(--gold); }
.header-search button { min-height: 40px; padding: 0 .8rem; background: var(--gold); border: 0; border-radius: 3px; font: 700 .95rem var(--text); color: var(--black); cursor: pointer; }

@media (max-width: 900px) {
  .js .menu-button { display: inline-block; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }
  .site-nav { width: 100%; margin: 0; flex-direction: column; align-items: stretch; }
  .site-nav > ul { flex-direction: column; align-items: stretch; }
  .has-sub ul { position: static; margin: 0 0 .5rem; }
  .header-search input { flex: 1; width: auto; }
}

/* ---------- breadcrumbs ---------- */
.crumbs { max-width: var(--max); margin: 0 auto; padding: .45rem var(--gutter); font-size: .92rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .1rem .6rem; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: .6rem; color: #7b7268; }

/* ---------- frames ---------- */
.frame { display: inline-block; position: relative; max-width: 100%; padding: 12px; line-height: 0; vertical-align: middle;
  background: linear-gradient(135deg, #F7E39C 0%, var(--gold) 26%, var(--gold-lo) 50%, #D9B848 74%, #F2DA85 100%);
  box-shadow: inset 0 0 0 1px #FFF0B8, 0 2px 0 #5E470A, 0 16px 28px rgba(10,4,0,.45); }
.frame::before { content: ""; position: absolute; inset: 5px; border: 2px solid rgba(78,55,4,.7); box-shadow: 0 0 0 1px rgba(255,238,170,.75); }
.frame img { position: relative; display: block; width: 100%; height: auto; box-shadow: 0 0 0 2px #4A3605; }
.hang { display: flex; align-items: center; justify-content: center; height: var(--hang, 300px); }
.hang .frame { width: min(100%, calc((var(--hang, 300px) - 34px) * var(--ratio, 1) + 24px)); }

/* ---------- walls ---------- */
.room--renaissance { --wall: var(--green); --on: #FFFDF6; }
.room--baroque { --wall: var(--wine); --on: var(--ivory); }
.room--impressionism { --wall: var(--ultra); --on: var(--ivory); }
.room--modernism { --wall: #F4EFE2; --on: var(--black); }
.room--brazil { --wall: var(--ochre); --on: #FFF8E6; }
.room, .painting-wall, .hero, .page-head--wall, .work {
  background-color: var(--wall, var(--wine));
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(255,246,214,.22), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 2px, transparent 2px 26px),
    radial-gradient(circle at 13px 13px, rgba(0,0,0,.09) 2px, transparent 3px);
  background-size: 100% 100%, 100% 100%, 52px 52px;
  color: var(--on, var(--ivory));
}
.room a, .painting-wall a, .page-head--wall a, .work a { color: inherit; }
.room { position: relative; padding: clamp(2rem, 5vw, 3.5rem) var(--gutter) 0; scroll-margin-top: .5rem; }
.room::after { content: ""; display: block; height: 34px; margin: 2.5rem calc(var(--gutter) * -1) 0; border-top: 10px solid #F4EBD5;
  background: repeating-linear-gradient(90deg, #8B5A2B 0 118px, #6F4420 118px 121px, #9C6733 121px 240px, #6F4420 240px 243px); }
.room-inner { max-width: var(--max); margin: 0 auto; }
.room-head { max-width: 44rem; }
.room-head p { margin-bottom: .8rem; }
.room--modernism .frame { padding: 7px; background: linear-gradient(135deg, #4b4542, var(--black) 55%, #342f2c); box-shadow: 0 14px 24px rgba(10,4,0,.3); }
.room--modernism .frame::before { display: none; }
.room .button { background: var(--gold-hi); color: var(--black); }
.room .button--quiet { background: transparent; color: inherit; }
.room--modernism .button { background: var(--black); color: var(--ivory); }
.room--modernism .button--quiet { background: transparent; color: var(--black); }

/* ---------- home hero ---------- */
.hero { position: relative; overflow: hidden; text-align: center; }
.skylight { display: block; width: 100%; height: clamp(40px, 7vh, 70px); }
.hero-light { position: absolute; top: 40px; left: 50%; width: min(1000px, 100%); height: 70%; transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(180deg, rgba(255,243,208,.28), rgba(255,243,208,0)); clip-path: polygon(32% 0, 68% 0, 96% 100%, 4% 100%); }
.hero-copy { position: relative; max-width: 60rem; margin: 0 auto; padding: clamp(.6rem, 2vh, 1.4rem) var(--gutter) 0; }
.hero-copy h1 { margin-bottom: .3em; font-size: clamp(2.1rem, 1.2rem + 2.4vw, 3.3rem); text-shadow: 0 3px 0 rgba(0,0,0,.25); }
.hero-copy p { max-width: 54rem; margin: 0 auto .7rem; }
.hero-wall { position: relative; display: flex; align-items: center; justify-content: center; gap: clamp(.7rem, 2.4vw, 2rem); max-width: var(--max); margin: 0 auto; padding: .4rem var(--gutter) 0; list-style: none; --h: clamp(120px, min(22vh, 15vw), 220px); }
.hero-piece a { display: flex; flex-direction: column; align-items: center; gap: .7rem; color: inherit; text-decoration: none; }
.hero-piece .frame { width: calc(var(--h) * var(--ratio) + 24px); max-width: none; transition: transform .2s ease; }
.hero-piece a:hover .frame, .hero-piece a:focus-visible .frame { transform: translateY(-4px); }
.plate { display: inline-block; padding: .05rem .7rem; font-size: .88rem; line-height: 1.5; color: var(--black); background: linear-gradient(var(--gold-hi), var(--gold)); border: 1px solid #5E470A; box-shadow: 0 2px 4px rgba(0,0,0,.35); }
.floor { position: relative; display: block; width: 100%; max-width: none; height: clamp(96px, 15vh, 180px); margin-top: .4rem; }
@media (max-width: 760px) { .floor { width: 760px; height: 99px; margin-left: calc(50% - 380px); } }
@media (max-width: 760px) {
  .hero-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: .9rem .6rem; }
  .hero-piece { grid-column: span 2; display: flex; justify-content: center; }
  .hero-piece:nth-child(n+4) { grid-column: span 3; }
  .hero-piece .frame { width: min(100%, calc(112px * var(--ratio) + 14px)); max-width: 100%; padding: 7px; }
  .hero-piece .frame::before { inset: 3px; border-width: 1px; }
  .hero-piece a { width: 100%; gap: .35rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-light { animation: lights 1.4s ease-out both; }
  @keyframes lights { from { opacity: 0; } to { opacity: 1; } }
}

/* ---------- rows of pictures ---------- */
.wall-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 1rem; list-style: none; padding: 0; margin: 1.5rem 0 0; --hang: 190px; }
@media (min-width: 700px) { .wall-row { grid-template-columns: repeat(3, minmax(0, 1fr)); --hang: 240px; } }
@media (min-width: 1100px) { .room--home .wall-row { grid-template-columns: repeat(6, minmax(0, 1fr)); --hang: 210px; } .neighbors .wall-row { grid-template-columns: repeat(5, minmax(0, 1fr)); --hang: 220px; } }
.wall-item a { display: flex; flex-direction: column; align-items: center; gap: .8rem; text-decoration: none; color: inherit; }
.wall-item .hang { width: 100%; }
.placard { display: flex; flex-direction: column; width: 100%; max-width: 17rem; padding: .55rem .7rem .65rem; background: var(--paper); color: var(--black); border-top: 3px solid var(--gold); box-shadow: 0 3px 8px rgba(0,0,0,.25); font-size: .92rem; line-height: 1.4; text-align: left; }
.placard strong { font-size: 1rem; line-height: 1.25; margin-bottom: .15rem; }
.wall-item.is-mine .placard::after { content: "Your pick"; align-self: flex-start; margin-top: .35rem; padding: 0 .5rem; background: var(--black); color: var(--paper); }

/* ---------- page heads ---------- */
.page-head--wall { text-align: center; padding: 2.2rem var(--gutter) 2.4rem; border-bottom: 10px solid var(--gold); }
.page-head--wall p { max-width: 42rem; margin-left: auto; margin-right: auto; }
.page-head--slim { padding: 1.6rem var(--gutter); }
.page-head--slim h1 { margin: 0; }
.head-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin: 1rem 0 0; }
.page-head--wall .button { background: var(--gold-hi); color: var(--black); }
.page-head--wall .button--quiet { background: transparent; color: var(--ivory); }
.page-head--topic { background: var(--swatch); color: var(--paper); padding: 2.6rem var(--gutter) 2.2rem; text-align: center; border-bottom: 10px solid var(--gold); }
.page-head--topic h1 { max-width: 46rem; margin: 0 auto; }
.room-jumps { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; list-style: none; padding: 0; margin: 1.2rem 0 0; }
.room-jumps a { display: inline-block; padding: .35rem 1rem; background: var(--swatch); border: 2px solid var(--gold); border-radius: 999px; text-decoration: none; }
.room-jumps li:nth-child(4) a { color: var(--black); }

/* ---------- filters ---------- */
.filters-box { display: none; background: var(--black); color: var(--ivory); }
.js .filters-box { display: block; }
.filters-box summary { min-height: 44px; padding: .55rem var(--gutter); text-align: center; cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: .7rem 1.2rem; padding: .4rem var(--gutter) 1rem; }
.filters label { display: flex; flex-direction: column; font-size: .92rem; }
.filters select { min-width: 11rem; }
.filters-count { width: 100%; margin: 0; text-align: center; font-size: .95rem; }
@media (max-width: 520px) { .filters label, .filters select { width: 100%; } }
.no-match { display: flex; flex-direction: column; align-items: center; gap: .4rem; text-align: center; }

/* ---------- voting ---------- */
.page-head--compact { padding: 1rem var(--gutter) 1.1rem; }
.page-head--compact h1 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem); margin-bottom: .25em; }
.page-head--compact p { margin-bottom: 0; }
.page-head--compact .room-jumps { margin-top: .7rem; }
.page-vote .room { padding-top: 1.4rem; }
.page-vote .room-head h2 { margin-bottom: .2em; }
.page-vote .vote-form legend { margin-bottom: .9rem; }
@media (max-width: 640px) {
  .page-head--compact .room-jumps { gap: .4rem; font-size: .92rem; }
  .page-head--compact .room-jumps a { padding: .25rem .7rem; }
  .page-vote .room-head p { display: none; }
  .page-vote .vote-form legend { font-size: 1.05rem; line-height: 1.35; }
}
.vote-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.vote-form legend { padding: 0; margin: 0 0 1.4rem; font-size: 1.2rem; font-weight: 600; }
.hanging { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem .9rem; list-style: none; padding: 0; margin: 0; --hang: 190px; }
@media (min-width: 640px) { .hanging { gap: 2.4rem 1.8rem; --hang: 280px; } }
@media (min-width: 940px) { .hanging { grid-template-columns: repeat(3, minmax(0, 1fr)); --hang: 320px; } }
.option { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.option input[type="radio"] { position: absolute; z-index: 2; top: 0; left: 0; width: 28px; height: 28px; min-height: 0; margin: 0; accent-color: var(--black); cursor: pointer; }
.option label { display: flex; flex-direction: column; align-items: center; gap: .8rem; width: 100%; flex: 1; padding: .2rem; cursor: pointer; border-radius: 4px; }
.option label .hang { width: 100%; }
.option .placard { flex: 1; }
.option input:checked + label { background: rgba(255,246,208,.16); box-shadow: 0 0 0 4px var(--gold-hi); }
.room--modernism .option input:checked + label { background: rgba(201,162,39,.18); box-shadow: 0 0 0 4px var(--black); }
.option input:focus-visible + label { outline: 3px dashed currentColor; outline-offset: 8px; }
.option input:checked + label .placard { background: #FFF1B8; }
.mark { visibility: hidden; padding: .05rem .8rem; background: var(--black); color: var(--paper); border: 2px solid var(--gold-hi); border-radius: 999px; font-size: .9rem; font-weight: 700; }
.option input:checked + label .mark, .option.is-mine .mark { visibility: visible; }
.option input:disabled { cursor: default; }
.option input:disabled + label { cursor: default; }
.more { margin-top: .6rem; font-size: .95rem; }
.vote-actions { display: flex; flex-direction: column; align-items: center; gap: .6rem; margin-top: 2rem; text-align: center; }
.vote-message { margin: 0; max-width: 36rem; font-weight: 600; scroll-margin: 40vh 0 30vh; }
.vote-message:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; }
.vote-message.is-good, .vote-message.is-bad { padding: .8rem 1.1rem; background: var(--paper); color: var(--black); border-left: 10px solid var(--green); box-shadow: 0 4px 12px rgba(0,0,0,.3); text-align: left; }
.vote-message.is-bad { border-left-color: #8C1D2F; }
.vote-note { margin: 0; max-width: 34rem; font-size: .95rem; }
.trap { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.room-score { max-width: 46rem; margin: 2.4rem auto 0; }
.room-score h3 { text-align: center; }
.room-link { text-align: center; margin: 1.4rem 0 0; }
.vote-after { padding: 1rem 0 2rem; background: var(--ivory); }
.clear-picks { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; margin-top: 1.5rem; }

/* ---------- plaques ---------- */
.score-total { text-align: center; }
.plaques { list-style: none; margin: 0 auto; padding: 0; max-width: 46rem; display: grid; gap: .7rem; }
.plaque { display: flex; align-items: center; gap: .9rem; padding: .7rem .9rem; color: var(--black); background: linear-gradient(#FCF5DA, #EEDFA9); border: 1px solid #6e540c; box-shadow: inset 0 0 0 3px #FCF5DA, inset 0 0 0 4px #A98A2B, 0 5px 10px rgba(0,0,0,.3); }
.plaque a { color: var(--black); font-weight: 700; }
.plaque.is-mine { background: linear-gradient(#FFFDF2, #FFF0B0); }
.plaque-thumb { flex: none; width: 90px; display: flex; justify-content: center; }
.plaque-thumb .frame { width: min(90px, calc(64px * var(--ratio) + 10px)); padding: 5px; box-shadow: 0 3px 6px rgba(0,0,0,.35); }
.plaque-thumb .frame::before { display: none; }
.plaque-body { flex: 1; min-width: 0; text-align: left; }
.tag { display: inline-block; margin-left: .3rem; padding: 0 .55rem; font-size: .84rem; font-weight: 700; border: 2px solid var(--black); border-radius: 999px; }
.tag--mine { background: var(--black); color: var(--paper); }
.bar { display: block; height: 14px; margin: .35rem 0 .15rem; background: var(--paper); border: 1px solid #5E470A; }
.bar > span { display: block; height: 100%; background: var(--wine); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.count { display: block; font-variant-numeric: tabular-nums; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; margin: 0 auto 1rem; }
.empty p { margin: 0; }
.empty-art { width: 160px; height: 110px; flex: none; }
.notice { text-align: center; }

/* ---------- bands (home and lists) ---------- */
.band { padding: clamp(2.2rem, 5vw, 3.8rem) var(--gutter); }
.band > h2 { text-align: center; }
.band--ivory { background: var(--ivory); }
.band--black { background: var(--black) radial-gradient(ellipse at 50% 0, rgba(201,162,39,.25), transparent 60%); color: var(--ivory); }
.band--wine { background: var(--wine); color: var(--ivory); }
.band-more { text-align: center; margin: 1.8rem 0 0; }
.band--black a:not(.button), .band--wine a:not(.button) { color: inherit; }
.steps { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); max-width: var(--max); margin: 1.5rem auto 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; text-align: center; padding: 1.4rem; background: var(--paper); border-bottom: 6px solid var(--gold); box-shadow: 0 8px 20px rgba(60,30,0,.12); }
.steps h3::before { content: counter(step) ". "; color: var(--wine); }
.step-art { width: 220px; height: 150px; margin: 0 auto .8rem; display: block; }
.preview { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); max-width: var(--max); margin: 1.5rem auto 0; }
.brass { padding: 1rem; text-align: center; color: var(--black); background: linear-gradient(#FCF5DA, #E9D793); border-top: 12px solid var(--swatch); box-shadow: inset 0 0 0 3px #FCF5DA, inset 0 0 0 4px #A98A2B, 0 10px 18px rgba(0,0,0,.45); }
.brass h3 { font-size: 1.15rem; }
.brass p { margin: .3rem 0 0; }
.brass-title { font-weight: 700; }
.brass .empty-art { width: 120px; height: 84px; }
.brass .bar > span { background: var(--swatch); }
.cards { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); max-width: var(--max); margin: 1.5rem auto 0; }
.card { display: flex; flex-direction: column; background: var(--paper); color: var(--black); border-bottom: 8px solid var(--swatch); box-shadow: 0 8px 20px rgba(60,30,0,.16); }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 400 / 260; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.1rem 1.1rem; }
.card h2, .card h3 { font-size: 1.3rem; }
.card .card-body a { color: var(--black); }
.card p { font-size: 1rem; line-height: 1.5; }
.card-topic { margin: auto 0 0; align-self: flex-start; padding: 0 .6rem; background: var(--swatch); color: var(--paper); font-size: .85rem; }
.topics { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); max-width: var(--max); margin: 1.5rem auto 0; padding: 0; list-style: none; }
.topics a { display: flex; flex-direction: column; gap: .4rem; height: 100%; padding: 1.4rem 1.1rem; background: var(--swatch); color: var(--paper); text-decoration: none; border: 8px solid var(--gold); box-shadow: inset 0 0 0 2px var(--gold-hi), 0 10px 18px rgba(0,0,0,.35); }
.topics strong { font-family: var(--display); font-weight: 400; font-size: 1.4rem; line-height: 1.15; }
.topics span { font-size: .98rem; line-height: 1.45; }
.topics a:hover strong { text-decoration: underline; }

/* ---------- reading ---------- */
.prose { max-width: 44rem; margin: 0 auto; padding: 2rem var(--gutter); box-sizing: content-box; }
@media (max-width: 52rem) { .prose { box-sizing: border-box; max-width: 100%; } }
.prose h2 { margin-top: 1.7em; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: .45em; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.45; background: var(--paper); }
th, td { padding: .6rem .7rem; text-align: left; vertical-align: top; border: 1px solid #CDBF99; }
thead th { background: var(--swatch, var(--wine)); color: var(--paper); border-color: var(--swatch, var(--wine)); }
tbody th { font-weight: 700; }
.tips { margin: 2rem 0; padding: 1.3rem 1.4rem .6rem; background: var(--paper); border: 10px solid var(--gold); box-shadow: inset 0 0 0 2px var(--gold-lo), 0 10px 20px rgba(60,30,0,.15); }
.tips h3 { margin-top: 0; }
.updated { margin-top: 2rem; font-size: .95rem; color: #55493f; }
.sources { font-size: 1rem; line-height: 1.5; }
.article-head { display: grid; gap: 1.6rem; align-items: center; padding: 2rem var(--gutter); background: var(--swatch); color: var(--paper); border-bottom: 10px solid var(--gold); }
.article-head a { color: inherit; }
.article-title { max-width: 40rem; }
.article-topic { margin-bottom: .4rem; }
.byline { margin: 0; font-size: .98rem; }
.article-cover { width: 100%; max-width: 460px; margin: 0 auto; }
.article-cover img { display: block; width: 100%; height: auto; aspect-ratio: 400 / 260; border: 10px solid var(--gold); box-shadow: 0 16px 30px rgba(0,0,0,.4); }
.article-cover figcaption { margin-top: .7rem; font-size: .86rem; line-height: 1.45; }
@media (min-width: 900px) { .article-head { grid-template-columns: minmax(0, 40rem) minmax(0, 460px); justify-content: center; gap: 3rem; } }
.article-paintings { margin: 2.5rem 0; }
.article-paintings .wall-row { --hang: 200px; }
@media (min-width: 700px) { .article-paintings .wall-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.topic-intro { padding-bottom: 1rem; }

/* paintings hung inside the text */
.work { margin: 1.8rem 0 2.2rem; padding: 1.8rem 1rem 1rem; text-align: center; border-bottom: 10px solid #8B5A2B; box-shadow: inset 0 -7px 0 #F4EBD5, 0 10px 22px rgba(60,30,0,.18); }
.work.room--modernism { border-top: 1px solid #D9CDAE; }
.work > .frame { width: min(100%, calc(430px * var(--ratio) + 24px)); }
.work figcaption { max-width: 34rem; margin: 1.1rem auto 0; padding-bottom: .4rem; font-size: .95rem; line-height: 1.5; }
.work figcaption strong { display: inline-block; margin-bottom: .3rem; }
.work-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.4rem; }
.work-whole { display: flex; justify-content: center; width: 150px; }
.work-whole .frame { width: min(150px, calc(190px * var(--ratio) + 12px)); padding: 6px; }
.work-whole .frame::before { display: none; }
.work-zoom { display: flex; justify-content: center; flex: 1 1 260px; min-width: 0; }
.work-zoom .frame { width: min(100%, calc(400px * var(--ratio) + 24px)); }

/* ---------- painting page ---------- */
.painting-wall { display: grid; gap: 2rem; padding: 2rem var(--gutter) 2.6rem; border-bottom: 16px solid #8B5A2B; box-shadow: inset 0 -12px 0 #F4EBD5; }
.painting-figure { margin: 0; text-align: center; min-width: 0; }
.painting-figure .frame--large { width: min(100%, calc(66vh * var(--ratio) + 36px)); min-width: min(100%, 260px); padding: 18px; }
.painting-figure .frame--large::before { inset: 7px; border-width: 3px; }
.painting-figure figcaption { margin-top: 1rem; font-size: .92rem; }
.painting-head { align-self: center; }
.painting-by { font-size: 1.2rem; }
.facts { margin: 0; padding: .4rem 1.1rem; background: var(--paper); color: var(--black); border-top: 4px solid var(--gold); box-shadow: 0 8px 18px rgba(0,0,0,.3); font-size: 1rem; line-height: 1.45; }
.facts div { display: grid; grid-template-columns: 8.5rem 1fr; gap: .8rem; padding: .5rem 0; border-bottom: 1px solid #E2D6B5; }
.facts div:last-child { border: 0; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
.painting-wall .facts a { color: var(--ultra); }
@media (min-width: 960px) { .painting-wall { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); max-width: none; padding-left: max(var(--gutter), calc((100% - var(--max)) / 2)); padding-right: max(var(--gutter), calc((100% - var(--max)) / 2)); } }
.single-vote { margin: 0 0 1rem; padding: 1.4rem; background: var(--wine); color: var(--ivory); border: 8px solid var(--gold); text-align: center; }
.single-vote h2 { margin: 0 !important; font-size: 1.45rem; }
.single-vote a { color: inherit; }
.single-vote .vote-actions { margin-top: 1rem; }
.single-vote .button { background: var(--gold-hi); color: var(--black); }
.single-vote .button--quiet { background: transparent; color: var(--ivory); }

/* ---------- gallery guide ---------- */
.guide { max-width: 52rem; margin: 0 auto; padding: 1.5rem var(--gutter); }
.guide-room { margin-bottom: 1.8rem; padding: 1.2rem; background: var(--paper); border-top: 12px solid var(--swatch); box-shadow: 0 8px 20px rgba(60,30,0,.14); }
.guide-pick { display: grid; gap: 1.4rem; justify-items: center; }
.guide-pick .frame { width: min(100%, 240px); }
.guide-pick > div { justify-self: stretch; }
@media (min-width: 640px) { .guide-pick { grid-template-columns: 240px 1fr; align-items: start; justify-items: start; } }
.guide-note { text-align: center; font-size: .95rem; }

/* ---------- explorer ---------- */
.explorer { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: .8rem 1rem; scroll-margin-top: 1rem; }
.explorer label { display: flex; flex-direction: column; font-weight: 600; }
.explorer input { width: min(26rem, 84vw); }
.explorer-count { text-align: center; margin: .8rem 0 0; }
.painting-hits { max-width: 44rem; margin: 1.5rem auto 0; }

/* ---------- forms and 404 ---------- */
.contact-form { display: flex; flex-direction: column; gap: .35rem; align-items: stretch; }
.contact-form label { margin-top: .7rem; font-weight: 600; }
.contact-form .button { align-self: flex-start; margin-top: .6rem; }
.contact-form .vote-message { margin-top: .8rem; }
.page-404 .empty-art { display: block; margin: 1rem auto; width: 240px; height: 165px; }

/* ---------- footer ---------- */
.site-footer { background: var(--black); color: var(--ivory); border-top: 5px solid var(--gold); padding: 2.4rem var(--gutter) 1.5rem; font-size: 1rem; }
.site-footer a { color: var(--ivory); }
.footer-grid { display: grid; gap: 1.8rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); max-width: var(--max); margin: 0 auto; }
.footer-grid h2 { font-size: 1.15rem; color: var(--gold-hi); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .35rem; }
.footer-about p { margin-top: .8rem; }
.footer-line { max-width: var(--max); margin: 1.8rem auto 0; padding-top: 1rem; border-top: 1px solid #45403b; font-size: .92rem; }

/* ---------- print ---------- */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 11pt; }
  .site-header, .site-footer, .crumbs, .skip, .head-actions, .vote-after, .room-link, .button, .page-head--wall p { display: none !important; }
  .page-head--wall { background: none; color: #000; padding: 0 0 4mm; border-bottom: 2pt solid #000; }
  .room { background: none; color: #000; padding: 4mm 0 0; break-inside: avoid; }
  .room::after { display: none; }
  .room a, .plaque a { color: #000; text-decoration: none; }
  .plaque { box-shadow: none; background: #fff; padding: 2mm 3mm; }
  .plaque-thumb { width: 12mm; }
  .plaque-thumb .frame { width: min(11mm, calc(8mm * var(--ratio))); padding: .6mm; box-shadow: none; }
  .plaques { gap: 1mm; max-width: none; }
  .page-score .plaque { padding: .6mm 2mm; font-size: 8.5pt; line-height: 1.25; }
  .page-score .bar { height: 2mm; margin: .4mm 0; }
  .page-score .tag { font-size: 7.5pt; }
  .page-score .room { padding-top: 2mm; }
  .page-score .room h2 { font-size: 12pt; margin-bottom: 1mm; }
  .page-score .score-total { margin-bottom: 1mm; font-size: 9pt; }
  .page-score .page-head--wall h1 { font-size: 15pt; margin: 0; }
  .empty-art { display: none; }
  .print-only { display: block; }
  .guide-title { font-family: var(--display); font-size: 16pt; }
  .page-guide .page-head--wall { display: none; }
  .guide { max-width: none; padding: 0; }
  .guide-room { box-shadow: none; border: 1pt solid #000; border-top-width: 5pt; break-inside: avoid; padding: 3mm; margin-bottom: 4mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .guide-room h2 { font-size: 14pt; margin-bottom: 2mm; }
  .guide-room h3 { font-size: 12pt; margin: 0; }
  .guide-room p, .guide-room ul { margin-bottom: 1.5mm; }
  .guide-pick { grid-template-columns: 34mm 1fr; gap: 4mm; justify-items: start; }
  .guide-pick .frame { width: 34mm; padding: 1.5mm; box-shadow: none; }
  .guide-room .empty { flex-direction: row; }
  .work { background: none; color: #000; box-shadow: none; border: 0; padding: 0; break-inside: avoid; }
  .work > .frame, .work-zoom .frame { max-width: 90mm; box-shadow: none; }
}
