/* ============================================
   ESTURI — Modern Lifestyle Theme
   ============================================ */

:root {
  --bg: #faf7f2;
  --bg-alt: #f1ece3;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #55524c;
  --accent: #e85d3f;
  --accent-dark: #c94a2f;
  --accent-soft: #fdeee9;
  --gold: #d9a441;
  --line: #e5ded2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(26, 26, 26, 0.06);
  --shadow-lg: 0 12px 40px rgba(26, 26, 26, 0.1);
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --container: 1200px;
  --container-narrow: 720px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-dark);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* ============ HEADER ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  font-size: 1.1rem;
  transform: rotate(-6deg);
  transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
  transform: rotate(6deg) scale(1.05);
}

.brand-text {
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a.active {
  color: var(--ink);
}

/* ============ HERO ============ */

.hero {
  padding: 96px 0 80px;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(217, 164, 65, 0.12), transparent),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(232, 93, 63, 0.1), transparent);
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 36px;
}

/* ============ BUTTONS ============ */

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 93, 63, 0.3);
}

.btn-light {
  background: #fff;
  color: var(--ink);
}

.btn-light:hover {
  background: var(--bg-alt);
  transform: translateY(-2px);
}

/* ============ SECTIONS ============ */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
}

.section-head h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  letter-spacing: -0.01em;
}

.section-link {
  font-weight: 600;
  font-size: 0.95rem;
}

.featured {
  padding: 40px 0 80px;
}

/* ============ POST CARDS ============ */

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.post-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.post-card-body {
  padding: 28px;
}

.post-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.post-cat {
  display: inline-block;
  padding: 4px 14px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.post-cat:hover {
  background: var(--accent);
  color: #fff;
}

.post-card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.3;
  margin-bottom: 12px;
}

.post-card-title a {
  color: var(--ink);
}

.post-card-title a:hover {
  color: var(--accent);
}

.post-card-excerpt {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.read-time::before {
  content: "•";
  margin-right: 16px;
  color: var(--gold);
}

/* ============ NEWSLETTER ============ */

.newsletter {
  padding: 80px 0;
  background: var(--ink);
  color: #fff;
}

.newsletter-inner {
  text-align: center;
  max-width: 560px;
}

.newsletter h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.newsletter p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 28px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  max-width: 320px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
  border-color: var(--accent);
}

/* ============ PAGE HERO ============ */

.page-hero {
  padding: 72px 0 48px;
  background:
    radial-gradient(ellipse 50% 60% at 90% 10%, rgba(217, 164, 65, 0.1), transparent);
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.page-desc {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 600px;
}

/* ============ POSTS LIST ============ */

.posts-list {
  padding: 0 0 80px;
}

/* ============ SINGLE POST ============ */

.post-article {
  padding: 64px 0 48px;
}

.post-header {
  text-align: center;
  margin-bottom: 48px;
}

.post-header .post-cats {
  justify-content: center;
}

.post-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.post-deck {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 600px;
  margin: 0 auto 24px;
}

.post-meta-lg {
  justify-content: center;
  font-size: 0.9rem;
}

.post-author {
  font-weight: 600;
  color: var(--ink);
}

.post-content {
  font-size: 1.08rem;
  line-height: 1.85;
}

.post-content h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin: 48px 0 20px;
  letter-spacing: -0.01em;
}

.post-content h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin: 36px 0 16px;
}

.post-content p {
  margin-bottom: 24px;
}

.post-content ul,
.post-content ol {
  margin: 0 0 24px 24px;
}

.post-content li {
  margin-bottom: 10px;
}

.post-content strong {
  font-weight: 600;
}

.post-content blockquote {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 32px 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
}

.post-content blockquote p {
  margin-bottom: 0;
}

.post-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

.post-footer {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.share {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.share a {
  font-weight: 600;
}

/* ============ NEXT POST ============ */

.next-post {
  background: var(--ink);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}

.next-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.next-post h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
}

.next-post h2 a {
  color: #fff;
}

.next-post h2 a:hover {
  color: var(--gold);
}

/* ============ CATEGORIES ============ */

.categories-grid {
  padding: 0 0 80px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.cat-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  color: var(--ink);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
  color: var(--ink);
}

.cat-card h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.cat-card p {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* ============ ABOUT ============ */

.about-content {
  padding: 0 0 80px;
}

/* ============ FOOTER ============ */

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding: 64px 24px;
}

.footer-brand .brand-text {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
}

.footer-tagline {
  color: var(--ink-soft);
  margin-top: 16px;
  max-width: 280px;
  font-size: 0.95rem;
}

.footer-links h4 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  color: var(--ink);
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.footer-bottom p {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 768px) {
  .header-inner {
    height: 60px;
  }

  .main-nav {
    gap: 18px;
  }

  .main-nav a {
    font-size: 0.85rem;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 24px;
  }

  .newsletter-form {
    flex-direction: column;
    align-items: center;
  }

  .newsletter-form input {
    max-width: 100%;
    width: 100%;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .share {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .brand-text {
    display: none;
  }

  .main-nav {
    gap: 14px;
  }

  .main-nav a {
    font-size: 0.8rem;
  }
}