/*
Theme Name: Moobugs
Theme URI: https://www.moobugs.com/
Author: Moobugs Ltd
Author URI: https://www.moobugs.com/
Description: A deliberately plain, fast, readable WordPress theme for moobugs.com.
Version: 1.1.01
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: moobugs
Requires at least: 6.0
Requires PHP: 8.0
*/

:root {
  color-scheme: light dark;
  --background: #fff;
  --text: #111;
  --muted: #555;
  --link: #0645ad;
  --border: #ddd;
  --max-width: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #111;
    --text: #eee;
    --muted: #aaa;
    --link: #8ab4f8;
    --border: #333;
  }
}

* {
  box-sizing: border-box;
}

html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background: var(--background);
  color: var(--text);
}

body {
  margin: 0;
  padding: 2rem 1rem;
  font-size: 1.125rem;
}

main,
header,
footer {
  max-width: var(--max-width);
  margin: 0 auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3rem;
}

.site-branding {
  min-width: 0;
}

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

footer p {
  margin: 0;
  text-align: center;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 8vw, 4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--link);
}

.last-updated {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-title {
  margin: 0;
  font-weight: 700;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.tagline {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.notice {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  line-height: 1.2;
  font-weight: 700;
}

.site-nav {
  margin-top: 0;
}

.site-nav-list {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav-list li {
  margin: 0;
}

/* News */

.news h3 {
  margin-block-end: 0.5rem;
}

.date {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Projects Page specific styles */

.project-list {
    display: grid;
    gap: 2rem;
}

.project-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.project-card-image {
    flex: 0 0 150px;
    align-self: center;
}

.project-card-image img {
    display: block;
    width: 150px;
    height: auto;
}

.project-card-content {
    flex: 1;
}

.project-card-content h3 {
    margin: 0 0 0.5rem;
}

.project-card-content p {
    margin: 0;
}
