/* Hotel Theresa: the 1948 ad that becomes the building */
#ad {
  position: fixed; inset: 0; z-index: 5; background: #0d0f1a; display: grid; place-items: center;
  grid-template-columns: minmax(0, 380px) minmax(0, 440px); gap: clamp(24px, 5vw, 64px); justify-content: center; align-content: safe center; padding: 24px 16px 70px; overflow-y: auto;
  transition: opacity 1.4s ease, transform 1.8s cubic-bezier(.3, .6, .2, 1);
}
#ad.gone { opacity: 0; transform: scale(1.18); pointer-events: none; }
#ad figure { margin: 0; background: #ece6d6; padding: 10px; box-shadow: 0 30px 70px rgba(0, 0, 0, .6); transform: rotate(-1.2deg); }
#ad figure img { width: 100%; max-height: calc(100vh - 150px); object-fit: contain; display: block; }
#ad figcaption { font-size: 13px; font-style: italic; color: #4a4336; margin-top: 6px; }
.ad-text { color: var(--stock); }
.ad-text .year { color: var(--amber); font-style: italic; margin: 0 0 6px; font-size: 18px; }
.ad-text h1 { font-size: clamp(40px, 6vw, 64px); margin: 0 0 14px; line-height: 1; }
.ad-text p { font-size: 18px; line-height: 1.55; margin: 0 0 12px; }
.ad-text .src { font-size: 15px; font-style: italic; opacity: .8; }
.ad-text button { margin-top: 8px; background: var(--esso); color: #fff; border: 0; padding: 13px 22px; font-size: 18px; font-weight: 700; }
#hint2 { position: fixed; left: 50%; bottom: 64px; transform: translateX(-50%); margin: 0; padding: 8px 16px; background: rgba(19, 26, 48, .8); font-style: italic; font-size: 16px; z-index: 2; max-width: calc(100% - 32px); text-align: center; }
#hint2[hidden] { display: none; }
#read { max-height: calc(100vh - 32px); overflow-y: auto; width: min(560px, calc(100% - 32px)); z-index: 6; }
#read img { width: 100%; display: block; margin: 6px 0 10px; border: 1px solid rgba(29, 26, 22, .2); }
#read .clipcap { font-size: 13px; font-style: italic; margin: -4px 0 12px; opacity: .8; }
#read blockquote { margin: 0 0 12px; padding-left: 14px; border-left: 4px solid var(--green); font-style: italic; font-size: 17px; line-height: 1.5; }
#read .stamp { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; border: 2px solid var(--esso); color: var(--esso); padding: 2px 6px; margin-right: 6px; transform: rotate(-3deg); }
@media (max-width: 760px) { #ad { grid-template-columns: 1fr; } #ad figure { max-width: 300px; justify-self: center; } }
@media (prefers-reduced-motion: reduce) { #ad { transition: opacity .2s; } }
