/*
Theme Name: KHANII — Investigative Newsroom
Theme URI: https://example.com/khanii
Author: KHANII
Author URI: https://example.com
Description: A responsive editorial child theme for the Neve WordPress theme, designed for KHANII investigative journalism. Includes a custom homepage, investigation grids, and newsroom styling.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: khanii-neve-child
Template: neve
*/

:root {
  --khanii-ink: #171717;
  --khanii-paper: #f4f1ea;
  --khanii-red: #a72c2c;
  --khanii-muted: #66645f;
  --khanii-line: #dedbd5;
  --khanii-width: 1200px;
}

html { scroll-behavior: smooth; }
body { color: var(--khanii-ink); }
a { text-underline-offset: .18em; }
a:hover { color: var(--khanii-red); }
:focus-visible { outline: 3px solid var(--khanii-red); outline-offset: 3px; }

.khanii-wrap { width: min(var(--khanii-width), calc(100% - 40px)); margin-inline: auto; }
.khanii-home { overflow: hidden; }
.khanii-eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  margin: 0 0 1rem; color: var(--khanii-red); font-size: .75rem;
  font-weight: 800; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase;
}
.khanii-eyebrow::before { content: ""; display: inline-block; width: 22px; height: 3px; background: currentColor; }
.khanii-hero { background: var(--khanii-ink); color: #fff; padding: clamp(3.25rem, 8vw, 7.5rem) 0; }
.khanii-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.khanii-hero .khanii-eyebrow { color: #e9aaaa; }
.khanii-hero h1 { max-width: 850px; margin: 0 0 1.4rem; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.65rem, 6vw, 5.4rem); font-weight: 700; letter-spacing: -.045em; line-height: .99; }
.khanii-hero-copy { max-width: 660px; color: #e7e5e1; font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.75; }
.khanii-hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.khanii-button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: .85rem 1.15rem; border: 1px solid var(--khanii-red); border-radius: 2px; background: var(--khanii-red); color: #fff !important; font-size: .83rem; font-weight: 800; letter-spacing: .035em; text-decoration: none; text-transform: uppercase; transition: background .2s ease, border-color .2s ease; }
.khanii-button:hover { background: #852020; border-color: #852020; }
.khanii-button--outline { border-color: #777; background: transparent; }
.khanii-button--outline:hover { background: #303030; border-color: #aaa; }
.khanii-hero-art { position: relative; min-height: 350px; display: flex; align-items: end; padding: 1.5rem; background: linear-gradient(145deg, #333 0%, #222 48%, #101010 100%); border: 1px solid #424242; }
.khanii-hero-art::before, .khanii-hero-art::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.13); inset: 14% 13%; transform: rotate(-7deg); }
.khanii-hero-art::after { inset: 23% 20%; transform: rotate(7deg); }
.khanii-art-label { position: relative; z-index: 1; padding: .7rem .85rem; background: rgba(0,0,0,.65); color: #fff; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.khanii-section { padding: clamp(3rem, 6vw, 5.4rem) 0; border-bottom: 1px solid var(--khanii-line); }
.khanii-section--paper { background: var(--khanii-paper); }
.khanii-section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.8rem; }
.khanii-section-head h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -.03em; line-height: 1.1; }
.khanii-section-head p { max-width: 560px; margin: .65rem 0 0; color: var(--khanii-muted); }
.khanii-text-link { color: var(--khanii-red); font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.khanii-featured { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr); border: 1px solid var(--khanii-line); background: #fff; }
.khanii-featured-media { min-height: 300px; background: #e5e1d9; overflow: hidden; }
.khanii-featured-media img { display: block; width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.khanii-featured-placeholder { min-height: 300px; display: grid; place-items: center; padding: 2rem; background: linear-gradient(135deg, #ded9cf, #f4f1ea); color: #55514a; text-align: center; }
.khanii-featured-placeholder span { max-width: 220px; font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; line-height: 1.15; }
.khanii-featured-content { padding: clamp(1.5rem, 4vw, 3rem); align-self: center; }
.khanii-category { color: var(--khanii-red); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.khanii-featured h3 { margin: .8rem 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.8rem, 3vw, 2.7rem); letter-spacing: -.03em; line-height: 1.08; }
.khanii-featured h3 a, .khanii-card h3 a { color: inherit; text-decoration: none; }
.khanii-featured h3 a:hover, .khanii-card h3 a:hover { color: var(--khanii-red); }
.khanii-meta { color: var(--khanii-muted); font-size: .8rem; }
.khanii-excerpt { color: #4d4b47; line-height: 1.75; }
.khanii-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.khanii-card { min-width: 0; background: #fff; border: 1px solid var(--khanii-line); }
.khanii-card-image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #e7e3db; }
.khanii-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.khanii-card:hover .khanii-card-image img { transform: scale(1.035); }
.khanii-card-placeholder { display: grid; place-items: center; height: 100%; min-height: 150px; padding: 1rem; color: #5e5a53; font-size: .78rem; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.khanii-card-body { padding: 1.25rem; }
.khanii-card h3 { margin: .55rem 0 .7rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; letter-spacing: -.02em; line-height: 1.15; }
.khanii-card .khanii-excerpt { margin-bottom: 0; font-size: .95rem; }
.khanii-empty { padding: 2rem; border: 1px dashed #bbb5aa; background: rgba(255,255,255,.55); color: #4d4b47; line-height: 1.7; }
.khanii-topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.khanii-topic { display: flex; flex-direction: column; justify-content: space-between; min-height: 230px; padding: clamp(1.5rem, 3vw, 2.4rem); border-top: 4px solid var(--khanii-red); background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.khanii-topic h3 { margin: .5rem 0 .7rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1.1; }
.khanii-topic p { color: #4d4b47; line-height: 1.7; }
.khanii-principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.3rem; }
.khanii-principle { padding-top: 1rem; border-top: 2px solid var(--khanii-ink); }
.khanii-principle-number { color: var(--khanii-red); font-size: .75rem; font-weight: 800; letter-spacing: .1em; }
.khanii-principle h3 { margin: .7rem 0 .5rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; }
.khanii-principle p { margin: 0; color: var(--khanii-muted); font-size: .93rem; line-height: 1.7; }
.khanii-tip { padding: clamp(2.2rem, 5vw, 4.6rem) 0; background: var(--khanii-ink); color: #fff; }
.khanii-tip-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; }
.khanii-tip h2 { max-width: 800px; margin: 0 0 1rem; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.6rem); letter-spacing: -.035em; line-height: 1.04; }
.khanii-tip p { max-width: 760px; color: #e1dfdb; line-height: 1.75; }
.khanii-tip-note { font-size: .8rem; color: #c7c3bd !important; }
.khanii-home .khanii-button:focus-visible { outline-color: #fff; }
.khanii-home img { max-width: 100%; }
@media (max-width: 900px) {
  .khanii-hero-grid, .khanii-featured { grid-template-columns: 1fr; }
  .khanii-hero-art { min-height: 230px; }
  .khanii-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .khanii-principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .khanii-tip-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .khanii-wrap { width: min(100% - 32px, var(--khanii-width)); }
  .khanii-hero { padding: 3.25rem 0; }
  .khanii-hero h1 { font-size: clamp(2.45rem, 12vw, 3.5rem); }
  .khanii-hero-art { min-height: 180px; }
  .khanii-section-head { display: block; }
  .khanii-section-head > .khanii-text-link { display: inline-block; margin-top: 1rem; }
  .khanii-card-grid, .khanii-topic-grid, .khanii-principles { grid-template-columns: 1fr; }
  .khanii-featured-media, .khanii-featured-media img { min-height: 210px; }
  .khanii-card h3 { font-size: 1.35rem; }
}
