/* The architectural gallery and the reading rooms share a warm charcoal palette. */
:where(.section, .infill-feature, .about-band, .faq-section, .page-head, .contact-strip, footer) {
  --paper: #141310;
  --linen: #211e19;
  --porcelain: #1b1915;
  --ink: #f4eee3;
  --muted: #c4bdb1;
  --line: #4d4434;
  --brass: #ddbe83;
  --gold: #ddb982;
  --light-gold: #f4da9e;
  --night: #100f0d;
  --forest: #1c1a16;
  color-scheme: dark;
  background-color: var(--paper);
  color: var(--ink);
}

:is(.section, .about-band, .faq-section, .page-head, .contact-strip, footer) :focus-visible {
  outline: 2px solid #ffe0a0;
  outline-offset: 5px;
}

:is(.section, .infill-feature, .about-band, .faq-section) .kicker,
.page-head .kicker, .contact-strip .kicker, .resource-card .card-overline {
  color: var(--brass);
  font-size: .78rem;
  letter-spacing: .15em;
}

.section, .about-band, .faq-section { padding-block: clamp(3.7rem, 7.2vw, 7rem); }
.section-intro { margin-bottom: clamp(2rem, 3.3vw, 3.4rem); }
.section-intro h2, .about-copy h2, .faq-grid h2 { text-wrap: balance; }
.section-desc { max-width: 30rem; font-size: 1rem; }

/* Three framed openings, with labels set beneath the pictures like gallery captions. */
.services { background: radial-gradient(ellipse at 50% 36%, #221e16 0, #151410 57%, #12110f 100%); }
.services .card-grid { gap: clamp(1.35rem, 3.3vw, 3.6rem); align-items: stretch; }
.services .service-card {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  overflow: visible;
  box-shadow: none;
}
.services .card-media {
  --arch-cap: 48% 48% 0 0 / 63% 63% 0 0;
  overflow: hidden;
  border: 1px solid #9b8153;
  border-radius: var(--arch-cap);
  aspect-ratio: 1.41;
  isolation: isolate;
  background: #252019;
}
.services .card-media::after {
  inset: 6px;
  border: 1px solid rgb(245 222 169 / 55%);
  border-radius: inherit;
}
.services .card-media img { filter: saturate(.78) contrast(1.02); }
.services .card-content {
  padding: clamp(1.25rem, 1.85vw, 2rem) .1rem clamp(1.35rem, 2.45vw, 2.5rem);
}
.services .card-content h3 {
  margin-bottom: .65rem;
  font-size: clamp(1.85rem, 2.8vw, 2.85rem);
  text-wrap: balance;
}
.services .card-content p:not(.card-overline), .resource-card p:not(.card-overline) {
  max-width: 43ch;
  font-size: 1rem;
}
.section .card-link, .about-copy .text-link, .infill-copy .text-link { color: var(--brass); }
.section .card-link { gap: .6rem; font-size: .94rem; }
.section .card-link svg, .about-copy .text-link svg, .infill-copy .text-link svg,
.link-list a > svg, .lender-grid a svg { display: none; }
.about-copy .text-link:hover, .infill-copy .text-link:hover { color: var(--light-gold); }
.services .service-card:hover { transform: none; border-color: #b79a64; box-shadow: none; }
.services .service-card:hover .card-link, .resource-card:hover .card-link { text-decoration: underline; }
.services .specialty-links {
  display: grid;
  grid-template-columns: minmax(12rem, .8fr) minmax(0, 2fr);
  gap: clamp(1.25rem, 4.5vw, 5.25rem);
  align-items: start;
  margin-top: clamp(2.7rem, 5.5vw, 5.4rem);
}
.specialty-links h3 { font-size: clamp(1.8rem, 2.8vw, 2.8rem); }
.specialty-links .link-list { margin-top: 0; column-gap: clamp(1rem, 2.5vw, 2.6rem); }
.link-list a, .prose .link-list a:not(.btn) {
  min-height: 3rem;
  color: var(--brass);
  font-size: 1rem;
  text-underline-offset: .25em;
}
.link-list a:hover, .prose .link-list a:not(.btn):hover { color: var(--light-gold); }
.services .specialty-links a { font-weight: 450; }

/* A wide photographic interruption between the gallery and lender directory. */
.infill-feature { background: #12110f; padding-bottom: clamp(3.4rem, 6vw, 6.25rem); }
.infill-layout {
  grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr);
  border: 1px solid #68573b;
  background: linear-gradient(115deg, #24211b, #191713 85%);
  color: var(--ink);
}
.infill-photo { overflow: hidden; isolation: isolate; min-height: clamp(21rem, 31vw, 34rem); }
.infill-photo img { filter: saturate(.83); }
.infill-copy { padding: clamp(1.8rem, 4.8vw, 5.2rem); }
.infill-copy h2 { max-width: 15ch; text-wrap: balance; }
.infill-copy > p:not(.kicker) { color: var(--muted); }
.infill-copy .text-link, .about-copy .text-link { font-size: .95rem; border-color: #897247; }

.lenders { background: #191713; border-top: 1px solid #413a2d; }
.lender-grid { border-color: var(--line); }
.lender-grid li { min-width: 0; }
.lender-grid a {
  min-height: clamp(4.4rem, 7.2vw, 7rem);
  padding: 1rem .75rem;
  background: transparent;
  color: #e6dcc6;
  font-size: clamp(1.13rem, 1.68vw, 1.7rem);
  text-wrap: balance;
}
.lender-grid a:hover { background: #29241b; color: #ffdfa5; }

.about-band { border-block: 1px solid #48402f; background: #11110f; }
.about-grid { column-gap: clamp(2rem, 7vw, 8rem); }
.portrait {
  width: min(100%, 29rem);
  aspect-ratio: 1 / 1.08;
  padding: clamp(5px, .6vw, 9px);
  background: transparent;
  border: 1px solid #8d774d;
  border-radius: 48% 48% 0 0 / 43% 43% 0 0;
  overflow: hidden;
}
.portrait img { border-radius: inherit; object-position: center 30%; }
.about-copy p:not(.kicker) { font-size: 1.05rem; }
.about-copy .text-link { margin-top: 1.65rem; }
.faq-section { background: #181611; }
.faq-list { border-top: 1px solid #796341; }
.faq-list details { border-color: var(--line); }
.faq-list summary { font-size: 1.03rem; font-weight: 550; }
.faq-list summary::after { color: var(--brass); }
.faq-list details p { font-size: 1rem; }

/* Thin nested arches leave the typography and breadcrumb clear on article pages. */
.page-head {
  isolation: isolate;
  background: radial-gradient(ellipse at 89% 110%, #30281b, transparent 57%), #151411;
  border-color: #625135;
  border-width: 0 0 1px;
}
.page-head::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: clamp(16rem, 32vw, 35rem);
  height: 148%;
  inset: auto -2.5rem -72% auto;
  border: 1px solid #73603c;
  border-radius: 50% 50% 0 0 / 58% 58% 0 0;
  outline: 0;
  box-shadow:
    0 0 0 12px #242016, 0 0 0 13px #645233,
    0 0 0 30px #201d15, 0 0 0 31px #51452e,
    0 0 0 52px #1e1b15, 0 0 0 53px #423a29;
  transform: none;
  opacity: .8;
  pointer-events: none;
}
.page-head { padding-bottom: clamp(3.3rem, 6vw, 6.2rem); }
.page-head .wrap, .contact-grid { position: relative; }
.breadcrumb { color: var(--muted); font-size: .875rem; }
.breadcrumb a { color: var(--brass); }
.page-head h1 { max-width: min(59rem, 83%); text-wrap: balance; }
.page-head .lead { max-width: 65ch; color: #d8d1c4; }
.page-head + .section { background: #141310; }
.article-grid { row-gap: 2.5rem; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.7rem; text-wrap: balance; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { color: #d1cabd; font-size: 1.045rem; line-height: 1.78; }
.prose li::marker { color: var(--brass); }
.prose strong { color: #f4e9d8; }
.prose a:not(.btn), .aside-box a:not(.btn) { color: var(--brass); }
.prose a:not(.btn):hover, .aside-box a:not(.btn):hover { color: var(--light-gold); }
.aside-box, .resource-card {
  background: linear-gradient(135deg, #24211b, #1b1915 75%);
  border: 1px solid var(--line);
  border-top-color: #a18757;
}
.aside-box p { color: #cfc7b9; font-size: 1rem; }
.aside-box .btn + h3 { border-color: var(--line); }
.aside-box .inner-figure { border-radius: 48% 48% 0 0 / 39% 39% 0 0; }
.inner-figure { border: 1px solid #6b5b40; }
.resource-grid { gap: clamp(.9rem, 2vw, 2.15rem); }
.resource-card { padding: clamp(1.3rem, 2.3vw, 2.6rem); }
.resource-card:hover { border-color: #a58a56; background: #28231b; }
.contact-methods a { background: var(--porcelain); border-color: #6c5a3b; }
.contact-methods a:hover { background: #28231b; border-color: #baa073; }
.contact-methods strong { color: var(--ink); font-size: 1rem; }
.contact-methods small { font-size: .94rem; }

.contact-strip {
  background: radial-gradient(ellipse at 72% 65%,#211c15,transparent 48%),#12120f;
  border-block: 1px solid #625135;
  padding-block: clamp(1.25rem,2.4vw,2.5rem);
}
.contact-copy { padding-block: 1.5rem; }
.contact-portal {
  position: relative; justify-self: center; container-type: inline-size;
  width: min(100%,38rem); aspect-ratio: 4 / 3; isolation: isolate;
}
.contact-portal img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  pointer-events: none;
  mask-image: linear-gradient(90deg,transparent,#000 12% 88%,transparent),linear-gradient(0deg,transparent,#000 6% 96%,transparent);
  mask-composite: intersect;
}
.contact-portal .btn {
  /* The dark opening runs from y=143 to y=712 in the 768px artwork. */
  position: absolute; left: 50%; top: 55.7%; translate: -50% -50%;
  width: max-content; max-width: 40%; padding-inline: clamp(.4rem,2.5cqi,1.4rem);
  color: #251c0e; font-size: clamp(.875rem,3cqi,.94rem);
}
.contact-portal .btn:hover { transform: none; }
.contact-grid h2 { max-width: 23ch; font-size: clamp(2.85rem, 4.8vw, 5rem); text-wrap: balance; }
.contact-grid p:not(.kicker) { color: #d6cebf; }
footer { background: #0e0e0c; }
.footer-main > div:first-child > p { color: var(--muted); font-size: 1rem; }
.footer-nav strong { color: var(--brass); font-size: .78rem; }
.footer-nav a, footer .legal { color: var(--muted); font-size: .9rem; }
.legal { border-color: var(--line); }
.social-row a { width: 2.75rem; height: 2.75rem; border-color: #615238; border-radius: 50%; color: var(--brass); }
.social-row a:hover { background: #29241c; color: var(--light-gold); border-color: #ad935e; }

@media (min-width: 701px) and (max-width: 960px) {
  .contact-portal { width: 118%; }
}
@media (max-width: 800px) {
  .infill-layout { grid-template-columns: minmax(0, 1fr); }
  .infill-photo { min-height: 0; aspect-ratio: 1.95; }
  .services .specialty-links { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .services .card-grid { gap: 2rem; }
  .services .card-media { aspect-ratio: 1.88; border-radius: 44% 44% 0 0 / 55% 55% 0 0; }
  .services .card-content { padding-block: 1.12rem 1.55rem; }
  .portrait { width: min(100%, 24rem); }
  .page-head h1 { max-width: 100%; }
  .page-head::after { right: -44%; opacity: .45; }
  .contact-strip { padding-block: 2.7rem 1.1rem; }
  .contact-grid { grid-template-columns: minmax(0,1fr); gap: .85rem; }
  .contact-copy { padding: 0; }
  .contact-portal { width: min(28rem,calc(100% + var(--gutter) * 2)); }
  .faq-list summary { padding-block: 1.15rem; }
  .footer-main { gap: 1.75rem; }
}
@media (max-width: 390px) {
  .contact-portal { width: calc((100% + var(--gutter) * 2) * 1.12); }
  .footer-main { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .services .service-card:hover img { transform: scale(1.045); filter: saturate(1); }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .infill-photo img {
      height: 112%;
      top: -6%;
      animation: infill-camera linear both;
      animation-timeline: view();
    }
    @keyframes infill-camera {
      from { transform: translateY(-4%); }
      to { transform: translateY(4%); }
    }
  }
}
