/*
Theme Name: The Latent Notes
Theme URI: https://thelatentnotes.com
Author: The Latent Notes
Description: Custom theme for The Latent Notes - AI, tech & finance content brand
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: thelatentnotes
*/

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Fredoka+One&family=Kalam:wght@400;700&display=swap');

:root {
  --cream: #f8f5ef;
  --cream-dark: #ede9e0;
  --navy: #1a2040;
  --blue: #4d7ef7;
  --blue-light: #e8effe;
  --blue-mid: #3a6be0;
  --text-primary: #1a2040;
  --text-secondary: #5a6070;
  --text-muted: #9aa0b0;
  --border: #e2ddd5;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow: 0 2px 12px rgba(26,32,64,0.08);
  --shadow-hover: 0 6px 24px rgba(77,126,247,0.14);
  --font-brand: 'Fredoka One', 'Nunito', cursive;
  --font-body: 'Nunito', sans-serif;
  --font-hand: 'Kalam', cursive;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--text-primary);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a:hover { color: var(--blue-mid); }

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

/* ─── LAYOUT ─── */

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.container--narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── HEADER ─── */

.site-header {
  background: var(--white);
  border-bottom: 1.5px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.site-logo {
  font-family: var(--font-brand);
  font-size: 22px;
  color: var(--navy);
  line-height: 1.1;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

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

.site-logo__sub {
  font-size: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.18s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--blue);
  background: var(--blue-light);
}

.nav-cta {
  background: var(--navy) !important;
  color: var(--white) !important;
  border-radius: var(--radius-md) !important;
  padding: 8px 18px !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  transition: transform 0.15s, background 0.18s !important;
}

.nav-cta:hover {
  background: var(--blue) !important;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

/* ─── HERO ─── */

.hero {
  background: var(--white);
  padding: 80px 24px 64px;
  border-bottom: 1.5px solid var(--border);
}

.hero__inner {
  max-width: 820px;
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero__mascot {
  width: 220px;
  height: auto;
  flex-shrink: 0;
}

.hero__text {
  text-align: left;
}

.hero__title {
  font-family: var(--font-brand);
  font-size: clamp(34px, 5vw, 50px);
  color: var(--navy);
  line-height: 1.12;
  margin-bottom: 16px;
}

.hero__title .blue { color: var(--blue); }

.hero__description {
  font-size: 17px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 24px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .hero__inner {
    flex-direction: column;
    text-align: center;
  }
  .hero__text {
    text-align: center;
  }
  .hero__actions {
    justify-content: center;
  }
}

/* ─── BUTTONS ─── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.18s;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

/* ─── NEWSLETTER STRIP ─── */

.newsletter-strip {
  background: var(--navy);
  padding: 36px 24px;
  text-align: center;
}

.newsletter-strip h2 {
  font-family: var(--font-hand);
  font-size: 30px;
  color: var(--white);
  margin-bottom: 6px;
  transform: rotate(-1deg);
  display: inline-block;
}

.newsletter-strip p {
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  margin-bottom: 20px;
  font-weight: 600;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 240px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  outline: none;
  transition: background 0.18s;
}

.newsletter-form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.45);
}

.newsletter-form input[type="email"]:focus {
  background: rgba(255,255,255,0.2);
}

.newsletter-form button {
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s;
}

.newsletter-form button:hover {
  background: var(--blue-mid);
  transform: translateY(-1px);
}

/* ─── SECTION TITLES ─── */

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-family: var(--font-brand);
  font-size: clamp(26px, 4vw, 38px);
  color: var(--navy);
  margin-bottom: 8px;
}

.section-header h2 .blue { color: var(--blue); }

.section-header p {
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 600;
}

/* ─── CATEGORY PILLS ─── */

.category-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  justify-content: center;
}

.category-pill {
  font-size: 13px;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.category-pill:hover,
.category-pill.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

/* ─── POST GRID ─── */

.posts-section {
  padding: 64px 0;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.post-card:nth-child(3n+1) { transform: rotate(-0.6deg); }
.post-card:nth-child(3n+2) { transform: rotate(0.4deg); }
.post-card:nth-child(3n+3) { transform: rotate(-0.3deg); }

.post-card:hover {
  transform: translateY(-4px) rotate(0deg);
  box-shadow: var(--shadow-hover);
  border-color: rgba(77,126,247,0.3);
}

.post-card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--blue-light);
  position: relative;
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.post-card:hover .post-card__image img {
  transform: scale(1.04);
}

.post-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-light) 0%, rgba(77,126,247,0.1) 100%);
}

.post-card__image-placeholder span {
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--blue);
  opacity: 0.55;
  transform: rotate(-4deg);
}

.post-card__body {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.post-card__cat {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--blue-light);
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.post-card__cat:hover {
  background: var(--blue);
  color: var(--white);
}

.post-card__date {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.post-card__title {
  font-family: var(--font-brand);
  font-size: 20px;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 10px;
  flex: 1;
}

.post-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s;
}

.post-card__title a:hover { color: var(--blue); }

.post-card__excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.post-card__read-time {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.post-card__link {
  font-size: 13px;
  font-weight: 800;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.15s;
}

.post-card__link:hover { gap: 8px; color: var(--blue-mid); }

/* ─── NOTES ─── */

.notes-section {
  padding: 56px 0;
  background: var(--cream);
  border-top: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
}

.notes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  max-width: 700px;
  margin: 0 auto;
}

.note-pin-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.note-pin {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  margin-bottom: -6px;
  z-index: 2;
  border: 2px solid var(--white);
  box-shadow: 0 2px 4px rgba(26,32,64,0.3);
}

.note-card {
  display: flex;
  flex-direction: column;
  width: 190px;
  min-height: 150px;
  padding: 20px 18px 16px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.4;
  box-shadow: 0 10px 24px -6px rgba(26,32,64,0.22), 0 2px 6px rgba(26,32,64,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.note-card:hover {
  transform: translateY(-3px) scale(1.02) rotate(0deg) !important;
  box-shadow: 0 16px 30px -6px rgba(26,32,64,0.28), 0 4px 8px rgba(26,32,64,0.12);
}

.note-pin-wrap:nth-child(3n+1) .note-card { transform: rotate(-2deg); }
.note-pin-wrap:nth-child(3n+2) .note-card { transform: rotate(1.5deg); }
.note-pin-wrap:nth-child(3n+3) .note-card { transform: rotate(2deg); }

.note-card--c1 { background: var(--blue-light); color: var(--navy); }
.note-card--c2 { background: var(--navy); color: var(--white); }
.note-card--c4 { background: var(--blue); color: var(--white); }

.note-card__tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.note-card__tag.tag--dark {
  background: rgba(26,32,64,0.08);
  color: var(--blue);
}

.note-card__tag.tag--light {
  background: rgba(255,255,255,0.2);
  color: inherit;
}

.note-card__title {
  flex: 1;
}

.note-card__date {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.6;
  margin-top: 10px;
}

/* ─── FEATURED POST ─── */

.post-card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
  max-height: 320px;
}

.post-card--featured .post-card__image {
  width: 44%;
  flex-shrink: 0;
  aspect-ratio: auto;
}

.post-card--featured .post-card__title {
  font-size: 26px;
}

.post-card--featured .post-card__excerpt {
  -webkit-line-clamp: 4;
}

/* ─── TOPIC TAGS SIDEBAR / FOOTER ─── */

.topics-section {
  padding: 48px 0;
  background: var(--white);
  border-top: 1.5px solid var(--border);
}

.topics-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.topic-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--cream);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.15s;
}

.topic-tag:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

/* ─── SINGLE POST ─── */

.post-hero {
  background: var(--white);
  padding: 60px 24px 40px;
  border-bottom: 1.5px solid var(--border);
}

.post-hero__inner {
  max-width: 800px;
  margin: 0 auto;
}

.post-breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 20px;
}

.post-breadcrumb a { color: var(--blue); }

.post-hero__cats {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.post-hero__title {
  font-family: var(--font-brand);
  font-size: clamp(28px, 5vw, 50px);
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 20px;
}

.post-hero__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  flex-wrap: wrap;
}

.post-hero__meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-content-area {
  padding: 60px 0 80px;
}

.post-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── TYPOGRAPHY ─── */

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  font-family: var(--font-brand);
  color: var(--navy);
  margin: 2em 0 0.6em;
  line-height: 1.25;
}

.post-content h2 { font-size: 28px; }
.post-content h3 { font-size: 22px; }
.post-content h4 { font-size: 18px; }

.post-content p {
  margin-bottom: 1.4em;
  color: var(--text-primary);
  font-size: 17px;
  line-height: 1.8;
}

.post-content ul,
.post-content ol {
  margin: 0 0 1.4em 1.4em;
  color: var(--text-primary);
  font-size: 17px;
  line-height: 1.8;
}

.post-content li { margin-bottom: 0.5em; }

.post-content strong { font-weight: 800; color: var(--navy); }

.post-content blockquote {
  border-left: 4px solid var(--blue);
  background: var(--blue-light);
  margin: 2em 0;
  padding: 16px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  font-style: normal;
}

.post-content code {
  background: var(--cream-dark);
  color: var(--navy);
  font-family: 'Courier New', monospace;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 4px;
}

.post-content pre {
  background: var(--navy);
  color: #e8f0ff;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 2em 0;
  font-size: 14px;
  line-height: 1.7;
}

.post-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.post-content .wp-block-image,
.post-content figure {
  margin: 2em 0;
}

.post-content figure img {
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
}

.post-content figcaption {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
  font-weight: 600;
}

.post-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── HIGHLIGHT BOX ─── */

.highlight-box {
  background: var(--blue-light);
  border: 1.5px solid rgba(77,126,247,0.25);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 2em 0;
}

.highlight-box p { margin: 0; font-weight: 600; }

/* ─── POST SHARE + TAGS ─── */

.post-footer {
  max-width: 720px;
  margin: 40px auto 0;
  padding: 32px 24px 0;
  border-top: 1.5px solid var(--border);
}

.post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.post-tags a {
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--cream-dark);
  color: var(--text-secondary);
  text-decoration: none;
  border: 1.5px solid var(--border);
  transition: all 0.15s;
}

.post-tags a:hover {
  background: var(--blue-light);
  border-color: var(--blue);
  color: var(--blue);
}

.post-share {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.post-share__label {
  font-weight: 800;
  font-size: 14px;
  color: var(--text-secondary);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.15s;
}

.share-btn--x { background: #000; color: #fff; }
.share-btn--x:hover { background: #333; color: #fff; transform: translateY(-1px); }
.share-btn--linkedin { background: #0077b5; color: #fff; }
.share-btn--linkedin:hover { background: #005f8e; color: #fff; transform: translateY(-1px); }
.share-btn--threads { background: var(--navy); color: #fff; }
.share-btn--threads:hover { background: var(--blue); color: #fff; transform: translateY(-1px); }

/* ─── RELATED POSTS ─── */

.related-posts {
  padding: 60px 0;
  background: var(--cream);
  border-top: 1.5px solid var(--border);
}

.related-posts h2 {
  font-family: var(--font-brand);
  font-size: 26px;
  color: var(--navy);
  margin-bottom: 28px;
  text-align: center;
}

/* ─── PAGINATION ─── */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 40px 0 60px;
  flex-wrap: wrap;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 14px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s;
}

.page-numbers:hover,
.page-numbers.current {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.page-numbers.prev,
.page-numbers.next {
  width: auto;
  padding: 0 16px;
}

/* ─── SIDEBAR ─── */

.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  padding: 24px;
}

.widget-title {
  font-family: var(--font-brand);
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--border);
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.widget ul li a {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.15s;
}

.widget ul li a::before {
  content: '→';
  color: var(--blue);
  font-size: 12px;
  flex-shrink: 0;
}

.widget ul li a:hover { color: var(--blue); }

/* ─── ABOUT WIDGET ─── */

.widget-about {
  text-align: center;
}

.widget-about__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  border: 3px solid var(--blue);
  overflow: hidden;
}

.widget-about__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.widget-about__name {
  font-family: var(--font-brand);
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 6px;
}

.widget-about__bio {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 14px;
}

/* ─── FOOTER ─── */

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 28px;
  margin-top: auto;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .site-logo {
  color: var(--white);
  margin-bottom: 14px;
}

.footer-brand .site-logo span.blue { color: var(--blue); }

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  font-weight: 600;
  max-width: 280px;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.15s;
}

.social-link:hover {
  background: var(--blue);
  color: var(--white);
}

.footer-col h3 {
  font-family: var(--font-brand);
  font-size: 16px;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
  font-weight: 600;
}

.footer-bottom .handle {
  color: var(--blue);
  font-weight: 800;
}

/* ─── SEARCH ─── */

.search-bar {
  display: flex;
  gap: 0;
  max-width: 500px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.18s;
}

.search-bar:focus-within {
  border-color: var(--blue);
}

.search-bar input {
  flex: 1;
  padding: 11px 16px;
  border: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  background: transparent;
  outline: none;
}

.search-bar button {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 11px 18px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
}

.search-bar button:hover { background: var(--blue); }

/* ─── MOBILE ─── */

@media (max-width: 900px) {
  .content-with-sidebar {
    grid-template-columns: 1fr;
  }
  .sidebar { position: static; }
  .post-card--featured {
    flex-direction: column;
    max-height: none;
  }
  .post-card--featured .post-card__image {
    width: 100%;
    aspect-ratio: 16/9;
  }
}

@media (max-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .site-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    padding: 32px 24px;
    gap: 4px;
    z-index: 99;
    border-top: 1.5px solid var(--border);
    align-items: stretch;
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    font-size: 18px;
    padding: 12px 16px;
  }
  .menu-toggle { display: flex; }
  .posts-grid {
    grid-template-columns: 1fr;
  }
  .post-card--featured {
    grid-column: auto;
  }
  .notes-section {
    padding: 40px 0;
  }
  .note-card {
    width: 160px;
    min-height: 130px;
    padding: 16px 14px 14px;
    font-size: 14px;
  }
  .notes-list {
    gap: 18px;
  }
}

@media (max-width: 480px) {
  .hero { padding: 48px 20px 40px; }
  .hero__title { font-size: 32px; }
  .notes-section {
    padding: 32px 0;
  }
  .section-header {
    margin-bottom: 28px;
  }
  .notes-list {
    gap: 14px;
  }
  .note-card {
    width: 42vw;
    min-width: 140px;
  }
}

/* ─── UTILITY ─── */

.text-blue { color: var(--blue); }
.text-navy { color: var(--navy); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
