/* ============================================
   JUSTINAS BUILDS
   Design: Premium Architectural & Minimalist
   Colors: Warm Cream & Deep Slate Green
   Font: Inter
   ============================================ */

@font-face {
  font-family: 'Inter';
  src: url('fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/InterVariable-Italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg-color: #FDFBF7;
  --bg-subtle: #F6F3EB;
  --text-main: #18201A;
  --text-muted: #5C6B61;
  --text-light: #8A988F;
  --accent-primary: #3B6B4D;
  --accent-hover: #294D36;
  --accent-light: #E7F0EA;
  --border-subtle: rgba(59, 107, 77, 0.15);
  --blueprint-grid: rgba(59, 107, 77, 0.05);
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-main);
  background: var(--bg-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ---- Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
  text-transform: uppercase;
}

.nav-logo:hover {
  opacity: 0.7;
}

.nav-links {
  display: flex;
  gap: 22px;
}

.nav-link {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
  padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 1px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  margin-right: -11px; /* keeps the strokes aligned with the content edge */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-main);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-toggle.open span:first-child {
  transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle.open span:last-child {
  transform: rotate(-45deg) translate(5px, -4px);
}

/* ---- Skip link: off-screen until focused with the keyboard ---- */
.skip-link {
  position: absolute;
  top: 0;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--text-main);
  color: var(--bg-color);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  transform: translateY(-120%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---- Hero ---- */
.hero {
  padding: 150px 0 170px;
  position: relative;
}

.hero::before {
  content: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.hero-tagline {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--accent-primary);
  margin-bottom: 28px;
  display: inline-block;
  border-bottom: 1px solid var(--accent-primary);
  padding-bottom: 4px;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 510px;
}

.identity-panel {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 36px;
  box-shadow: 0 20px 40px rgba(59, 107, 77, 0.06);
}

.identity-kicker,
.stack-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.identity-list {
  list-style: none;
  margin: 18px 0 24px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.identity-list li {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}

.identity-note {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
}

/* ---- Subscribe Form ---- */
.subscribe-form {
  display: flex;
  gap: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
  background: #fff;
}

.subscribe-form:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 4px 12px rgba(59, 107, 77, 0.08);
}

.subscribe-input {
  flex: 1;
  padding: 14px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  border: none;
  outline: none;
  color: var(--text-main);
  background: transparent;
}

.subscribe-input::placeholder {
  color: #AFBDB4;
}

.subscribe-btn {
  padding: 14px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #fff;
  background: var(--text-main);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.1s;
  text-transform: uppercase;
}

.subscribe-btn:hover {
  background: var(--accent-primary);
}

.subscribe-btn:active {
  transform: scale(0.98);
}

.subscribe-form-disabled {
  background: var(--bg-subtle);
}

.subscribe-form-disabled:focus-within {
  border-color: var(--border-subtle);
  box-shadow: none;
}

.subscribe-form-disabled .subscribe-input,
.subscribe-form-disabled .subscribe-btn {
  cursor: not-allowed;
}

.subscribe-form-disabled .subscribe-input {
  color: var(--text-muted);
}

.subscribe-form-disabled .subscribe-btn {
  background: var(--text-light);
  color: #fff;
  opacity: 0.75;
}

.subscribe-form-disabled .subscribe-btn:hover {
  background: var(--text-light);
  transform: none;
}

.subscribe-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* ---- Sections ---- */
.section {
  padding: 100px 0;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--border-subtle);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
}

.section-header .section-label {
  margin-bottom: 0;
}

.section-link {
  font-size: 13px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

.section-link:hover {
  color: var(--accent-primary);
}

.section-link-muted,
.section-link-muted:hover {
  color: var(--text-muted);
  cursor: default;
}

.divider {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.divider::after {
  content: '';
  display: block;
  height: 1px;
  background: var(--border-subtle);
}

/* ---- Blueprint "Image Placeholders" (No Photo Design) ---- */
.image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: var(--bg-color);
  background-image: 
    linear-gradient(var(--blueprint-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-grid) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: center center;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.image-placeholder::before {
  content: "FRAME_01";
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  opacity: 0.6;
  font-family: monospace;
}

.image-placeholder::after {
  content: "";
  position: absolute;
  bottom: 12px; right: 12px;
  width: 12px; height: 12px;
  border-bottom: 1px solid var(--accent-primary);
  border-right: 1px solid var(--accent-primary);
  opacity: 0.5;
}

.image-placeholder:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.image-placeholder span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--accent-primary);
  text-transform: uppercase;
  background: var(--bg-color);
  padding: 4px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
}

.image-placeholder.tall { aspect-ratio: 3 / 4; }
.image-placeholder.book { aspect-ratio: 2 / 3; max-width: 260px; }

/* ---- Video Cards Blueprint Variant ---- */
.image-placeholder.video {
  aspect-ratio: 16 / 9;
  cursor: pointer;
}

.image-placeholder.video::before {
  content: "MEDIA_01";
}

.play-btn {
  position: absolute;
  width: 56px;
  height: 56px;
  background: var(--bg-color);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-size: 14px;
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding-left: 3px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.image-placeholder.video:hover .play-btn {
  transform: scale(1.05);
  background: var(--text-main);
  color: #fff;
  border-color: var(--text-main);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.image-placeholder.video span {
  position: absolute;
  bottom: 12px;
  font-size: 9px;
  background: none;
  border: none;
  padding: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* ---- About ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-lead {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-main);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.8;
}

.about-quote {
  font-style: italic;
  font-weight: 500;
  color: var(--text-main) !important;
  border-left: 2px solid var(--accent-primary);
  padding-left: 20px;
  margin-top: 32px;
  font-size: 18px !important;
}

.architecture-stack {
  display: grid;
  gap: 18px;
}

.architecture-stack > div {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 24px;
}

.architecture-stack strong {
  display: block;
  margin: 8px 0;
  font-size: 22px;
  line-height: 1.25;
  color: var(--text-main);
}

.architecture-stack p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---- Blog Grid ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.blog-card {
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
  background: transparent;
  border: none;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: none;
  border-color: var(--accent-primary);
}

.blog-card-image {
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.blog-card-image .image-placeholder {
  border: none;
  border-radius: 0;
}

.blog-card-content {
  padding: 22px 0 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: transparent;
  border: none;
  border-top: 1px solid var(--border-subtle);
  border-radius: 0;
  padding: 22px 0 0;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
}

.blog-card-date {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-primary);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.blog-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.blog-card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  flex: 1;
}

.blog-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  transition: gap 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: auto;
}

.blog-card-link:hover {
  color: var(--accent-primary);
  gap: 10px;
}

.arrow { display: inline-block; transition: transform 0.2s ease; }

/* ---- Blog Pages ---- */
.blog-page {
  min-height: 100vh;
}

.blog-index-section,
.article-section {
  padding-top: 150px;
  padding-bottom: 88px;
}

.blog-page-header,
.article-header {
  max-width: 760px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--border-subtle);
}

.blog-page-title,
.article-title {
  max-width: 760px;
  margin: 18px 0;
  font-size: 54px;
  font-weight: 800;
  line-height: 1.05;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.blog-page-deck,
.article-deck {
  max-width: 680px;
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-muted);
}

.blog-page-actions,
.article-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
}

.blog-list {
  display: grid;
  gap: 18px;
  max-width: 760px;
  padding-top: 44px;
}

.blog-list-item {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
}

.blog-list-item-muted {
  background: var(--bg-subtle);
}

.blog-list-title {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.blog-list-title a {
  color: var(--text-main);
  text-decoration: none;
}

.blog-list-title a:hover {
  color: var(--accent-primary);
}

.blog-list-item p {
  color: var(--text-muted);
  line-height: 1.8;
}

.article-status {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-primary);
}

.article-body {
  max-width: 720px;
  padding-top: 44px;
}

.article-lead {
  font-size: 21px !important;
  line-height: 1.7 !important;
  color: var(--text-main) !important;
}

.article-body h2 {
  margin: 42px 0 14px;
  font-size: 24px;
  line-height: 1.3;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.article-body p,
.article-body li {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-muted);
}

.article-body p + p {
  margin-top: 18px;
}

.article-body ul {
  margin: 16px 0 0;
  padding: 22px 26px 22px 46px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
}

.article-body li + li {
  margin-top: 10px;
}

.article-body li::marker {
  color: var(--accent-primary);
}

/* ---- Videos Grid ---- */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.video-card { transition: transform 0.3s ease; }
.video-card:hover { transform: translateY(-4px); }

.video-thumbnail {
  margin-bottom: 16px;
  border-radius: 4px;
  overflow: hidden;
}

.video-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.4;
}

.video-meta {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---- Book Section ---- */
.book-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 64px;
  align-items: center;
}

.book-title {
  font-size: 40px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 8px;
}

.book-subtitle {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-primary);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.book-line {
  width: 40px;
  height: 2px;
  background: var(--text-main);
  margin-bottom: 24px;
}

.book-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
  max-width: 480px;
}

.book-status {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  background: var(--bg-subtle);
  padding: 6px 12px;
  display: inline-block;
  border-radius: 4px;
  letter-spacing: 0.02em;
  margin-bottom: 32px;
  border: 1px solid var(--border-subtle);
}

.book-cta { max-width: 420px; }

.book-text-cover {
  width: 260px;
  min-height: 390px;
  background: var(--text-main);
  color: var(--bg-color);
  border-radius: 4px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--text-main);
  box-shadow: 0 24px 50px rgba(24, 32, 26, 0.12);
}

.book-text-cover span,
.book-text-cover small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(253, 251, 247, 0.72);
}

.book-text-cover strong {
  font-size: 38px;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

/* ---- Podcast ---- */
.podcast-content {
  background: #fff;
  border: 1px solid var(--border-subtle);
  padding: 64px;
  border-radius: 4px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.podcast-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.podcast-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 8px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.podcast-status {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-primary);
  margin-bottom: 32px;
}

.podcast-platforms {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.platform-badge {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 10px 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.2s;
  background: var(--bg-color);
  text-decoration: none;
}

.platform-badge:hover {
  background: var(--text-main);
  color: #fff;
  border-color: var(--text-main);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.platform-badge-disabled,
.platform-badge-disabled:hover {
  color: var(--text-muted);
  background: var(--bg-subtle);
  border-color: var(--border-subtle);
  cursor: default;
  transform: none;
  box-shadow: none;
}

.media-note {
  max-width: 760px;
  background: transparent;
  border: none;
  border-top: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 28px 0 0;
}

.media-note .podcast-platforms {
  justify-content: flex-start;
  margin-top: 28px;
}

/* ---- Newsletter Section ---- */
.section-highlight {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.newsletter-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.newsletter-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 600px;
}

.newsletter-form { max-width: 480px; }

.subscribe-form-lg {
  border-width: 1px;
}

.subscribe-form-lg .subscribe-input {
  padding: 16px 20px;
  font-size: 15px;
}

.subscribe-form-lg .subscribe-btn {
  padding: 16px 32px;
  font-size: 14px;
}

/* ---- Contact / Work With Me ---- */
.contact-lead {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  max-width: 700px;
}

.contact-content p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 700px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 16px 36px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #fff;
  background: var(--text-main);
  border: none;
  border-radius: 4px;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-button:hover {
  background: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 107, 77, 0.2);
}

.cta-button:active { transform: translateY(0); }
.cta-button .arrow { transition: transform 0.2s; }
.cta-button:hover .arrow { transform: translateX(4px); }

/* ---- Connect links (written by build.mjs from connect.json) ---- */
.connect-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  max-width: 700px;
  margin-top: 8px;
}

.connect-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-main);
  text-decoration: underline;
  text-decoration-color: var(--accent-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: color 0.2s;
}

.connect-links a:hover {
  color: var(--accent-primary);
}

.connect-links .connect-email {
  font-size: 15px;
  letter-spacing: 0.01em;
  text-transform: none;
}

/* ---- Footer ---- */
.footer {
  padding: 64px 0 48px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-note {
  max-width: 360px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links a,
.footer-links span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-links a:hover {
  color: var(--text-main);
}

.footer-links span {
  cursor: default;
}

/* ---- Privacy Page ---- */
.privacy-page {
  min-height: 100vh;
}

.privacy-section {
  padding-top: 150px;
  padding-bottom: 88px;
}

.privacy-header {
  max-width: 760px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--border-subtle);
}

.privacy-title {
  max-width: 760px;
  margin: 18px 0 18px;
  font-size: 56px;
  font-weight: 800;
  line-height: 1.05;
  color: var(--text-main);
  letter-spacing: -0.04em;
}

.privacy-deck {
  max-width: 680px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
}

.privacy-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
}

.privacy-updated {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-light);
}

.privacy-top-link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-primary);
  text-decoration: none;
  white-space: nowrap;
}

.privacy-top-link:hover {
  color: var(--text-main);
}

.privacy-content {
  max-width: 760px;
  padding-top: 44px;
}

.privacy-content h2 {
  margin: 42px 0 14px;
  padding-top: 2px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.privacy-content p,
.privacy-content li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
}

.privacy-content p + p {
  margin-top: 18px;
}

.privacy-content > p:first-child {
  max-width: 680px;
  font-size: 18px;
  line-height: 1.6;
}

.privacy-list {
  margin: 4px 0 0;
  padding: 22px 26px 22px 46px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
}

.privacy-list li + li {
  margin-top: 10px;
}

.privacy-list li::marker {
  color: var(--accent-primary);
}

.privacy-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.privacy-back-link {
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-primary);
  text-decoration: none;
}

.privacy-back-link:hover {
  color: var(--text-main);
}

.privacy-secondary-link {
  color: var(--text-muted);
}

/* ---- Open placeholder styling ---- */
.placeholder {
  display: inline-block;
  padding: 4px 10px;
  border: 1px dashed #A4432B;
  border-radius: 4px;
  background: #FFF3EC;
  color: #7A2E1B;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
}

/* ---- Mobile Responsive ---- */
@media (max-width: 860px) {
  .hero-grid, .about-grid, .book-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .blog-grid, .videos-grid, .feature-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    /* Keep every menu link reachable on short landscape screens. */
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    background: rgba(253, 251, 247, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  }

  .nav-link { flex-shrink: 0; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  
  .hero { padding: 120px 0 60px; }
  .hero-title { font-size: 44px; }
  .about-lead, .contact-lead { font-size: 24px; }
  .book-title, .newsletter-title { font-size: 32px; }
  .podcast-title { font-size: 28px; }
  .podcast-content { padding: 40px 24px; }
  .identity-panel,
  .media-note {
    padding: 28px 22px;
  }

  .book-text-cover {
    width: 100%;
    max-width: 260px;
    min-height: 360px;
  }

  .media-note .podcast-platforms,
  .podcast-platforms {
    flex-direction: column;
    align-items: stretch;
  }

  .subscribe-form {
    flex-direction: column;
    border: none;
    background: none;
    gap: 12px;
  }

  .subscribe-input {
    border: 1px solid var(--border-subtle) !important;
    border-radius: 4px !important;
    background: #fff;
  }

  .subscribe-btn {
    border-radius: 4px;
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }
  
  .footer-left {
    flex-direction: column;
    gap: 8px;
  }

  .footer-note {
    max-width: 280px;
  }
  
  .footer-links {
    justify-content: center;
    gap: 16px;
  }

  .privacy-section {
    padding-top: 120px;
    padding-bottom: 64px;
  }

  .privacy-header {
    padding-bottom: 28px;
  }

  .privacy-title {
    font-size: 40px;
  }

  .privacy-deck {
    font-size: 17px;
  }

  .privacy-meta-row,
  .privacy-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .privacy-content {
    padding-top: 34px;
  }

  .privacy-content h2 {
    margin-top: 34px;
    font-size: 20px;
  }

  .privacy-list {
    padding: 18px 20px 18px 34px;
  }

  .blog-index-section,
  .article-section {
    padding-top: 120px;
    padding-bottom: 64px;
  }

  .blog-page-header,
  .article-header {
    padding-bottom: 28px;
  }

  .blog-page-title,
  .article-title {
    font-size: 38px;
  }

  .blog-page-deck,
  .article-deck {
    font-size: 17px;
  }

  .blog-page-actions,
  .article-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .blog-list,
  .article-body {
    padding-top: 34px;
  }

  .blog-list-item {
    padding: 22px;
  }

  .article-body ul {
    padding: 18px 20px 18px 34px;
  }
}

/* ---- Selection Color ---- */
::selection { background: var(--accent-light); color: var(--text-main); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-primary); }

/* Site overrides: preserve the cream, green and architectural layout. */
.question-panel { flex-direction: column; align-items: flex-start; justify-content: center; padding: 32px; gap: 20px; text-align: left; aspect-ratio: auto; min-height: 320px; }
.question-panel strong { font-size: clamp(26px, 3vw, 38px); line-height: 1.2; color: var(--text-main); }
.question-panel p { font-size: 14px; }
.question-panel::before { content: none; }
.blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 768px) { .blog-grid { grid-template-columns: 1fr; } }
.scroll-reveal { opacity: 1; transform: none; }
:focus-visible { outline: 3px solid var(--accent-primary); outline-offset: 5px; }
.section { scroll-margin-top: 80px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .fade-in { opacity: 1; transform: none; } }
/* Film note: align with the section's other content (the note has no box, so no side padding or centring). */
.media-note .podcast-desc { margin-left: 0; margin-right: 0; }
@media (max-width: 860px) { .media-note { padding: 28px 0 0; } }

/* Part pages and the map's review state use the existing design tokens. */
.nav-link[aria-current="page"] { color: var(--text-main); }
.nav-link[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 1px;
}
.about-grid { align-items: start; }
.more-link { margin-top: 28px; }
.map-line { margin-top: 10px; }
.map-line a,
.part-body p a:not(.section-link):not(.blog-card-link):not(.connect-email),
.blog-page-deck a {
  color: var(--text-main);
  text-decoration: underline;
  text-decoration-color: var(--accent-primary);
  text-underline-offset: 4px;
}
.map-line a { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; }
.map-line a:hover,
.part-body p a:not(.section-link):not(.blog-card-link):not(.connect-email):hover,
.blog-page-deck a:hover { color: var(--accent-primary); }
.map-sentences { max-width: 720px; }
.map-sentences p { font-size: 16px; line-height: 1.8; color: var(--text-muted); margin-bottom: 16px; }
.map-sentences strong { color: var(--text-main); font-weight: 600; }
.part-body .architecture-stack { margin-top: 32px; }
.part-body .book-grid { margin-top: 8px; }
.part-body .book-desc { max-width: none; }
.part-body .blog-card-date { margin-bottom: 6px; }
.part-body .about-quote { margin-top: 28px; }
.part-body .connect-links { margin-top: 24px; }
.blog-page-deck + .blog-page-deck { margin-top: 18px; }
#book-passage,
#how-we-check,
#write,
#data { scroll-margin-top: 88px; }
.article-body .write-links,
.article-body .connect-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.article-body .write-links { gap: 4px 28px; margin-top: 8px; }
.article-body .write-links li,
.article-body .connect-links li { margin: 0; }
.write-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-main);
  text-decoration: underline;
  text-decoration-color: var(--accent-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.write-links a:hover { color: var(--accent-primary); }
@media (max-width: 860px) {
  .section-header { flex-wrap: wrap; gap: 12px 20px; }
}
