/* ==========================================================================
   Koen Lee — personal blog
   Light, quiet, editorial. Bootstrap 4 provides the grid + utilities;
   everything below overrides Bootstrap's defaults toward a calmer palette.
   ========================================================================== */

:root {
  --bg: #fbfaf7;
  --bg-alt: #f4f2ec;
  --paper: #ffffff;
  --text: #2a2a28;
  --text-muted: #6f6c64;
  --text-faint: #9a968b;
  --border: #e8e4da;
  --accent: #2f5d5a;
  --accent-dark: #223f3d;
  --accent-tint: #e7efee;

  --tech: #3a6ea5;
  --tech-tint: #eaf1f8;
  --business: #a3762f;
  --business-tint: #f7f0e4;
  --life: #4a7c59;
  --life-tint: #eaf3ec;

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.03rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display-serif {
  font-family: var(--serif);
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

::selection { background: var(--accent-tint); color: var(--accent-dark); }

.container-narrow {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Navbar ---------- */
.site-navbar {
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.95rem;
  margin-right: 0.6rem;
}

.navbar-brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text);
  display: flex;
  align-items: center;
}

.site-navbar .nav-link {
  color: var(--text-muted);
  font-size: 0.94rem;
  font-weight: 500;
  padding-left: 0.9rem;
  padding-right: 0.9rem;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: var(--accent-dark);
}

.btn-quiet {
  border: 1px solid var(--accent);
  color: var(--accent-dark);
  background: transparent;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 4px;
  padding: 0.42rem 1.1rem;
}
.btn-quiet:hover {
  background: var(--accent);
  color: #fff;
}

.btn-accent {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: 4px;
}
.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

/* ---------- Hero ---------- */
.hero {
  padding: 6rem 0 5rem;
}

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-faint);
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.28;
  max-width: 15ch;
}

.hero .lead {
  color: var(--text-muted);
  font-size: 1.12rem;
  max-width: 46ch;
  margin-top: 1.2rem;
}

.hero-avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 600;
  box-shadow: 0 12px 30px -14px rgba(34, 63, 61, 0.45);
}

/* ---------- Section headers ---------- */
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.section-heading h2 {
  font-size: 1.5rem;
  margin: 0;
}

.section-heading .view-all {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.section-heading .view-all:hover { color: var(--accent-dark); }

section { padding: 4rem 0; }
.section-alt { background-color: var(--bg-alt); }

/* ---------- Post cards ---------- */
.post-card {
  display: block;
  height: 100%;
  padding: 1.6rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.post-card:hover {
  text-decoration: none;
  border-color: #d7d1c3;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -22px rgba(42, 42, 40, 0.35);
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.22rem 0.6rem;
  border-radius: 20px;
  margin-bottom: 0.9rem;
}

.tag-tech   { background: var(--tech-tint);     color: var(--tech); }
.tag-business { background: var(--business-tint); color: var(--business); }
.tag-life   { background: var(--life-tint);     color: var(--life); }

.post-card h3 {
  font-size: 1.12rem;
  line-height: 1.4;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.post-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-bottom: 0.9rem;
}

.post-meta {
  font-size: 0.78rem;
  color: var(--text-faint);
}

.featured-post {
  padding: 2.2rem;
}
.featured-post h3 {
  font-size: 1.5rem;
}

/* ---------- Category strip ---------- */
.category-strip .col-strip {
  border-left: 3px solid var(--border);
  padding: 0.2rem 0 0.2rem 1.1rem;
}
.category-strip .col-strip.tech { border-color: var(--tech); }
.category-strip .col-strip.business { border-color: var(--business); }
.category-strip .col-strip.life { border-color: var(--life); }

.category-strip h4 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}
.category-strip p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* ---------- About / values ---------- */
.value-item {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
}
.value-item:last-child { border-bottom: none; }
.value-item h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}
.value-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* ---------- Newsletter inline block ---------- */
.newsletter-inline {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.6rem;
}

.newsletter-inline h2 {
  font-size: 1.6rem;
}

.newsletter-inline .form-control {
  border-radius: 4px;
  border: 1px solid var(--border);
  padding: 0.65rem 0.9rem;
  height: auto;
}
.newsletter-inline .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-top: 0.7rem;
  margin-bottom: 0;
}

/* ---------- Footer (trust-focused) ---------- */
.site-footer {
  background: var(--accent-dark);
  color: #d8e3e0;
  padding: 4rem 0 2rem;
  margin-top: 2rem;
}

.site-footer h5 {
  color: #fff;
  font-family: var(--serif);
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}

.site-footer a {
  color: #c3d3cf;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-about p {
  color: #b7c7c3;
  font-size: 0.92rem;
  max-width: 40ch;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-nav-list li { margin-bottom: 0.55rem; }
.footer-nav-list a { font-size: 0.92rem; }

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}
.trust-badge {
  font-size: 0.76rem;
  color: #c3d3cf;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 0.3rem 0.75rem;
}

.footer-email {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: #fff !important;
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.12);
  margin: 2.4rem 0 1.6rem;
}

.footer-bottom {
  font-size: 0.82rem;
  color: #8fa39e;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
}
.footer-bottom a { color: #a9bab6; }

/* ---------- Subscribe modal ---------- */
#subscribeModal .modal-content {
  border: none;
  border-radius: 10px;
  overflow: hidden;
}
#subscribeModal .modal-body {
  padding: 2.6rem 2.4rem;
}
.modal-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}
#subscribeModal h3 {
  font-size: 1.5rem;
  margin: 0.6rem 0 0.8rem;
}
#subscribeModal p.modal-copy {
  color: var(--text-muted);
  font-size: 0.94rem;
}
#subscribeModal .close {
  position: absolute;
  right: 1.1rem;
  top: 1rem;
  font-size: 1.4rem;
  color: var(--text-faint);
  opacity: 1;
  z-index: 2;
}
.subscribe-success {
  display: none;
}
.subscribe-success.is-visible {
  display: block;
}
.subscribe-form.is-hidden {
  display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
  .hero { padding: 3.4rem 0 2.6rem; text-align: left; }
  .hero h1 { font-size: 2rem; max-width: none; }
  .hero .lead { max-width: none; }
  section { padding: 2.8rem 0; }
  .newsletter-inline { padding: 1.8rem; }
  .featured-post { padding: 1.6rem; }
  .site-footer { text-align: left; }
  .footer-bottom { flex-direction: column; }
}
