/*
Theme Name: OmRisma
Theme URI: https://omrisma.web.id/
Author: Bejo for Om Risma
Author URI: https://omrisma.web.id/
Description: Tema WordPress ringan untuk personal brand Om Risma: digital, SEO, teknologi, hobi, alam, dan catatan kehidupan.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: omrisma
Tags: blog, custom-logo, custom-menu, featured-images, one-column, two-columns, translation-ready
*/

:root {
  --or-ink: #18352c;
  --or-muted: #66756e;
  --or-green: #28634d;
  --or-bright: #b8e0c6;
  --or-cream: #f6f7f1;
  --or-white: #fff;
  --or-line: #e1e8e1;
  --or-radius: 18px;
  --or-shadow: 0 12px 36px rgba(24, 53, 44, .07);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--or-ink); background: var(--or-cream);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.75;
}
a { color: var(--or-green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #153f2e; }
img { max-width: 100%; height: auto; border-radius: 12px; }
button, input, textarea { font: inherit; }
button, input[type="submit"] { cursor: pointer; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: white; padding: 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }
.site-header { background: rgba(255,255,255,.94); border-bottom: 1px solid var(--or-line); }
.header-inner { max-width: 1160px; margin: auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--or-ink); text-decoration: none; min-width: 0; }
.custom-logo { max-height: 54px; width: auto; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--or-green); color: white; font-weight: 800; letter-spacing: -.05em; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.25; }
.site-title { font-weight: 800; font-size: 1.1rem; letter-spacing: -.03em; }
.site-tagline { color: var(--or-muted); font-size: .78rem; margin-top: 4px; }
.primary-nav ul { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; list-style: none; margin: 0; padding: 0; }
.primary-nav a { color: var(--or-ink); font-weight: 650; text-decoration: none; font-size: .93rem; }
.primary-nav a:hover { color: var(--or-green); }
.menu-toggle { display: none; border: 1px solid var(--or-line); border-radius: 10px; background: white; padding: 8px 12px; color: var(--or-ink); }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.hero { padding: 74px 0 54px; }
.hero-panel { position: relative; overflow: hidden; background: var(--or-ink); color: white; border-radius: 28px; padding: clamp(30px, 6vw, 76px); box-shadow: var(--or-shadow); }
.hero-panel:after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; right: -90px; top: -150px; background: radial-gradient(circle, rgba(184,224,198,.28), rgba(184,224,198,0)); pointer-events: none; }
.eyebrow { color: var(--or-bright); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; }
.hero h1 { max-width: 780px; font-size: clamp(2.25rem, 5vw, 4.5rem); line-height: 1.06; letter-spacing: -.055em; margin: 16px 0 20px; }
.hero p { max-width: 680px; color: #dce8e0; font-size: clamp(1rem, 1.5vw, 1.15rem); margin: 0 0 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; background: var(--or-bright); color: var(--or-ink); border-radius: 999px; padding: 12px 20px; text-decoration: none; font-weight: 800; border: 0; }
.button:hover { background: #d1eed9; color: var(--or-ink); }
.button-secondary { color: white; background: transparent; border: 1px solid rgba(255,255,255,.35); margin-left: 8px; }
.section { padding: 24px 0 62px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); letter-spacing: -.04em; line-height: 1.2; margin: 0; }
.section-heading p { margin: 7px 0 0; color: var(--or-muted); }
.topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.topic-card { display: block; padding: 23px; background: white; border: 1px solid var(--or-line); border-radius: var(--or-radius); color: var(--or-ink); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.topic-card:hover { transform: translateY(-3px); box-shadow: var(--or-shadow); color: var(--or-ink); }
.topic-icon { font-size: 1.7rem; display: block; margin-bottom: 10px; }
.topic-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.topic-card p { color: var(--or-muted); font-size: .9rem; line-height: 1.6; margin: 0; }
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.post-card { background: white; border: 1px solid var(--or-line); border-radius: var(--or-radius); overflow: hidden; box-shadow: 0 4px 18px rgba(24,53,44,.025); }
.post-card .thumb { display: block; aspect-ratio: 16 / 9; background: #e6eee6; overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; display: block; }
.post-card-body { padding: 22px; }
.post-meta { color: var(--or-muted); font-size: .8rem; }
.post-card h2, .post-card h3 { font-size: 1.2rem; line-height: 1.35; letter-spacing: -.025em; margin: 9px 0; }
.post-card h2 a, .post-card h3 a { color: var(--or-ink); text-decoration: none; }
.post-card p { color: var(--or-muted); margin: 0; font-size: .94rem; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 34px; align-items: start; padding: 52px 0 72px; }
.content-main, .sidebar-box, .article-panel { background: white; border: 1px solid var(--or-line); border-radius: var(--or-radius); }
.content-main { padding: clamp(22px, 4vw, 42px); min-width: 0; }
.page-title { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.12; letter-spacing: -.05em; margin: 0 0 20px; }
.entry-content { overflow-wrap: anywhere; }

/* Article images: honor WordPress left/right alignment and keep body text readable. */
.entry-content figure,
.entry-content .wp-block-image {
  max-width: 100%;
  margin: 1.5em 0;
}
.entry-content .alignleft,
.entry-content figure.alignleft,
.entry-content .wp-block-image.alignleft {
  float: left !important;
  clear: left;
  display: table;
  width: auto;
  max-width: min(42%, 360px);
  margin: .35em 1.25em 1em 0;
}
.entry-content .alignright,
.entry-content figure.alignright,
.entry-content .wp-block-image.alignright {
  float: right !important;
  clear: right;
  display: table;
  width: auto;
  max-width: min(42%, 360px);
  margin: .35em 0 1em 1.25em;
}
.entry-content .aligncenter,
.entry-content figure.aligncenter,
.entry-content .wp-block-image.aligncenter {
  float: none !important;
  clear: both;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 1.5em auto;
}
.entry-content img {
  display: block;
  max-width: 100%;
  height: auto;
}
.entry-content figure.alignleft img,
.entry-content figure.alignright img,
.entry-content .wp-block-image.alignleft img,
.entry-content .wp-block-image.alignright img {
  width: 100%;
  margin: 0;
}
.entry-content figure:not(.alignleft):not(.alignright) img,
.entry-content .wp-block-image:not(.alignleft):not(.alignright) img {
  margin-inline: auto;
}
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content h2, .entry-content h3 { line-height: 1.25; letter-spacing: -.025em; margin-top: 1.7em; }
.entry-content blockquote { border-left: 4px solid var(--or-bright); margin-left: 0; padding: 4px 0 4px 20px; color: var(--or-muted); }
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content th, .entry-content td { border: 1px solid var(--or-line); padding: 10px; text-align: left; }
.entry-content pre { overflow-x: auto; padding: 18px; border-radius: 12px; background: #f1f4f0; }
.entry-content iframe { max-width: 100%; }
.sidebar-box { padding: 23px; margin-bottom: 18px; }
.sidebar-box h2 { font-size: 1.05rem; margin: 0 0 12px; }
.sidebar-box ul { margin: 0; padding-left: 18px; }
.article-header { margin-bottom: 24px; }
.article-header .page-title { margin-top: 10px; }
.featured-image { margin: 24px 0; }
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.page-numbers, .post-navigation a { display: inline-block; padding: 8px 13px; border: 1px solid var(--or-line); border-radius: 10px; background: white; text-decoration: none; }
.page-numbers.current { background: var(--or-green); color: white; }
.site-footer { background: var(--or-ink); color: #dce8e0; padding: 34px 0; margin-top: 20px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer a { color: var(--or-bright); }
.footer-title { color: white; font-weight: 800; }
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-field, input[type="text"], input[type="email"], textarea { width: 100%; border: 1px solid var(--or-line); border-radius: 10px; padding: 11px 13px; background: white; color: var(--or-ink); }
.search-submit, input[type="submit"] { border: 0; border-radius: 10px; background: var(--or-green); color: white; padding: 11px 15px; font-weight: 700; }
.comment-list { padding-left: 20px; }
.comment-respond { margin-top: 32px; }
.alignwide { max-width: 1000px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { color: var(--or-muted); font-size: .85rem; }
.sticky { border-color: var(--or-bright); }
.bypostauthor { }
@media (max-width: 900px) {
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-layout { grid-template-columns: minmax(0, 1fr); }
  .primary-nav ul { gap: 12px; }
}
@media (max-width: 640px) {
  .header-inner { padding: 14px 18px; flex-wrap: wrap; }
  .menu-toggle { display: inline-flex; }
  .primary-nav { display: none; width: 100%; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 10px 0 4px; }
  .container { width: min(100% - 28px, 1160px); }
  .hero { padding: 28px 0 30px; }
  .hero-panel { border-radius: 20px; }
  .button-secondary { margin: 10px 0 0; }
  .topic-grid, .posts-grid { grid-template-columns: 1fr; }
  .entry-content .alignleft,
  .entry-content .alignright,
  .entry-content figure.alignleft,
  .entry-content figure.alignright,
  .entry-content .wp-block-image.alignleft,
  .entry-content .wp-block-image.alignright {
    float: none !important;
    clear: both;
    display: block;
    width: auto;
    max-width: 100%;
    margin: 1.25em auto;
  }
  .section { padding-bottom: 38px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
