@font-face {
  font-family: "Editorial";
  src: url("assets/editorial-serif.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root { color-scheme: light; --ink: #211f1c; --paper: #f3efe7; --margin: clamp(24px, 4.4vw, 88px); }
* { box-sizing: border-box; }
html { min-width: 280px; background: var(--paper); }
body { margin: 0; }
.page {
  position: relative; min-height: 640px; height: 100svh;
  isolation: isolate; overflow: hidden; background: var(--paper);
}
.art { position: absolute; inset: 0; z-index: -1; }
.art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.frame { position: absolute; inset: var(--margin); border-block: 1px solid rgb(52 47 40 / 40%); pointer-events: none; }
h1 {
  position: absolute; top: 50%; left: var(--margin); transform: translateY(-50%);
  margin: 0; color: var(--ink);
  font-family: "Editorial", "Bodoni MT", Didot, Georgia, serif;
  font-weight: 400; font-size: clamp(100px, 15.7vw, 320px);
  line-height: .79; letter-spacing: -.073em;
}
h1::selection { background: #752d3b; color: var(--paper); }
/* Portrait: the sculpture sits below the editable HTML heading. */
@media (max-aspect-ratio: 4/5) {
  .page { min-height: 700px; }
  .art { inset: auto 0 7% -60%; width: 160%; aspect-ratio: 3 / 2; }
  .art img { object-fit: contain; object-position: center; }
  .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--paper), transparent 20%); }
  h1 { top: 10%; transform: none; font-size: clamp(88px, 24vw, 200px); line-height: .82; }
}
@media (max-height: 540px) and (min-aspect-ratio: 4/5) {
  .page { min-height: 360px; }
  h1 { font-size: min(17vw, 38vh); }
}
@media (prefers-contrast: more) { .frame { border-color: #211f1c; } }
