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

:root {
  color-scheme: light;
  --accent: #1F6E70;
  --accent-strong: #144F51;
  --accent-soft: #D7ECEC;
  --bg: #F7F5F0;
  --bg-secondary: #ECE9E2;
  --bg-tertiary: #E2DED6;
  --surface: #FFFFFF;
  --text: #1C1C1A;
  --text-secondary: #5F5E5A;
  --text-tertiary: #8C8A85;
  --border: #D8D3C8;
  --border-secondary: #E2DED6;
  --nav-bg: rgba(247, 245, 240, 0.92);
  --shadow: 0 20px 60px rgba(28, 28, 26, 0.08);
  --serif: 'Lora', Georgia, serif;
  --cursive: cursive;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --accent: #2E8B8D;
  --accent-strong: #3F8A70;
  --accent-soft: #0F3D3E;
  --bg: #121212;
  --bg-secondary: #1A1A1A;
  --bg-tertiary: #222222;
  --surface: #1A1A1A;
  --text: #F2F4F3;
  --text-secondary: #B8C4C2;
  --text-tertiary: #8A9795;
  --border: #2A2A2A;
  --border-secondary: #222222;
  --nav-bg: rgba(18, 18, 18, 0.92);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
}

html { scroll-behavior: smooth; background: var(--bg); }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.2s ease, color 0.2s ease;
}

main { flex: 1; }

a { color: var(--accent-strong); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

button, input, textarea, select { font: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 1.75rem; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-secondary);
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-nav .wrap,
.nav-meta {
  display: flex;
          align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--cursive);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-brand-logo {
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.brand-name {
  font-family: var(--cursive);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.nav-brand:hover,
.post-item-title:hover,
.post-back:hover { text-decoration: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links-desktop {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-dropdown {
  position: relative;
  display: none;
}

@media (min-width: 1025px) {
  .nav-dropdown {
    display: none !important;
  }
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  list-style: none;
  box-shadow: var(--shadow);
}

.nav-dropdown-toggle::-webkit-details-marker {
  display: none;
}

.nav-menu-icon {
  width: 1.15rem;
  height: 1.15rem;
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  display: grid;
  gap: 0.6rem;
  min-width: 260px;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.nav-dropdown-panel a {
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.9rem 1rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-dropdown-panel a:hover {
  background: var(--bg-secondary);
  border-color: var(--border-secondary);
  color: var(--accent-strong);
  text-decoration: none;
}

.theme-switcher {
  display: inline-flex;
  align-items: center;
}

.theme-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.theme-button:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.theme-button:active {
  transform: translateY(0);
}

.theme-icon {
  width: 1.1rem;
  height: 1.1rem;
  color: currentColor;
}

.theme-icon-sun { display: none; }

html[data-theme="dark"] .theme-icon-sun { display: block; }
html[data-theme="dark"] .theme-icon-moon { display: none; }

.hero { padding: 4.5rem 0 2rem; }

.hero-layout {  
  gap: 1.5rem;
  align-items: start;
}

.hero-copy {
  min-width: 0;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.35rem;
}

.hero-brand-logo {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-eyebrow,
.section-label,
.post-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.hero h1,
.post-title {
  font-family: var(--serif);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero h1 {
  margin: 1rem 0 1.25rem;
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  margin-top: 0;
}

.hero-desc {  
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.promise-spotlight {
  align-self: start;
  margin: 0;
}

.promise-spotlight .section-label {
  width: auto;
  padding-bottom: 0;
  margin-bottom: 0.85rem;
  border: 0;
  color: var(--accent-strong);
}

.hero-link,
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.85rem;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--accent-strong);
  border-radius: 999px;
  background: var(--accent-strong);
  color: #FFFFFF;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.hero-link:hover,
.cta-button:hover {
  color: #FFFFFF;
  text-decoration: none;
  transform: translateY(-1px);
}

.hero-link-secondary,
.cta-button-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.hero-link-secondary:hover,
.cta-button-secondary:hover {
  color: var(--text);
  border-color: var(--accent);
}

.cta-button-primary[disabled],
.cta-button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.content-section,
.posts-showcase,
.archive-section { padding: 0.5rem 0 5rem; }

.section-label {
  width: 100%;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--border-secondary);
  color: var(--text-tertiary);
}

.section-content {  
  padding-top: 1.75rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.about-panel {
  padding: 1.7rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.about-panel-secondary {
  background: linear-gradient(135deg, var(--accent-soft), transparent 56%), var(--surface);
}

.about-panel-title {
  margin-bottom: 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.section-lead {
  margin-bottom: 1.25rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.82;
  color: var(--text);
}

.section-text {
  margin-bottom: 1.1rem;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

.section-text:last-child { margin-bottom: 0; }

.section-actions {
  margin-top: 1.5rem;
}

.side-by-side {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.external-link {
  display: inline-flex;  
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.external-link::after {
  content: '↗';
  font-size: 0.95em;
}

.external-link:hover {
  color: var(--accent-strong);
  border-color: var(--accent);
  text-decoration: none;
}

.promise-card {
  position: relative;
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  border-bottom-left-radius: 5px;
  border-top-left-radius: 5px;
  background:
    linear-gradient(135deg, var(--accent-soft), transparent 55%),
    var(--surface);
  box-shadow: var(--shadow);  
}

.promise-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 20px 0 0 20px;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
}

.promise-title {
  margin-bottom: 0.9rem;
  padding-left: 0.35rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--text);
}

.promise-text {
  padding-left: 0.35rem;
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

.post-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.375rem 0;
  border-bottom: 1px solid var(--border-secondary);
}

.post-item-title {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

.post-item-meta {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.posts-head {
  margin-bottom: 1.5rem;
}

.posts-intro {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.8;
}

.featured-post-card {
  padding: 1.8rem;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: linear-gradient(135deg, var(--accent-soft), transparent 48%), var(--surface);
  box-shadow: var(--shadow);
}

.featured-post-meta,
.archive-card-meta {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.featured-post-title {
  margin: 0.7rem 0 0.9rem;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.25;
  color: var(--text);
}

.featured-post-title a,
.archive-card-title a {
  color: inherit;
}

.featured-post-desc {
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

.featured-post-link,
.archive-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.25rem;
  font-size: 0.93rem;
  font-weight: 600;
}

.featured-post-link::after,
.archive-card-link::after {
  content: '→';
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.archive-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.archive-card-title {
  margin: 0.7rem 0 0.75rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--text);
}

.archive-card-desc {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.85;
}

.archive-card-link {
  margin-top: auto;
  padding-top: 1rem;
}

.launch-section {
  display: flex;
}

.launch-section > * {
  flex: 1;
}

.launch-section > :first-child {
  margin-right: 1rem;
}

.launch-section > :last-child {
  margin-left: 1rem;
}

.launch-section,
.featured-section,
.explorer-section,
.cta-section {
  padding: 0.5rem 0 5rem;
}

#launch,
#about,
#recent-posts,
#explore,
#sponsor,
#feedback {
  scroll-margin-top: 10rem;
}

.launch-card,
.cta-panel,
.category-card,
.blog-card {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.launch-card {
  display: grid;
  gap: 1.25rem;
  padding: 1.7rem;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--accent-soft), transparent 52%), var(--surface);
}

.launch-title,
.cta-title {
  margin-top: 0.95rem;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.25;
  color: var(--text);
}

.launch-text,
.cta-text {
  margin-top: 0.95rem;
  max-width: 45rem;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 0.95rem;
}

.store-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.store-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

.featured-post-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr);
  gap: 1.3rem;
  padding: 1.35rem;
}

.recent-carousel {
  display: grid;
  gap: 1rem;
  touch-action: pan-y;
}

.recent-slide[hidden] {
  display: none;
}

.recent-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
}

.recent-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}

.recent-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.recent-arrow svg {
  width: 1.05rem;
  height: 1.05rem;
}

.recent-arrow:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  color: var(--accent);
}

.recent-dot {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.recent-dot::before {
  content: '';
  display: block;
  width: 0.8rem;
  height: 0.8rem;
  margin: auto;
  border-radius: 999px;
  background: var(--border);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.recent-dot:hover {
  transform: scale(1.08);
}

.recent-dot.is-active,
.recent-dot[aria-pressed="true"] {
  background: transparent;
}

.recent-dot.is-active::before,
.recent-dot[aria-pressed="true"]::before {
  background: var(--accent-strong);
}

.featured-post-image-link,
.blog-card-image-link {
  display: block;
}

.featured-post-layout.is-image-missing {
  grid-template-columns: 1fr;
}

.featured-post-layout.is-image-missing .featured-post-image-link,
.blog-card.is-image-missing .blog-card-image-link,
.post-cover.is-image-missing {
  display: none;
}

.featured-post-image,
.blog-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-post-image {
  min-height: 100%;
  border-radius: 20px;
  border: 1px solid var(--border-secondary);
  aspect-ratio: 1.2 / 1;
}

.featured-post-copy {
  display: flex;
  flex-direction: column;
}

.featured-post-category,
.blog-card-category {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--bg-secondary);
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border-radius: 22px;
}

.category-card-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--text);
}

.category-card-desc {
  margin-top: 0.8rem;
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.8;
}

.category-card-meta {
  margin-top: 1rem;
  color: var(--text-tertiary);
  font-size: 0.88rem;
}

.category-card-button {
  margin-top: auto;
  padding: 0.9rem 0 0;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.blog-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(130px, 0.7fr));
  gap: 1rem;
  align-items: end;
  margin-top: 2rem;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.filter-field label {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.filter-field input,
.filter-field select {
  width: 100%;
  min-height: 3rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
}

.category-pills {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.category-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  min-height: 100%;
  padding: 1rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.category-pill:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.category-pill-name {
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.3;
  color: var(--text);
}

.category-pill-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.category-pill-meta {
  margin-top: auto;
  font-size: 0.86rem;
  color: var(--text-tertiary);
}

.category-pill.is-active,
.category-pill[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}

.category-pill.is-active .category-pill-name,
.category-pill[aria-pressed="true"] .category-pill-name,
.category-pill.is-active .category-pill-desc,
.category-pill[aria-pressed="true"] .category-pill-desc,
.category-pill.is-active .category-pill-meta,
.category-pill[aria-pressed="true"] .category-pill-meta {
  color: #FFFFFF;
}

.results-count {
  margin-top: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  margin-top: 1.3rem;
}

.featured-articles-grid {
  margin-top: 0;
}

.featured-actions {
  display: flex;
  justify-content: center;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
}

.blog-card-image-link {
  aspect-ratio: 1.5 / 1;
  overflow: hidden;
  background: var(--bg-secondary);
}

.blog-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem 1rem 1.1rem;
}

.blog-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.blog-card-date {
  color: var(--text-tertiary);
  font-size: 0.78rem;
}

.blog-card-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--text);
}

.blog-card-title a {
  color: inherit;
}

.blog-card-desc {
  display: -webkit-box;
  margin-top: 0.75rem;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  line-clamp: 4;
  -webkit-line-clamp: 4;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 700;
}

.blog-card-link::after {
  content: '→';
}

.empty-state {
  padding: 2rem;
  margin-top: 1.3rem;
  border: 1px dashed var(--border);
  border-radius: 22px;
  color: var(--text-secondary);
  text-align: center;
}

.empty-state h3 {
  margin-bottom: 0.6rem;
  font-family: var(--serif);
  color: var(--text);
}

.blog-scroll-sentinel {
  width: 100%;
  height: 1px;
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.cta-grid-single {
  grid-template-columns: 1fr;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.error-actions {
  margin-top: 1rem;
}

.comments-block {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-secondary);
}

.comments-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--text);
}

.comments-text {
  margin: 0.45rem 0 1rem;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.8;
}

.comments-note {
  margin-bottom: 0;
}

.comments-embed {
  min-height: 8rem;
}

.cta-panel {
  padding: 1.45rem;
  border-radius: 24px;
}

.cta-panel-contrast {
  background: linear-gradient(135deg, var(--bg-secondary), var(--surface));
}

.contact-email {
  display: inline-block;
  margin: 0.9rem 0 1rem;
  color: var(--accent-strong);
  font-weight: 700;
  padding: 0.25rem 0;
}

.post-wrapper { padding: 3rem 0 5rem; }

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 2.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.post-eyebrow { margin-bottom: 1rem; }

.post-title {
  margin-bottom: 1.25rem;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
}

.post-meta {
  margin-bottom: 2.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.post-meta span { margin-right: 1.25rem; }

.post-author-byline {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.post-author-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.post-author-info {
  flex: 1;
}

.post-author-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.post-author-credentials {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.post-category-badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.post-divider {
  margin-bottom: 2.5rem;
  border: none;
  border-top: 1px solid var(--border-secondary);
}

.post-divider-secondary {
  margin-top: 2.75rem;
  margin-bottom: 2rem;
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.75rem;
}

.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border-secondary);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.post-nav-link:hover {
  border-color: var(--accent);
  background: var(--bg-secondary);
  text-decoration: none;
}

.post-nav-placeholder {
  border: none;
}

.post-nav-next {
  text-align: right;
}

.post-nav-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.post-nav-title {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.post-cover {
  margin-bottom: 2rem;
  aspect-ratio: 1.4 / 1;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--bg-secondary);
  box-shadow: var(--shadow);
}

.post-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.post-body {
  font-size: 1.0625rem;
  color: var(--text);
}

.post-body p,
.post-body ul,
.post-body ol,
.post-body blockquote { margin-bottom: 1.625rem; }
.post-body blockquote p { margin: 0; }


.post-body h2,
.post-body h3 {
  margin: 2.6rem 0 1rem;
  font-family: var(--serif);
  color: var(--text);
}

.post-body h2 { font-size: 1.42rem; }
.post-body h3 { font-size: 1.16rem; }

.post-body ul,
.post-body ol { margin-left: 1.5rem; }

.post-body li { margin-bottom: 0.5rem; }

.post-body blockquote {
  padding: 0.75rem 0 0.75rem 1.5rem;
  border-left: 3px solid var(--accent);
  color: var(--text-secondary);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.65;
}

.post-body img {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 2rem 0;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.author-bio {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding-top: 0.25rem;
}

.author-bio-avatar {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: 1px solid var(--border-secondary);
  background: var(--surface);
}

.author-bio-name {
  margin-bottom: 0.5rem;  
  font-size: 1.15rem;
  color: var(--text);
}

.author-bio-text,
.author-bio-note {
  color: var(--text-secondary);
}

.author-bio-text {
  margin-bottom: 0.7rem;
  line-height: 1.8;
}

.author-bio-note {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.author-bio-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
}

.post-feedback-kicker {
  margin-bottom: 0.45rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

.post-feedback-title {
  margin-bottom: 0.65rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.3;
  color: var(--text);
}

.post-feedback-text {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.post-feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Subscribe form */
.subscribe-block {
  margin-bottom: 0.5rem;
}

.subscribe-section {
  padding: 3rem 0;  
}

.subscribe-section .subscribe-block {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}

.subscribe-title {
  margin-top: 0.5rem;
  margin-bottom: 0.4rem;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.3;
  color: var(--text);
}

.subscribe-note {
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.subscribe-form {
  display: flex;
  gap: 0.6rem;
}

.subscribe-input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.9rem;
  font-size: 0.92rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s ease;
}

.subscribe-input:focus {
  border-color: var(--accent);
  outline: none;
}

.subscribe-input::placeholder {
  color: var(--text-tertiary);
}

.subscribe-button {
  flex-shrink: 0;
}

.subscribe-powered {
  margin-top: 0.65rem;
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

.subscribe-powered a {
  color: var(--text-tertiary);
}

.subscribe-powered a:hover {
  color: var(--accent);
}

/* Footer subscribe */
.footer-subscribe {
  width: 100%;
  max-width: 420px;
  padding-bottom: 1.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-secondary);
}

.footer-subscribe .subscribe-title {
  font-size: 1.1rem;
}

.footer-subscribe .subscribe-note {
  font-size: 0.82rem;
  margin-bottom: 0.85rem;
}

.footer-subscribe .subscribe-input {
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border-secondary);
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-signoff { margin-top: 0.5rem; }

.site-footer a { color: var(--text-secondary); }

.footer-feed-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent-strong);
  font-weight: 600;
}

.footer-feed-link svg {
  width: 1rem;
  height: 1rem;
}

@media (max-width: 1024px) {
  .site-nav .wrap {
    flex-wrap: nowrap;
    align-items: center;
  }

  .nav-links-desktop {
    display: none;
  }

  .nav-dropdown {
    display: block;
  }

  .nav-meta {
    flex-wrap: nowrap;
    width: auto;
    margin-left: auto;
    gap: 0.75rem;
    justify-content: flex-end;
  }

  .nav-dropdown-panel {
    position: fixed;
    top: 4.85rem;
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    min-width: 0;
    padding: 1rem 1.5rem 1.2rem;
    border-right: 0;
    border-left: 0;
    border-radius: 0 0 20px 20px;
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .theme-switcher { order: 0; }
}

@media (max-width: 720px) {
  .site-nav .wrap {
    gap: 0.85rem;
  }

  .hero { padding-top: 3.5rem; }
  .hero-layout {
    grid-template-columns: 1fr;
  }
  .blog-toolbar,
  .cta-grid,
  .featured-post-layout,
  .about-grid,
  .blog-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }
  .category-pills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .archive-grid { grid-template-columns: 1fr; }
  .launch-section {
    flex-direction: column;
  }
  .launch-section > :first-child,
  .launch-section > :last-child {
    margin-right: 0;
    margin-left: 0;
  }
  .tag-archive-item-link,
  .related-post-link { flex-direction: column; gap: 0.25rem; }
  .tag-archive-item-meta,
  .related-post-meta { white-space: normal; }
  .post-item { flex-direction: column; gap: 0.25rem; }
  .post-item-meta { white-space: normal; }
  .author-bio { grid-template-columns: 1fr; }
  .post-author-byline {
    flex-direction: column;
    text-align: center;
  }
  .post-author-info {
    flex: none;
  }
  .subscribe-form { flex-direction: column; }
  .post-nav { grid-template-columns: 1fr; }
  .footer-subscribe { max-width: 100%; }
  .post-feedback-title { margin-bottom: 0.5rem; }
  .post-feedback-text { margin-bottom: 0.6rem; line-height: 1.7; }
  .post-feedback-actions { gap: 0.65rem; }
  .post-feedback-actions .cta-button {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    padding: 0.8rem 0.95rem;
  }
}

/* Tags on posts */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.post-tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.post-tag:hover {
  background: var(--accent);
  color: var(--surface);
  text-decoration: none;
}

.post-tag-unlinked {
  color: var(--text-tertiary);
  background: transparent;
  border: 1px solid var(--text-tertiary);
  cursor: default;
}

/* Browse by topic (homepage) */
.topics-section {
  padding: 4rem 0;
}

.topics-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-secondary);
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.topic-pill:hover {
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  text-decoration: none;
}

.topic-pill-count {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-weight: 600;
}

/* Tag archive page */
.tag-archive {
  padding: 3rem 0 5rem;
}

.tag-archive-count {
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.tag-archive-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tag-archive-item-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-secondary);
  text-decoration: none;
  transition: background 0.12s ease;
}

.tag-archive-item-link:hover {
  text-decoration: none;
}

.tag-archive-item-link:hover .tag-archive-item-title {
  color: var(--accent);
}

.tag-archive-item-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.12s ease;
}

.tag-archive-item-meta {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  white-space: nowrap;
}

/* Related posts */
.related-posts {
  margin-bottom: 0.5rem;
}

.related-posts .section-label {
  margin-bottom: 1rem;
}

.related-posts-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.related-post-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-secondary);
  text-decoration: none;
}

.related-post-link:hover {
  text-decoration: none;
}

.related-post-link:hover .related-post-title {
  color: var(--accent);
}

.related-post-title {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.12s ease;
}

.related-post-meta {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  white-space: nowrap;
}

@media (max-width: 520px) {
  .wrap { padding: 0 1.2rem; }
  .nav-brand { gap: 0.55rem; }
  .nav-brand-logo {
    width: 1.85rem;
    height: 1.85rem;
  }
  .nav-meta {
    gap: 0.65rem;
  }
  .hero-brand-logo {
    width: 2.7rem;
    height: 2.7rem;
  }
  .store-pills,
  .category-pills {
    gap: 0.65rem;
  }
  .nav-dropdown-panel {
    top: 4.5rem;
    padding: 0.9rem 1.2rem 1.1rem;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  }
  .cta-button,
  .store-pill {
    width: 100%;
  }
  .category-pills {
    grid-template-columns: 1fr;
  }
  .section-lead { font-size: 1.08rem; }
}