/*
Theme Name: Editorial Stark
Theme URI: https://saasifactory.com
Author: Antigravity
Author URI: https://saasifactory.com
Description: A premium, minimalist stark print-magazine style theme for SaaSifactory, following the Anti-AI Editorial Print aesthetic.
Version: 3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: editorial-stark
*/

/* --- CSS Reset & Global Vars --- */
:root {
  --color-bg: #FCFBF9; /* Warm vintage paper background */
  --color-card-bg: #FCFBF9;
  --color-text: #1A1A1A; /* Crisp deep print ink */
  --color-text-muted: #555555;
  --color-accent: #002FA7; /* International Klein Blue */
  --color-border: #1A1A1A; /* Sharp black line */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', Arial, sans-serif;
  --transition: all 0.2s ease-in-out;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: var(--transition);
}

a:hover {
  color: var(--color-accent);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-text);
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.single-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 30px;
}

/* --- Header --- */
.site-header {
  border-bottom: 2px solid var(--color-border);
  padding: 40px 0;
  margin-bottom: 60px;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-branding {
  display: flex;
  flex-direction: column;
}

.site-branding a {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -1px;
}

.site-branding p {
  font-size: 11px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 5px;
  font-weight: 600;
}

.site-navigation ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.site-navigation a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Hero Banner (Korak 2) --- */
.hero-banner {
  background-color: var(--color-bg);
  border: 2px solid var(--color-border);
  padding: 60px;
  margin-bottom: 60px;
  text-align: center;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 46px;
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  line-height: 1.15;
}

.hero-cta {
  background-color: var(--color-accent);
  color: #FCFBF9 !important;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  padding: 15px 30px;
  display: inline-block;
  border: 2px solid var(--color-border);
  transition: var(--transition);
}

.hero-cta:hover {
  background-color: var(--color-text);
  color: var(--color-bg) !important;
  transform: translate(-4px, -4px);
  box-shadow: 4px 4px 0px var(--color-accent);
}

/* --- 3-Column Grid Layout (Korak 2) --- */
.latest-posts-heading {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 800;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 10px;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 80px;
}

.grid-card {
  border: 2px solid var(--color-border);
  background-color: var(--color-card-bg);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.grid-card-image {
  border-bottom: 2px solid var(--color-border);
  aspect-ratio: 16/10;
  overflow: hidden;
  background-color: #FAF6F0;
}

.grid-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.grid-card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.grid-card-meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  font-weight: 700;
}

.grid-card-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
}

.grid-card-title a {
  text-decoration: none;
}

.grid-card-excerpt {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.grid-card-link {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

/* --- Single Post --- */
.post-header {
  margin-bottom: 40px;
  text-align: center;
}

.post-featured-image {
  border: 2px solid var(--color-border);
  margin-bottom: 40px;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
  margin-bottom: 15px;
  font-weight: 700;
}

.post-title {
  font-size: 46px;
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  line-height: 1.15;
}

.post-content {
  font-size: 16px;
  margin-bottom: 80px;
}

.post-content p {
  margin-bottom: 25px;
}

.post-content h2 {
  font-size: 28px;
  margin-top: 50px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 10px;
  letter-spacing: -0.5px;
}

.post-content h3 {
  font-size: 20px;
  margin-top: 30px;
  margin-bottom: 15px;
}

/* --- Comparison Tables (Neo-Brutalist) --- */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 40px 0;
  font-size: 15px;
  text-align: left;
}

.post-content th, .post-content td {
  border: 2px solid var(--color-border);
  padding: 14px 18px;
}

.post-content th {
  background-color: var(--color-text);
  color: var(--color-bg);
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.post-content tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.02);
}

/* --- Affiliate Disclosure & Footer --- */
.site-footer {
  border-top: 2px solid var(--color-border);
  padding: 60px 0;
  margin-top: 100px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.footer-disclosure {
  margin-bottom: 40px;
  padding: 25px;
  border: 1px dashed var(--color-border);
  background-color: rgba(0, 0, 0, 0.01);
}

.footer-credits {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-credits strong {
  color: var(--color-text);
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    gap: 20px;
  }
  .hero-title {
    font-size: 32px;
  }
  .hero-banner {
    padding: 30px;
  }
  .posts-grid {
    grid-template-columns: 1fr;
  }
  .post-title {
    font-size: 34px;
  }
  .post-content table {
    display: block;
    overflow-x: auto;
  }
}
