/* 
  Ergan Whitehat - Unique Editorial Lifestyle Journal
  Custom modern CSS for Dau Phu - ergan.site
  Fully self-contained, responsive, no external deps except optional Tailwind if needed but pure here
*/

:root {
  --bg: #FAF7F2;
  --bg-alt: #F0EBE3;
  --text: #2A2520;
  --text-light: #5C5248;
  --accent: #A65D3B;
  --accent-light: #C68A6B;
  --secondary: #5E6E4E;
  --secondary-light: #7A8A68;
  --border: #D4C9B8;
  --card: #FFFFFF;
  --shadow: 0 10px 30px -15px rgba(42, 37, 32, 0.12);
  --radius: 20px;
  --radius-sm: 12px;
  --max-content: 780px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

h1 {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.45rem;
  margin-bottom: 0.85rem;
  color: var(--accent);
}

p {
  margin-bottom: 1.35rem;
}

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

a:hover {
  color: var(--accent-light);
}

/* Header - Unique elegant centered with subtle border */
header {
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1.25rem 0;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

nav ul {
  display: flex;
  gap: 2.25rem;
  list-style: none;
}

nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-light);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

nav a:hover,
nav a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* Hero - Bold asymmetric with decorative elements */
.hero {
  padding: 6rem 2rem 5rem;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.hero-content h1 {
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 42ch;
}

.hero-visual {
  position: relative;
  height: 420px;
  background: linear-gradient(145deg, #F0EBE3 0%, #EDE4D5 100%);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.hero-visual::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 15%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle at 40% 30%, rgba(166, 93, 59, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-visual::after {
  content: '✧';
  position: absolute;
  top: 25%;
  right: 20%;
  font-size: 8rem;
  color: rgba(166, 93, 59, 0.15);
  font-family: Georgia, serif;
  line-height: 1;
}

/* Buttons - Unique pill with thick border */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid var(--accent);
  border-radius: 9999px;
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.btn:hover {
  background: var(--accent);
  color: #FAF7F2;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px rgba(166, 93, 59, 0.4);
}

.btn-secondary {
  border-color: var(--secondary);
  color: var(--secondary);
}

.btn-secondary:hover {
  background: var(--secondary);
  color: #FAF7F2;
  box-shadow: 0 10px 20px -10px rgba(94, 110, 78, 0.35);
}

/* Section styling */
.section {
  padding: 5rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 1.25rem auto 0;
}

/* Unique card grid - asymmetric editorial cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

@media (min-width: 900px) {
  .cards-grid.featured {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.entry-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.entry-card.featured {
  grid-column: span 1;
}

@media (min-width: 900px) {
  .entry-card.featured {
    grid-column: span 2;
  }
}

.entry-card .meta {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.entry-card .meta::before {
  content: '—';
}

.entry-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.entry-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.entry-card .read-more {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
}

.entry-card .read-more::after {
  content: '→';
  transition: transform 0.2s ease;
}

.entry-card:hover .read-more::after {
  transform: translateX(4px);
}

/* Article page unique prose styling */
.article-header {
  padding: 4rem 2rem 3rem;
  max-width: var(--max-content);
  margin: 0 auto;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.article-header .date {
  font-size: 0.85rem;
  color: var(--text-light);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.article-header h1 {
  margin: 1rem 0 1.5rem;
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
}

.article-body {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.article-body h2 {
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.article-body blockquote {
  margin: 2.5rem 0;
  padding: 2rem 2.5rem;
  background: var(--bg-alt);
  border-left: 5px solid var(--accent);
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-body ul, .article-body ol {
  margin: 1.5rem 0 2rem 1.5rem;
}

.article-body li {
  margin-bottom: 0.6rem;
}

/* Form styling - clean editorial */
.form-container {
  max-width: 620px;
  margin: 0 auto;
}

form {
  background: var(--card);
  padding: 3rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 1.65rem;
}

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

input, textarea, select {
  width: 100%;
  padding: 0.95rem 1.15rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(166, 93, 59, 0.1);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 1.5rem;
}

/* Footer - Unique centered with legal links */
footer {
  background: var(--bg-alt);
  padding: 4rem 2rem 2.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.footer-address {
  font-family: Georgia, serif;
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  margin-bottom: 2rem;
}

.footer-links a {
  color: var(--text-light);
  font-size: 0.85rem;
}

.footer-disclaimer {
  max-width: 620px;
  margin: 0 auto 1.5rem;
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.6;
}

.copyright {
  font-size: 0.75rem;
  color: var(--text-light);
}

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

.thank-you-content {
  max-width: 520px;
}

.thank-you-content h1 {
  color: var(--accent);
  margin-bottom: 1rem;
}

/* Legal pages */
.legal-page {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 4rem 2rem;
}

.legal-page h1 {
  margin-bottom: 2rem;
}

.legal-page h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-page ul {
  margin-left: 1.25rem;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  nav ul {
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero {
    padding: 4rem 1.5rem 3rem;
  }
  
  .section {
    padding: 4rem 1.5rem;
  }
  
  form {
    padding: 2rem 1.5rem;
  }
}

/* Subtle decorative elements */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: 3rem 0;
}

/* Unique author bio layout */
.author-bio {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

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

.author-quote {
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-style: italic;
  color: var(--accent);
  border-left: 4px solid var(--accent);
  padding-left: 1.75rem;
}