/* OPSPA - skeleton stylesheet. Structure first; the visual design is still to be decided. */
:root {
  --bg: #07090f;
  --bg-raised: #0e1220;
  --text: #e8e4da;
  --text-dim: #9a968c;
  --accent: #d9b35b;
  --rule: #1f2436;
  --max: 1100px;
  --gutter: 16px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* header */
.site-header {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  max-width: var(--max); margin: 0 auto; padding: 14px var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.wordmark { display: flex; align-items: center; gap: 12px; color: var(--text); line-height: 1.1; }
.wordmark .flag { flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,0.12); }
.wordmark-text { display: flex; flex-direction: column; }
.wordmark:hover { text-decoration: none; }
.wordmark-short { font-size: 1.5rem; font-weight: 700; letter-spacing: 0.14em; }
.wordmark-long { font-size: 1.05rem; color: var(--text-dim); letter-spacing: 0.04em; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.site-nav a { color: var(--text); font-size: 0.95rem; }
.site-nav .current a { color: var(--accent); }
.lang-switch { font-size: 0.85rem; border: 1px solid var(--rule); padding: 4px 10px; border-radius: 4px; color: var(--text-dim); }
.lang-switch:hover { color: var(--text); text-decoration: none; border-color: var(--text-dim); }

/* hero */
.hero { position: relative; overflow: hidden; background: #000; }
.hero img { width: 100%; max-height: 70vh; object-fit: cover; opacity: 0.9; }
.hero-text {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 48px var(--gutter) 56px;
  background: linear-gradient(to top, rgba(7,9,15,0.92), rgba(7,9,15,0));
}
.hero-text > div { max-width: var(--max); margin: 0 auto; padding-left: 40px; }
.hero h1 { margin: 0; font-size: clamp(1.1rem, 2.4vw, 1.7rem); font-weight: 300; color: var(--text-dim); letter-spacing: 0.02em; }

/* content */
main > section, main > article { max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter); }
h2 { font-size: 1.4rem; font-weight: 600; margin: 0 0 12px; }
.placeholder { color: var(--text-dim); border-left: 3px solid var(--rule); padding-left: 14px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.tile { background: var(--bg-raised); border: 1px solid var(--rule); border-radius: 6px; padding: 20px; }
.tile h3 { margin: 0 0 8px; font-size: 1.05rem; }
.tile p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }

/* footer */
.site-footer {
  max-width: var(--max); margin: 40px auto 0; padding: 24px var(--gutter);
  border-top: 1px solid var(--rule); color: var(--text-dim); font-size: 0.85rem;
}
.site-footer p { margin: 4px 0; }
.mpc-code { color: var(--text); }

@media (max-width: 640px) {
  .site-nav { margin-left: 0; width: 100%; }
  .site-nav ul { gap: 14px; }
}
