@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --bg: #0e0e10;
  --surface: #18181c;
  --surface-hover: #222228;
  --border: #2a2a32;
  --text: #e8e6e1;
  --text-muted: #8a8a94;
  --accent: #c4a265;
  --accent-glow: rgba(196,162,101,0.15);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ============ NAV ============ */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 4rem;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  background: rgba(14,14,16,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
}
.logo span { color: var(--accent); }
nav ul { list-style: none; display: flex; gap: 2.5rem; }
nav li a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s;
}
nav li a:hover, nav li a.active { color: var(--accent); }

/* Hamburger button - hidden on desktop */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 110;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
  border-radius: 2px;
}
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============ HERO ============ */
.hero {
  padding: 6rem 4rem 5rem;
  max-width: 820px;
  animation: fadeUp 1s ease both;
}
.hero .tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: inline-block;
  border: 1px solid var(--accent);
  padding: 0.3rem 1rem;
  border-radius: 2px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 2.5rem;
}
.hero-line { width: 60px; height: 1px; background: var(--accent); }

/* ============ SECTION LABEL ============ */
.section-label {
  padding: 0 4rem;
  margin-top: 4rem;
  margin-bottom: 2rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ============ POSTS GRID ============ */
.posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 0 4rem 5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  animation: fadeUp 0.8s ease both;
}
.card:nth-child(2) { animation-delay: 0.08s; }
.card:nth-child(3) { animation-delay: 0.16s; }
.card:nth-child(4) { animation-delay: 0.24s; }
.card:nth-child(5) { animation-delay: 0.32s; }
.card:nth-child(6) { animation-delay: 0.4s; }
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px var(--accent);
}
.card a.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  filter: brightness(0.8) saturate(0.9);
  transition: filter 0.35s;
}
.card:hover .card-img { filter: brightness(0.95) saturate(1); }

.card-body { padding: 1.5rem; }
.card-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.8rem;
  font-weight: 500;
}
.card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.7rem;
  line-height: 1.35;
}
.card-body p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}
.card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

/* ============ POST PAGE ============ */
.post-header {
  padding: 5rem 4rem 2.5rem;
  max-width: 780px;
  animation: fadeUp 1s ease both;
}
.post-header .card-category { margin-bottom: 1rem; }
.post-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}
.post-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 2rem;
}
.post-feature-image {
  max-width: 900px;
  padding: 0 4rem;
  margin-bottom: 3rem;
}
.post-feature-image img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: block;
}

.post-content {
  max-width: 720px;
  padding: 0 4rem 4rem;
  font-size: 1.05rem;
  line-height: 1.85;
}
.post-content h2, .post-content h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.post-content h2 { font-size: 1.6rem; }
.post-content h3 { font-size: 1.3rem; }
.post-content p { margin-bottom: 1.5rem; color: var(--text); }
.post-content a { color: var(--accent); border-bottom: 1px solid var(--accent); }
.post-content img { max-width: 100%; border-radius: 6px; margin: 2rem 0; display: block; }
.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: var(--text-muted);
  font-style: italic;
}
.post-content ul, .post-content ol { margin: 1rem 0 1.5rem 1.5rem; }
.post-content li { margin-bottom: 0.5rem; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 2rem 4rem 0;
  transition: opacity 0.3s;
}
.back-link:hover { opacity: 0.7; }

/* ============ PAGE CONTENT ============ */
.page-header {
  padding: 5rem 4rem 2rem;
  max-width: 780px;
  animation: fadeUp 1s ease both;
}
.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.page-header .subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}
.page-content {
  max-width: 720px;
  padding: 2rem 4rem 4rem;
  font-size: 1.05rem;
  line-height: 1.85;
  animation: fadeUp 1s ease 0.2s both;
}
.page-content p { margin-bottom: 1.5rem; }
.page-content a { color: var(--accent); border-bottom: 1px solid var(--accent); }
.page-content h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

/* ============ CONTACT FORM ============ */
.contact-form {
  max-width: 520px;
  margin-top: 1rem;
}
.contact-form label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.9rem 1.2rem;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
  -webkit-appearance: none;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--accent); }
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form button {
  margin-top: 1.5rem;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 4px;
  padding: 1rem 2.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.3s;
}
.contact-form button:hover { opacity: 0.85; }

/* ============ NEWSLETTER ============ */
.newsletter {
  text-align: center;
  padding: 5rem 4rem;
  border-top: 1px solid var(--border);
}
.newsletter h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 0.8rem;
}
.newsletter p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 440px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.9rem 1.2rem;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
  -webkit-appearance: none;
}
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form input::placeholder { color: var(--text-muted); }
.newsletter-form button {
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 4px;
  padding: 0.9rem 1.8rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.3s;
  white-space: nowrap;
}
.newsletter-form button:hover { opacity: 0.85; }

/* ============ FOOTER ============ */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}
footer a { color: var(--text-muted); transition: color 0.3s; }
footer a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 2rem; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ TABLET ============ */
@media (max-width: 1024px) {
  nav { padding: 1.5rem 2.5rem; }
  .hero { padding: 5rem 2.5rem 4rem; }
  .section-label, .posts { padding-left: 2.5rem; padding-right: 2.5rem; }
  .post-header, .post-content, .post-feature-image,
  .page-header, .page-content, .back-link { padding-left: 2.5rem; padding-right: 2.5rem; }
  .newsletter { padding: 4rem 2.5rem; }
  footer { padding: 2rem 2.5rem; }
}

/* ============ MOBILE ============ */
@media (max-width: 768px) {
  .menu-toggle { display: block; }

  nav {
    padding: 1.2rem 1.25rem;
    flex-wrap: wrap;
  }
  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    margin-top: 1.2rem;
  }
  nav ul.open { display: flex; }
  nav li a {
    display: block;
    padding: 0.8rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
  }
  nav li:last-child a { border-bottom: none; }

  .hero { padding: 3.5rem 1.25rem 3rem; }
  .hero .tag { font-size: 0.65rem; padding: 0.25rem 0.75rem; }
  .hero h1 { font-size: 2rem; margin-bottom: 1rem; }
  .hero h1 br { display: none; }
  .hero p { font-size: 1rem; margin-bottom: 1.5rem; }

  .section-label { padding: 0 1.25rem; margin-top: 2.5rem; margin-bottom: 1.5rem; }

  .posts {
    grid-template-columns: 1fr;
    padding: 0 1.25rem 3rem;
    gap: 1.25rem;
  }
  .card-img { height: 180px; }
  .card-body { padding: 1.25rem; }
  .card-body h3 { font-size: 1.15rem; }

  .back-link { padding: 1.5rem 1.25rem 0; }
  .post-header { padding: 2.5rem 1.25rem 1.5rem; }
  .post-header h1 { font-size: 1.6rem; }
  .post-feature-image { padding: 0 1.25rem; margin-bottom: 2rem; }
  .post-content { padding: 0 1.25rem 3rem; font-size: 1rem; line-height: 1.75; }
  .post-content h2 { font-size: 1.35rem; margin-top: 2rem; }

  .page-header { padding: 3rem 1.25rem 1.5rem; }
  .page-header h1 { font-size: 1.8rem; }
  .page-content { padding: 1.5rem 1.25rem 3rem; font-size: 1rem; line-height: 1.75; }

  .contact-form { max-width: 100%; }
  .contact-form button { width: 100%; }

  .newsletter { padding: 3rem 1.25rem; }
  .newsletter h2 { font-size: 1.5rem; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { width: 100%; padding: 1rem; }

  footer { padding: 2rem 1.25rem; flex-direction: column; gap: 1rem; text-align: center; }
}

/* ============ SMALL PHONES ============ */
@media (max-width: 400px) {
  .hero h1 { font-size: 1.7rem; }
  .card-img { height: 160px; }
  .post-header h1 { font-size: 1.4rem; }
}
