/* Mekologic public site: one stylesheet, mobile first, no build step.
   Soft pastel light theme by default; [data-theme="dark"] on <html> switches to dark (see site.js).
   The page (left/right margins) is darker than the content column, which is body itself. */
@font-face { font-family:"Chakra Petch"; font-weight:700; font-style:normal; font-display:swap; src:url(/fonts/chakra-petch-700.ttf) format("truetype"); }
:root {
  --head:"Chakra Petch", Bahnschrift, "DIN Alternate", "Segoe UI", system-ui, sans-serif;
  --page:#a4b79f; --bg:#f6f8f4; --panel:#e8eee5; --line:#c2cfbd; --text:#27323f; --muted:#4a5766;
  --link:#35613f; --btn:#44694f; --btn-text:#ffffff;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --page:#080b0f; --bg:#0f1419; --panel:#171e27; --line:#273140; --text:#e6e9ee; --muted:#9aa4b2;
  --link:#a9c4e8; --btn:#dbe3ee; --btn-text:#0f1419;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background:var(--page); }
body { margin:0 auto; max-width:76rem; min-height:100vh; font:18px/1.7 system-ui,-apple-system,"Segoe UI",sans-serif;
  background:var(--bg); color:var(--text); border-left:1px solid var(--line); border-right:1px solid var(--line); }
a { color:var(--link); }
.wrap { max-width:68rem; margin:0 auto; padding:0 1rem; }

/* Header: logo left; theme button and hamburger right; menu opens as a panel on small screens. */
.site-header { position:sticky; top:0; z-index:10; background:var(--bg); border-bottom:1px solid var(--line); }
.bar { display:flex; flex-wrap:wrap; align-items:center; min-height:3.5rem; gap:.5rem; }
.logo { display:flex; align-items:center; gap:.6rem; color:var(--text); text-decoration:none; font-weight:700; font-size:1.15rem; }
.logo img { height:2.5rem; width:auto; }
/* Two-tone wordmark: bold "Meko" in the text colour, light "logic" in cyan. */
.wordmark { font-size:1.5rem; font-weight:800; letter-spacing:-.01em; }
.wordmark span { font-weight:400; color:#1b8fb8; }
:root[data-theme="dark"] .wordmark span { color:#22c4e8; }
.icon-btn, .menu-btn { display:inline-flex; align-items:center; justify-content:center; width:2.5rem; height:2.5rem;
  background:none; color:var(--text); border:1px solid var(--line); border-radius:.5rem; cursor:pointer; }
.icon-btn { margin-left:auto; }
.icon-btn svg { width:1.25rem; height:1.25rem; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.icon-btn .sun { display:none; }
:root[data-theme="dark"] .icon-btn .sun { display:block; }
:root[data-theme="dark"] .icon-btn .moon { display:none; }
.menu-btn { flex-direction:column; gap:5px; padding:0 .6rem; }
.menu-btn span { display:block; width:100%; height:2px; background:var(--text); }
.nav { display:none; flex-basis:100%; border-top:1px solid var(--line); }
.nav.open { display:block; }
.nav a { display:block; padding:.85rem 1rem; color:var(--text); text-decoration:none; border-bottom:1px solid var(--line); }
.nav a[aria-current="page"] { font-weight:700; text-decoration:underline; }
.no-js .nav { display:block; }
.no-js .menu-btn, .no-js .icon-btn { display:none; }

/* Breadcrumbs sit under the header bar. */
.crumbs { font-size:.95rem; color:var(--muted); padding:.6rem 0; }
.crumbs ol { list-style:none; display:flex; flex-wrap:wrap; gap:.4rem; margin:0; padding:0; }
.crumbs li + li::before { content:"\203A"; margin-right:.4rem; }
.crumbs a { color:var(--muted); }

main { padding-bottom:3rem; }
h1, h2, h3, .btn { font-family:var(--head); }
h1 { font-size:clamp(2rem,5.5vw,3.1rem); line-height:1.15; margin:1.5rem 0 .75rem; }
h2 { font-size:1.65rem; margin:2rem 0 .75rem; }
.lead { font-size:1.25rem; color:var(--muted); max-width:42rem; }
.grid { display:grid; gap:1rem; grid-template-columns:1fr; }
.card { background:var(--panel); border:1px solid var(--line); border-radius:.75rem; padding:1.25rem; }
.card h3 { margin:0 0 .4rem; font-size:1.2rem; }
.card p { margin:0; color:var(--muted); }
.badge { display:inline-block; font-size:.85rem; padding:.2rem .7rem; border:1px solid var(--line); border-radius:99px; color:var(--muted); }
.news-item { border-bottom:1px solid var(--line); padding:1rem 0; }
.news-item time { color:var(--muted); font-size:.95rem; }
.site-footer { border-top:1px solid var(--line); color:var(--muted); font-size:.95rem; padding:1.25rem 0; }

/* Buttons: .btn is the filled call to action, .btn.ghost the outlined one. */
.actions { display:flex; flex-wrap:wrap; justify-content:center; gap:.75rem; margin:1.5rem 0; }
.hero-text .badge { display:table; margin:0 auto; }
.btn { display:inline-block; padding:.8rem 1.6rem; border-radius:.5rem; border:1px solid var(--btn); background:var(--btn);
  color:var(--btn-text); font:inherit; font-weight:600; text-decoration:none; cursor:pointer; }
.btn.ghost { background:none; color:var(--text); border-color:var(--line); }

/* Hero: text then image on phones; text left and image right from tablets up. */
.hero { display:grid; gap:1.5rem; grid-template-columns:1fr; align-items:center; }
.hero-img { width:100%; height:auto; border-radius:1rem; border:1px solid var(--line);  }

/* Dialog shown when Register is pressed on a phone. */
dialog { max-width:24rem; border:1px solid var(--line); border-radius:.75rem; background:var(--bg); color:var(--text); padding:1.5rem; }
dialog::backdrop { background:rgb(0 0 0 / .5); }
dialog h2 { margin:0 0 .5rem; }
.only-small { display:block; }

/* About intro: text left, picture right from tablets up (stacked on phones). Must stay above the media query. */
.intro { display:grid; gap:1.5rem; grid-template-columns:1fr; align-items:center; }
.intro-img { width:100%; height:auto; display:block; border-radius:1rem; border:1px solid var(--line); }

/* From tablets up the menu is a plain row and the hamburger disappears. */
@media (min-width:48rem) {
  .menu-btn { display:none; }
  .nav, .nav.open { display:flex; flex-basis:auto; border:0; }
  .nav a { border:0; padding:.5rem .9rem; }
  .grid.cols { grid-template-columns:repeat(3,1fr); }
  .hero { grid-template-columns:1fr 1fr; gap:2.5rem; }
  .only-small { display:none; }
  .intro { grid-template-columns:1fr 1fr; gap:2.5rem; }
}

/* Feature status badges on /features/ (generated by mk web build). */
.status { display:inline-block; padding:.1rem .6rem; border-radius:1rem; font-size:.8rem; font-weight:600; border:1px solid var(--line); }
.status-implemented { background:#1a7f37; border-color:#1a7f37; color:#fff; }
.status-designed { background:#9a6700; border-color:#9a6700; color:#fff; }
.status-not-started { background:none; color:var(--muted); }
.feature-summary { color:var(--muted); }
.grid.features { margin-bottom:1rem; }
@media (min-width:48rem) { .grid.features { grid-template-columns:repeat(3,1fr); } }
