/*
Theme Name: Reyes Systems Elite
Theme URI: https://reyes.systems
Author: Otoniel Reyes
Author URI: https://reyes.systems
Description: Elite Estética branding. Extreme minimalism: maximum typography impact, absolute high contrast, and raw editorial layout.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: reyes-systems
*/

:root {
  --color-black: #000000;
  --color-white: #FFFFFF;
  --color-accent: #E63946;
  --color-muted: #A8A8A8;
  
  --font-main: 'Inter', sans-serif;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
}

body {
  background-color: var(--color-white);
  color: var(--color-black);
  font-family: var(--font-main);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  color: var(--color-accent);
}

ul, ol {
  list-style: none;
}

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

.site-main {
  flex: 1;
  width: 100%;
  padding: 4rem 2rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.container-narrow {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.two-column-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 992px) {
  .two-column-layout {
    grid-template-columns: 2fr 1fr;
  }
}

/* Sidebar & Widgets */
.widget {
  margin-bottom: 3rem;
}

.widget-title {
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  border-bottom: 2px solid var(--color-black);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.widget ul li {
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-muted);
  padding-bottom: 0.75rem;
}

.widget ul li:last-child {
  border-bottom: none;
}

/* Header */
.site-header {
  padding: 2rem;
  border-bottom: 2px solid var(--color-black);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  line-height: 0.9;
  margin: 0;
}

.site-title a {
  color: var(--color-black);
}

/* Navigation */
.main-navigation ul {
  display: flex;
  gap: 2rem;
}

.main-navigation a {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  line-height: 0.9;
  margin-bottom: 2rem;
}

.massive-title {
  font-size: 4rem;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .massive-title {
    font-size: 6rem;
  }
}

.content-title {
  font-size: 3rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .content-title {
    font-size: 4.5rem;
  }
}

.meta-text {
  font-size: 0.875rem;
  color: var(--color-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Content Formatting */
.entry-content {
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 400;
}

.entry-content p {
  margin-bottom: 2rem;
}

.entry-content h2 {
  font-size: 2.5rem;
  margin-top: 4rem;
  margin-bottom: 1.5rem;
}

.entry-content a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.entry-content a:hover {
  color: var(--color-accent);
}

.post-meta-sep {
  border-top: 2px solid var(--color-black);
  border-bottom: 2px solid var(--color-black);
  padding: 1rem 0;
  margin: 2rem 0 4rem 0;
  display: flex;
  justify-content: space-between;
}

/* Index Layout */
.post-list {
  display: flex;
  flex-direction: column;
}

.post-item {
  border-bottom: 2px solid var(--color-black);
  padding: 4rem 0;
}

.post-item:first-child {
  border-top: 2px solid var(--color-black);
}

.post-item-meta {
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  background-color: var(--color-black);
  border-top: 4px solid var(--color-accent);
  padding: 4rem 2rem;
  color: var(--color-white);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.footer-widgets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .footer-widgets {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

.footer-widget {
  margin-bottom: 0;
}

.footer-widget .widget-title {
  color: var(--color-white);
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 1.5rem;
}

.footer-widget ul li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer a {
  color: var(--color-accent);
}

.site-footer a:hover {
  color: var(--color-white);
}

.footer-credits {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-white);
}

.site-credit .footer-credits {
  color: var(--color-accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Inputs & Buttons */
input, textarea, button {
  font-family: var(--font-main);
  border: 2px solid var(--color-black);
  border-radius: 0;
  padding: 1rem;
  font-size: 1rem;
  background: transparent;
  color: var(--color-black);
}

button, .button {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  background: var(--color-black);
  color: var(--color-white);
  cursor: pointer;
  display: inline-block;
}

button:hover, .button:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.button-accent, .wp-block-button.is-style-accent .wp-block-button__link {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.button-accent:hover, .wp-block-button.is-style-accent .wp-block-button__link:hover {
  background: var(--color-black);
  border-color: var(--color-black);
  color: var(--color-white);
}

/* Mobile Nav Toggle */
.menu-toggle {
  display: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  background: transparent;
  color: var(--color-black);
  border: none;
  padding: 0;
}
.menu-toggle:hover {
  background: transparent;
  color: var(--color-accent);
}

@media (max-width: 767px) {
  .main-navigation ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 2px solid var(--color-black);
    padding: 2rem;
    z-index: 10;
  }
  .main-navigation.toggled ul {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .site-header {
    position: relative;
  }
}

/* Pagination */
.pagination {
  margin-top: 4rem;
  display: flex;
  justify-content: space-between;
}
.pagination .nav-links {
  display: flex;
  gap: 1rem;
}
.pagination a, .pagination span {
  display: block;
  padding: 0.5rem 1rem;
  border: 2px solid var(--color-black);
  font-weight: 700;
}
.pagination .current {
  background: var(--color-black);
  color: var(--color-white);
}

/* Gutenberg Block Alignments */
.alignwide {
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
}

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