/* ropo.co front page and 404 page. Moved out of an inline <style> on 5 Nov 2026, when the site came
   to ropo.uk: this server's CSP is style-src 'self', so inline styles would be dropped. */

:root {
  color-scheme: light dark;
  --bg: #f8fafc; --fg: #0f172a; --muted: #64748b; --line: #cbd5e1; --accent: #0f172a; --card: #fff;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b1120; --fg: #e2e8f0; --muted: #94a3b8; --line: #1e293b; --accent: #e2e8f0; --card: #0f172a; }
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg); color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: grid; place-items: center; padding: 2rem;
}
main { max-width: 34rem; text-align: center; }
.mark { width: 64px; height: 64px; margin: 0 auto 1.5rem; display: block; border-radius: 14px; }
h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 600; letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}
h1 .tld { color: var(--muted); font-weight: 500; }
p { color: var(--muted); margin: 1rem 0 0; }
hr { border: 0; border-top: 1px solid var(--line); width: 4rem; margin: 1.75rem auto; }
footer { font-size: 0.8rem; color: var(--muted); }
footer a { color: var(--muted); }
.links { margin: 0 0 0.75rem; }
.links a { color: var(--fg); text-decoration: none; font-weight: 500; margin: 0 0.6rem; }
.links a:hover { text-decoration: underline; }
.elsewhere { margin: 1.25rem 0 0; font-size: 0.8rem; color: var(--muted); line-height: 1.8; }
.elsewhere a { color: var(--fg); }
.flag { height: 0.85em; width: auto; vertical-align: -0.1em; margin-right: 0.4em; border-radius: 1px; box-shadow: 0 0 0 1px rgba(128,128,128,0.45); }
/* "Interested in buying this site?" line, shown in one language chosen by index.php.
   One line in a box (RoPo, 5 Nov 2026). It is wider than <main> in some languages, so it is centred on <main>
   with left/transform rather than limited by it; below 46rem there is no room for one line at a readable
   size, so there it wraps inside the box instead of running off the screen. */
.forsale {
  width: max-content; max-width: calc(100vw - 2rem);
  position: relative; left: 50%; transform: translateX(-50%);
  white-space: nowrap; margin: 0 0 1.5rem; padding: 0.7rem 1.1rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  color: var(--fg); font-size: 0.95rem; line-height: 1.5;
}
.forsale a { color: var(--fg); font-weight: 600; }
@media (max-width: 46rem) { .forsale { white-space: normal; width: auto; } }

/* 404 page */
.nf main { max-width: 30rem; }
.nf h1 { font-size: 2rem; }
.nf p { margin: 0 0 1.25rem; }
.nf a { color: var(--fg); }
