/*
Theme Name: Minimal Blue Gold
Theme URI: https://example.com/minimal-blue-gold
Author: Your Name
Author URI: https://example.com
Description: A minimalistic WordPress theme in blue, black, white, with gold elements.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: minimal-blue-gold
Tags: blog, minimal, two-column, accessibility-ready, custom-menu, custom-logo, editor-style
*/

/* CSS Variables for palette */
:root {
  --color-blue: #0D6EFD;   /* primary accent */
  --color-black: #111111;  /* body text */
  --color-white: #FFFFFF;  /* background */
  --color-gold: #DAA520;   /* decorative accents */

  --max-width: 72rem;      /* ~1152px */
  --content-width: 60rem;  /* ~960px */
  --radius: 6px;
  --spacing-1: 0.5rem;
  --spacing-2: 1rem;
  --spacing-3: 1.5rem;
  --spacing-4: 2rem;
}

/* CSS Reset (lightweight) */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body { margin: 0; }
img { max-width: 100%; height: auto; display: block; }

/* Typography */
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, Arial, sans-serif;
  color: var(--color-black);
  background-color: var(--color-white);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 { color: var(--color-black); line-height: 1.2; margin: 1.5rem 0 0.75rem; }
p { margin: 0 0 1rem; }

/* Links */
a { color: var(--color-blue); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

/* Layout */
.site { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--spacing-2); }
.site-header { border-bottom: 2px solid var(--color-gold); }
.branding { display: flex; align-items: center; gap: var(--spacing-2); padding: var(--spacing-2) 0; }
.branding .site-title { font-size: 1.25rem; font-weight: 600; }
.site-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--spacing-2); }
.primary-menu { list-style: none; padding: 0; margin: 0; display: flex; gap: var(--spacing-2); }
.primary-menu a { padding: 0.5rem 0.75rem; border-radius: var(--radius); }
.primary-menu a:hover { background: rgba(13,110,253,0.08); }
.menu-toggle { display: none; }

@media (max-width: 768px) {
  .menu-toggle { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; border: 1px solid var(--color-black); border-radius: var(--radius); background: var(--color-white); }
  .primary-menu { display: none; flex-direction: column; gap: 0; border-top: 1px solid var(--color-gold); margin-top: var(--spacing-2); }
  .primary-menu.open { display: flex; }
  .primary-menu li a { padding: 0.75rem 0; }
}

/* Content */
.content { max-width: var(--content-width); margin: 0 auto; padding: var(--spacing-3) 0; }
article { padding-bottom: var(--spacing-3); border-bottom: 1px solid #eee; margin-bottom: var(--spacing-3); }
.entry-title a { color: var(--color-black); }
.entry-meta { color: #666; font-size: 0.9rem; margin-bottom: 0.75rem; }

/* Buttons */
.button, button, input[type="submit"], .wp-block-button__link {
  appearance: none;
  background: var(--color-blue);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius);
  padding: 0.625rem 1rem;
  cursor: pointer;
}
.button.alt { background: var(--color-gold); color: var(--color-black); }
.button.ghost { background: transparent; color: var(--color-black); border: 1px solid var(--color-black); }

/* Forms */
input[type="text"], input[type="email"], input[type="search"], textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: var(--radius);
}
input:focus, textarea:focus { outline: 2px solid var(--color-blue); }

/* Footer */
.site-footer { border-top: 2px solid var(--color-gold); padding: var(--spacing-3) 0; }
.site-footer .credits { color: #666; font-size: 0.9rem; }

/* Accessibility */
.skip-link { position: absolute; left: -999px; top: -999px; }
.skip-link:focus { left: 0; top: 0; background: var(--color-gold); color: var(--color-black); padding: 0.5rem 0.75rem; border-radius: var(--radius); }

/* Alignment helpers */
.alignwide { max-width: calc(var(--max-width) + 160px); margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }


/* Contact form styles */
.contact-form { max-width: 40rem; }
.contact-form .field { margin-bottom: var(--spacing-2); }
.contact-form label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea { width: 100%; padding: 0.6rem 0.75rem; border: 1px solid #ddd; border-radius: var(--radius); }
.contact-form textarea { resize: vertical; }

.notice { padding: 0.75rem 1rem; border-radius: var(--radius); margin: 0 0 var(--spacing-2); }
.notice.success { background: rgba(218,165,32,0.12); border: 1px solid var(--color-gold); }
.notice.error { background: rgba(255,0,0,0.06); border: 1px solid #e57373; }

.checkbox { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; }
