/* =================================================================
   Тиха — Minimal Design Blog Template
   Style: Scandinavian minimalism · soft pastel pink · serif typography
   ================================================================= */

:root {
  --bg: #FDFCFC;
  --bg-soft: #F8F4F2;
  --pink-soft: #F4E0DC;
  --pink-medium: #E8C5BE;
  --pink-deep: #D4A29A;
  --text: #2B2622;
  --text-muted: #6B6258;
  --text-soft: #9A8F84;
  --line: #EDE5E0;
  --shadow-soft: 0 4px 24px rgba(43, 38, 34, 0.04);
  --shadow-card: 0 12px 40px rgba(43, 38, 34, 0.06);
  --shadow-hover: 0 24px 60px rgba(43, 38, 34, 0.10);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.serif {
  font-family: 'Cormorant Garamond', serif;
}

/* ============ HEADER ============ */
header {
  position: sticky;
  top: 0;
  background: rgba(253, 252, 252, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
  padding: 22px 0;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background: var(--pink-deep);
  border-radius: 50%;
  display: inline-block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
}

nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
  position: relative;
}

nav a:hover {
  color: var(--text);
}

nav a.active {
  color: var(--text);
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--pink-deep);
}

.header-cta {
  background: var(--pink-soft);
  color: var(--text);
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 13px;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.header-cta:hover {
  background: var(--pink-medium);
  transform: translateY(-1px);
}

/* ============ HERO ============ */
.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 48px 60px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-tag {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pink-deep);
  font-weight: 500;
}

.hero-divider {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.hero-date {
  font-size: 12px;
  color: var(--text-soft);
  letter-spacing: 0.5px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-card);
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.hero-image-wrap:hover img {
  transform: scale(1.03);
}

.hero-text h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 62px;
  line-height: 1.05;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: -0.5px;
}

.hero-text h1 em {
  font-style: italic;
  color: var(--pink-deep);
}

.hero-text .lead {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 36px;
  font-weight: 300;
}

.hero-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.hero-author-info .name {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.hero-author-info .role {
  font-size: 12px;
  color: var(--text-soft);
  letter-spacing: 0.3px;
}

.hero-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--text);
  color: var(--bg);
  padding: 16px 32px;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 100px;
  transition: all 0.3s ease;
}

.hero-read-btn:hover {
  background: var(--pink-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(212, 162, 154, 0.35);
}

.hero-read-btn .arrow {
  transition: transform 0.3s ease;
}

.hero-read-btn:hover .arrow {
  transform: translateX(4px);
}

/* ============ SECTION TITLE ============ */
.section-head {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 48px 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.section-head h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.3px;
}

.section-head h2 em {
  font-style: italic;
  color: var(--pink-deep);
}

.section-head .view-all {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--text-muted);
  padding-bottom: 4px;
  transition: all 0.3s ease;
}

.section-head .view-all:hover {
  color: var(--pink-deep);
  border-color: var(--pink-deep);
}

/* ============ FEATURED GRID ============ */
.featured-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px 80px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.card {
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card-image {
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-soft);
}

.card:first-child .card-image {
  aspect-ratio: 4/3;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-body {
  padding: 28px 4px 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card:first-child .card-body {
  padding: 36px 8px 8px;
}

.card-category {
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--pink-deep);
  margin-bottom: 14px;
  font-weight: 500;
}

.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 14px;
  font-weight: 400;
  letter-spacing: -0.2px;
}

.card:first-child .card-title {
  font-size: 34px;
}

.card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-soft);
  letter-spacing: 0.3px;
}

.card-meta .dot {
  width: 3px;
  height: 3px;
  background: var(--text-soft);
  border-radius: 50%;
}

/* ============ EDITORIAL SPLIT ============ */
.editorial {
  background: var(--bg-soft);
  padding: 100px 0;
  margin: 60px 0;
}

.editorial-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.editorial-image {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: var(--shadow-card);
}

.editorial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  background: var(--bg);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.editorial-text .eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pink-deep);
  margin-bottom: 24px;
  font-weight: 500;
}

.editorial-text h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  line-height: 1.08;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: -0.5px;
}

.editorial-text h3 em {
  font-style: italic;
  color: var(--pink-deep);
}

.editorial-text p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.editorial-quote {
  border-left: 2px solid var(--pink-deep);
  padding-left: 24px;
  margin: 32px 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
}

.editorial-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--text);
  padding-bottom: 4px;
  transition: all 0.3s ease;
}

.editorial-link:hover {
  color: var(--pink-deep);
  border-color: var(--pink-deep);
}

/* ============ ARTICLE GRID ============ */
.article-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 48px 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
}

.article-card {
  cursor: pointer;
  transition: transform 0.5s ease;
}

.article-card:hover {
  transform: translateY(-4px);
}

.article-card .card-image {
  aspect-ratio: 5/6;
  box-shadow: var(--shadow-soft);
  border-radius: 4px;
}

.article-card .card-body {
  padding: 24px 0;
}

.article-card .card-title {
  font-size: 24px;
}

/* ============ NEWSLETTER ============ */
.newsletter {
  max-width: 1280px;
  margin: 0 auto 100px;
  padding: 80px 48px;
  background: linear-gradient(135deg, #F8F4F2 0%, #F4E0DC 100%);
  border-radius: 6px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter::before,
.newsletter::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.4;
}

.newsletter::before {
  width: 300px;
  height: 300px;
  background: var(--pink-soft);
  top: -150px;
  left: -100px;
}

.newsletter::after {
  width: 250px;
  height: 250px;
  background: var(--pink-medium);
  bottom: -120px;
  right: -80px;
  opacity: 0.3;
}

.newsletter-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
}

.newsletter .eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pink-deep);
  margin-bottom: 20px;
  font-weight: 500;
}

.newsletter h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 18px;
  letter-spacing: -0.3px;
  line-height: 1.1;
}

.newsletter h3 em {
  font-style: italic;
  color: var(--pink-deep);
}

.newsletter p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin: 0 auto;
  background: var(--bg);
  padding: 6px;
  border-radius: 100px;
  box-shadow: var(--shadow-soft);
}

.newsletter-form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 22px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text);
  outline: none;
}

.newsletter-form input::placeholder {
  color: var(--text-soft);
}

.newsletter-form button {
  background: var(--text);
  color: var(--bg);
  border: none;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background: var(--pink-deep);
}

.newsletter-note {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 20px;
}

/* ============ FOOTER ============ */
footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
  background: var(--bg);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand .logo {
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 20px;
  font-weight: 500;
}

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

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

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--pink-deep);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-soft);
  letter-spacing: 0.3px;
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social a {
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: var(--pink-deep);
}

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content > * {
  animation: fadeUp 0.8s ease backwards;
}

.hero-image-wrap { animation-delay: 0.1s; }
.hero-text h1 { animation-delay: 0.2s; }
.hero-text .lead { animation-delay: 0.3s; }
.hero-author { animation-delay: 0.4s; }
.hero-read-btn { animation-delay: 0.5s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-text h1 { font-size: 48px; }
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .editorial-inner { grid-template-columns: 1fr; gap: 48px; }
  .article-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header-inner { padding: 0 24px; }
  nav { display: none; }
  .hero { padding: 48px 24px; }
  .hero-text h1 { font-size: 38px; }
  .section-head { padding: 48px 24px 32px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .section-head h2 { font-size: 32px; }
  .featured-grid { grid-template-columns: 1fr; padding: 0 24px 48px; }
  .article-grid { grid-template-columns: 1fr; padding: 24px; }
  .editorial { padding: 60px 0; }
  .editorial-inner { padding: 0 24px; }
  .editorial-text h3 { font-size: 36px; }
  .newsletter { margin: 0 24px 60px; padding: 60px 24px; }
  .newsletter h3 { font-size: 32px; }
  .newsletter-form { flex-direction: column; background: transparent; padding: 0; border-radius: 0; box-shadow: none; }
  .newsletter-form input { background: var(--bg); border-radius: 100px; box-shadow: var(--shadow-soft); }
  .footer-inner { padding: 0 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
