/*
Theme Name: Historia Ime
Theme URI: https://historiaime.org
Author: Historia Ime
Author URI: https://historiaime.org
Description: Temë origjinale editoriale për platformën "Historia Ime" — një hapësirë ku qytetarët tregojnë atë që shpesh mbetet pa zë: histori padrejtësie, rezistence dhe dinjiteti, publikuar me emrin e autorit.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: historiaime
*/

/* ==========================================================================
   0. Variablat & Reset
   ========================================================================== */
:root {
  --hi-ink: #16130f;
  --hi-paper: #f5f1e8;
  --hi-paper-dim: #ece5d6;
  --hi-accent: #8a1f11;
  --hi-accent-dim: #6b170c;
  --hi-line: #d8cfba;
  --hi-muted: #6b6252;
  --hi-serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --hi-sans: "Helvetica Neue", Arial, sans-serif;
  --hi-max: 780px;
  --hi-max-wide: 1120px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--hi-paper);
  color: var(--hi-ink);
  font-family: var(--hi-serif);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--hi-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--hi-serif);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

.hi-eyebrow {
  font-family: var(--hi-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hi-accent);
}

/* ==========================================================================
   1. Layout helpers
   ========================================================================== */
.hi-container {
  max-width: var(--hi-max-wide);
  margin: 0 auto;
  padding: 0 24px;
}
.hi-container--narrow {
  max-width: var(--hi-max);
}

/* ==========================================================================
   2. Header / Masthead
   ========================================================================== */
.hi-masthead {
  border-bottom: 3px solid var(--hi-ink);
  background: var(--hi-paper);
  position: sticky;
  top: 0;
  z-index: 50;
}
.hi-masthead__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 10px;
  max-width: var(--hi-max-wide);
  margin: 0 auto;
}
.hi-masthead__date {
  font-family: var(--hi-sans);
  font-size: 12px;
  color: var(--hi-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hi-logo {
  font-family: var(--hi-serif);
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -0.02em;
  color: var(--hi-ink);
}
.hi-logo span { color: var(--hi-accent); }
.hi-tagline {
  font-family: var(--hi-sans);
  font-size: 13px;
  color: var(--hi-muted);
  font-style: italic;
}
.hi-cta {
  font-family: var(--hi-sans);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--hi-accent);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 2px;
  text-decoration: none !important;
  display: inline-block;
}
.hi-cta:hover { background: var(--hi-accent-dim); }

.hi-nav {
  border-top: 1px solid var(--hi-line);
  padding: 0;
}
.hi-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin: 0 auto;
  padding: 10px 24px;
  max-width: var(--hi-max-wide);
}
.hi-nav a {
  font-family: var(--hi-sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hi-ink);
}
.hi-nav a:hover { color: var(--hi-accent); text-decoration: none; }

/* ==========================================================================
   3. Front page / Hero
   ========================================================================== */
.hi-hero {
  border-bottom: 1px solid var(--hi-line);
  padding: 48px 24px 40px;
}
.hi-hero__inner {
  max-width: var(--hi-max-wide);
  margin: 0 auto;
}
.hi-hero h1 {
  font-size: 44px;
  max-width: 760px;
}
.hi-hero p.hi-lede {
  font-size: 20px;
  color: var(--hi-muted);
  max-width: 620px;
}

/* Story grid */
.hi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  padding: 40px 24px;
  max-width: var(--hi-max-wide);
  margin: 0 auto;
}
@media (max-width: 900px) {
  .hi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .hi-grid { grid-template-columns: 1fr; }
  .hi-hero h1 { font-size: 30px; }
}

.hi-card {
  border-top: 3px solid var(--hi-ink);
  padding-top: 14px;
}
.hi-card__tema {
  font-family: var(--hi-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hi-accent);
}
.hi-card h2 {
  font-size: 24px;
  margin: 6px 0 8px;
}
.hi-card h2 a { color: var(--hi-ink); }
.hi-card p { color: var(--hi-muted); font-size: 16px; }
.hi-card__meta {
  font-family: var(--hi-sans);
  font-size: 12px;
  color: var(--hi-muted);
  margin-top: 10px;
}
.hi-card__meta strong { color: var(--hi-ink); }

/* ==========================================================================
   4. Single story
   ========================================================================== */
.hi-story {
  max-width: var(--hi-max);
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.hi-story__tema {
  font-family: var(--hi-sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--hi-accent);
  margin-bottom: 10px;
  display: block;
}
.hi-story h1 {
  font-size: 38px;
  margin-bottom: 18px;
}
.hi-story__byline {
  font-family: var(--hi-sans);
  font-size: 14px;
  color: var(--hi-muted);
  border-top: 1px solid var(--hi-line);
  border-bottom: 1px solid var(--hi-line);
  padding: 14px 0;
  margin-bottom: 32px;
}
.hi-story__byline strong {
  color: var(--hi-ink);
  font-size: 15px;
}
.hi-story__body { font-size: 19px; }
.hi-story__body p { margin: 0 0 1.4em; }
.hi-story__body blockquote {
  border-left: 3px solid var(--hi-accent);
  margin: 1.6em 0;
  padding: 0.2em 0 0.2em 22px;
  font-style: italic;
  color: var(--hi-muted);
}
.hi-story__signature {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--hi-line);
  font-family: var(--hi-sans);
  font-size: 14px;
  color: var(--hi-muted);
}
.hi-story__signature strong { color: var(--hi-ink); font-size: 16px; }

/* ==========================================================================
   5. Archive / kategori (taxonomy)
   ========================================================================== */
.hi-archive-header {
  max-width: var(--hi-max-wide);
  margin: 0 auto;
  padding: 40px 24px 0;
}
.hi-archive-header h1 { font-size: 34px; }
.hi-archive-header p { color: var(--hi-muted); }

/* ==========================================================================
   6. Formulari i dorëzimit
   ========================================================================== */
.hi-submit {
  max-width: var(--hi-max);
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.hi-submit h1 { font-size: 34px; }
.hi-submit .hi-lede { color: var(--hi-muted); font-size: 18px; margin-bottom: 30px; }

.hi-form { font-family: var(--hi-sans); }
.hi-form label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 22px 0 6px;
}
.hi-form .hi-help {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--hi-muted);
  font-size: 13px;
  display: block;
  margin-top: 2px;
}
.hi-form input[type="text"],
.hi-form input[type="email"],
.hi-form select,
.hi-form textarea {
  width: 100%;
  font-family: var(--hi-sans);
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--hi-line);
  background: #fff;
  border-radius: 2px;
}
.hi-form textarea { min-height: 260px; resize: vertical; }
.hi-form .hi-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.hi-form .hi-checkbox input { margin-top: 4px; }
.hi-form button {
  font-family: var(--hi-sans);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--hi-accent);
  color: #fff;
  border: none;
  padding: 14px 28px;
  margin-top: 28px;
  cursor: pointer;
  border-radius: 2px;
}
.hi-form button:hover { background: var(--hi-accent-dim); }

.hi-notice {
  font-family: var(--hi-sans);
  padding: 16px 18px;
  margin-bottom: 24px;
  border-left: 4px solid var(--hi-accent);
  background: var(--hi-paper-dim);
  font-size: 15px;
}
.hi-notice--success { border-left-color: #2e6b2e; }

/* honeypot field: hidden from humans, visible to bots */
.hi-hp { position: absolute; left: -9999px; top: -9999px; }

/* ==========================================================================
   7. Footer
   ========================================================================== */
.hi-footer {
  border-top: 3px solid var(--hi-ink);
  margin-top: 40px;
  padding: 36px 24px;
  font-family: var(--hi-sans);
  font-size: 13px;
  color: var(--hi-muted);
}
.hi-footer .hi-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.hi-footer a { color: var(--hi-muted); }

/* Pagination */
.hi-pagination {
  max-width: var(--hi-max-wide);
  margin: 0 auto;
  padding: 0 24px 60px;
  font-family: var(--hi-sans);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hi-pagination a, .hi-pagination span { margin-right: 16px; }
