/* spoonternet — home/error chrome. Proxied pages get their own inline
   stylesheet (proxy-bar.css) since this file never loads on a foreign page's
   markup (relative <link> hrefs there resolve against the target origin, not
   ours — proxy-bar.css is linked with an absolute spoonternet URL instead). */

:root {
  --link: #0645ad;
  --ink: #202122;
  --muted: #54595d;
  --border: #a2a9b1;
  --box-bg: #f8f9fa;
  --accent: #0b6e4f;
  --serif: Georgia, "Linux Libertine", "Times New Roman", serif;
  --sans: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: #fff; }
body {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  line-height: 1.65;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.chrome {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky; top: 0; z-index: 5;
}
.wordmark {
  font-family: var(--serif); font-weight: 700; font-size: 1.15rem;
  color: var(--ink); white-space: nowrap; margin-right: auto;
}
.wordmark:hover { text-decoration: none; }
.chrome-link { font-size: 0.85rem; color: var(--muted); }

.wrap { max-width: 640px; margin: 0 auto; padding: 0.9rem 1rem 3rem; }

.error-box {
  border: 1px solid var(--border); background: var(--box-bg);
  padding: 1.4rem 1.5rem; margin: 1.5rem 0; border-radius: 6px;
}
.error-box h1 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin-top: 0; }

/* ---- home page ---- */
.home-hero {
  max-width: 640px; margin: 0 auto; padding: 2.6rem 1rem 1rem; text-align: center;
}
.home-logo {
  font-family: var(--serif); font-weight: 700; font-size: 2.8rem;
  color: var(--ink); letter-spacing: -0.01em;
}
.home-tagline { color: var(--muted); font-size: 1rem; margin: 0.2rem 0 1.6rem; }
.home-search { display: flex; gap: 0.5rem; max-width: 480px; margin: 0 auto 0.9rem; }
.home-search input {
  flex: 1; font-size: 1rem; padding: 0.6rem 0.9rem;
  border: 1px solid var(--border); border-radius: 20px;
}
.home-search input:focus { outline: 2px solid var(--accent); }
.home-search button {
  font-size: 0.95rem; padding: 0.6rem 1.1rem; border-radius: 20px;
  border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer;
}
.home-search button:hover { opacity: 0.9; }
.home-actions { display: flex; justify-content: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.home-actions a {
  padding: 0.45rem 0.9rem; border-radius: 16px; border: 1px solid var(--border);
  background: #fff; color: var(--ink); font-size: 0.85rem;
}
.home-actions a:hover { background: var(--box-bg); text-decoration: none; }

.toy-section {
  max-width: 640px; margin: 0 auto; padding: 0 1rem 2rem;
}
.toy-section h2 {
  font-family: var(--serif); font-weight: 400; font-size: 1.2rem;
  border-bottom: 1px solid var(--border); padding-bottom: 0.3rem; margin-bottom: 0.8rem;
}
.toy-section p.lede { color: var(--muted); font-size: 0.92rem; margin: 0 0 0.9rem; }
#toy-input {
  width: 100%; min-height: 4.5rem; font-family: var(--sans); font-size: 0.95rem;
  padding: 0.6rem 0.75rem; border: 1px solid var(--border); border-radius: 4px;
  resize: vertical;
}
#toy-input:focus { outline: 2px solid var(--accent); }
.toy-output {
  margin-top: 0.8rem; padding: 0.8rem 0.9rem; background: var(--box-bg);
  border: 1px solid var(--border); border-radius: 4px; min-height: 2.4rem;
  font-size: 0.98rem; white-space: pre-wrap;
}
.toy-output:empty::before { content: "your spoonerized text shows up here as you type."; color: var(--muted); }

.site-footer {
  max-width: 640px; margin: 0 auto; padding: 1.2rem 1rem 2.5rem;
  color: var(--muted); font-size: 0.78rem; line-height: 1.6;
  border-top: 1px solid var(--border);
}
.site-footer p { margin: 0.3rem 0; }

@media (min-width: 480px) {
  .home-logo { font-size: 3.4rem; }
}
