/* Hallmark · Specimen · editorial · shape: app screen · warm paper, ink blue, square rules · diary workbench */
/* A new photo and space to write share the spread without covering the photograph. */
:root {
  --paper: #f7f2e7;
  --panel: #eee7d9;
  --ink: #242019;
  --muted: #625b50;
  --line: #bcb2a2;
  --accent: #2c476d;
  --white: #fffaf0;
  --display: "Noto Serif CJK SC", "Songti SC", SimSun, Georgia, serif;
  --body: system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--body); }
.mast, main { max-width: 62rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 3rem); }
.mast { display: flex; justify-content: space-between; padding-block: 1.25rem; }
.mast span { font: 1.35rem var(--display); }
a { color: var(--accent); }
.heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; border-block: 1px solid var(--line); padding-block: 2rem 1.3rem; }
h1, h2 { font-family: var(--display); font-weight: 400; margin: 0; min-width: 0; overflow-wrap: break-word; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7vw, 5.25rem); line-height: 1.1; }
h2 { font-size: 1.65rem; margin-bottom: 1rem; }
p { margin-block: .65rem; }
#connection, #empty, .meta { color: var(--muted); font-size: .9375rem; }
.heading a { flex-shrink: 0; }
.spread { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(1rem, 5vw, 4rem); padding-block: 1.5rem 2.5rem; }
#compose { background: var(--panel); padding: clamp(1rem, 3vw, 1.6rem); align-self: start; }
form, label { display: grid; gap: .5rem; }
form { gap: 1rem; }
.places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
textarea, input { font: inherit; background: var(--white); color: var(--ink); padding: .55rem; border: 1px solid var(--muted); min-width: 0; width: 100%; }
textarea { resize: vertical; }
button, .primary { font: inherit; color: var(--accent); background: var(--paper); border: 1px solid var(--accent); padding: .48rem .85rem; text-decoration: none; cursor: pointer; justify-self: start; min-height: 2.65rem; }
.primary { color: var(--white); background: var(--accent); }
button:active:not(:disabled), .primary:active { filter: brightness(.88); }
button:disabled { color: var(--muted); background: var(--panel); border-color: var(--muted); cursor: not-allowed; }
#guest-copy { width: min(30rem, calc(100% - 2rem)); max-height: 85dvh; border: 1px solid var(--accent); background: var(--paper); color: inherit; padding: 1rem; }
#guest-copy::backdrop { background: #221a1273; }
#guest-copy-entries { display: grid; gap: .65rem; }
#guest-copy-entries label { display: grid; grid-template-columns: auto 1fr; gap: .55rem; align-items: start; overflow-wrap: anywhere; }
#guest-copy-entries input { width: auto; margin-top: .35rem; }
.guest-copy-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .5rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.entry { border-bottom: 1px solid var(--line); padding-bottom: 1.25rem; margin-bottom: 1.25rem; }
.entry img { display: block; width: 100%; max-height: 21rem; object-fit: contain; background: var(--panel); }
.entry p { white-space: pre-wrap; overflow-wrap: anywhere; }
#settings { border-top: 1px solid var(--line); padding-block: 1.5rem 4rem; }
#defaults { max-width: 24rem; }
details, #demo { margin-top: 1rem; }
#settings details label { max-width: 24rem; margin-top: .75rem; }
details summary { cursor: pointer; color: var(--accent); }
.notice { position: fixed; bottom: .65rem; inset-inline: 1rem; width: fit-content; max-width: calc(100% - 2rem); margin-inline: auto; padding: .6rem .9rem; color: var(--white); background: var(--accent); }
@media (max-width: 42rem) {
  .spread { grid-template-columns: minmax(0, 1fr); }
}
