/* realtimeearth.com — minimal stylesheet */

:root {
  --bg: #0a0e1a;
  --bg-card: #131826;
  --text: #e8eaed;
  --text-muted: #9aa0a6;
  --accent: #4fc3f7;
  --border: #2a3142;
  --max-width: 720px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  padding: 2rem 1.5rem 4rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}

header .tagline {
  color: var(--text-muted);
  font-size: 0.875rem;
}

header nav {
  margin-top: 1.25rem;
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
}

header nav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

header nav a:hover,
header nav a.active {
  color: var(--accent);
}

main h1 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

main h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

main h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

main p {
  margin-bottom: 1rem;
}

main ul {
  margin: 0.5rem 0 1rem 1.5rem;
}

main ul li {
  margin-bottom: 0.4rem;
}

main a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

main a:hover {
  border-bottom-color: var(--accent);
}

.meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.lang-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.lang-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.lang-label {
  display: inline-block;
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

footer {
  margin-top: 5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8125rem;
  text-align: center;
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 0.5rem;
}

footer a:hover {
  color: var(--accent);
}

code {
  background: var(--bg-card);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.875em;
}
