/* Anakia - Journal Pessoal | Новый уникальный дизайн 2026 | Misty Sage & Warm Neutral - полностью новая палитра */
:root {
  --bg: #F7F4ED;
  --text: #1E2524;
  --accent: #4B6F6B;
  --sage: #6B8E7A;
  --sand: #E6DFD2;
  --white: #FCFAF4;
  --light-text: #5A6563;
  --border: #D9D2C6;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(30, 37, 36, 0.07);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.72;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.28;
  color: var(--text);
}

h1 { font-size: 3.35rem; letter-spacing: -0.03em; }
h2 { font-size: 2.05rem; }
h3 { font-size: 1.5rem; }

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

a:hover {
  color: var(--sage);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(247, 244, 237, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 18px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: Georgia, serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.045em;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 34px;
  align-items: center;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  padding: 6px 0;
  position: relative;
}

.nav a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav a:hover:after {
  width: 100%;
}

.nav a.active {
  color: var(--accent);
  font-weight: 600;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--text);
  transition: 0.3s;
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav.open {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
}

/* Hero */
.hero {
  padding: 120px 0 100px;
  background: linear-gradient(180deg, #F7F4ED 0%, #F0EBE0 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 55%;
  height: 130%;
  background: radial-gradient(circle, rgba(75, 111, 107, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.9rem;
  margin-bottom: 26px;
  line-height: 1.12;
}

.hero p {
  font-size: 1.22rem;
  color: var(--light-text);
  max-width: 580px;
  margin-bottom: 42px;
}

.cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 34px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 5px 16px rgba(75, 111, 107, 0.28);
}

.btn-primary:hover {
  background: #3E5E5A;
  transform: translateY(-2px);
  box-shadow: 0 9px 22px rgba(75, 111, 107, 0.32);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--text);
  padding: 15px 30px;
}

.btn-secondary:hover {
  background: var(--text);
  color: white;
  border-color: var(--text);
}

/* Section titles */
.section-title {
  font-size: 1.32rem;
  margin-bottom: 34px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--sage);
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--sand), transparent);
}

/* Article cards */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-bottom: 60px;
}

.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.article-card.featured {
  grid-column: span 1;
  background: linear-gradient(150deg, #FCFAF4, #F5F0E6);
  border-color: var(--accent);
  padding: 24px 22px;
}

@media (min-width: 900px) {
  .articles-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
  .article-card.featured {
    grid-column: span 2;
    grid-row: span 1;
  }
}

.article-card h3 {
  font-size: 1.38rem;
  margin-bottom: 16px;
  line-height: 1.32;
}

.article-card p {
  color: var(--light-text);
  font-size: 0.97rem;
  flex-grow: 1;
  margin-bottom: 26px;
}

.article-meta {
  font-size: 0.85rem;
  color: var(--sage);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Content pages */
.content-page {
  padding: 60px 0 100px;
}

.content-page h1 {
  font-size: 2.85rem;
  margin-bottom: 14px;
}

.content-page .lead {
  font-size: 1.22rem;
  color: var(--light-text);
  max-width: 700px;
  margin-bottom: 50px;
}

.content-page p, .content-page li {
  max-width: 720px;
}

.content-page h2 {
  margin-top: 58px;
  margin-bottom: 22px;
  color: var(--sage);
}

.content-page h3 {
  margin-top: 38px;
  margin-bottom: 16px;
}

.content-page ul, .content-page ol {
  padding-left: 26px;
  margin: 22px 0;
}

.content-page li {
  margin-bottom: 11px;
}

/* Author layout */
.author-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: start;
}

@media (max-width: 900px) {
  .author-layout {
    grid-template-columns: 1fr;
  }
}

.author-photo-placeholder {
  background: linear-gradient(135deg, var(--sand), #EDE6DA);
  border-radius: var(--radius);
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6.2rem;
  color: var(--sage);
  border: 8px solid var(--white);
  box-shadow: var(--shadow);
  position: relative;
}

.author-photo-placeholder::after {
  content: 'Glen';
  position: absolute;
  bottom: 26px;
  right: 26px;
  font-family: Georgia, serif;
  font-size: 1.1rem;
  background: var(--white);
  padding: 5px 20px;
  border-radius: 9999px;
  color: var(--text);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Contact form */
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 50px;
  max-width: 620px;
}

.form-group {
  margin-bottom: 26px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 9px;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 19px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(75, 111, 107, 0.1);
}

.form-group textarea {
  min-height: 165px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--light-text);
  margin-top: 9px;
}

/* Footer */
.site-footer {
  background: #1E2524;
  color: #E6DFD2;
  padding: 72px 0 42px;
  font-size: 0.95rem;
}

.site-footer a {
  color: #E6DFD2;
}

.site-footer a:hover {
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 62px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 20px;
  font-family: Georgia, serif;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 11px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Thank you */
.thank-you {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.thank-you-content h1 {
  font-size: 2.65rem;
  margin-bottom: 18px;
}

.thank-you-content p {
  max-width: 470px;
  margin: 0 auto 34px;
  color: var(--light-text);
}

/* Misc */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--sand), transparent);
  margin: 62px 0;
}

.meta {
  font-size: 0.85rem;
  color: var(--sage);
}

blockquote {
  border-left: 5px solid var(--accent);
  padding-left: 30px;
  font-style: italic;
  color: var(--light-text);
  margin: 34px 0;
}

.highlight-box {
  background: var(--white);
  border-left: 5px solid var(--sage);
  padding: 26px 30px;
  margin: 34px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
