/* DigiVibe design system
   Surface: primarily Decide/Learn (home, about) with an Explore surface for the blog.
   One accent (deep teal), one highlight (warm amber) used sparingly for underlines/tags only. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --ink: #191b1f;
  --ink-soft: #454952;
  --muted: #6b7078;
  --bg: #faf8f5;
  --surface: #ffffff;
  --border: #e6e2da;
  --teal: #0d6b64;
  --teal-dark: #094f4a;
  --amber: #c97b2e;
  --radius: 6px;
  --content-width: 720px;
  --wide-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; color: var(--ink-soft); }

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--teal-dark); }

img { max-width: 100%; display: block; }

.wrap { max-width: var(--wide-width); margin: 0 auto; padding: 0 24px; }
.prose { max-width: var(--content-width); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--teal);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 16px; height: 16px; }
.brand-name {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.15rem;
}
nav.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0; padding: 0;
}
nav.primary-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
nav.primary-nav a:hover,
nav.primary-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--teal);
}
.nav-toggle { display: none; }

@media (max-width: 720px) {
  nav.primary-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
  }
  nav.primary-nav.open { display: block; }
  nav.primary-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 20px; }
  nav.primary-nav li { border-top: 1px solid var(--border); }
  nav.primary-nav a { display: block; padding: 12px 0; }
  .nav-toggle {
    display: block;
    background: none; border: none; cursor: pointer;
    font-size: 1.4rem; color: var(--ink); line-height: 1;
    padding: 4px 8px;
  }
}

/* Hero (home page only — this is the one place a hero belongs) */
.hero {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.hero h1 { margin-bottom: 0.4em; }
.hero-sub {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero-media img {
  border-radius: 10px;
  border: 1px solid var(--border);
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-ghost { border-color: var(--border); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-soft); color: var(--ink); }

/* Editorial asymmetric section — replaces the generic equal-weight 3-card grid */
.editorial {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.editorial .wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
}
.editorial-lede h2 { margin-bottom: 0.4em; }
.editorial-lede p { color: var(--muted); }
.editorial-list { display: flex; flex-direction: column; gap: 28px; }
.editorial-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
}
.editorial-item .num {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  color: var(--teal);
}
.editorial-item h3 { margin-bottom: 4px; }
.editorial-item p { margin-bottom: 0; font-size: 0.97rem; }
@media (max-width: 860px) {
  .editorial .wrap { grid-template-columns: 1fr; gap: 28px; }
}

/* Quote / statement band */
.statement {
  padding: 60px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.statement blockquote {
  max-width: 680px;
  margin: 0 auto;
  font-family: 'Fraunces', serif;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.4;
  color: var(--ink);
  font-weight: 500;
}
.statement cite {
  display: block;
  margin-top: 18px;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Blog list (Explore surface) */
.post-list { padding: 56px 0 72px; }
.post-list h2 { margin-bottom: 32px; }
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.post-card { text-decoration: none; color: inherit; display: block; }
.post-card img {
  border-radius: 8px;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin-bottom: 14px;
  border: 1px solid var(--border);
}
.post-card .cat {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.post-card h3 { margin: 6px 0 4px; font-size: 1.15rem; }
.post-card time { font-size: 0.85rem; color: var(--muted); }
.post-card:hover h3 { text-decoration: underline; }
@media (max-width: 720px) {
  .post-grid { grid-template-columns: 1fr; }
}

/* Single post */
.post-header { padding: 56px 0 32px; }
.post-header .cat {
  font-size: 0.8rem; font-weight: 600; color: var(--amber);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.post-header h1 { margin-top: 10px; }
.post-meta { color: var(--muted); font-size: 0.92rem; }
.post-cover {
  margin: 0 0 40px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.post-body { padding-bottom: 72px; }
.post-body h2 { margin-top: 1.6em; }
.post-body ul, .post-body ol { color: var(--ink-soft); padding-left: 1.3em; }
.post-body li { margin-bottom: 0.5em; }

/* Simple pages (about, services, contact) */
.page-header { padding: 56px 0 8px; }
.page-body { padding: 24px 0 72px; }
.page-body h2 { margin-top: 1.6em; }

.contact-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 32px;
  margin-top: 24px;
}
.contact-block a { font-weight: 600; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  background: var(--surface);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.site-footer nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.site-footer nav a:hover { color: var(--ink); }
.footer-note { font-size: 0.85rem; color: var(--muted); }
