/*
Theme Name: Discovering All Things Analytics
Description: Custom theme for discoveringallthingsanalytics.com. Sliced DATA wordmark, Ink/Paper/Signal Teal palette, Archivo Black + Inter type.
Author: Samson Truong
Version: 1.2
Text Domain: data-theme
*/

* { box-sizing: border-box; }
body {
  margin: 0;
  background: #fff;
  color: #111;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: #1F6F6B; text-decoration: none; }
a:hover { color: #154f4c; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 40px; }

/* Header */
.site-header { border-bottom: 1px solid #EDEBE5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding: 18px 40px; flex-wrap: wrap; gap: 12px; }
.site-header a.logo-link { color: #111; }
.main-nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.main-nav a { font: 600 14px 'Inter', sans-serif; color: #111; }
@media (max-width: 480px) { .main-nav ul { gap: 16px; } .main-nav a { font-size: 13px; } }

/* Tag / category pill */
.tag { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 100px; font: 600 11px 'Inter', sans-serif; background: #F5F3EE; color: #111; }
.tag.tag-fabric { background: #1F6F6B; color: #fff; }

/* Post card grid */
.card { border: 1px solid #EDEBE5; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.card .card-thumb { width: 100%; height: 150px; object-fit: cover; background: #F5F3EE; display: block; }
.card .card-body { padding: 20px; }
.card .card-title { font: 700 15.5px/1.4 'Inter', sans-serif; margin-top: 12px; }
.card .card-title a { color: #111; }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .posts-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .posts-grid { grid-template-columns: 1fr; } }

/* Hero */
.hero { background: #111; color: #fff; padding: 96px 0 40px; overflow: hidden; }
.hero .wrap { padding-bottom: 22px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: end; }
.hero-kicker { font: 700 11px 'Inter', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #5fb3af; margin-bottom: 18px; }
.hero h1 { font-family: 'Archivo Black', sans-serif; font-size: 64px; line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 26px; }
.hero h1 .accent { color: #1F6F6B; }
.hero p { font: 400 17px/1.7 'Inter', sans-serif; color: #cfcfcf; max-width: 480px; margin: 0 0 32px; }
.btn-primary { display: inline-flex; background: #fff; color: #111; padding: 15px 26px; border-radius: 8px; font: 700 14px 'Inter', sans-serif; }
.hero-photo img { width: 100%; max-width: 380px; border-radius: 16px; object-fit: cover; aspect-ratio: 1/1; }
.hero-topics { padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; gap: 14px; flex-wrap: wrap; }
.hero-topics .tag { background: rgba(255,255,255,.08); color: #fff; }
@media (max-width: 800px) { .hero-grid { grid-template-columns: 1fr; } .hero h1 { font-size: 44px; } }

/* Sections */
.section { padding: 40px 0 64px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; }
.section-title { font-family: 'Archivo Black', sans-serif; font-size: 26px; }

/* Single post */
.entry-header { padding: 56px 0 32px; border-bottom: 1px solid #EDEBE5; }
.entry-header .tag { margin-bottom: 16px; }
.entry-title { font-family: 'Archivo Black', sans-serif; font-size: 40px; line-height: 1.15; margin: 0 0 14px; }
.entry-meta { font: 500 13px 'Inter', sans-serif; color: #6a6a6a; }
.entry-thumb { margin: 32px 0; border-radius: 12px; overflow: hidden; text-align: center; }
.entry-thumb img { display: inline-block !important; margin: 0 auto !important; max-width: 100% !important; float: none !important; }
.entry-content { max-width: 720px; margin: 0 auto; padding: 40px 24px 72px; font-size: 17px; line-height: 1.8; }
.entry-content h2 { font-family: 'Archivo Black', sans-serif; font-size: 28px; margin: 40px 0 16px; }
.entry-content h3 { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 21px; margin: 32px 0 12px; }
.entry-content p { margin: 0 0 20px; }
.entry-content img { border-radius: 10px; margin: 24px auto; display: block; max-width: 100%; }
.entry-content blockquote { margin: 24px 0; padding: 4px 24px; border-left: 3px solid #1F6F6B; color: #3a3a3a; font-style: italic; }
.entry-content code { background: #F5F3EE; padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.entry-content pre { background: #111; color: #F5F3EE; padding: 20px; border-radius: 10px; overflow-x: auto; }
.entry-content ul, .entry-content ol { padding-left: 24px; margin: 0 0 20px; }
.entry-content a { text-decoration: underline; }

/* Footer */
.site-footer { background: #111; color: #fff; padding: 48px 0; }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.site-footer .copyright { font: 400 13px 'Inter', sans-serif; color: #9a9a9a; }

.archive-header { padding: 56px 0 0; }
.archive-title { font-family: 'Archivo Black', sans-serif; font-size: 34px; margin: 0 0 12px; }

/* Blog search + category filter */
.blog-controls { margin-bottom: 32px; }
.search-wrap { position: relative; max-width: 360px; margin-bottom: 20px; }
.search-wrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); }
.searchbox { width: 100%; padding: 12px 16px 12px 40px; border: 1px solid #EDEBE5; border-radius: 10px; font: 400 14px 'Inter', sans-serif; color: #111; }
.searchbox:focus { outline: 2px solid #1F6F6B; }
.cat-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.cat-filter { background: #F5F3EE; color: #111; border: none; cursor: pointer; }
.cat-filter.is-active { background: #111; color: #fff; }

/* About page */
.about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: center; }
.about-grid > * { min-width: 0; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr !important; } .about-grid img { max-width: 320px; margin: 0 auto; } }
