/*
Theme Name: Email Sementara Clean
Theme URI: 
Author: Email Sementara
Description: Tema WordPress minimalis dan responsif dengan header merah, navigasi hamburger, footer terpusat, dukungan shortcode, Post, Page, dan Rank Math.
Version: 1.1.4
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: email-sementara-clean
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
:root {
  color-scheme: light;
  --es-bg: #f8fafc;
  --es-surface: #ffffff;
  --es-text: #1e293b;
  --es-muted: #64748b;
  --es-border: #e2e8f0;
  --es-accent: #2563eb;
  --es-soft: #eff6ff;
  --es-shadow: 0 4px 18px rgba(15,23,42,.055);
}
html { box-sizing: border-box; scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: inherit; }
body { margin: 0; min-height: 100vh; background: var(--es-bg); color: var(--es-text); font: 16px/1.65 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; }
a { color: var(--es-accent); }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--es-accent); outline-offset: 3px; }
.es-skip-link { position: absolute; top: -100px; left: 1rem; z-index: 10000; padding: .5rem 1rem; background: var(--es-surface); color: var(--es-text); border: 2px solid var(--es-accent); }
.es-skip-link:focus { top: 1rem; }
.es-site { min-height: 100vh; display: flex; flex-direction: column; }
.es-header { position: relative; z-index: 10; background: var(--es-surface); border-bottom: 1px solid var(--es-border); box-shadow: 0 2px 5px rgba(0,0,0,.035); }
.es-header-inner { max-width: 1200px; min-height: 70px; padding: 12px 20px; margin: auto; display: flex; align-items: center; gap: 22px; }
.es-brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--es-text); text-decoration: none; }
.es-brand:hover { text-decoration: none; }
.es-brand-logo { display: block; width: auto; max-height: 42px; max-width: 150px; object-fit: contain; }
.es-brand-name { font-weight: 800; font-size: clamp(17px, 2vw, 21px); line-height: 1.3; overflow-wrap: anywhere; }
.es-brand-name strong { color: var(--es-accent); font-weight: inherit; }
.es-nav { margin-left: auto; }
.es-nav-list { display: flex; align-items: center; list-style: none; gap: 6px; padding: 0; margin: 0; }
.es-nav-list li { margin: 0; }
.es-nav-list a { display: block; padding: 9px 11px; border-radius: 9px; color: var(--es-text); text-decoration: none; font-size: 14px; font-weight: 650; }
.es-nav-list a:hover, .es-nav-list .current-menu-item > a, .es-nav-list .current_page_item > a { background: var(--es-soft); color: var(--es-accent); }
.es-header-actions { display: flex; align-items: center; gap: 8px; }
.es-icon-button { display: grid; place-items: center; height: 42px; width: 42px; flex: 0 0 42px; padding: 0; border: 1px solid var(--es-border); border-radius: 11px; background: var(--es-bg); color: var(--es-text); cursor: pointer; font: inherit; }
.es-icon-button:hover { background: var(--es-soft); }
.es-menu-toggle { display: none; }
.es-main { width: 100%; max-width: 1140px; margin: 0 auto; padding: 34px 20px 56px; flex: 1; min-width: 0; }
.es-main--front { max-width: 1200px; padding-top: 28px; }
.es-content { overflow-wrap: anywhere; }
.es-content > :first-child { margin-top: 0; }
.es-content > :last-child { margin-bottom: 0; }
.es-page { width: 100%; }
.es-page:not(.es-page--front) { max-width: 980px; margin: 0 auto; padding: 32px; background: var(--es-surface); border: 1px solid var(--es-border); border-radius: 17px; box-shadow: var(--es-shadow); }
.es-entry-title { margin: 0 0 20px; color: var(--es-text); font-size: clamp(24px,3vw,32px); line-height: 1.3; }
.es-entry-meta { color: var(--es-muted); font-size: 13px; margin: -10px 0 18px; }
.es-post-list { display: grid; gap: 16px; }
.es-post-card { background: var(--es-surface); padding: 24px; border: 1px solid var(--es-border); border-radius: 14px; box-shadow: var(--es-shadow); }
.es-post-card h2 { font-size: 22px; line-height: 1.35; margin: 0 0 10px; }
.es-post-card h2 a { text-decoration: none; }
.es-post-card h2 a:hover { text-decoration: underline; }
.es-post-card p { margin: 8px 0 0; }
.es-pagination { margin-top: 25px; }
.es-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.es-pagination .page-numbers { padding: 7px 12px; text-decoration: none; border: 1px solid var(--es-border); border-radius: 8px; background: var(--es-surface); }
.es-pagination .page-numbers.current { background: var(--es-accent); color: white; }
.es-empty { padding: 35px 25px; border: 1px solid var(--es-border); border-radius: 14px; background: var(--es-surface); }
.es-content h1, .es-content h2, .es-content h3 { line-height: 1.35; }
.es-content pre { overflow-x: auto; max-width: 100%; }
.es-content blockquote { margin-left: 0; padding: .25rem 1rem; border-left: 4px solid var(--es-accent); }
.es-content figure, .es-content iframe { max-width: 100%; }
.es-content table { width: 100%; border-collapse: collapse; }
.es-content th, .es-content td { padding: 10px; border: 1px solid var(--es-border); }
.es-content .alignwide { max-width: 100%; }
.es-content .alignfull { width: 100%; max-width: 100%; }
.es-footer { margin-top: auto; padding: 34px 20px 22px; background: #1e293b; color: #cbd5e1; }
.es-footer-inner { max-width: 1100px; margin: auto; }
.es-footer-top { display: flex; justify-content: space-between; gap: 25px; align-items: flex-start; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.12); }
.es-footer-brand { color: #93c5fd; font-weight: 800; font-size: 20px; text-decoration: none; }
.es-footer-desc { max-width: 510px; margin: 7px 0 0; color: #94a3b8; font-size: 14px; }
.es-footer-menu { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 4px 0 0; list-style: none; }
.es-footer-menu a, .es-footer-bottom a { color: #cbd5e1; font-size: 13px; text-decoration: none; }
.es-footer-menu a:hover, .es-footer-bottom a:hover { text-decoration: underline; }
.es-footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 15px; padding-top: 18px; color: #94a3b8; font-size: 13px; }
.es-footer-bottom p { margin: 0; }
@media (max-width: 760px) {
  .es-header-inner { min-height: 62px; padding: 10px 14px; gap: 9px; flex-wrap: wrap; }
  .es-brand { margin-right: auto; }
  .es-brand-name { font-size: 17px; }
  .es-brand-logo { max-height: 34px; max-width: 90px; }
  .es-menu-toggle { display: grid; }
  .es-nav { display: none; order: 3; width: 100%; margin: 4px 0 0; }
  .es-nav.is-open { display: block; }
  .es-nav-list { display: flex; flex-direction: column; align-items: stretch; gap: 3px; padding: 8px 0; border-top: 1px solid var(--es-border); }
  .es-nav-list a { padding: 12px; }
  .es-main { padding: 22px 12px 42px; }
  .es-main--front { padding-top: 18px; }
  .es-page:not(.es-page--front) { padding: 22px 16px; }
  .es-footer { padding: 30px 16px 20px; }
  .es-footer-top { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* v1.1.0 — Judul semantik, tampilan post/page, dan blok WordPress. */
.es-entry-header { margin-bottom: 18px; }
.es-entry-header .es-entry-title { margin-bottom: 12px; }
.es-entry-header--front { margin-bottom: 24px; }
.es-front-title { margin: 0; text-align: center; font-size: clamp(28px, 3.5vw, 38px); line-height: 1.22; letter-spacing: -.02em; }
.es-featured-media { margin: 0 0 24px; }
.es-featured-image { display: block; width: 100%; height: auto; border-radius: 12px; }
.es-entry-meta a { color: inherit; }
.es-post-card { min-width: 0; overflow: hidden; }
.es-post-card-thumb { display: block; margin: -24px -24px 18px; }
.es-card-image { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.es-post-card-title { overflow-wrap: anywhere; }
.es-card-more { margin-top: 12px; font-size: 14px; font-weight: 650; }
.es-entry-tags { padding-top: 18px; margin-top: 25px; border-top: 1px solid var(--es-border); font-size: 14px; }
.post-navigation { margin-top: 30px; border-top: 1px solid var(--es-border); padding-top: 22px; }
.post-navigation .nav-links { display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
.post-navigation .nav-previous, .post-navigation .nav-next { max-width: 47%; }
.post-navigation .nav-next { margin-left: auto; text-align: right; }
.post-navigation a { display: block; text-decoration: none; font-weight: 600; }
.es-nav-caption { display: block; color: var(--es-muted); font-size: 12px; font-weight: 400; }
.es-archive-description { color: var(--es-muted); margin: -10px 0 24px; }
.es-comments { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--es-border); }
.es-comments-title { font-size: 21px; }
.es-comment-list { padding-left: 22px; }
.es-comment-list li { margin: 18px 0; }
.es-content :where(p, li) { overflow-wrap: anywhere; }
.es-content :where(iframe, video, embed) { max-width: 100%; }
.es-content .wp-block-image img { max-width: 100%; height: auto; }
.es-content .wp-block-group, .es-content .wp-block-columns { max-width: 100%; }
.es-content .wp-block-cover { max-width: 100%; }
.es-content figure.wp-block-table { overflow-x: auto; }
.es-content :where(pre, code) { overflow-wrap: anywhere; }
.es-empty .search-form { display: flex; flex-wrap: wrap; gap: 8px; }
.es-empty .search-form input { padding: 10px; border: 1px solid var(--es-border); border-radius: 8px; background: var(--es-surface); color: var(--es-text); }
@media (max-width: 760px) {
  .es-front-title { font-size: clamp(25px, 6vw, 32px); }
  .es-post-card-thumb { margin: -24px -24px 18px; }
  .post-navigation .nav-previous, .post-navigation .nav-next { max-width: 100%; }
}

/* v1.1.1 — Tampilkan tagline WordPress di bawah H1 homepage. */
.es-front-tagline {
  max-width: 820px;
  margin: 10px auto 0;
  color: var(--es-muted);
  font-size: clamp(14px, 1.55vw, 17px);
  font-weight: 400;
  line-height: 1.65;
  text-align: center;
  overflow-wrap: anywhere;
}



/* v1.1.4 — Center judul secara presisi, Beranda di hamburger, footer tanpa logo. */
.es-header {
  position: relative;
  z-index: 20;
  background: #dd1f26;
  border-bottom: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.es-header-inner {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  min-height: 76px;
  margin: 0 auto;
  padding: 12px 20px;
}
.es-header .es-header-brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(600px, calc(100% - 140px));
  min-width: 0;
  margin: 0;
  text-align: center;
  text-decoration: none;
  color: #fff;
}
.es-header .es-brand-name { margin: 0; font-size: clamp(16px, 2.1vw, 22px); line-height: 1.3; overflow-wrap: anywhere; }
.es-header .es-brand-name strong { color: #fff; }
.es-header .es-brand-logo { max-height: 44px; width: auto; max-width: 95px; }
.es-header .es-menu-toggle {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 11px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}
.es-header .es-menu-toggle:hover { background: rgba(255,255,255,.2); }
.es-header .es-nav {
  display: none;
  position: absolute;
  z-index: 25;
  top: calc(100% + 2px);
  right: max(12px, calc((100% - 1160px)/2));
  left: auto;
  width: min(310px, calc(100vw - 24px));
  margin: 0;
}
.es-header .es-nav.is-open { display: block; }
.es-header .es-nav-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  margin: 0;
  padding: 10px;
  list-style: none;
  border: 1px solid #f2c3c6;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(30,0,0,.16);
}
.es-header .es-nav-list > li { width: 100%; margin: 0; padding: 0; }
.es-header .es-nav-list a {
  display: block;
  padding: 11px 13px;
  border-radius: 8px;
  background: transparent;
  color: #7a1015;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}
.es-header .es-nav-list a:hover,
.es-header .es-nav-list .current-menu-item > a,
.es-header .es-nav-list .current_page_item > a,
.es-header .es-nav-list a[aria-current="page"] { background: #fff0f1; color: #b91c1c; }
.es-footer { background: #dd1f26; color: #fff; padding: 34px 20px 26px; }
.es-footer .es-footer-inner,
.es-footer .es-footer-top,
.es-footer .es-footer-top > div,
.es-footer .es-footer-bottom,
.es-footer .es-footer-proud { text-align: center; }
.es-footer .es-footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.es-footer .es-footer-top > div, .es-footer .es-footer-top > nav { width: 100%; min-width: 0; }
.es-footer .es-footer-brand { display: inline-block; color: #fff; font-size: 21px; text-decoration: none; }
.es-footer .es-footer-desc { max-width: 680px; margin: 8px auto 0; color: rgba(255,255,255,.9); }
.es-footer .es-footer-menu { justify-content: center; }
.es-footer .es-footer-menu a, .es-footer .es-footer-bottom a { color: #fff; }
.es-footer .es-footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-top: 18px;
  color: rgba(255,255,255,.9);
}
.es-footer .es-footer-bottom > * { margin: 0 auto; text-align: center; }
.es-footer .es-footer-proud { margin-top: 18px; }
.es-footer .es-footer-proud-text { margin: 0; color: #fff; font-size: 15px; font-weight: 700; text-align: center; }
@media (max-width: 760px) {
  .es-header-inner { min-height: 68px; padding: 10px 14px; }
  .es-header .es-header-brand { width: calc(100% - 112px); margin: 0; }
  .es-header .es-brand-name { font-size: clamp(15px, 4.2vw, 19px); }
  .es-header .es-brand-logo { max-width: 50px; max-height: 34px; }
  .es-header .es-nav { right: 12px; margin: 0; }
  .es-footer { padding: 28px 16px 22px; }
  .es-footer .es-footer-top { flex-direction: column; align-items: center; }
}
