/*
Theme Name: Instaglam Journal
Theme URI: https://instaglam.clinic/artikel/
Author: Instaglam Clinic
Description: Tema WordPress ringan untuk pusat artikel Instaglam Clinic, selaras dengan identitas visual website utama.
Version: 1.0.4
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: instaglam-journal
*/

:root {
  --ig-navy: #17213b;
  --ig-navy-soft: #243047;
  --ig-ivory: #f4efe6;
  --ig-ivory-dark: #ece5da;
  --ig-gold: #b8924a;
  --ig-gold-light: #d4af6a;
  --ig-white: #ffffff;
  --ig-text: #243047;
  --ig-muted: #687083;
  --ig-line: rgba(23, 33, 59, .14);
  --ig-shadow: 0 20px 60px rgba(23, 33, 59, .08);
  --ig-display: "Cormorant Garamond", Georgia, serif;
  --ig-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ig-container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ig-ivory);
  color: var(--ig-text);
  font-family: var(--ig-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--ig-gold);
  outline-offset: 4px;
}
.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;
}
.ig-container { width: min(calc(100% - 48px), var(--ig-container)); margin-inline: auto; }

/* Header */
.site-header {
  position: relative;
  z-index: 30;
  min-height: 90px;
  display: flex;
  align-items: center;
  background: var(--ig-navy);
  border-bottom: 1px solid rgba(212, 175, 106, .18);
}
.site-header__inner { display: flex; align-items: center; gap: 28px; width: 100%; }
.site-brand { flex: 0 0 auto; }
.site-brand img { width: 190px; max-height: 58px; object-fit: contain; object-position: left center; }
.site-brand__text {
  color: var(--ig-gold-light); font-family: var(--ig-display); font-size: 34px;
  font-weight: 400; letter-spacing: .01em; line-height: 1;
}
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 40px; list-style: none; padding: 0; margin: 0; }
.primary-nav a {
  color: rgba(244, 239, 230, .82); font-size: 12px; font-weight: 400;
  letter-spacing: .17em; text-transform: uppercase; transition: color .25s ease;
}
.primary-nav a:hover, .primary-nav .is-current > a { color: var(--ig-gold-light); }
.header-cta {
  flex: 0 0 auto; display: inline-flex; min-height: 64px; align-items: center;
  justify-content: center; padding: 0 28px; background: var(--ig-gold);
  color: var(--ig-navy); font-size: 12px; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; transition: background .25s ease;
}
.header-cta:hover { background: var(--ig-gold-light); }
.menu-toggle {
  display: none; width: 46px; height: 46px; padding: 0; margin-left: auto;
  border: 1px solid rgba(244, 239, 230, .28); background: transparent; color: var(--ig-ivory);
}
.menu-toggle__line { display: block; width: 20px; height: 1px; margin: 5px auto; background: currentColor; }

/* Archive */
.journal-hero { padding: 78px 0 46px; }
.journal-eyebrow {
  display: flex; align-items: center; gap: 14px; color: var(--ig-gold); font-size: 11px;
  font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
}
.journal-eyebrow::before { content: ""; width: 42px; height: 1px; background: var(--ig-gold); }
.journal-title {
  max-width: 760px; margin: 14px 0 8px; color: var(--ig-navy); font-family: var(--ig-display);
  font-size: clamp(44px, 6vw, 76px); font-weight: 300; letter-spacing: -.025em; line-height: .98;
}
.journal-intro { max-width: 650px; margin: 20px 0 0; color: var(--ig-muted); font-size: 14px; font-weight: 300; line-height: 1.8; }

.featured-story {
  display: grid; grid-template-columns: 1.08fr .92fr; min-height: 470px;
  background: var(--ig-white); box-shadow: var(--ig-shadow);
}
.featured-story__media { position: relative; min-height: 470px; overflow: hidden; background: var(--ig-ivory-dark); }
.featured-story__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.featured-story:hover .featured-story__media img { transform: scale(1.025); }
.featured-story__content { display: flex; flex-direction: column; justify-content: center; padding: clamp(36px, 6vw, 76px); }
.post-category {
  display: inline-flex; align-items: center; width: fit-content; margin-bottom: 18px;
  padding: 5px 9px; border: 1px solid rgba(23,33,59,.22); color: var(--ig-navy);
  font-size: 9px; font-weight: 500; letter-spacing: .16em; line-height: 1; text-transform: uppercase;
}
.featured-story h2, .post-card h2 {
  margin: 0; color: var(--ig-navy); font-family: var(--ig-body); font-weight: 400; letter-spacing: -.025em; line-height: 1.2;
}
.featured-story h2 { font-size: clamp(28px, 2.8vw, 42px); }
.featured-story h2 a:hover, .post-card h2 a:hover { color: #8a6a2e; }
.post-excerpt { margin: 22px 0 0; color: var(--ig-muted); font-size: 13px; font-weight: 300; line-height: 1.8; }
.post-meta { display: flex; align-items: center; gap: 10px; margin-top: 25px; color: #858a96; font-size: 10px; letter-spacing: .04em; }
.post-meta__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ig-gold); }

.journal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 52px 24px; padding: 64px 0 92px; }
.post-card { min-width: 0; }
.post-card__media { display: block; aspect-ratio: 4 / 2.75; overflow: hidden; background: var(--ig-ivory-dark); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s ease; }
.post-card:hover .post-card__media img { transform: scale(1.035); }
.post-card__body { padding-top: 20px; }
.post-card .post-category { margin-bottom: 12px; }
.post-card h2 { font-size: clamp(18px, 1.45vw, 23px); }
.post-card .post-excerpt { margin-top: 13px; }
.post-card .post-meta { margin-top: 16px; }
.empty-state { margin: 40px 0 100px; padding: 50px; background: var(--ig-white); text-align: center; }
.pagination { grid-column: 1 / -1; margin-top: 18px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers {
  min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--ig-line); color: var(--ig-navy); font-size: 12px;
}
.pagination .current, .pagination a:hover { background: var(--ig-navy); color: var(--ig-ivory); }

/* Search */
.search-form { display: flex; max-width: 560px; margin-top: 30px; }
.search-field { min-width: 0; flex: 1; border: 1px solid var(--ig-line); background: #fff; padding: 14px 16px; }
.search-submit { border: 0; background: var(--ig-gold); color: var(--ig-navy); padding: 0 24px; font-weight: 500; }

/* Single article */
.article-hero { padding: 72px 0 48px; text-align: center; }
.article-hero .post-category { margin-inline: auto; }
.article-title {
  max-width: 920px; margin: 4px auto 0; font-family: var(--ig-display); color: var(--ig-navy);
  font-size: clamp(42px, 6vw, 72px); font-weight: 300; line-height: 1.04; letter-spacing: -.025em;
}
.article-lead { max-width: 720px; margin: 24px auto 0; color: var(--ig-muted); font-size: 16px; font-weight: 300; }
.article-hero .post-meta { justify-content: center; }
.article-featured { width: min(calc(100% - 48px), 1180px); margin: 0 auto 64px; }
.article-featured img { width: 100%; max-height: 680px; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 260px; gap: 86px; justify-content: center; padding-bottom: 100px; }
.article-content { font-size: 17px; font-weight: 300; color: #394155; }
.article-content > *:first-child { margin-top: 0; }
.article-content p { margin: 0 0 1.55em; }
.article-content h2, .article-content h3, .article-content h4 {
  color: var(--ig-navy); font-family: var(--ig-display); font-weight: 400; line-height: 1.15;
}
.article-content h2 { margin: 2em 0 .7em; font-size: 38px; }
.article-content h3 { margin: 1.8em 0 .65em; font-size: 29px; }
.article-content ul, .article-content ol { padding-left: 1.35em; margin: 0 0 1.6em; }
.article-content li { margin-bottom: .55em; }
.article-content a { color: #8a6a2e; text-decoration: underline; text-underline-offset: 3px; }
.article-content blockquote { margin: 2em 0; padding: 2px 0 2px 28px; border-left: 2px solid var(--ig-gold); font-family: var(--ig-display); font-size: 27px; color: var(--ig-navy); }
.article-content figure { margin: 2.25em 0; }
.article-content figcaption { margin-top: 9px; color: var(--ig-muted); font-size: 12px; text-align: center; }
.article-content table { width: 100%; border-collapse: collapse; margin: 2em 0; font-size: 14px; }
.article-content th, .article-content td { padding: 12px 14px; border: 1px solid var(--ig-line); text-align: left; }
.article-content th { background: var(--ig-ivory-dark); color: var(--ig-navy); }
.article-sidebar { align-self: start; position: sticky; top: 28px; border-top: 1px solid var(--ig-gold); padding-top: 22px; }
.article-sidebar h2 { margin: 0 0 14px; font-family: var(--ig-display); font-size: 26px; font-weight: 400; }
.article-sidebar p { color: var(--ig-muted); font-size: 12px; }
.article-sidebar .header-cta { width: 100%; margin-top: 12px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 44px; }
.post-tags a { padding: 5px 10px; border: 1px solid var(--ig-line); font-size: 10px; text-decoration: none; }
.related-posts { padding: 78px 0 95px; background: var(--ig-ivory-dark); }
.related-posts__heading { margin: 0 0 34px; font-family: var(--ig-display); font-size: 42px; font-weight: 300; }
.related-posts .journal-grid { padding: 0; }

/* Footer */
.site-footer { background: var(--ig-navy); color: rgba(244, 239, 230, .68); }
.footer-main { display: grid; grid-template-columns: 1.3fr 1fr .9fr 1.15fr; gap: 74px; padding: 142px 0 108px; }
.footer-brand img { width: 220px; max-height: 70px; object-fit: contain; object-position: left; }
.footer-brand__name { color: var(--ig-gold-light); font-family: var(--ig-display); font-size: 34px; line-height: 1; }
.footer-tagline { margin: 18px 0 0; color: var(--ig-gold-light); font-family: var(--ig-body); font-size: 11px; font-weight: 400; letter-spacing: .32em; line-height: 1.5; text-transform: uppercase; }
.footer-description { max-width: 310px; margin: 20px 0 0; font-size: 14px; font-weight: 300; line-height: 1.65; }
.footer-hours { display: flex; align-items: center; gap: 9px; margin-top: 22px; color: rgba(244,239,230,.66); font-size: 11px; }
.footer-hours svg { width: 14px; height: 14px; color: var(--ig-gold); }
.footer-socials { display: flex; gap: 15px; margin-top: 24px; }
.footer-socials a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid rgba(244,239,230,.15); color: rgba(244,239,230,.75); transition: border-color .2s ease, color .2s ease; }
.footer-socials a:hover { border-color: var(--ig-gold); color: var(--ig-gold-light); }
.footer-socials svg { width: 16px; height: 16px; }
.footer-column h2 { margin: 0 0 25px; color: var(--ig-gold-light); font-family: var(--ig-body); font-size: 11px; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; }
.footer-column ul { list-style: none; padding: 0; margin: 0; }
.footer-column li { margin: 0 0 15px; }
.footer-column a, .footer-column address { font-size: 14px; font-weight: 300; font-style: normal; line-height: 1.55; transition: color .2s ease; }
.footer-column a:hover { color: var(--ig-gold-light); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding: 46px 0 72px; border-top: 1px solid rgba(244,239,230,.10); font-size: 11px; }
.footer-legal { display: flex; gap: 22px; }

@media (max-width: 1050px) {
  .site-header__inner { gap: 18px; }
  .site-brand img { width: 170px; }
  .primary-nav ul { gap: 20px; }
  .primary-nav a { font-size: 10px; }
  .header-cta { min-height: 56px; padding-inline: 18px; font-size: 10px; }
  .footer-main { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  .ig-container { width: min(calc(100% - 36px), var(--ig-container)); }
  .site-header { min-height: 78px; }
  .site-brand img { width: 168px; }
  .menu-toggle { display: block; }
  .site-header .header-cta { display: none; }
  .primary-nav {
    display: none; position: absolute; top: 78px; left: 0; right: 0; margin: 0;
    padding: 22px 18px 28px; background: var(--ig-navy); border-top: 1px solid rgba(244,239,230,.12);
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: block; }
  .primary-nav li { border-bottom: 1px solid rgba(244,239,230,.09); }
  .primary-nav a { display: block; padding: 13px 4px; font-size: 11px; }
  .journal-hero { padding: 58px 0 38px; }
  .featured-story { grid-template-columns: 1fr; }
  .featured-story__media { min-height: 0; aspect-ratio: 16 / 10; }
  .featured-story__content { padding: 34px 28px 39px; }
  .journal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: 1fr; gap: 52px; }
  .article-sidebar { position: static; }
  .footer-main { gap: 48px 32px; padding: 80px 0 64px; }
  .footer-bottom { padding-bottom: 50px; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .ig-container { width: min(calc(100% - 30px), var(--ig-container)); }
  .site-brand img { width: 156px; }
  .journal-eyebrow { font-size: 9px; }
  .journal-title { font-size: 44px; }
  .featured-story__content { padding: 28px 22px 32px; }
  .featured-story h2 { font-size: 29px; }
  .journal-grid { grid-template-columns: 1fr; gap: 42px; padding: 46px 0 70px; }
  .post-card__media { aspect-ratio: 16 / 10; }
  .post-card h2 { font-size: 23px; }
  .article-hero { padding: 52px 0 34px; }
  .article-title { font-size: 40px; }
  .article-lead { font-size: 14px; }
  .article-featured { width: 100%; margin-bottom: 42px; }
  .article-featured img { min-height: 250px; object-fit: cover; }
  .article-layout { padding-bottom: 72px; }
  .article-content { font-size: 16px; }
  .article-content h2 { font-size: 32px; }
  .article-content h3 { font-size: 26px; }
  .footer-main { grid-template-columns: 1fr; gap: 42px; padding: 64px 0 56px; }
  .footer-brand { grid-column: auto; }
  .footer-brand img { width: 200px; }
  .footer-description { max-width: 100%; }
  .footer-bottom { display: block; }
  .footer-legal { margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
