/*
Theme Name: Magazine Minimal
Theme URI: https://example.com/magazine-minimal
Author: Blog Empire
Author URI: https://example.com
Description: A beautiful, magazine-style, minimal and elegant WordPress theme designed for home decor websites. Features a full-width hero section, category-based content organization, and a sophisticated monochromatic color scheme. Fully customizable through the WordPress Customizer.
Version: 1.0.0
Tested up to: 6.7
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: magazine-minimal
Domain Path: /languages
Tags: blog, news, entertainment, one-column, two-columns, left-sidebar, right-sidebar, custom-colors, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, rtl-language-support, theme-options, threaded-comments, translation-ready

Magazine Minimal WordPress Theme, Copyright 2024 Blog Empire
Magazine Minimal is distributed under the terms of the GNU GPL
*/

/* ==========================================================================
   CSS Custom Properties (Design Tokens)
   ========================================================================== */
:root {
    /* Colors - Monochromatic Palette */
    --mm-color-black: #0a0a0a;
    --mm-color-dark-gray: #1a1a1a;
    --mm-color-medium-gray: #555555;
    --mm-color-light-gray: #999999;
    --mm-color-silver: #d4d4d4;
    --mm-color-off-white: #fafafa;
    --mm-color-white: #ffffff;

    /* Typography */
    --mm-font-heading: 'Playfair Display', Georgia, serif;
    --mm-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --mm-font-size-base: 17px;
    --mm-line-height-base: 1.75;

    /* Spacing */
    --mm-spacing-xs: 0.5rem;
    --mm-spacing-sm: 1rem;
    --mm-spacing-md: 1.5rem;
    --mm-spacing-lg: 2.5rem;
    --mm-spacing-xl: 4rem;
    --mm-spacing-xxl: 6rem;

    /* Layout */
    --mm-max-width: 1400px;
    --mm-content-width: 720px;

    /* Transitions */
    --mm-transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --mm-transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --mm-transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Border Radius */
    --mm-radius-sm: 4px;
    --mm-radius-md: 8px;
    --mm-radius-lg: 16px;
    --mm-radius-xl: 24px;

    /* Shadows */
    --mm-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --mm-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --mm-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: var(--mm-font-size-base);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--mm-font-body);
    font-size: 1rem;
    line-height: var(--mm-line-height-base);
    color: var(--mm-color-dark-gray);
    background-color: var(--mm-color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--mm-font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: var(--mm-spacing-sm);
    color: var(--mm-color-black);
}

h1 {
    font-size: clamp(2.25rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -0.01em;
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

p {
    margin-top: 0;
    margin-bottom: var(--mm-spacing-md);
}

a {
    color: var(--mm-color-black);
    text-decoration: none;
    transition: color var(--mm-transition-fast);
}

a:hover,
a:focus {
    color: var(--mm-color-medium-gray);
}

/* ==========================================================================
   Layout
   ========================================================================== */
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
}

.container {
    width: 100%;
    max-width: var(--mm-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--mm-spacing-md);
    padding-right: var(--mm-spacing-md);
}

.content-area {
    max-width: var(--mm-content-width);
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--mm-color-off-white);
    clip: auto !important;
    clip-path: none;
    color: var(--mm-color-black);
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--mm-color-black);
    color: var(--mm-color-white);
    padding: var(--mm-spacing-sm) var(--mm-spacing-md);
    z-index: 9999;
    transition: top var(--mm-transition-fast);
}

.skip-link:focus {
    top: 0;
    color: var(--mm-color-white);
}

/* ==========================================================================
   Images
   ========================================================================== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

figure {
    margin: 0;
}

figcaption {
    font-size: 0.875rem;
    color: var(--mm-color-light-gray);
    margin-top: var(--mm-spacing-xs);
    font-style: italic;
}

/* ==========================================================================
   Forms
   ========================================================================== */
input,
textarea,
select,
button {
    font-family: inherit;
    font-size: inherit;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
textarea {
    width: 100%;
    padding: var(--mm-spacing-sm);
    border: 1px solid var(--mm-color-silver);
    background-color: var(--mm-color-white);
    color: var(--mm-color-dark-gray);
    transition: border-color var(--mm-transition-fast);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--mm-color-black);
}

/* Buttons */
.btn,
button,
input[type="submit"],
input[type="button"] {
    display: inline-block;
    padding: var(--mm-spacing-sm) var(--mm-spacing-lg);
    font-family: var(--mm-font-body);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--mm-color-white);
    background-color: var(--mm-color-black);
    border: 2px solid var(--mm-color-black);
    cursor: pointer;
    transition: all var(--mm-transition-fast);
}

.btn:hover,
.btn:focus,
button:hover,
button:focus,
input[type="submit"]:hover,
input[type="submit"]:focus,
input[type="button"]:hover,
input[type="button"]:focus {
    color: var(--mm-color-black);
    background-color: var(--mm-color-white);
}

.btn--outline {
    color: var(--mm-color-black);
    background-color: transparent;
}

.btn--outline:hover,
.btn--outline:focus {
    color: var(--mm-color-white);
    background-color: var(--mm-color-black);
}

/* ==========================================================================
   WordPress Core Styles
   ========================================================================== */
.alignleft {
    float: left;
    margin-right: var(--mm-spacing-md);
    margin-bottom: var(--mm-spacing-sm);
}

.alignright {
    float: right;
    margin-left: var(--mm-spacing-md);
    margin-bottom: var(--mm-spacing-sm);
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--mm-spacing-md);
}

.alignwide {
    max-width: calc(var(--mm-max-width) + var(--mm-spacing-lg));
    margin-left: calc(-1 * var(--mm-spacing-lg));
    margin-right: calc(-1 * var(--mm-spacing-lg));
}

.alignfull {
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Captions */
.wp-caption {
    max-width: 100%;
    margin-bottom: var(--mm-spacing-md);
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--mm-color-light-gray);
    text-align: center;
    font-style: italic;
    padding-top: var(--mm-spacing-xs);
}

/* Galleries */
.gallery {
    display: grid;
    grid-gap: var(--mm-spacing-sm);
    margin-bottom: var(--mm-spacing-lg);
}

.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }
.gallery-columns-6 { grid-template-columns: repeat(6, 1fr); }

.gallery-item {
    margin: 0;
}

/* ==========================================================================
   Responsive Utilities
   ========================================================================== */
@media (max-width: 768px) {
    .gallery-columns-4,
    .gallery-columns-5,
    .gallery-columns-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-columns-3,
    .gallery-columns-4,
    .gallery-columns-5,
    .gallery-columns-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}
