/* ==========================================================================
   HalbVoll Ghost Theme – screen.css
   Professionell & Klar
   ========================================================================== */

/* ---------- CSS Variables / Design Tokens ---------- */
:root {
  --teal: #008B8B;
  --teal-dark: #006D6D;
  --teal-deeper: #005555;
  --green: #32CD32;
  --green-soft: #2ab82a;
  --green-muted: #28a828;
  --ice: #E0F7FA;
  --ice-light: #f0fbfc;
  --ice-lighter: #f5fdfe;
  --white: #FFFFFF;
  --dark: #1a2a2a;
  --dark-mid: #2d3e3e;
  --dark-soft: #3a4f4f;
  --text: #2c3e3e;
  --text-light: #4a6363;
  --text-muted: #6b8888;
  --border: #d4e8e8;
  --border-light: #e8f4f4;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 15px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-green: 0 4px 15px rgba(50,205,50,0.2);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --transition: 0.2s ease;
  --max-width: 1200px;
  --content-width: 780px;
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Fira Code', 'Consolas', monospace;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--ice-lighter);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--teal-dark);
}

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

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

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }

/* ---------- Utility ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.content-narrow {
  max-width: var(--content-width);
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}

/* ---------- NAVIGATION ---------- */
.site-header {
  background: linear-gradient(135deg, var(--dark) 0%, var(--teal-dark) 100%);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.site-logo-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.site-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(180deg, transparent 40%, var(--green) 40%);
  border: 2px solid var(--white);
  border-radius: 3px 3px 7px 7px;
  position: relative;
  flex-shrink: 0;
}
.site-logo-icon::after {
  content: '↑';
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 15px;
  color: var(--green);
  font-weight: 900;
  line-height: 1;
}

.site-logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--white);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-nav li::marker {
    color: transparent;
    font-size: 0; /* Sicherheitshalber, falls transparent nicht reicht */
}

/* Ghost navigation helper outputs ul.nav > li > a */
.site-nav ul.nav,
.site-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.2rem;
}
.site-nav ul.nav li,
.site-nav ul li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a,
.site-nav ul.nav li a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a.nav-current,
.site-nav ul.nav li.nav-current a {
  color: var(--green);
  background: rgba(50,205,50,0.08);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Centered nav layout (custom setting) */
.site-header-centered .site-header-inner {
  flex-direction: column;
  height: auto;
  padding: 0.8rem 0;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: var(--shadow-lg);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a,
  .site-nav ul.nav li a {
    padding: 0.8rem 1rem;
    width: 100%;
  }
  .site-nav ul.nav {
    flex-direction: column;
    width: 100%;
  }
  .btn-nav-subscribe {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }
}

/* ---------- HERO / HOME ---------- */
.site-hero {
  background: linear-gradient(160deg, var(--dark) 0%, var(--teal-dark) 50%, var(--teal) 100%);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.site-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(50,205,50,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(0,139,139,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.site-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(50,205,50,0.15);
  border: 1px solid rgba(50,205,50,0.3);
  color: var(--green);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--white);
  margin-bottom: 1rem;
}
.hero-title span {
  color: var(--green);
}

.hero-description {
  color: rgba(255,255,255,0.75);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Contained hero variant (custom setting) */
.site-hero-contained {
  padding-left: 0;
  padding-right: 0;
}
.site-hero-contained .hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  background: linear-gradient(160deg, var(--dark) 0%, var(--teal-dark) 50%, var(--teal) 100%);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  padding-top: 4rem;
  padding-bottom: 3rem;
}

/* Smaller hero for non-home pages */
.site-hero-sm {
  padding: 3rem 2rem 2.5rem;
}
.site-hero-sm .hero-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

/* ---------- POST FEED / INDEX ---------- */
.post-feed {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

@media (max-width: 420px) {
  .post-feed {
    grid-template-columns: 1fr;
  }
}

/* ---------- POST CARD ---------- */
.post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.post-card-image-link {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--ice);
}
.post-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card-image {
  transform: scale(1.03);
}

.post-card-content {
  padding: 1.4rem 1.5rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.post-card-tag {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--ice);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  transition: all var(--transition);
}
.post-card-tag:hover {
  background: var(--teal);
  color: var(--white);
}

.post-card-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}
.post-card-title a {
  color: var(--dark);
  transition: color var(--transition);
}
.post-card-title a:hover {
  color: var(--teal);
}

.post-card-excerpt {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-light);
}

.post-card-author-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ice);
}

/* Featured post card */
.post-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.post-card.featured .post-card-image-link {
  aspect-ratio: auto;
  min-height: 280px;
}
.post-card.featured .post-card-title {
  font-size: 1.6rem;
}
.post-card.featured .post-card-excerpt {
  -webkit-line-clamp: 4;
}

@media (max-width: 700px) {
  .post-card.featured {
    grid-template-columns: 1fr;
  }
}

/* ---------- SINGLE POST ---------- */
.post-full {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.post-full-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.post-full-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1rem;
}

.post-full-title {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.post-full-custom-excerpt {
  font-size: 1.15rem;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.post-full-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.post-full-meta-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-full-author-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ice);
}

.post-full-meta-date {
  color: var(--text-muted);
}

.post-full-meta-reading-time {
  color: var(--text-muted);
}

/* Feature image */
.post-full-image {
  margin: 0 auto 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.post-full-image img {
  width: 100%;
}

/* ---------- POST CONTENT (Ghost editor output) ---------- */
.post-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}

.post-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--ice);
}

.post-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.post-content p {
  margin-bottom: 1.3rem;
}

.post-content a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(0,139,139,0.3);
  transition: text-decoration-color var(--transition);
}
.post-content a:hover {
  text-decoration-color: var(--teal);
}

.post-content blockquote {
  border-left: 3px solid var(--green);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--ice-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--dark-mid);
}

.post-content pre {
  background: var(--dark);
  color: var(--ice);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 1.5rem 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
  border: 1px solid var(--dark-mid);
}

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--ice);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--teal-dark);
}

.post-content pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.post-content ul, .post-content ol {
  margin: 1rem 0 1.3rem 1.5rem;
}

.post-content li {
  margin-bottom: 0.4rem;
}

.post-content li::marker {
  color: var(--teal);
}

.post-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), var(--green), transparent);
  margin: 2.5rem 0;
}

.post-content figure {
  margin: 2rem 0;
}

.post-content figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.post-content th {
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  text-align: left;
  padding: 0.8rem 1rem;
}

.post-content td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border-light);
}

.post-content tr:nth-child(even) {
  background: var(--ice-lighter);
}

/* Ghost cards (bookmark, gallery, etc.) */
.kg-card {
  margin: 1.5rem 0;
}

/* Koenig editor width classes (required by Ghost) */
.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin: 1.5rem calc(50% - 42.5vw);
}

.kg-width-full {
  position: relative;
  width: 100vw;
  min-width: 100%;
  margin: 1.5rem calc(50% - 50vw);
}

.kg-width-wide img,
.kg-width-full img {
  width: 100%;
}

.kg-bookmark-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.kg-bookmark-card:hover {
  box-shadow: var(--shadow-md);
}

.kg-bookmark-container {
  display: flex;
  text-decoration: none;
  color: inherit;
}

.kg-bookmark-content {
  padding: 1.2rem;
  flex: 1;
}

.kg-bookmark-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 0.3rem;
}

.kg-bookmark-description {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kg-bookmark-thumbnail {
  width: 180px;
  flex-shrink: 0;
}
.kg-bookmark-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kg-image-card img,
.kg-gallery-image img {
  border-radius: var(--radius-md);
}

/* Callout card */
.kg-callout-card {
  background: var(--ice);
  border-left: 3px solid var(--teal);
  padding: 1.2rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ---------- AUTHOR BOX ---------- */
.author-box {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  margin: 3rem 0;
}

.author-box-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--ice);
  flex-shrink: 0;
}

.author-box-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 0.3rem;
}
.author-box-name a { color: var(--dark); }
.author-box-name a:hover { color: var(--teal); }

.author-box-bio {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

@media (max-width: 500px) {
  .author-box {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- TAG / AUTHOR ARCHIVE ---------- */
.archive-header {
  text-align: center;
  padding: 3rem 2rem 0;
}

.archive-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.archive-description {
  color: var(--text-light);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ---------- PAGE TEMPLATE ---------- */
.page-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

/* ---------- PAGINATION ---------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 2rem 4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pagination a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--white);
  color: var(--teal);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.pagination a:hover {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.75rem 1.8rem;
  border-radius: 50px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-soft), var(--green));
  color: var(--white);
  box-shadow: var(--shadow-green);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(50,205,50,0.35);
  color: var(--white);
}

/* Nav subscribe button */
.btn-nav-subscribe {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  background: var(--green);
  color: var(--white) !important;
  border: 2px solid var(--green);
  transition: background 0.2s, border-color 0.2s;
  box-shadow: none;
  text-decoration: none;
}
.btn-nav-subscribe:hover {
  background: transparent;
  border-color: var(--green);
  color: var(--green) !important;
}

.btn-nav-account {
  display: flex;
  align-items: center;
  padding: 0.3rem;
}

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

/* ---------- Ghost Portal Modal ---------- */
/* Portal läuft in einem iframe – Farbanpassung erfolgt im Ghost Admin:
   Settings → Design → Brand → Accent Color → #008B8B */

/* ---------- SUBSCRIBE SECTION ---------- */
.subscribe-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--teal-dark) 100%);
  padding: 3.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.subscribe-section::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(50,205,50,0.1), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.subscribe-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 0.6rem;
  position: relative;
  z-index: 1;
}

.subscribe-description {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
}

.subscribe-form {
  display: flex;
  gap: 0.6rem;
  max-width: 440px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.subscribe-input {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
}
.subscribe-input::placeholder {
  color: rgba(255,255,255,0.4);
}
.subscribe-input:focus {
  border-color: var(--green);
}

@media (max-width: 500px) {
  .subscribe-form {
    flex-direction: column;
  }
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: linear-gradient(135deg, var(--dark) 0%, var(--teal-deeper) 100%);
  padding: 3rem 2rem 2rem;
  margin-top: auto;
}

.site-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.footer-brand-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
}

.footer-tagline {
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
  max-width: 280px;
}

.footer-nav a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  padding: 0.2rem 0;
  transition: color var(--transition);
}
.footer-nav a:hover {
  color: var(--green);
}

.footer-social {
  display: flex;
  gap: 0.8rem;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--green);
  color: var(--white);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  color: rgba(255,255,255,0.35);
  font-size: 0.8rem;
}

/* ---------- ERROR PAGE ---------- */
.error-page {
  text-align: center;
  padding: 5rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.error-code {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 6rem;
  color: var(--ice);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.error-message {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* ---------- ABOUT PAGE (custom-about.hbs) ---------- */
.about-page {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
}

.about-content {
  max-width: 100%;
}

.about-section {
  margin-bottom: 3.5rem;
}

.about-section h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.65rem;
  color: var(--dark);
  margin-bottom: 1.2rem;
  line-height: 1.3;
  border: none;
  padding: 0;
}

.about-section p {
  margin-bottom: 1.1rem;
  font-size: 1.02rem;
  color: var(--text);
  line-height: 1.75;
}

.about-section-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.about-section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}

.about-accent {
  color: var(--teal-dark);
  font-weight: 600;
}

/* Problem cards */
.about-problems {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.about-problem-card {
  background: var(--white);
  border-left: 3px solid var(--teal);
  padding: 1.1rem 1.4rem;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
  font-size: 0.98rem;
  line-height: 1.65;
  transition: transform 0.2s, box-shadow 0.2s;
}
.about-problem-card:hover {
  transform: translateX(4px);
  box-shadow: 0 3px 15px rgba(0,139,139,0.1);
}
.about-problem-card strong {
  color: var(--dark);
}

/* Three pillars */
.about-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin: 1.5rem 0;
}

.about-pillar {
  background: var(--white);
  border: 1px solid rgba(0,139,139,0.12);
  border-radius: 12px;
  padding: 1.6rem 1.3rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.about-pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--green));
}
.about-pillar:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,139,139,0.1);
}

.about-pillar-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--green);
  opacity: 0.25;
  margin-bottom: 0.3rem;
}

.about-pillar h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 0.6rem;
}

.about-pillar p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
  line-height: 1.6;
}

/* Callout block */
.about-callout {
  background: linear-gradient(135deg, var(--dark) 0%, var(--teal-dark) 100%);
  border-radius: 14px;
  padding: 2.2rem 2rem;
  margin: 2.5rem 0;
  position: relative;
  overflow: hidden;
}
.about-callout::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(50,205,50,0.12), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.about-callout p {
  color: rgba(255,255,255,0.9);
  font-size: 1.08rem;
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  line-height: 1.75;
}
.about-callout-highlight {
  color: var(--green);
  font-weight: 600;
}

/* Name box */
.about-name-box {
  background: var(--white);
  border-radius: 14px;
  padding: 2rem;
  border: 1px solid rgba(0,139,139,0.1);
  box-shadow: 0 2px 15px rgba(0,0,0,0.03);
}
.about-name-box h2 {
  margin-bottom: 1rem;
}

/* Editor content area */
.about-editor-content {
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

/* CTA */
.about-cta {
  text-align: center;
  padding: 2rem 0 0;
}
.about-cta p {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* Responsive */
@media (min-width: 600px) {
  .about-pillars {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .about-page {
    padding: 2.5rem 1.2rem 3rem;
  }
  .about-callout {
    padding: 1.6rem 1.4rem;
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .site-hero { padding: 3.5rem 1.5rem 3rem; }
  .post-feed { padding: 2rem 1rem; gap: 1.5rem; }
  .post-full { padding: 2rem 1.2rem 3rem; }
  .page-content { padding: 2rem 1.2rem 3rem; }
  .site-footer-inner { flex-direction: column; }
}

/* ---------- PRINT ---------- */
@media print {
  .site-header, .site-footer, .subscribe-section, .pagination { display: none; }
  body { background: white; color: black; }
  .post-full { padding: 0; }
}
