/*
Theme Name: Azərbaycan Arxeologiyası
Author: Khazar Media
Description: Journal theme for Journal of Azerbaijan Archaeology.
Version: 1.0.1
Requires at least: 6.0
Text Domain: jaa
*/

:root {
  --soil: #2b1d14;
  --ochre: #b4532a;
  --ochre-2: #d4783a;
  --sand: #eadcc8;
  --paper: #f6f0e6;
  --card: #fffcf7;
  --ink: #1e1712;
  --muted: #6d5c4e;
  --line: #e0d2be;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Source Sans 3", system-ui, sans-serif;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.skip {
  position: absolute; left: -999px; top: 8px; z-index: 80;
  background: var(--ochre); color: #fff; padding: 8px 12px;
}
.skip:focus { left: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  width: 100%;
  background: #faf4ea;
  border-bottom: 1px solid var(--line);
}
.mast {
  display: flex; align-items: center; gap: 18px;
  min-height: 84px; padding: 8px 0;
}
.brand { text-decoration: none; display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.brand-logo { height: 58px; width: auto; }
.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand strong {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.15rem; font-weight: 600; line-height: 1.15;
}
.brand em {
  color: var(--ochre); font-style: italic;
  font-family: "Newsreader", Georgia, serif;
  font-size: .85rem;
}
.mast-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.search-mini { display: flex; }
.search-mini input {
  width: 160px; border: 1px solid var(--line); background: #fff;
  padding: 7px 10px; font: inherit; color: var(--ink);
}
.search-mini button {
  border: 0; background: var(--soil); color: #f6f0e6;
  padding: 7px 12px; cursor: pointer; font: inherit;
}
.nav-toggle {
  display: none; border: 1px solid var(--line); background: #fff;
  color: var(--ink); font: inherit; letter-spacing: .08em;
  text-transform: uppercase; font-size: .75rem; cursor: pointer;
  padding: 8px 12px;
}
.nav-main { background: var(--soil); }
.nav-main ul {
  display: flex; flex-wrap: nowrap; gap: 0;
  list-style: none; margin: 0; padding: 0;
}
.nav-main li { position: relative; }
.nav-main a {
  display: block; text-decoration: none; color: #eadcc8;
  padding: 11px 13px; font-size: .78rem;
  letter-spacing: .07em; text-transform: uppercase; white-space: nowrap;
}
.nav-main a:hover, .nav-main .current-menu-item > a { color: #fff; }
.nav-main .sub-menu {
  display: none; position: absolute; left: 0; top: 100%;
  flex-direction: column; min-width: 240px;
  background: #3a281c; padding: 8px 0; z-index: 30;
}
.nav-main li:hover > .sub-menu, .nav-main li:focus-within > .sub-menu { display: flex; }
.nav-main .sub-menu a { text-transform: none; letter-spacing: 0; font-size: .9rem; }

.hero {
  background:
    radial-gradient(700px 280px at 10% 0%, rgba(180,83,42,.22), transparent 55%),
    linear-gradient(180deg, var(--soil) 0%, #3d281c 100%);
  color: #f6efe6;
  padding: 48px 0 52px;
}
.hero-grid {
  display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: center;
}
.hero .cover {
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  border: 3px solid #e8d3b4;
  background: #2a1c14;
}
.hero .cover img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.hero .kicker {
  color: var(--ochre-2); letter-spacing: .2em; text-transform: uppercase;
  font-size: .72rem; margin: 0 0 10px;
}
.hero h1 {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 600; line-height: 1.08; margin: 0 0 12px;
}
.hero p { max-width: 52ch; color: #dbcbb8; margin: 0 0 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; text-decoration: none;
  padding: 10px 16px; border-radius: 2px; font-size: .92rem; font-weight: 600;
  border: 1px solid transparent;
}
.btn-ochre { background: var(--ochre); color: #fff; }
.btn-ghost { border-color: #7a5b45; color: #f3eadc; }

.band {
  background: #c9b496; color: var(--soil);
  padding: 14px 0; font-size: .92rem;
}
.band ul {
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  list-style: none; margin: 0; padding: 0;
}
.band b { font-weight: 650; }

.section { padding: 56px 0; }
.section h2 {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600;
  margin: 0 0 8px;
}
.lede { color: var(--muted); margin: 0 0 28px; max-width: 60ch; }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  margin-bottom: 8px;
}
.section-head a { color: var(--ochre); text-decoration: none; font-weight: 600; }

.issue-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.issue-card {
  background: var(--card); border: 1px solid var(--line);
  text-decoration: none; overflow: hidden;
}
.issue-card img, .issue-card .ph {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; background: #d7c4a8;
}
.issue-card .cap { padding: 12px 14px 14px; }
.issue-card h3 {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.05rem; margin: 0 0 4px; font-weight: 600;
}
.issue-card p { margin: 0; color: var(--muted); font-size: .86rem; }

.news-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px;
}
.news-card {
  background: var(--card); border: 1px solid var(--line);
  text-decoration: none; padding: 18px 18px 16px;
}
.news-card time { color: var(--ochre); font-size: .8rem; letter-spacing: .04em; }
.news-card h3 {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.15rem; margin: 8px 0 8px; font-weight: 600;
}
.news-card p { margin: 0; color: var(--muted); font-size: .92rem; }

.page-main {
  padding: 40px 0 72px;
  width: min(820px, calc(100% - 40px));
  margin-inline: auto;
}
.page-main.wide { width: min(var(--max), calc(100% - 40px)); }
.crumbs { font-size: .82rem; color: var(--muted); margin: 0 0 16px; }
.crumbs a { text-decoration: none; }
.page-main h1 {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.9rem, 3.5vw, 2.7rem); font-weight: 600;
  margin: 0 0 20px; line-height: 1.15;
}
.entry { font-size: 1.05rem; }
.entry [style] { color: inherit !important; }
.entry a { color: var(--ochre) !important; }
.entry p, .entry li { margin: 0 0 1em; }
.entry h2, .entry h3 {
  font-family: "Newsreader", Georgia, serif;
  margin: 1.3em 0 .45em;
}
.entry img { margin: 1em 0; }
.entry::after { content: ""; display: block; clear: both; }
.meta { color: var(--muted); font-size: .88rem; margin: 0 0 18px; }

.issue-hero {
  display: grid; grid-template-columns: 220px 1fr; gap: 28px;
  margin: 0 0 28px; align-items: start;
}
.issue-hero img { width: 100%; border: 1px solid var(--line); }

.site-footer {
  background: var(--soil); color: #ddcfc0;
  padding: 36px 0 24px; font-size: .92rem;
}
.foot {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  border-bottom: 1px solid #4a372a; padding-bottom: 22px; margin-bottom: 16px;
}
.foot strong {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.25rem; color: #f6efe6; display: block; margin-bottom: 6px;
}
.foot a { color: var(--ochre-2); text-decoration: none; }
.copy { color: #9a8776; font-size: .8rem; }

.pager { display: flex; gap: 16px; margin-top: 32px; }
.pager a { color: var(--ochre); }

@media (max-width: 980px) {
  .hero-grid, .issue-hero { grid-template-columns: 160px 1fr; }
  .issue-grid { grid-template-columns: repeat(3, 1fr); }
  .news-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .search-mini input { width: 88px; font-size: .9rem; }
  .brand-logo { height: 44px; }
  .nav-main { display: none; }
  body.nav-open .nav-main { display: block; }
  .nav-main ul { flex-direction: column; flex-wrap: wrap; }
  .nav-main .sub-menu { position: static; display: flex; background: transparent; padding-left: 12px; }
  .hero-grid, .issue-hero, .issue-grid, .news-grid { grid-template-columns: 1fr; }
  .hero .cover { max-width: 220px; }
  .brand-text { display: none; }
  .section { padding: 40px 0; }
}
