/*
Theme Name: HH Global Press
Description: Tema penerbit akademik dengan integrasi WooCommerce dan metadata artikel ilmiah.
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: hh-global-press
*/
:root {
  --ink: #171717;
  --muted: #605b55;
  --red: #b91c2c;
  --yellow: #ffca37;
  --paper: #faf8f4;
  --line: #e8e2da;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; font: 16px/1.65 system-ui, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #ac6a00; outline-offset: 4px; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; }
h1, h2 { font-family: Georgia, serif; letter-spacing: -.035em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4.7rem); margin: .25em 0 .32em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin: 0 0 .6em; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.site-header { background: white; border-bottom: 1px solid var(--line); }
.top, .footer-inner, .section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.top { min-height: 88px; padding-block: 12px; }
.top nav, .top nav ul, .utility, .site-footer nav { display: flex; gap: .85rem; flex-wrap: wrap; align-items: center; }
.top nav ul { margin: 0; padding: 0; list-style: none; }
.top a, .site-footer a { font-weight: 650; font-size: .9rem; color: inherit; text-decoration: none; }
.top a:hover, .site-footer a:hover { text-decoration: underline; }
.logo img, .custom-logo { display: block; max-width: 205px; height: auto; }
.utility a.cart { border: 1px solid var(--line); padding: .4rem .75rem; border-radius: 4px; }
.hero { background: #1c1819; color: white; border-bottom: 5px solid var(--yellow); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 2rem; align-items: center; min-height: 470px; padding-block: 56px; }
.hero h1 em { color: var(--yellow); font-weight: inherit; }
.hero p { max-width: 500px; }
.hero p:not(.eyebrow) { color: #ebe1de; font-size: 1.1rem; }
.eyebrow { font-size: .75rem; letter-spacing: .15em; font-weight: 800; text-transform: uppercase; }
.hero .eyebrow { color: var(--yellow); }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin-block: 1.25rem; }
.button, .search button { display: inline-block; padding: .65rem 1rem; border: 1px solid transparent; border-radius: 4px; font: inherit; font-weight: 700; text-decoration: none; }
a.button.primary, .search button { background: var(--red); color: white; }
a.button.outline { color: inherit; border-color: currentColor; }
.hero .button.primary { background: var(--yellow); color: var(--ink); }
.button:hover { text-decoration: underline; }
.hero-art { min-height: 305px; display: grid; place-items: center; isolation: isolate; }
.cover { grid-area: 1 / 1; width: min(205px, 85%); aspect-ratio: .73; border-radius: 3px 10px 10px 3px; box-shadow: 12px 15px 30px #0007; }
.cover-back { transform: rotate(16deg) translate(30px, -2px); background: var(--yellow); border-left: 10px solid #de9b13; }
.cover-front { transform: rotate(-12deg) translate(-25px, 0); background: #a91828; border-left: 10px solid #780d18; display: flex; flex-direction: column; gap: 15px; padding: 24px; }
.cover-front span { font-size: 1.5rem; font-weight: 800; }
.cover-front b { font: bold 1.65rem/1 Georgia, serif; }
.cover-front i { margin-top: auto; width: 100%; height: 5px; background: var(--yellow); }
.section { padding-block: clamp(32px, 6vw, 72px); }
.section-head { margin-bottom: 1.25rem; }
.section-head h2 { margin: 0; }
.search { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0 1.75rem; }
.search input[type=search] { flex: 1 1 215px; padding: .65rem .85rem; border: 1px solid #9b928b; border-radius: 4px; font: inherit; max-width: 540px; }
.search button { cursor: pointer; }
.article-section { background: var(--paper); border-block: 1px solid var(--line); }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.article-card { padding: 1.15rem; border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: 5px; background: white; overflow-wrap: anywhere; }
.article-card h3 { margin: 0 0 .65rem; }
.article-card h3 a { color: var(--ink); }
.article-card p { color: var(--muted); }
.reading { max-width: 780px; overflow-wrap: anywhere; }
.reading h1 { font-size: clamp(2rem, 4vw, 3.3rem); }
.authors { font-weight: 700; }
.pagination { margin-top: 1.5rem; }
.site-footer { background: #201c1d; color: white; padding-block: 30px; }
.site-footer p { margin: 0; color: #e2d9d4; }
.commerce ul.products li.product,
.section ul.products li.product { padding: .8rem; border: 1px solid var(--line); border-radius: 6px; }
.woocommerce ul.products li.product a img { aspect-ratio: 4 / 5; object-fit: contain; background: var(--paper); }
.woocommerce #respond input#submit.alt, .woocommerce a.button.alt,
.woocommerce button.button.alt, .woocommerce input.button.alt { background: var(--red); color: white; }
.screen-reader-text, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { display: block; padding: .75rem; }
@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { display: none; }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 490px) {
  .wrap { width: calc(100% - 32px); }
  .article-grid { grid-template-columns: 1fr; }
  .top nav { width: 100%; }
}

/* Editable Elementor homepage */
.hhg-languages { gap: .1rem !important; border: 1px solid var(--line); border-radius: 5px; padding: .2rem; }
.hhg-languages a { padding: .2rem .4rem; }
.hhg-languages a[aria-current="page"] { background: var(--paper); color: var(--red); }
.elementor .hhg-edit-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  min-height: 450px;
  padding: clamp(42px, 6vw, 80px) max(24px, calc((100% - 1200px) / 2));
  border-bottom: 5px solid var(--yellow);
  background: #1c1819;
  color: #fdf8f3;
}
.elementor .hhg-edit-hero .elementor-heading-title { color: inherit; }
.elementor .hhg-edit-hero h1 { font: 700 clamp(2.5rem, 5vw, 5rem)/1.04 Georgia, serif; }
.elementor .hhg-edit-hero h1 em { color: var(--yellow); }
.elementor .hhg-hero-copy > .elementor-widget-text-editor:first-child { color: var(--yellow); font-weight: 800; letter-spacing: .14em; font-size: .78rem; }
.elementor .hhg-hero-copy .elementor-widget-text-editor p { margin: 0; }
.elementor .hhg-action-row { display: flex; flex-flow: row wrap; gap: .7rem; padding: 0; }
.hhg-button-yellow .elementor-button { color: var(--ink); background: var(--yellow); }
.hhg-button-outline .elementor-button { color: #fff; background: transparent; border: 1px solid currentColor; }
.elementor .hhg-hero-cover {
  justify-self: center;
  justify-content: space-between;
  width: min(235px, 85%);
  min-height: 290px;
  padding: 2rem;
  border-left: 12px solid #760e1a;
  border-radius: 3px 10px 10px 3px;
  background: var(--red);
  box-shadow: 20px 18px 0 #ffca37, 22px 25px 36px #080606;
  transform: rotate(-9deg);
}
.hhg-cover-mark .elementor-heading-title { font: 800 1.55rem/1 system-ui, sans-serif; }
.hhg-cover-name .elementor-heading-title { font: 700 2rem/1 Georgia, serif; }
.elementor .hhg-edit-section { padding: clamp(32px, 5vw, 66px) max(24px, calc((100% - 1200px) / 2)); }
.elementor .hhg-edit-section h2 { font: 700 clamp(1.8rem, 3.2vw, 2.7rem)/1.12 Georgia, serif; color: var(--ink); }
.elementor .hhg-edit-articles { background: var(--paper); border-block: 1px solid var(--line); }
.hhg-edit-section .article-grid { margin-bottom: 1.25rem; }
.hhg-edit-section .woocommerce ul.products li.product { padding: .75rem; border: 1px solid var(--line); }
.hhg-edit-section .actions:empty { display: none; }
@media (max-width: 760px) {
  .elementor .hhg-edit-hero { grid-template-columns: 1fr; min-height: auto; }
  .elementor .hhg-hero-cover { display: none; }
}
