/*
Theme Name: Arya Buana with Gem
Theme URI: https://aryabuanaabadi.com/
Description: TheGem child theme for PT Arya Buana Abadi. Inherits all of TheGem's builder, header, and layout functionality as its parent, then layers the Arya Buana corporate design on top — the brand palette + type tokens (Fraunces / Plus Jakarta Sans), prose/blog/pagination styling, and the progressive-enhancement landing script. Use TheGem as the parent theme.
Author: PT Arya Buana Abadi
Author URI: https://aryabuanaabadi.com/
Template: thegem
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.6
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: arya-buana-with-gem
Tags: custom-menu, custom-logo, full-width-template, responsive-layout, translation-ready
*/

/* ------------------------------------------------------------------
   Palette + type tokens (shared with the landing content)
------------------------------------------------------------------ */
:root{
  --aba-ink:        #241E1A;
  --aba-indigo:     #1E3A5C;
  --aba-indigo-deep:#12283F;
  --aba-soga:       #8B5A2F;
  --aba-maroon:     #7A2A2E;
  --aba-gold:       #C9963E;
  --aba-canvas:     #F6F0E2;
  --aba-canvas-alt: #EDE3CC;
  --aba-white:      #FFFEFA;
  --aba-muted:      #4b4038;

  --aba-display: 'Fraunces', serif;
  --aba-body: 'Plus Jakarta Sans', sans-serif;

  --aba-max: 1500px;
}

/* ------------------------------------------------------------------
   Base reset / document
------------------------------------------------------------------ */
*{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; }
html, body{ margin: 0; padding: 0; }
body{
  background: var(--aba-white);
  color: var(--aba-ink);
  font-family: var(--aba-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img{ max-width: 100%; height: auto; }
a{ color: var(--aba-indigo); }
::selection{ background: var(--aba-gold); color: var(--aba-indigo-deep); }

/* The fixed header lives inside #page; keep any full-bleed breakout content
   (e.g. the landing hero using 100vw / -50vw margins) from spilling a
   horizontal scrollbar. position:fixed is unaffected by this. */
#page{ overflow-x: hidden; }
#main{ min-height: 40vh; }

/* ------------------------------------------------------------------
   Content areas
   Page content is expected to be self-contained (each section manages
   its own width / full-bleed), so the page wrapper imposes no max-width.
------------------------------------------------------------------ */
.site-main .entry-content{ width: 100%; }

/* Readable prose container for blog posts, search, 404, etc. */
.aba-prose{
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 28px 72px;
}
.aba-prose h1, .aba-prose h2, .aba-prose h3, .aba-prose h4{
  font-family: var(--aba-display); font-weight: 600; color: var(--aba-indigo-deep);
  line-height: 1.15; margin: 1.4em 0 .5em;
}
.aba-prose h1{ font-size: clamp(30px, 4vw, 44px); margin-top: 0; }
.aba-prose p{ margin: 0 0 1.1em; color: var(--aba-muted); }
.aba-prose a{ color: var(--aba-indigo); }
.aba-prose a:hover{ color: var(--aba-maroon); }
.aba-prose .entry-meta{
  font-family: var(--aba-body); font-size: 13px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--aba-soga); margin-bottom: 22px;
}
.aba-prose .post-thumb{ margin: 0 0 28px; border-radius: 6px; overflow: hidden; }

/* Simple button used by 404 / search fallbacks */
.aba-btn{
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--aba-body); font-weight: 600; font-size: 15px;
  padding: 13px 24px; border-radius: 3px; text-decoration: none;
  background: var(--aba-indigo); color: var(--aba-white);
  border: 1px solid transparent; transition: background .2s ease, transform .15s ease;
}
.aba-btn:hover{ background: var(--aba-indigo-deep); transform: translateY(-1px); color: var(--aba-white); }

/* Blog listing (index / archive) */
.aba-list{ max-width: var(--aba-max); margin: 0 auto; padding: 56px 28px 72px; }
.aba-list .aba-card{
  border-bottom: 1px solid rgba(126,70,38,.16); padding: 26px 0;
}
.aba-list .aba-card:first-child{ padding-top: 0; }
.aba-list .aba-card h2{
  font-family: var(--aba-display); font-weight: 600; font-size: 24px;
  color: var(--aba-indigo-deep); margin: 0 0 8px; line-height: 1.2;
}
.aba-list .aba-card h2 a{ text-decoration: none; color: inherit; }
.aba-list .aba-card h2 a:hover{ color: var(--aba-maroon); }
.aba-list .aba-card .entry-meta{
  font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--aba-soga); margin-bottom: 10px;
}
.aba-list .aba-card p{ color: var(--aba-muted); margin: 0 0 10px; }
.aba-list .aba-card .more{ font-weight: 600; text-decoration: none; color: var(--aba-indigo); }
.aba-list .aba-card .more:hover{ color: var(--aba-maroon); }

/* Pagination */
.aba-pagination,
.navigation.pagination{ max-width: var(--aba-max); margin: 0 auto; padding: 0 28px 72px; }
.aba-pagination .nav-links,
.navigation.pagination .nav-links{ display: flex; gap: 10px; flex-wrap: wrap; }
.navigation.pagination .page-numbers,
.aba-pagination .page-numbers{
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 3px;
  border: 1px solid rgba(126,70,38,.24); text-decoration: none; color: var(--aba-indigo-deep);
}
.navigation.pagination .page-numbers.current,
.aba-pagination .page-numbers.current{ background: var(--aba-indigo); color: var(--aba-white); border-color: var(--aba-indigo); }
.navigation.pagination .page-numbers:hover,
.aba-pagination .page-numbers:hover{ border-color: var(--aba-indigo); }

/* Comments (kept lightweight) */
.aba-comments{ max-width: 760px; margin: 0 auto; padding: 0 28px 72px; }
