/*
Theme Name: ALXIE Blog
Theme URI: https://www.alxie.co/
Author: ALXIE
Description: A WordPress blog theme matched to the ALXIE Horizons brand system.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: alxie-blog
*/

:root {
  --alxie-background: hsl(214 33% 97%);
  --alxie-foreground: hsl(213 73% 11%);
  --alxie-primary: hsl(210 100% 20%);
  --alxie-primary-soft: hsl(213 60% 14%);
  --alxie-secondary: hsl(43 100% 36%);
  --alxie-card: #ffffff;
  --alxie-muted: hsl(214 20% 92%);
  --alxie-muted-text: hsl(213 30% 45%);
  --alxie-border: hsl(214 20% 88%);
  --alxie-radius: 12px;
  --alxie-shadow: 0 20px 60px rgb(7 25 47 / 12%);
  --alxie-max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--alxie-background);
  color: var(--alxie-foreground);
  font-family: "DM Sans", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "kern" 1, "liga" 1;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
  background: rgb(7 25 47 / 94%);
  color: #ffffff;
  backdrop-filter: blur(18px);
}

.admin-bar .site-header {
  top: 32px;
}

.header-inner,
.site-main,
.footer-inner {
  width: min(calc(100% - 32px), var(--alxie-max));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand-lockup {
  display: inline-flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 2px;
}

.brand-logo {
  width: auto;
  object-fit: contain;
}

.brand-logo-white {
  height: 32px;
}

.brand-logo-black {
  height: 40px;
}

.brand-line {
  color: rgb(255 255 255 / 72%);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  color: rgb(255 255 255 / 82%);
  font-size: 0.94rem;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
  background: rgb(255 255 255 / 10%);
  color: #ffffff;
}

.custom-logo {
  max-height: 40px;
  width: auto;
}

.header-odi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--alxie-secondary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.header-odi img {
  width: 20px;
  height: 20px;
  margin-right: 6px;
  border-radius: 6px;
  object-fit: cover;
}

.header-odi:hover {
  transform: translateY(-1px);
  color: hsl(43 100% 48%);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 999px;
  background: rgb(255 255 255 / 8%);
  color: #ffffff;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.site-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 10%, rgb(184 134 11 / 28%), transparent 32%),
    linear-gradient(135deg, var(--alxie-primary), var(--alxie-primary-soft));
  color: #ffffff;
}

.hero-inner {
  width: min(calc(100% - 32px), var(--alxie-max));
  margin: 0 auto;
  padding: 72px 0 76px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--alxie-secondary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--alxie-foreground);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  text-wrap: balance;
}

.site-hero h1 {
  max-width: 880px;
  color: #ffffff;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 800;
}

.hero-copy {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgb(255 255 255 / 78%);
  font-size: 1.12rem;
}

.site-main {
  padding: 56px 0 72px;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.post-grid {
  display: grid;
  gap: 24px;
}

.post-card,
.content-card,
.sidebar-card,
.comment-respond,
.comments-area {
  border: 1px solid var(--alxie-border);
  border-radius: var(--alxie-radius);
  background: var(--alxie-card);
  box-shadow: var(--alxie-shadow);
}

.post-card {
  overflow: hidden;
}

.post-card-image {
  aspect-ratio: 16 / 9;
  background: var(--alxie-muted);
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-body,
.content-card,
.sidebar-card,
.comment-respond,
.comments-area {
  padding: 28px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 12px;
  color: var(--alxie-muted-text);
  font-size: 0.88rem;
  font-weight: 700;
}

.post-card h2 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.post-card h2 a:hover {
  color: var(--alxie-primary);
}

.post-excerpt {
  margin: 14px 0 0;
  color: var(--alxie-muted-text);
}

.read-more,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 20px;
  padding: 11px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--alxie-primary);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.read-more:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgb(7 25 47 / 18%);
}

.entry-header {
  margin-bottom: 28px;
}

.entry-title {
  font-size: clamp(2.1rem, 5vw, 4rem);
}

.entry-content {
  color: hsl(213 30% 25%);
  font-size: 1.04rem;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content a {
  color: var(--alxie-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 2.1em;
  margin-bottom: 0.7em;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote,
.entry-content figure {
  margin-top: 0;
  margin-bottom: 1.25em;
}

.entry-content blockquote {
  margin-left: 0;
  padding: 18px 22px;
  border-left: 4px solid var(--alxie-secondary);
  border-radius: 0 var(--alxie-radius) var(--alxie-radius) 0;
  background: hsl(43 100% 36% / 10%);
  color: var(--alxie-foreground);
  font-weight: 700;
}

.entry-content img {
  border-radius: var(--alxie-radius);
}

.wp-caption,
.wp-block-image figcaption {
  color: var(--alxie-muted-text);
  font-size: 0.9rem;
  text-align: center;
}

.sidebar {
  display: grid;
  gap: 20px;
}

.sidebar-card h2,
.sidebar-card h3,
.widget-title {
  margin-bottom: 14px;
  font-size: 1.1rem;
}

.sidebar-card ul,
.widget ul {
  margin: 0;
  padding-left: 18px;
}

.sidebar-card a:hover,
.widget a:hover {
  color: var(--alxie-primary);
}

.pagination,
.post-navigation {
  margin-top: 32px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-numbers,
.post-page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--alxie-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--alxie-foreground);
  font-weight: 800;
}

.page-numbers.current {
  background: var(--alxie-primary);
  color: #ffffff;
}

.site-footer {
  border-top: 3px solid var(--alxie-secondary);
  background: var(--alxie-background);
  color: var(--alxie-foreground);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding: 56px 0 48px;
}

.footer-inner p {
  margin: 10px 0 0;
  color: var(--alxie-muted-text);
}

.footer-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--alxie-foreground);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-heading::before {
  width: 16px;
  height: 2px;
  background: var(--alxie-secondary);
  content: "";
}

.footer-tagline {
  color: var(--alxie-secondary) !important;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-disclaimer {
  display: inline-block;
  max-width: 480px;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--alxie-border);
  border-radius: 10px;
  background: hsl(214 20% 92% / 40%);
}

.footer-disclaimer strong {
  color: var(--alxie-secondary);
  font-size: 0.9rem;
}

.footer-disclaimer p {
  margin-top: 4px;
  font-size: 0.8rem;
}

.footer-menu {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-menu a {
  color: var(--alxie-muted-text);
  font-size: 0.94rem;
  font-weight: 500;
}

.footer-menu a:hover {
  color: var(--alxie-secondary);
}

.footer-bottom {
  border-top: 1px solid var(--alxie-border);
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(calc(100% - 32px), var(--alxie-max));
  margin: 0 auto;
  padding: 18px 0;
  color: var(--alxie-muted-text);
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.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;
}

.search-form {
  display: flex;
  gap: 8px;
}

.search-field,
input[type="text"],
input[type="email"],
input[type="url"],
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--alxie-border);
  border-radius: 10px;
  background: #ffffff;
  color: var(--alxie-foreground);
  padding: 10px 12px;
}

.search-submit {
  margin-top: 0;
}

.comments-area {
  margin-top: 28px;
}

.comment-list {
  padding-left: 0;
  list-style: none;
}

.comment-body {
  padding: 18px 0;
  border-bottom: 1px solid var(--alxie-border);
}

.alignwide,
.alignfull {
  max-width: 100%;
}

@media (max-width: 900px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .header-inner {
    min-height: 68px;
  }

  .menu-toggle {
    display: block;
  }

  .site-navigation {
    position: absolute;
    inset: 68px 16px auto;
    display: none;
    padding: 12px;
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: var(--alxie-radius);
    background: rgb(7 25 47 / 98%);
    box-shadow: 0 18px 40px rgb(0 0 0 / 28%);
  }

  .site-navigation.is-open {
    display: block;
  }

  .primary-menu {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-menu a {
    border-radius: 10px;
  }

  .header-odi {
    display: none;
  }

  .content-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding: 52px 0 60px;
  }
}

@media (max-width: 600px) {
  .brand-line {
    display: none;
  }

  .post-card-body,
  .content-card,
  .sidebar-card,
  .comment-respond,
  .comments-area {
    padding: 22px;
  }

  .site-main {
    padding-top: 36px;
  }
}
