:root { color-scheme: dark; --ink: #fff8e9; --muted: #e0ddd3; }
* { box-sizing: border-box; }
body.demo-page {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: #274150;
  color: var(--ink);
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 20px;
  line-height: 1.7;
}
a { color: inherit; text-underline-offset: .2em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid #f4cf82; outline-offset: 4px; }
.glass {
  background: rgba(17, 31, 38, .88);
  border: 1px solid #ffffff30;
  box-shadow: 0 12px 50px #07121830, inset 0 1px 0 #ffffff0a;
  border-radius: 20px;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass {
    background: rgba(17, 31, 38, .64);
    -webkit-backdrop-filter: blur(22px) saturate(130%);
    backdrop-filter: blur(22px) saturate(130%);
  }
}
.identity {
  position: fixed;
  z-index: 1;
  top: max(24px, env(safe-area-inset-top));
  left: max(24px, env(safe-area-inset-left));
  width: min(390px, calc(100% - 48px));
  padding: 22px 26px 20px;
}
.identity-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.name { font: 12px/1.4 system-ui, sans-serif; letter-spacing: .04em; text-decoration: none; }
.eyebrow { font: 10px/1.6 system-ui, sans-serif; text-transform: uppercase; letter-spacing: .13em; color: var(--muted); }
.identity .eyebrow { margin: 19px 0 7px; }
.identity h1 { margin: 0; font-size: clamp(32px, 3.4vw, 44px); line-height: 1.1; font-weight: 400; letter-spacing: -.04em; }
.identity .description { margin: 12px 0 0; max-width: 28ch; font-size: 16px; line-height: 1.5; color: var(--muted); }
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #ffffff30;
  border-radius: 10px;
  background: #ffffff0b;
  color: #fff8e9;
  font: 12px/1.4 system-ui, sans-serif;
  flex-shrink: 0;
  white-space: nowrap;
  text-decoration: none;
}
.text-button:hover { background: #ffffff20; }
.reader {
  width: min(720px, calc(100% - 40px));
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  padding: 0;
  color: #fff8e9;
  overscroll-behavior: contain;
}
.reader::backdrop { background: #08182045; }
.reader-inner { padding: clamp(24px, 5vw, 48px); }
.reader-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.reader-top .eyebrow { margin: 0; }
.essay h2 { margin: 0 0 24px; font-size: clamp(30px, 5vw, 42px); font-weight: 400; line-height: 1.15; letter-spacing: -.035em; }
.essay p { margin: 0 0 1.2em; }
.essay blockquote { margin: 1.5em 0; padding-left: 1em; border-left: 2px solid #efd9aa; font-style: italic; }
.reader-footer { margin-top: 30px; padding-top: 18px; border-top: 1px solid #ffffff30; font: 11px/1.7 system-ui, sans-serif; color: var(--muted); }
@media (max-width: 650px) {
  .identity { top: max(12px, env(safe-area-inset-top)); left: max(12px, env(safe-area-inset-left)); width: calc(100% - 24px - env(safe-area-inset-left) - env(safe-area-inset-right)); padding: 14px 18px 18px; border-radius: 18px; }
  .identity .eyebrow { margin-top: 9px; font-size: 9px; }
  .identity h1 { font-size: 34px; }
  .identity .description { font-size: 14px; margin-top: 8px; max-width: 30ch; }
  .reader { width: calc(100% - 24px); max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); font-size: 18px; }
  .reader-inner { padding: 22px; }
}
/* Short landscape screens keep the heading small and leave controls reachable. */
@media (max-height: 600px) {
  .identity { padding: 12px 18px; }
  .identity .eyebrow, .identity .description { display: none; }
  .identity h1 { margin-top: 6px; font-size: 30px; }
}
@media (max-height: 450px) and (min-width: 500px) {
  .identity { width: 260px; padding: 8px 16px; }
  .identity h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
@media print {
  .identity { display: none; }
  .reader { display: block; position: static; width: 100%; max-height: none; color: #000; background: #fff; border: 0; box-shadow: none; backdrop-filter: none; }
  .reader-top button { display: none; }
}
