/* LiteraryWorm brand (from literaryworm.com): dark ink, rust accent, cream text. */
:root {
  --bg: #0b0d0f;
  --surface: #14171a;
  --line: #2a2f34;
  --ink: #f6f1e8;
  --muted: #b8b0a3;
  --rust: #d47652;
  --rust-ink: #1a0f0a;
  --ok: #7fbf8f;
  --danger: #ef7a6a;
  --radius: 14px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f1e8; --surface: #fffaf2; --line: #e2d8c8; --ink: #1b1a17; --muted: #5d564b;
    --rust: #b65a37; --rust-ink: #fff; --ok: #2f7a45; --danger: #b3261e;
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--rust); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--rust); outline-offset: 2px;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font: 800 1.15rem/1 Manrope, system-ui, sans-serif; letter-spacing: -0.01em; }
.brand .mark { width: 32px; height: 32px; border-radius: 9px; background: var(--rust); color: var(--rust-ink);
  display: grid; place-items: center; font-family: Literata, Georgia, serif; font-weight: 700; }
nav.site a { color: var(--muted); text-decoration: none; margin-left: 16px; font-weight: 500; }
nav.site a:first-child { margin-left: 0; }
nav.site a[aria-current="page"], nav.site a:hover { color: var(--ink); }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 768px) { .wrap { padding-inline: 32px; } }
main { flex: 1; padding-block: 40px 64px; }

h1, h2 { font-family: Literata, Georgia, serif; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); margin: 0 0 12px; }
h2 { font-size: 1.3rem; margin: 0 0 8px; }
.lede { color: var(--muted); max-width: 60ch; margin: 0 0 32px; font-size: 1.05rem; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
a.card { color: var(--ink); text-decoration: none; transition: border-color .15s; }
a.card:hover { border-color: var(--rust); }
a.card p { color: var(--muted); margin: 0; }

form.intake { max-width: 560px; display: grid; gap: 18px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
label .hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
input, textarea, select {
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; width: 100%; min-height: 48px;
}
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
button[type=submit] {
  justify-self: start; font: 700 1rem/1 Manrope, system-ui, sans-serif; color: var(--rust-ink);
  background: var(--rust); border: 0; border-radius: 999px; padding: 14px 26px; min-height: 48px; cursor: pointer;
}
button[type=submit]:disabled { opacity: .6; cursor: progress; }
[data-intake-status] { min-height: 1.6em; margin: 0; font-weight: 600; }
[data-intake-status][data-state="ok"] { color: var(--ok); }
[data-intake-status][data-state="error"] { color: var(--danger); }
.note { color: var(--muted); font-size: .85rem; }

footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
footer.site .wrap { padding-block: 20px; }
@media (max-width: 520px) { nav.site a { margin-left: 12px; } button[type=submit] { width: 100%; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
