/* reads — forms, notices, and the small print of the submission flow. */

/* ── Notices ────────────────────────────────────────────────────────────── */
.msg {
  border-left: 3px solid var(--accent);
  background: var(--accent-bg);
  padding: 0.7rem 0.9rem;
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}
.msg p:last-child { margin-bottom: 0; }
.msg.ok {
  border-left-color: light-dark(#2c7a2c, #6fbf73);
  background: light-dark(#eef6ee, #16211a);
}

/* ── The submission form ──────────────────────────────────────────────────
   Two fields and a button. The point of the design work here is that the body field looks
   like somewhere you would put an essay — a wide, quiet, monospaced slab — rather than a
   comment box that happens to be tall. */
.submit-form { margin: 1.5rem 0 0; }
.field { margin: 0 0 1.25rem; }
.field label {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.field .hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.4rem 0 0;
}

input[type=email], input[type=text], textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.7rem;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
  background: light-dark(#fff, #191919);
  border: 1px solid var(--rule);
  border-radius: 3px;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}
textarea {
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.6;
  min-height: 45vh;
  resize: vertical;
}

button, .button {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border-radius: 2px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--paper);
  cursor: pointer;
}
button:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
button.quiet {
  background: transparent;
  color: var(--muted);
  border-color: var(--rule);
}
button.quiet:hover { background: var(--card); color: var(--ink); border-color: var(--muted); }

/* ── The steps ────────────────────────────────────────────────────────────
   What happens after you press the button, said before you press it — because the one thing
   a submitter wants to know is whether this appears immediately and, if not, when. */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 1.5rem 0;
  border-top: 1px solid var(--rule);
}
/* The number is a flex item; everything else must be ONE flex item, not one per inline
   element — hence the <span> around the text. Without it the <strong> becomes its own column
   and the step reads as two ragged paragraphs side by side. */
.steps li {
  counter-increment: step;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
}
.steps li > span { flex: 1 1 auto; }
.steps li::before {
  content: counter(step);
  flex: none;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  margin-top: 0.1rem;
}
.steps strong { color: var(--ink); font-weight: 600; }

/* ── Disclosures ────────────────────────────────────────────────────────── */
details.note {
  border-top: 1px solid var(--rule);
  padding: 0.75rem 0;
  font-size: 0.92rem;
  color: var(--muted);
}
details.note > summary {
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  list-style: none;
}
details.note > summary::-webkit-details-marker { display: none; }
details.note > summary::after { content: " +"; color: var(--accent); }
details.note[open] > summary::after { content: " –"; }
details.note > summary:hover { color: var(--accent); }
details.note ol, details.note ul { padding-left: 1.25rem; margin: 0.75rem 0 0; }
details.note li { margin: 0.3rem 0; }

/* ── Install prompt ───────────────────────────────────────────────────────
   Only on a phone, in a real browser tab. On desktop the share sheet does not exist, and
   inside the installed app the advice has already been taken. */
.install-banner { display: none; }
@media (max-width: 700px) and (display-mode: browser) {
  .install-banner {
    display: block;
    border: 1px solid var(--rule);
    border-left: 3px solid var(--accent);
    background: var(--card);
    padding: 0.8rem 1rem;
    margin: 0 0 2rem;
    font-size: 0.9rem;
    border-radius: 0 3px 3px 0;
  }
  .install-banner p { margin: 0 0 0.4rem; }
  .install-banner p:last-child { margin: 0; }
  .install-banner strong { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.02em; }
}
