* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: #fff; color: #000;
  font: 16px/1.5 Times New Roman, Times, serif; }
.visually-hidden { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
a { color: #00e; text-decoration: underline; }
a:visited { color: #551a8b; }

header { position: sticky; top: 0; z-index: 10; background: #fff;
  border-bottom: 2px solid #000; padding: 8px 12px;
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 4px 12px; }
.brand { font-size: 22px; font-weight: bold; cursor: pointer; font-family: Times New Roman, Times, serif; }
.actions { display: flex; gap: 12px; align-items: baseline; font-size: 14px; flex-wrap: wrap; }

.btn { background: #d4d0c8; color: #000; border: 2px outset #fff; padding: 6px 14px;
  cursor: pointer; font-size: 14px; font-family: 'Courier New', Courier, monospace; }
.btn:active { border-style: inset; }
.btn:disabled { color: #888; cursor: not-allowed; }
.chip { font-size: 13px; font-family: 'Courier New', Courier, monospace; color: #555; }

#ambient { font: 12px 'Courier New', Courier, monospace; color: #999; padding: 4px 12px; border-bottom: 1px dashed #ddd; }
main { max-width: 600px; margin: 0 auto; padding: 16px 12px; }
#landing { display: flex; flex-direction: column; gap: 14px; margin: 14px 0; }
.poem { font-style: italic; font-size: 17px; line-height: 1.8; }
.instructions { font-size: 14px; font-family: 'Courier New', Courier, monospace; line-height: 1.9; color: #333; }
.in-app-warning { font: 13px 'Courier New', Courier, monospace; color: #8b0000; font-style: italic; line-height: 1.6; }

.wall { display: flex; flex-direction: column; gap: 0;
  margin: 12px 0 calc(120px + env(safe-area-inset-bottom)); }
.note { border-bottom: 1px solid #ccc; padding: 10px 0; }
.note > div { white-space: pre-wrap; overflow-wrap: anywhere; }
.note time { display: block; color: #666; font-size: 12px; font-family: 'Courier New', Courier, monospace; margin-bottom: 4px; }

.composer { position: fixed; bottom: 0; left: 0; right: 0;
  background: #f0f0f0; border-top: 2px solid #999;
  padding: 10px 12px max(10px, env(safe-area-inset-bottom)); }
.composer-inner { max-width: 600px; margin: 0 auto;
  display: flex; gap: 8px; align-items: flex-end; }
.composer-warning { max-width: 600px; margin: 4px auto 0;
  font: 11px 'Courier New', Courier, monospace; color: #444; }

textarea { flex: 1; min-height: 44px; max-height: 140px;
  background: #fff; color: #000; border: 2px inset #ccc; padding: 10px;
  resize: vertical; font: 16px 'Courier New', Courier, monospace; }

.subtle { color: #666; font-size: 12px; font-family: 'Courier New', Courier, monospace; }
code { font-family: 'Courier New', Courier, monospace; font-size: 0.95em; }
hr { border: none; border-top: 1px solid #999; margin: 4px 0; }
