/* Large Print Edition: a plain library form. Colours and display type come from tokens.css. */
:root {
  --serif: "Times New Roman", Tinos, "Liberation Serif", Times, serif;
  --line: 2px solid var(--ink);
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 20px/1.5 var(--serif); }
::selection { background: var(--c-peach); color: #1a1a1a; }
:focus-visible { outline: 3px solid var(--c-peach); outline-offset: 2px; }

.desk {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start;
  max-width: 1200px; margin: 0 auto; padding: 32px 32px 80px;
}
.masthead { margin-bottom: 28px; }
.wordmark { display: block; width: 132px; height: auto; margin-bottom: 18px; }
h1 {
  display: inline-block; margin: 0; padding-bottom: 10px; border-bottom: 6px solid var(--c-brick);
  font: 700 44px/1.1 var(--font-display); letter-spacing: -0.5px;
}

.field { margin: 0 0 22px; }
label, legend { display: block; font-weight: 700; margin: 0 0 6px; padding: 0; }
.soft, .cap { color: var(--ink-soft); }
.soft { font-weight: 400; }
input[type="text"], textarea {
  display: block; width: 100%; min-height: 48px; padding: 8px 12px;
  font: inherit; color: var(--ink); background: transparent; border: var(--line); border-radius: 0;
}
textarea { height: 13em; min-height: 6em; resize: vertical; }
textarea.over { border-style: dashed; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
fieldset { border: 0; padding: 0; min-width: 0; }
.paper legend { float: left; margin: 0 28px 0 0; line-height: 48px; }
.paper label { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin: 0 28px 0 0; font-weight: 400; }
input[type="radio"] { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); }
.cap { margin: 8px 0 0; font-size: 18px; }
#unsettable { margin: 12px 0 0; }
label.file { margin: 16px 0 6px; font-weight: 400; }
input[type="file"] { display: block; max-width: 100%; font: inherit; font-size: 18px; color: var(--ink-soft); }

.readout { margin: 0 0 16px; padding: 12px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
button, input[type="file"]::file-selector-button {
  min-height: 48px; padding: 8px 18px; font: inherit; color: var(--ink);
  background: transparent; border: var(--line); border-radius: 0; cursor: pointer;
}
input[type="file"]::file-selector-button { margin-right: 14px; font-size: 18px; }
button:hover:not(:disabled) { background: var(--ink); color: var(--bg); }
button:disabled { color: var(--ink-soft); border-color: var(--ink-soft); cursor: default; }

/* The pages are paper: white, a 1 pt hairline, square, in every colour scheme. */
.preview { display: flex; flex-direction: column; gap: 24px; }
svg.page { display: block; flex: none; width: 320px; height: auto; background: #fff; outline: 1pt solid #1a1a1a; outline-offset: -1pt; }
svg.page text { font-family: var(--serif); fill: #000; }
.preview-note { width: 320px; margin: 0; font-size: 18px; color: var(--ink-soft); }

/* The house wordmark is plum ink: on the dark ground it sits on a white paper label, like the pages. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wordmark { padding: 6px 8px; background: #fff; }
}
[data-theme="dark"] .wordmark { padding: 6px 8px; background: #fff; }

@media (max-width: 799px) {
  .desk { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 16px 16px 64px; }
  h1 { font-size: 36px; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .preview { align-items: center; }
}
