/*
Theme Name: afrikaörgüsü
Theme URI: https://afrikaorgusu.example.com
Author: Алексей
Description: Simple, elegant and responsive blog theme with warm earthy tones and refined typography. Comments have been removed for a cleaner look.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: afrikaorgusu
*/

/* CSS custom properties for theme colours and spacing */
:root {
  /* Colours */
  --bg: #f9f6f2;
  --fg: #2d2d2d;
  --muted: #766e6b;
  --border: #e1d9d1;
  --accent: #c56a31;
  --accent-dark: #a95529;
  /* Typography & sizing */
  --maxw: 68ch;
  --radius: 14px;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --font-size: clamp(16px, 1vw + 12px, 19px);
  --h1: clamp(34px, 3vw + 16px, 50px);
  --h2: clamp(28px, 2.5vw + 14px, 40px);
  --h3: clamp(24px, 2vw + 12px, 32px);
}

/* Basic resets */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--fg);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: var(--font-size);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Containers */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding-left: var(--space);
  padding-right: var(--space);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  line-height: 1.25;
  color: var(--fg);
}

h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }

p {
  margin-top: 0;
  margin-bottom: var(--space);
}

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: var(--space);
  padding-bottom: var(--space);
}

.site-logo img {
  max-height: 70px;
}

.site-title a {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--fg);
}

/* Navigation */
.site-nav {
  margin-left: auto;
}

.primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space);
}

.primary-menu a {
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius);
  color: var(--fg);
  transition: background-color 0.2s ease-in-out;
}

.primary-menu a:hover, .primary-menu a:focus {
  background-color: var(--border);
}

/* Mobile navigation toggle */
.nav-toggle {
  display: none;
  cursor: pointer;
  padding: var(--space-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--bg);
}

/* Main content area */
.site-main {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

article {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.entry-title a {
  color: var(--fg);
}

.entry-summary, .entry-content {
  max-width: var(--maxw);
}

.read-more {
  display: inline-block;
  margin-top: var(--space-sm);
  color: var(--accent);
  font-weight: 500;
}

/* Footer */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: var(--space-lg) 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Forms */
input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

input, textarea, select {
  padding: var(--space-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  margin-bottom: var(--space);
  background-color: #fff;
  color: var(--fg);
}

button, input[type="submit"] {
  background-color: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: var(--space-sm) var(--space);
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

button:hover, input[type="submit"]:hover {
  background-color: var(--accent-dark);
}

/* Responsive */
@media (max-width: 768px) {
  .primary-menu {
    flex-direction: column;
    gap: 0;
    display: none;
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 99;
  }

  .primary-menu.open {
    display: block;
  }

  .nav-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .site-header .container {
    flex-wrap: nowrap;
  }
}
