/*
Theme Name: Macodes
Theme URI: https://macodes.example/
Author: Codex
Author URI: https://openai.com/
Description: Classic WordPress theme for Macodes. Product-first botanical-tech base for PHP-only hosting with Tailwind CSS v4 browser runtime.
Version: 1.1.0
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 8.1
Text Domain: macodes
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-logo, custom-menu, featured-images, editor-style, theme-options, translation-ready
*/

:root {
  --macodes-background: #f6f5f1;
  --macodes-text: #1e2421;
  --macodes-primary: #2f5d50;
  --macodes-primary-dark: #18332b;
  --macodes-sage: #a8b8a3;
  --macodes-olive-muted: #6e7c66;
  --macodes-stone: #d9d7d0;
  --macodes-border: rgba(110, 124, 102, 0.16);
  --macodes-copy-muted: rgba(30, 36, 33, 0.74);
  --macodes-copy-soft: rgba(30, 36, 33, 0.54);
  --macodes-shadow-soft: 0 24px 64px rgba(24, 51, 43, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--macodes-background);
  color: var(--macodes-text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(110, 124, 102, 0.08) 0.7px, transparent 0.7px);
  background-size: 22px 22px;
  opacity: 0.16;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 80%);
}

body.is-menu-open {
  overflow: hidden;
}

main {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

blockquote {
  margin: 0;
  padding: 1.1rem 0 1.1rem 1.35rem;
  border-left: 2px solid rgba(47, 93, 80, 0.2);
  color: var(--macodes-primary-dark);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1.15rem;
  line-height: 1.7;
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

pre {
  overflow-x: auto;
  padding: 1rem 1.125rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(217, 215, 208, 0.9);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(217, 215, 208, 0.8);
}

th {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 700;
}

figure {
  margin: 0;
}

.site {
  min-height: 100vh;
}

.site-main {
  flex: 1 1 auto;
}

.site-main > section {
  position: relative;
}

.menu,
.sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-item-has-children {
  position: relative;
}

.current-menu-item > a,
.current_page_item > a,
.current-menu-item > a > span,
.current_page_item > a > span {
  color: var(--macodes-primary-dark);
}

.entry-content > * + *,
.page-content > * + * {
  margin-top: 1.15em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.page-content h2,
.page-content h3,
.page-content h4 {
  margin-top: 1.6em;
  margin-bottom: 0.55em;
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.entry-content p,
.page-content p,
.entry-content li,
.page-content li {
  color: var(--macodes-copy-muted);
  line-height: 1.85;
}

.entry-content ul,
.entry-content ol,
.page-content ul,
.page-content ol {
  padding-left: 1.2rem;
}

.entry-content a,
.page-content a {
  color: var(--macodes-primary);
}

.entry-content a:hover,
.page-content a:hover {
  color: var(--macodes-primary-dark);
}

.search-form,
.wp-block-search__inside-wrapper {
  align-items: center;
}

.wp-block-button__link,
.button,
button[type="submit"],
input[type="submit"] {
  cursor: pointer;
}

.posts-navigation,
.post-navigation,
.pagination .nav-links,
.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.pagination .page-numbers,
.page-links a,
.page-links > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.9rem;
  border: 1px solid var(--macodes-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--macodes-text);
}

.pagination .current,
.page-links > span:not(a) {
  border-color: var(--macodes-primary);
  background: var(--macodes-primary);
  color: #fff;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.875rem 1rem;
  margin: 0;
  clip: auto;
  border-radius: 999px;
  background: var(--macodes-primary-dark);
  color: #fff;
  z-index: 9999;
}

.wp-caption,
.gallery-caption {
  color: var(--macodes-copy-soft);
  font-size: 0.875rem;
}

.sticky {
  position: relative;
}

.bypostauthor {
  font-weight: inherit;
}

.alignwide {
  width: min(100% - 1.5rem, 82rem);
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100%;
}

.site-header {
  box-shadow: 0 10px 30px rgba(24, 51, 43, 0.04);
}

.card-surface,
.card-subtle {
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease, background-color 220ms ease;
}

.hero-device-image {
  animation: macodes-float 7.5s ease-in-out infinite;
}

.hero-floating-panel-a {
  animation: macodes-float-soft 8.2s ease-in-out infinite;
}

.hero-floating-panel-b {
  animation: macodes-float-soft 9s ease-in-out infinite 0.6s;
}

.hero-floating-panel-c {
  animation: macodes-float-soft 8.6s ease-in-out infinite 0.3s;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 720ms ease, transform 720ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-delay="1"] {
  transition-delay: 90ms;
}

[data-reveal-delay="2"] {
  transition-delay: 180ms;
}

[data-reveal-delay="3"] {
  transition-delay: 270ms;
}

@keyframes macodes-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes macodes-float-soft {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-device-image,
  .hero-floating-panel-a,
  .hero-floating-panel-b,
  .hero-floating-panel-c {
    animation: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
