/* ─── Tokens ──────────────────────────────────────────────── */
:root {
  --ink:        #1a1714;
  --ink-light:  #5a5550;
  --bg:         #F7F4EF;
  --bg-alt:     #EFEBE3;
  --border:     #ddd8cf;
  --accent:     #8B5E3C;
  --accent-dark:#7a4f30;
  --gap:        clamp(1rem, 4vw, 2rem);
  --max-w:      1120px;
  --prose-w:    680px;
}

/* ─── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: 'Almarai', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { display: block; max-width: 100%; border-radius: 4px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ─── Typography ──────────────────────────────────────────── */
h1, h2, h3 { font-family: 'Playfair Display', serif; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
em { font-style: italic; }

/* ─── Layout ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gap);
}
.section { padding-block: clamp(3rem, 6vw, 5rem); }
.bg-alt { background: var(--bg-alt); }

/* ─── Nav ─────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 0.9rem;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-right: auto;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-logo-img {
  width: 30px;
  height: 30px;
  border-radius: 0;
}
.nav-links {
  display: flex;
  gap: 1.75rem;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--ink); }

@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 0.6rem var(--gap); }
}

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--ink); color: var(--bg); text-decoration: none; }
.btn-fill { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-fill:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-img-wrap {
  position: absolute;
  inset: 0;
}
.hero-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 60%;
  border-radius: 0;
}
.hero-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20,18,15,.45);
}
.hero-text {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  padding: clamp(3rem, 8vw, 7rem) var(--gap);
  color: #F7F4EF;
}
.hero-text h1 { color: #F7F4EF; }
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.hero-text .btn { border-color: rgba(247,244,239,.6); color: #F7F4EF; }
.hero-text .btn:hover { background: #F7F4EF; color: var(--ink); }

/* ─── Issue block ─────────────────────────────────────────── */
.issue-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.issue-block img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.issue-meta { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-light); margin-bottom: 0.5rem; }
.post-byline { font-size: 0.85rem; color: var(--ink-light); margin-top: 0.25rem; margin-bottom: 2rem; }
.issue-text h2 { margin-bottom: 1rem; }
.issue-text p { margin-bottom: 1.5rem; color: var(--ink-light); }

@media (min-width: 701px) {
  .issue-block-reverse { direction: rtl; }
  .issue-block-reverse > * { direction: ltr; }
}
@media (max-width: 700px) {
  .issue-block { grid-template-columns: 1fr; }
}

/* ─── Pull quote ──────────────────────────────────────────── */
.pull-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  line-height: 1.5;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  border: none;
  padding: 0;
}
cite { display: block; margin-top: 1rem; font-size: 0.85rem; color: var(--ink-light); font-style: normal; text-align: center; }

/* ─── Cards ───────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.card {
  border: 1px solid var(--border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--accent); text-decoration: none; }
.card p { color: var(--ink-light); font-size: 0.9rem; flex: 1; }
.card-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 500;
}

/* ─── Prose pages ─────────────────────────────────────────── */
.prose {
  max-width: var(--prose-w);
}
.prose h1 { margin-bottom: 1.5rem; }
.prose h2 { margin-top: 2.5rem; margin-bottom: 0.75rem; }
.prose h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; }
.prose p { margin-bottom: 1rem; color: var(--ink-light); }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose ul li { margin-bottom: 0.25rem; color: var(--ink-light); }
.prose ol { list-style: decimal; padding-left: 0; margin-bottom: 1rem; }
.prose ol li { margin-bottom: 0.25rem; color: var(--ink-light); font-family: 'Almarai', sans-serif; list-style-position: inside; }
.prose hr { border: none; border-top: 1px solid var(--border); margin-block: 2rem; }
.post-hero-img { margin-bottom: 1.5rem; }

/* ─── Post navigation ─────────────────────────────────────── */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.post-nav-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-width: 45%;
}
.post-nav-next { text-align: right; margin-left: auto; }
.post-nav-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-light);
}
.post-nav-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.3;
}
.post-nav-title:hover { color: var(--accent); text-decoration: none; }

/* ─── Issue list (archive) ────────────────────────────────── */
.issue-list {
  list-style: none;
  border-top: 1px solid var(--border);
}
.issue-list li {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--border);
}
.issue-list .issue-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-light);
  white-space: nowrap;
  min-width: 160px;
}
.issue-list .issue-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  flex: 1;
}
.issue-list .issue-link {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  color: var(--accent);
}
.issue-list .issue-link:hover { text-decoration: underline; }
.card-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.issue-link {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.3rem 0.7rem;
  transition: background 0.15s, color 0.15s;
}
.issue-link:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* ─── Homepage CTA footer ─────────────────────────────────── */
.cta-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-instagram {
  font-size: 0.9rem;
  color: var(--ink-light);
}
.cta-instagram:hover { color: var(--accent); text-decoration: none; }

/* ─── Section heading ─────────────────────────────────────── */
.section-heading { margin-bottom: 1.5rem; }
.text-muted { color: var(--ink-light); margin-bottom: 2rem; }

/* ─── Contact form ────────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 2rem;
  max-width: 520px;
}
.contact-form label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; margin-top: 0.75rem; }
.contact-form input,
.contact-form textarea {
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 0.6rem 0.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--accent); }
.contact-form button { margin-top: 1rem; align-self: flex-start; cursor: pointer; }

/* ─── Footer ──────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2rem;
  margin-top: 4rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-links a { font-size: 0.85rem; color: var(--ink-light); }
.footer-links a:hover { color: var(--accent); text-decoration: none; }
.footer-copy {
  width: 100%;
  font-size: 0.78rem;
  color: var(--ink-light);
  margin-top: 0.5rem;
}
