/* Readonce – editorial reader layout */
:root { --text:#000; --bg:#fff; --muted:#444; --column:640px; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  font-size: 13px; line-height: 1.5;
}
.page { max-width: var(--column); margin: 0 auto; padding: 18px 22px 28px; }

.brand { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.brand-text { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.brand-name { font-size: 12px; font-weight: 700; }
.brand-tag { font-size: 5.5px; color: var(--muted); }
.brand-icon { width: 17px; height: 17px; border-radius: 4px; }

#story-title {
  margin: 14px 0 4px; font-size: clamp(26px, 5.6vw, 34px);
  line-height: 1.08; font-weight: 800; letter-spacing: -0.01em;
}
.author { margin: 0 0 12px; font-size: 7.5px; font-style: italic; }

.cover { margin: 0 0 26px; }
.cover img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #ddd; }
.cover figcaption { margin-top: 12px; text-align: center; font-size: 6.5px; font-style: italic; }

.narrative p { margin: 0 0 7px; text-align: left; }
.narrative > p:first-child::first-letter {
  float: left; font-family: Georgia, "Times New Roman", serif;
  font-size: 3.1em; line-height: 0.85; padding: 3px 4px 0 0;
}
.narrative img { display: block; max-width: 100%; height: auto; margin: 14px auto; }

.footer { margin-top: 36px; font-size: 6.5px; font-style: italic; }

@media (min-width: 700px) {
  body { font-size: 15px; }
  .page { padding-top: 28px; }
  .brand-name { font-size: 14px; }
  .brand-tag { font-size: 6.5px; }
  .brand-icon { width: 20px; height: 20px; }
  .author { font-size: 9px; }
  .cover figcaption { font-size: 8px; }
  .footer { font-size: 8px; }
}

/* Access confirmation page */
.gate { max-width: 420px; margin: 18vh auto 0; text-align: center; }
.gate h1 { font-size: 22px; line-height: 1.15; font-weight: 800; margin: 0 0 12px; }
.gate p { margin: 0 0 20px; color: var(--muted); }
.gate button {
  font: inherit; font-weight: 700; color: #fff; background: #000;
  border: 0; padding: 10px 26px; cursor: pointer;
}
.gate button:hover { background: #333; }
