/*
Theme Name: Minimal Mott
Theme URI: https://mott.blog
Author: Andy Mott
Author URI: https://mott.blog
Description: A super-minimal, content-first WordPress theme. Designed to get out of the way.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: minimal-mott
*/

:root {
  --mm-primary: #4f5a78;
  --mm-bg: #ffffff;
  --mm-text: #222222;
  --mm-muted: #6b7280;
  --mm-border: #e5e7eb;
  --mm-max-width: 720px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--mm-text);
  background-color: var(--mm-bg);
}

/* Layout */

.site-header {
  border-bottom: 1px solid var(--mm-border);
  padding: 1rem;
}

.site-header-inner {
  max-width: var(--mm-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-main {
  max-width: var(--mm-max-width);
  margin: 1.5rem auto;
  padding: 0 1rem 2rem;
}

.site-footer {
  border-top: 1px solid var(--mm-border);
  padding: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--mm-muted);
}

/* Branding */

.site-title {
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--mm-text);
}

.site-title:hover {
  color: var(--mm-primary);
}

.site-description {
  margin: 0;
  font-size: 0.95rem;
  color: var(--mm-muted);
}

/* Navigation */

.site-nav {
  margin-top: 0.5rem;
}

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

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--mm-muted);
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  color: var(--mm-primary);
}

/* Typography & content */

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.3;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

a {
  color: var(--mm-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Posts */

.entry {
  margin-bottom: 2.5rem;
}

.entry-title {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.entry-title a {
  text-decoration: none;
  color: var(--mm-text);
}

.entry-title a:hover {
  color: var(--mm-primary);
}

.entry-meta {
  font-size: 0.85rem;
  color: var(--mm-muted);
  margin-bottom: 0.75rem;
}

.entry-content img,
.entry-content figure {
  max-width: 100%;
  height: auto;
}

.entry-content {
  font-size: 1rem;
}

/* Pagination */

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  font-size: 0.95rem;
}

/* Comments (WP & future Obsidian embed styling) */

.comments-area,
.mm-comments {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--mm-border);
}

.comments-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.comment-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.comment {
  margin-bottom: 1.5rem;
}

.comment-meta {
  font-size: 0.85rem;
  color: var(--mm-muted);
  margin-bottom: 0.25rem;
}

.comment-content {
  font-size: 0.95rem;
}

/* Forms */

input[type="text"],
input[type="email"],
input[type="url"],
textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.5rem 0.6rem;
  border-radius: 4px;
  border: 1px solid var(--mm-border);
  font: inherit;
}

input[type="submit"],
button,
.button {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--mm-primary);
  background-color: var(--mm-primary);
  color: #ffffff;
  font-size: 0.95rem;
  cursor: pointer;
}

input[type="submit"]:hover,
button:hover,
.button:hover {
  background-color: #3b445e;
  border-color: #3b445e;
}

/* 404 */

.not-found {
  text-align: center;
  margin-top: 3rem;
}

/* Responsive tweaks */

@media (min-width: 720px) {
  .site-header-inner {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }
}