/* =============================================
   Hatmakers Corner — Design System
   Based on Google AI Studio brand guide
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --hm-bg: #faf9f6;
  --hm-bg-white: #ffffff;
  --hm-bg-card: #ffffff;
  --hm-bg-light: #f5f4f1;
  --hm-bg-stone-100: #f5f5f4;
  --hm-bg-dark: #292524;
  --hm-bg-darker: #1c1917;

  --hm-text-primary: #1c1917;
  --hm-text-secondary: #57534e;
  --hm-text-muted: #a8a29e;
  --hm-text-light: #78716c;

  --hm-border-light: #e7e5e4;
  --hm-border-medium: #d6d3d1;

  --hm-btn-bg: #292524;
  --hm-btn-bg-hover: #1c1917;
  --hm-btn-text: #ffffff;

  --hm-accent: #292524;
  --hm-accent-hover: #1c1917;

  --hm-font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --hm-font-serif: 'Playfair Display', ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif;

  --hm-radius: 2px;
  --hm-radius-sm: 2px;
  --hm-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --hm-transition: 200ms ease;
}

::selection {
  background-color: #e7e5e4;
}

body {
  background-color: var(--hm-bg);
  font-family: var(--hm-font-sans);
  color: var(--hm-text-primary);
}

h1, h2, h3, h4, h5, h6,
.hm-serif {
  font-family: var(--hm-font-serif) !important;
}

.hm-sans {
  font-family: var(--hm-font-sans) !important;
}

.hm-bg { background-color: var(--hm-bg); }
.hm-bg-white { background-color: var(--hm-bg-white); }
.hm-bg-dark { background-color: var(--hm-bg-dark); }
.hm-text-secondary { color: var(--hm-text-secondary); }
.hm-text-muted { color: var(--hm-text-muted); }

.hm-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--hm-font-sans);
  font-weight: 500;
  border-radius: var(--hm-radius);
  transition: all var(--hm-transition);
  cursor: pointer;
  border: none;
}

.hm-btn-primary {
  background-color: var(--hm-btn-bg);
  color: var(--hm-btn-text);
  padding: 0.625rem 1.25rem;
}
.hm-btn-primary:hover {
  background-color: var(--hm-btn-bg-hover);
}

.hm-btn-ghost {
  background: transparent;
  color: var(--hm-text-secondary);
  padding: 0.5rem 0.75rem;
}
.hm-btn-ghost:hover {
  color: var(--hm-text-primary);
}

.hm-input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--hm-border-medium);
  border-radius: var(--hm-radius);
  font-family: var(--hm-font-sans);
  font-size: 0.875rem;
  background-color: var(--hm-bg-white);
  transition: all var(--hm-transition);
}
.hm-input:focus {
  outline: none;
  border-color: var(--hm-accent);
  box-shadow: 0 0 0 1px var(--hm-accent);
}

.hm-card {
  background-color: var(--hm-bg-white);
  border: 1px solid var(--hm-border-light);
  border-radius: var(--hm-radius);
}

.hm-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--hm-border-light);
}
.hm-section-header h2 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hm-text-muted);
  margin: 0;
}
.hm-section-header a,
.hm-section-link {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--hm-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color var(--hm-transition);
}
.hm-section-header a:hover,
.hm-section-link:hover {
  color: var(--hm-text-primary);
}

.hm-tag {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.625rem;
  background-color: var(--hm-bg-stone-100);
  border: 1px solid var(--hm-border-light);
  border-radius: var(--hm-radius-sm);
  color: var(--hm-text-primary);
}

.hm-badge-new {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--hm-bg-darker);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
  margin-top: 1.5rem;
  margin-right: 1.5rem;
}

.hm-container {
  max-width: 80rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .hm-container { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .hm-container { padding-left: 2rem; padding-right: 2rem; }
}

/* Page header banner */
.hm-page-header {
  padding: 5rem 0 6rem;
  border-bottom: 1px solid var(--hm-border-light);
  background-color: var(--hm-bg-white);
}

/* Section padding */
.hm-section {
  padding: 4rem 0;
}

.hm-section-sm {
  padding: 2rem 0;
}

.hm-section-lg {
  padding: 6rem 0;
}

.hm-section-label {
  display: block;
  color: var(--hm-text-light);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.hm-page-title {
  font-family: var(--hm-font-serif);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--hm-text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .hm-page-title { font-size: 3.75rem; }
}

.hm-title-italic {
  font-weight: 400;
  font-style: italic;
  color: var(--hm-text-secondary);
}

.hm-page-subtitle {
  font-size: 1.125rem;
  color: var(--hm-text-secondary);
  font-weight: 300;
  line-height: 1.625;
}
@media (min-width: 768px) {
  .hm-page-subtitle { font-size: 1.25rem; }
}

/* Prose content */
.hm-prose {
  max-width: 48rem;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--hm-text-secondary);
  font-weight: 300;
}

.hm-prose h2 {
  font-family: var(--hm-font-serif);
  font-weight: 700;
  font-size: 1.875rem;
  color: var(--hm-text-primary);
  margin: 3rem 0 1.5rem;
}

.hm-prose p {
  margin-bottom: 1.5rem;
}

.hm-prose strong {
  font-weight: 600;
  color: var(--hm-text-primary);
}

/* Manifesto block */
.hm-manifesto {
  background-color: var(--hm-bg-white);
  padding: 2.5rem;
  border: 1px solid var(--hm-border-light);
  margin: 2.5rem 0 4rem;
  position: relative;
}

.hm-manifesto-item {
  display: flex;
  gap: 1rem;
  font-family: var(--hm-font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--hm-text-primary);
  margin-bottom: 1.5rem;
  align-items: flex-start;
}
.hm-manifesto-item:last-child {
  margin-bottom: 0;
}

.hm-manifesto-num {
  color: var(--hm-text-muted);
  flex-shrink: 0;
}

/* Divider */
.hm-divider {
  border-top: 1px solid var(--hm-border-light);
  margin: 4rem 0;
}

/* Pullquote */
.hm-pullquote {
  background-color: var(--hm-bg-stone-100);
  padding: 1.5rem;
  border-left: 4px solid var(--hm-text-primary);
  color: var(--hm-text-secondary);
  font-style: italic;
  font-size: 0.875rem;
  margin: 2rem 0 1.5rem;
}

/* CTA Section (dark) */
.hm-cta-section {
  padding: 5rem 0;
  background-color: var(--hm-bg-darker);
  text-align: center;
}

.hm-cta-title {
  font-family: var(--hm-font-serif);
  font-weight: 700;
  font-size: 1.875rem;
  color: white;
  margin-bottom: 1.5rem;
}

.hm-cta-text {
  color: #a8a29e;
  font-size: 1.125rem;
  margin-bottom: 2rem;
  font-weight: 300;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.hm-btn-ghost-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: white;
  color: var(--hm-text-primary);
  padding: 0.875rem 2rem;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: var(--hm-radius);
  transition: background-color var(--hm-transition);
}
.hm-btn-ghost-light:hover {
  background-color: #f5f5f4;
}

/* =============================================
   Archive page (Articles)
   ============================================= */
.hm-archive-header {
  padding: 5rem 0 6rem;
  background-color: var(--hm-bg-white);
  border-bottom: 1px solid var(--hm-border-light);
}

.hm-archive-header-content {
  max-width: 48rem;
}

.hm-archive-content {
  padding: 4rem 0 6rem;
  background-color: var(--hm-bg);
}

/* Toolbar */
.hm-archive-toolbar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3rem;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .hm-archive-toolbar {
    flex-direction: row;
    align-items: center;
  }
}

.hm-filter-bar {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  width: 100%;
  padding-bottom: 0.5rem;
}
@media (min-width: 768px) {
  .hm-filter-bar { width: auto; }
}

.hm-filter-btn {
  background: none;
  border: none;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hm-text-muted);
  cursor: pointer;
  padding: 0 0 0.25rem;
  border-bottom: 2px solid transparent;
  transition: color var(--hm-transition), border-color var(--hm-transition);
  white-space: nowrap;
}
.hm-filter-btn:hover {
  color: var(--hm-text-secondary);
}
.hm-filter-active,
.hm-filter-btn.hm-filter-active {
  color: var(--hm-text-primary);
  border-bottom-color: var(--hm-text-primary);
  font-weight: 700;
}

.hm-search-box {
  position: relative;
  width: 100%;
}
@media (min-width: 768px) {
  .hm-search-box { width: 18rem; }
}

.hm-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--hm-text-muted);
  pointer-events: none;
}

.hm-input-search {
  width: 100%;
  padding-left: 2.25rem !important;
  background-color: var(--hm-bg-white) !important;
}

/* Grid */
.hm-archive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) {
  .hm-archive-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .hm-archive-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Article card in archive */
.hm-article-card {
  display: flex;
  flex-direction: column;
  background-color: var(--hm-bg-white);
  border: 1px solid var(--hm-border-light);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--hm-transition), box-shadow var(--hm-transition);
}
.hm-article-card:hover {
  border-color: var(--hm-border-medium);
  box-shadow: var(--hm-shadow-sm);
}

.hm-article-card-image {
  height: 11rem;
  background-color: var(--hm-bg-stone-100);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--hm-bg-stone-100);
  flex-shrink: 0;
}
.hm-article-card-image span {
  color: var(--hm-text-muted);
  font-family: var(--hm-font-serif);
  font-style: italic;
  font-size: 0.875rem;
}

.hm-article-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.hm-article-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.hm-article-card-cat {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hm-text-primary);
  background-color: var(--hm-bg-stone-100);
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--hm-border-light);
}

.hm-article-card-time {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--hm-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hm-article-card-title {
  font-family: var(--hm-font-serif);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--hm-text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
  transition: color var(--hm-transition);
}
.hm-article-card:hover .hm-article-card-title {
  color: var(--hm-text-secondary);
}

.hm-article-card-text {
  color: var(--hm-text-secondary);
  font-size: 0.875rem;
  line-height: 1.625;
  font-weight: 300;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.hm-article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--hm-border-light);
}

.hm-article-card-date {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--hm-text-muted);
}

.hm-article-card-read {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: var(--hm-text-primary);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: color var(--hm-transition);
}
.hm-article-card:hover .hm-article-card-read {
  color: var(--hm-text-secondary);
}

/* Load more */
.hm-archive-more {
  margin-top: 5rem;
  text-align: center;
}

.hm-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2.5rem;
  border: 1px solid var(--hm-border-medium);
  background-color: var(--hm-bg-white);
  color: var(--hm-text-primary);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: var(--hm-radius);
  transition: background-color var(--hm-transition);
}
.hm-btn-outline:hover {
  background-color: var(--hm-bg-stone-100);
}

/* =============================================
   Header
   ============================================= */
.hm-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(250, 249, 246, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hm-border-light);
}

.hm-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5rem;
}

.hm-logo a {
  text-decoration: none;
  font-family: var(--hm-font-serif);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.025em;
  color: var(--hm-text-primary);
}

.hm-logo-bold {
  color: var(--hm-text-primary);
}

.hm-logo-light {
  font-weight: 400;
  font-style: italic;
  color: var(--hm-text-light);
}

.hm-nav {
  display: none;
}
@media (min-width: 768px) {
  .hm-nav { display: flex; gap: 2.5rem; }
}

.hm-nav-link {
  color: var(--hm-text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color var(--hm-transition);
}
.hm-nav-link:hover {
  color: var(--hm-text-primary);
}

.hm-auth {
  display: none;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .hm-auth { display: flex; }
}

/* =============================================
   Hero Section
   ============================================= */
.hm-hero {
  position: relative;
  padding: 6rem 0 8rem;
  background-color: var(--hm-bg-stone-100);
  overflow: hidden;
}

.hm-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  pointer-events: none;
  background-image: radial-gradient(#444 1px, transparent 1px);
  background-size: 32px 32px;
}

.hm-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 48rem;
}

.hm-hero-title {
  font-family: var(--hm-font-serif);
  font-weight: 700;
  font-size: 3rem;
  color: var(--hm-text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .hm-hero-title { font-size: 4.5rem; }
}

.hm-hero-sub {
  font-weight: 400;
  font-style: italic;
  color: var(--hm-text-secondary);
}

.hm-hero-text {
  font-size: 1.125rem;
  color: var(--hm-text-secondary);
  margin-bottom: 3rem;
  font-weight: 300;
  line-height: 1.625;
}
@media (min-width: 768px) {
  .hm-hero-text { font-size: 1.25rem; }
}

.hm-hero-cta {
  display: flex;
  justify-content: center;
}

.hm-btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.125rem;
}

.hm-icon-arrow {
  display: inline-block;
  margin-left: 0.5rem;
}

/* =============================================
   Home Feed
   ============================================= */
.hm-feed {
  padding: 6rem 0;
  background-color: var(--hm-bg-white);
  border-bottom: 1px solid var(--hm-border-light);
}

.hm-feed-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .hm-feed-grid {
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
  }
}

.hm-feed-main {
  display: flex;
  flex-direction: column;
}

.hm-feed-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .hm-feed-sidebar { gap: 3rem; }
}

.hm-feed-block {
  display: flex;
  flex-direction: column;
}

/* Featured voice card */
.hm-voice-featured {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--hm-bg);
  padding: 2rem 3rem;
  border: 1px solid var(--hm-border-light);
  cursor: pointer;
  transition: border-color var(--hm-transition);
  position: relative;
}
.hm-voice-featured:hover {
  border-color: var(--hm-border-medium);
}

.hm-voice-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--hm-border-light);
}
.hm-voice-author h4 {
  font-weight: 700;
  color: var(--hm-text-primary);
  font-size: 1.125rem;
  margin: 0;
}
.hm-voice-author p {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--hm-text-light);
  margin: 0;
}

.hm-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--hm-bg-white);
  border: 1px solid var(--hm-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hm-avatar span {
  font-family: var(--hm-font-serif);
  font-size: 1rem;
  color: var(--hm-text-muted);
}

.hm-avatar-lg {
  width: 3.5rem;
  height: 3.5rem;
}
.hm-avatar-lg span {
  font-size: 1.5rem;
}

.hm-voice-title {
  font-family: var(--hm-font-serif);
  font-weight: 700;
  font-size: 1.875rem;
  color: var(--hm-text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  transition: color var(--hm-transition);
}
.hm-voice-featured:hover .hm-voice-title {
  color: var(--hm-text-secondary);
}
@media (min-width: 768px) {
  .hm-voice-title { font-size: 3rem; }
}

.hm-voice-excerpt {
  color: var(--hm-text-secondary);
  font-size: 1.125rem;
  line-height: 1.625;
  font-weight: 300;
  margin-bottom: 2rem;
  flex-grow: 1;
}
@media (min-width: 768px) {
  .hm-voice-excerpt { font-size: 1.25rem; }
}

.hm-voice-date {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--hm-text-muted);
}

/* About card */
.hm-card-about {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--hm-bg-darker);
  color: white !important;
  border: 1px solid var(--hm-border-light);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--hm-transition);
}
.hm-card-about:hover {
  border-color: var(--hm-border-medium);
}

.hm-card-about-icon {
  position: absolute;
  top: 0;
  right: 0;
  padding: 2rem;
  opacity: 0.1;
}

.hm-card-about-title {
  font-family: var(--hm-font-serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: white !important;
  margin-bottom: 1rem;
  line-height: 1.2;
  position: relative;
  z-index: 10;
  padding: 1.5rem 1.5rem 0;
}

.hm-card-about-text {
  color: #a8a29e;
  font-size: 0.875rem;
  line-height: 1.625;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

.hm-card-link {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--hm-transition);
  padding: 0 1.5rem 1.5rem;
  position: relative;
  z-index: 10;
}
.hm-card-link:hover {
  color: #d6d3d1;
}

/* Article card */
.hm-card-article {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--hm-bg-white);
  border: 1px solid var(--hm-border-light);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--hm-transition), box-shadow var(--hm-transition);
}
.hm-card-article:hover {
  border-color: var(--hm-border-medium);
  box-shadow: var(--hm-shadow-sm);
}

.hm-card-article-image {
  height: 12rem;
  background-color: var(--hm-bg-stone-100);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--hm-bg-stone-100);
}
.hm-card-article-image span {
  color: var(--hm-text-muted);
  font-family: var(--hm-font-serif);
  font-style: italic;
  font-size: 0.875rem;
}

.hm-card-article-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.hm-card-article-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hm-text-light);
}
.hm-card-article-meta strong {
  color: var(--hm-text-primary);
}

.hm-dot {
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background-color: var(--hm-border-medium);
}

.hm-card-article-title {
  font-family: var(--hm-font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--hm-text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
  transition: color var(--hm-transition);
}
.hm-card-article:hover .hm-card-article-title {
  color: var(--hm-text-secondary);
}

.hm-card-article-text {
  color: var(--hm-text-secondary);
  font-size: 0.875rem;
  line-height: 1.625;
  font-weight: 300;
  margin-bottom: 1rem;
  flex-grow: 1;
}

/* =============================================
   Footer
   ============================================= */
.hm-footer {
  background-color: var(--hm-bg);
  padding-top: 6rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--hm-border-light);
}

.hm-footer-newsletter {
  text-align: center;
  max-width: 36rem;
  margin-bottom: 5rem;
}

.hm-footer-title {
  font-family: var(--hm-font-serif);
  font-weight: 700;
  font-size: 1.875rem;
  color: var(--hm-text-primary);
  margin-bottom: 1rem;
}

.hm-footer-text {
  color: var(--hm-text-secondary);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.hm-footer-form {
  display: flex;
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
}

.hm-input-group {
  position: relative;
  flex-grow: 1;
}

.hm-input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--hm-text-muted);
  pointer-events: none;
}

.hm-input-newsletter {
  padding-left: 2.75rem !important;
  padding-top: 0.875rem !important;
  padding-bottom: 0.875rem !important;
  border-radius: var(--hm-radius) 0 0 var(--hm-radius) !important;
  border-right: none !important;
}

.hm-footer-form .hm-btn-primary {
  border-radius: 0 var(--hm-radius) var(--hm-radius) 0;
  padding: 0.875rem 1.5rem;
  white-space: nowrap;
}

.hm-footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--hm-border-light);
  padding-top: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--hm-text-light);
}
@media (min-width: 768px) {
  .hm-footer-bottom {
    flex-direction: row;
  }
}

.hm-footer-brand {
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .hm-footer-brand { margin-bottom: 0; }
}

.hm-footer-nav {
  display: flex;
  gap: 2rem;
}
.hm-footer-nav a {
  color: var(--hm-text-light);
  text-decoration: none;
  transition: color var(--hm-transition);
}
.hm-footer-nav a:hover {
  color: var(--hm-text-primary);
}

/* =============================================
   Section label & page header (shared)
   ============================================= */
.hm-section-label {
  display: block;
  color: var(--hm-text-light);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.hm-page-title {
  font-family: var(--hm-font-serif);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--hm-text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .hm-page-title { font-size: 3.75rem; }
}

.hm-title-italic {
  font-weight: 400;
  font-style: italic;
  color: var(--hm-text-secondary);
}

.hm-page-subtitle {
  font-size: 1.125rem;
  color: var(--hm-text-secondary);
  font-weight: 300;
  line-height: 1.625;
}
@media (min-width: 768px) {
  .hm-page-subtitle { font-size: 1.25rem; }
}

/* =============================================
   About page — prose
   ============================================= */
.hm-prose {
  max-width: 48rem;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--hm-text-secondary);
  font-weight: 300;
}

.hm-prose h2 {
  font-family: var(--hm-font-serif);
  font-weight: 700;
  font-size: 1.875rem;
  color: var(--hm-text-primary);
  margin: 3rem 0 1.5rem;
}

.hm-prose p {
  margin-bottom: 1.5rem;
}

.hm-prose strong {
  font-weight: 600;
  color: var(--hm-text-primary);
}

.hm-manifesto {
  background-color: var(--hm-bg-white);
  padding: 2.5rem;
  border: 1px solid var(--hm-border-light);
  margin: 2.5rem 0 4rem;
  position: relative;
}

.hm-manifesto-item {
  display: flex;
  gap: 1rem;
  font-family: var(--hm-font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--hm-text-primary);
  margin-bottom: 1.5rem;
  align-items: flex-start;
}
.hm-manifesto-item:last-child {
  margin-bottom: 0;
}

.hm-manifesto-num {
  color: var(--hm-text-muted);
  flex-shrink: 0;
}

.hm-divider {
  border-top: 1px solid var(--hm-border-light);
  margin: 4rem 0;
}

.hm-pullquote {
  background-color: var(--hm-bg-stone-100);
  padding: 1.5rem;
  border-left: 4px solid var(--hm-text-primary);
  color: var(--hm-text-secondary);
  font-style: italic;
  font-size: 0.875rem;
  margin: 2rem 0 1.5rem;
}

.hm-cta-section {
  padding: 5rem 0;
  background-color: var(--hm-bg-darker);
  text-align: center;
}

.hm-cta-title {
  font-family: var(--hm-font-serif);
  font-weight: 700;
  font-size: 1.875rem;
  color: white;
  margin-bottom: 1.5rem;
}

.hm-cta-text {
  color: #a8a29e;
  font-size: 1.125rem;
  margin-bottom: 2rem;
  font-weight: 300;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.hm-btn-ghost-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: white;
  color: var(--hm-text-primary);
  padding: 0.875rem 2rem;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: var(--hm-radius);
  transition: background-color var(--hm-transition);
}
.hm-btn-ghost-light:hover {
  background-color: #f5f5f4;
}

/* =============================================
   Archive page — articles & voices shared
   ============================================= */
.hm-archive-header {
  padding: 5rem 0 6rem;
  background-color: var(--hm-bg-white);
  border-bottom: 1px solid var(--hm-border-light);
}

.hm-archive-header-content {
  max-width: 48rem;
}

.hm-archive-content {
  padding: 4rem 0 6rem;
  background-color: var(--hm-bg);
}

.hm-archive-toolbar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3rem;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .hm-archive-toolbar { flex-direction: row; align-items: center; }
}

.hm-filter-bar {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  width: 100%;
  padding-bottom: 0.5rem;
}
@media (min-width: 768px) {
  .hm-filter-bar { width: auto; }
}

.hm-filter-btn {
  background: none;
  border: none;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hm-text-muted);
  cursor: pointer;
  padding: 0 0 0.25rem;
  border-bottom: 2px solid transparent;
  transition: color var(--hm-transition), border-color var(--hm-transition);
  white-space: nowrap;
}
.hm-filter-btn:hover { color: var(--hm-text-secondary); }

.hm-filter-active,
.hm-filter-btn.hm-filter-active {
  color: var(--hm-text-primary);
  border-bottom-color: var(--hm-text-primary);
  font-weight: 700;
}

.hm-search-box {
  position: relative;
  width: 100%;
}
@media (min-width: 768px) {
  .hm-search-box { width: 18rem; }
}

.hm-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--hm-text-muted);
  pointer-events: none;
}

.hm-input-search {
  width: 100%;
  padding-left: 2.25rem !important;
  background-color: var(--hm-bg-white) !important;
}

.hm-archive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) {
  .hm-archive-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .hm-archive-grid { grid-template-columns: repeat(4, 1fr); }
}

.hm-article-card {
  display: flex;
  flex-direction: column;
  background-color: var(--hm-bg-white);
  border: 1px solid var(--hm-border-light);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--hm-transition), box-shadow var(--hm-transition);
}
.hm-article-card:hover {
  border-color: var(--hm-border-medium);
  box-shadow: var(--hm-shadow-sm);
}

.hm-article-card-image {
  height: 11rem;
  background-color: var(--hm-bg-stone-100);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--hm-bg-stone-100);
  flex-shrink: 0;
}
.hm-article-card-image span {
  color: var(--hm-text-muted);
  font-family: var(--hm-font-serif);
  font-style: italic;
  font-size: 0.875rem;
}

.hm-article-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.hm-article-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.hm-article-card-cat {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hm-text-primary);
  background-color: var(--hm-bg-stone-100);
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--hm-border-light);
}

.hm-article-card-time {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--hm-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hm-article-card-title {
  font-family: var(--hm-font-serif);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--hm-text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
  transition: color var(--hm-transition);
}
.hm-article-card:hover .hm-article-card-title { color: var(--hm-text-secondary); }

.hm-article-card-text {
  color: var(--hm-text-secondary);
  font-size: 0.875rem;
  line-height: 1.625;
  font-weight: 300;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.hm-article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--hm-border-light);
}

.hm-article-card-date {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--hm-text-muted);
}

.hm-article-card-read {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: var(--hm-text-primary);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: color var(--hm-transition);
}
.hm-article-card:hover .hm-article-card-read { color: var(--hm-text-secondary); }

.hm-archive-more {
  margin-top: 5rem;
  text-align: center;
}

.hm-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2.5rem;
  border: 1px solid var(--hm-border-medium);
  background-color: var(--hm-bg-white);
  color: var(--hm-text-primary);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: var(--hm-radius);
  transition: background-color var(--hm-transition);
}
.hm-btn-outline:hover { background-color: var(--hm-bg-stone-100); }

.hm-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.hm-pagination ul {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hm-pagination li {
  display: inline;
}
.hm-pagination a,
.hm-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid var(--hm-border-light);
  background-color: var(--hm-bg-white);
  color: var(--hm-text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--hm-transition);
}
.hm-pagination a:hover {
  background-color: var(--hm-bg-stone-100);
}
.hm-pagination .current span {
  background-color: var(--hm-text-primary);
  color: white;
  border-color: var(--hm-text-primary);
}

/* =============================================
   Voices page
   ============================================= */
.hm-voices-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) {
  .hm-voices-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .hm-voices-grid { grid-template-columns: repeat(3, 1fr); }
}

.hm-voice-card {
  display: flex;
  flex-direction: column;
  background-color: var(--hm-bg-white);
  border: 1px solid var(--hm-border-light);
  padding: 2rem;
  position: relative;
  cursor: pointer;
  transition: border-color var(--hm-transition), box-shadow var(--hm-transition);
}

/* Stretched link — covers entire card with a single <a> */
.hm-stretched-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  text-indent: -9999px;
  overflow: hidden;
}
.hm-stretched-link:focus {
  outline: 2px solid var(--hm-text-primary);
  outline-offset: 2px;
}
.hm-voice-card:hover {
  border-color: var(--hm-border-medium);
  box-shadow: var(--hm-shadow-sm);
}

.hm-voice-card-new { border-color: var(--hm-text-primary); }
.hm-voice-card-new:hover { border-color: var(--hm-text-secondary); }

.hm-badge-new {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background-color: var(--hm-text-primary);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
}

.hm-voice-card-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--hm-border-light);
}
.hm-voice-card-author h4 {
  font-weight: 700;
  color: var(--hm-text-primary);
  font-size: 1rem;
  margin: 0 0 0.25rem;
}
.hm-voice-card-author p {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--hm-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.hm-voice-card-icon {
  position: absolute;
  top: 30%;
  right: 2rem;
  pointer-events: none;
  z-index: 0;
}
.hm-voice-card-icon svg { transform: rotate(12deg); }

.hm-voice-card-title {
  font-family: var(--hm-font-serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--hm-text-primary);
  margin-bottom: 1rem;
  line-height: 1.25;
  transition: color var(--hm-transition);
  position: relative;
  z-index: 10;
}
.hm-voice-card:hover .hm-voice-card-title { color: var(--hm-text-secondary); }

.hm-voice-card-text {
  color: var(--hm-text-secondary);
  font-size: 0.875rem;
  line-height: 1.625;
  font-weight: 300;
  margin-bottom: 2rem;
  flex-grow: 1;
  position: relative;
  z-index: 10;
}

.hm-voice-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hm-border-light);
}

.hm-voice-card-date {
  font-size: 0.75rem;
  color: var(--hm-text-muted);
  font-weight: 500;
}

.hm-voice-card-read {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: var(--hm-text-primary);
  transition: color var(--hm-transition);
}
.hm-voice-card:hover .hm-voice-card-read { color: var(--hm-text-secondary); }

/* =============================================
   Auth pages (Login, Signup, Welcome, Community)
   ============================================= */
.hm-auth-section {
  min-height: 80vh;
  background-color: var(--hm-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem;
}

.hm-auth-card {
  width: 100%;
  max-width: 28rem;
  background-color: var(--hm-bg-white);
  padding: 2.5rem;
  border: 1px solid var(--hm-border-light);
  position: relative;
  overflow: hidden;
}

.hm-auth-card-xl {
  max-width: 36rem;
}

.hm-auth-card-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 8rem;
  height: 8rem;
  background-color: var(--hm-bg-stone-100);
  border-radius: 0 0 0 999px;
  pointer-events: none;
}

.hm-auth-card-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.hm-auth-title {
  font-family: var(--hm-font-serif);
  font-weight: 700;
  font-size: 1.875rem;
  color: var(--hm-text-primary);
  display: block;
  margin-bottom: 0.5rem;
}

.hm-auth-subtitle {
  color: var(--hm-text-secondary);
  font-size: 0.9375rem;
  font-weight: 300;
  margin: 0;
}

.hm-auth-demo-note {
  display: inline-block;
  background-color: var(--hm-bg-stone-100);
  padding: 0.375rem 0.75rem;
  margin-top: 1rem;
  border: 1px solid var(--hm-border-light);
}
.hm-auth-demo-note p {
  font-size: 0.75rem;
  color: var(--hm-text-muted);
  font-weight: 500;
  margin: 0;
}

.hm-btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background-color: var(--hm-bg-white);
  border: 1px solid var(--hm-border-medium);
  color: var(--hm-text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
  transition: background-color var(--hm-transition);
}
.hm-btn-google:hover {
  background-color: var(--hm-bg-stone-100);
}

.hm-google-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.hm-auth-divider {
  position: relative;
  margin-bottom: 2rem;
}
.hm-auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--hm-border-light);
}
.hm-auth-divider span {
  position: relative;
  z-index: 10;
  display: inline-block;
  padding: 0 0.75rem;
  background-color: var(--hm-bg-white);
  color: var(--hm-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
}

.hm-auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hm-auth-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--hm-text-primary);
  margin-bottom: 0.375rem;
}

.hm-auth-form .hm-input {
  width: 100%;
  padding: 0.625rem 1rem;
  background-color: var(--hm-bg-stone-100);
  border: 1px solid var(--hm-border-medium);
  font-size: 0.9375rem;
  transition: background-color var(--hm-transition), border-color var(--hm-transition);
}
.hm-auth-form .hm-input:focus {
  outline: none;
  background-color: var(--hm-bg-white);
  border-color: var(--hm-text-primary);
}

.hm-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.375rem;
}
.hm-label-row label {
  margin-bottom: 0;
}

.hm-forgot-link {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--hm-text-muted);
  text-decoration: none;
}
.hm-forgot-link:hover {
  color: var(--hm-text-primary);
}

.hm-btn-block {
  width: 100%;
  text-align: center;
  margin-top: 0.75rem;
}

.hm-auth-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hm-border-light);
  font-size: 0.875rem;
  color: var(--hm-text-secondary);
}
.hm-auth-footer a {
  font-weight: 700;
  color: var(--hm-text-primary);
  text-decoration: none;
}
.hm-auth-footer a:hover {
  color: var(--hm-text-secondary);
}

/* Signup extras */
.hm-field-hint {
  font-size: 0.75rem;
  color: var(--hm-text-muted);
  margin: 0.25rem 0 0;
}

.hm-field-group {
  padding-top: 1rem;
  border-top: 1px solid var(--hm-border-light);
}

.hm-field-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--hm-text-primary);
  margin-bottom: 1rem;
}

.hm-experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.hm-exp-card {
  padding: 1rem;
  border: 1px solid var(--hm-border-light);
  cursor: pointer;
  transition: border-color var(--hm-transition), background-color var(--hm-transition);
}
.hm-exp-card:hover {
  border-color: var(--hm-border-medium);
}

.hm-exp-active {
  border-color: var(--hm-text-primary);
  background-color: var(--hm-bg-stone-100);
}

.hm-exp-title {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--hm-text-primary);
}

.hm-exp-desc {
  font-size: 0.75rem;
  color: var(--hm-text-muted);
  margin-top: 0.25rem;
}

.hm-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
}
.hm-checkbox-row input[type="checkbox"] {
  margin-top: 0.125rem;
  accent-color: var(--hm-text-primary);
}
.hm-checkbox-row label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--hm-text-primary);
}

.hm-auth-terms {
  text-align: center;
  font-size: 0.75rem;
  color: var(--hm-text-muted);
}
.hm-auth-terms p {
  margin-bottom: 0.5rem;
}

.hm-auth-switch {
  font-size: 0.875rem;
  margin-top: 1rem !important;
}
.hm-auth-switch a {
  font-weight: 700;
  color: var(--hm-text-primary);
  text-decoration: none;
}

/* Welcome page */
.hm-verify-banner {
  background-color: #292524;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  position: relative;
  flex-wrap: wrap;
}

.hm-verify-resend {
  background: none;
  border: none;
  color: #d6d3d1;
  font-size: 0.875rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.hm-verify-close {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #a8a29e;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.hm-welcome-hero {
  padding: 4rem 0 3rem;
}

.hm-welcome-title {
  font-family: var(--hm-font-serif);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--hm-text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .hm-welcome-title { font-size: 3.75rem; }
}

.hm-welcome-feed {
  padding-bottom: 6rem;
}

.hm-welcome-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .hm-welcome-grid { grid-template-columns: repeat(3, 1fr); }
}

.hm-welcome-card {
  display: flex;
  flex-direction: column;
  background-color: var(--hm-bg-white);
  border: 1px solid var(--hm-border-light);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--hm-transition), box-shadow var(--hm-transition);
}
.hm-welcome-card:hover {
  border-color: var(--hm-border-medium);
  box-shadow: var(--hm-shadow-sm);
}

.hm-welcome-card-voice {
  background-color: var(--hm-bg);
  padding: 1.5rem;
}

.hm-welcome-card-image {
  height: 12rem;
  background-color: var(--hm-bg-stone-100);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.hm-welcome-card-image span {
  color: var(--hm-text-muted);
  font-family: var(--hm-font-serif);
  font-style: italic;
  font-size: 0.875rem;
}

.hm-welcome-card-image-dark {
  background-color: var(--hm-text-primary);
  color: var(--hm-text-muted);
}

.hm-welcome-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--hm-text-primary);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
}

.hm-welcome-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0.75rem;
}
.hm-welcome-card-body h3 {
  font-family: var(--hm-font-serif);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--hm-text-primary);
  line-height: 1.3;
  transition: color var(--hm-transition);
}
.hm-welcome-card:hover .hm-welcome-card-body h3 {
  color: var(--hm-text-secondary);
}
.hm-welcome-card-body p {
  color: var(--hm-text-secondary);
  font-size: 0.875rem;
  line-height: 1.625;
  font-weight: 300;
  flex-grow: 1;
}

.hm-welcome-tag {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hm-text-muted);
}

.hm-welcome-profile-cta {
  padding-bottom: 6rem;
}

.hm-profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  background-color: var(--hm-bg-white);
  border: 1px solid var(--hm-border-light);
  padding: 2rem;
}
@media (min-width: 640px) {
  .hm-profile-card {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }
}
.hm-profile-card h3 {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--hm-text-primary);
  margin-bottom: 0.25rem;
}
.hm-profile-card p {
  font-size: 0.875rem;
  color: var(--hm-text-secondary);
}

.hm-profile-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.hm-profile-skip {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--hm-text-muted);
  text-decoration: none;
}
.hm-profile-skip:hover {
  color: var(--hm-text-primary);
}

/* Community page */
.hm-community-section {
  margin-bottom: 3rem;
}

.hm-community-section-title {
  font-family: var(--hm-font-serif);
  font-weight: 700;
  font-size: 1.875rem;
  color: var(--hm-text-primary);
  margin-bottom: 1.5rem;
}

.hm-community-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .hm-community-grid { grid-template-columns: repeat(3, 1fr); }
}

.hm-community-resource {
  background-color: var(--hm-bg-white);
  border: 1px solid var(--hm-border-light);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  cursor: pointer;
  transition: box-shadow var(--hm-transition);
}
.hm-community-resource:hover {
  box-shadow: var(--hm-shadow-sm);
}

.hm-resource-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--hm-bg-stone-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hm-text-secondary);
}

.hm-community-resource h3 {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--hm-text-primary);
}

.hm-community-resource p {
  color: var(--hm-text-secondary);
  font-size: 0.875rem;
  line-height: 1.625;
  font-weight: 300;
  flex-grow: 1;
}

.hm-discussions {
  background-color: var(--hm-bg-white);
  border: 1px solid var(--hm-border-light);
  overflow: hidden;
}

.hm-discussion-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--hm-border-light);
}

.hm-discussion-meta {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.hm-discussion-meta strong {
  color: var(--hm-text-primary);
}
.hm-discussion-meta span {
  color: var(--hm-text-muted);
}
.hm-discussion-meta a {
  color: var(--hm-text-secondary);
  font-weight: 700;
  text-decoration: none;
}
.hm-discussion-meta a:hover {
  color: var(--hm-text-primary);
}

.hm-discussion-text {
  font-size: 0.875rem;
  color: var(--hm-text-secondary);
  line-height: 1.625;
  margin-bottom: 0.75rem;
}

.hm-discussion-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--hm-text-muted);
  font-weight: 500;
}
.hm-discussion-actions button {
  background: none;
  border: none;
  color: var(--hm-text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.hm-discussion-actions button:hover {
  color: var(--hm-text-primary);
}

.hm-discussion-input-area {
  padding: 1.5rem;
}

.hm-discussion-input-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hm-text-muted);
  margin-bottom: 0.75rem;
}

.hm-discussion-input-card {
  background-color: var(--hm-bg);
  padding: 1rem;
  border: 1px solid var(--hm-border-light);
}

.hm-discussion-input-card h4 {
  font-family: var(--hm-font-serif);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--hm-text-primary);
  margin: 0.75rem 0;
}

.hm-discussion-input-card textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--hm-border-medium);
  background-color: var(--hm-bg-white);
  font-size: 0.875rem;
  resize: vertical;
  min-height: 6rem;
  box-sizing: border-box;
}
.hm-discussion-input-card textarea:focus {
  outline: none;
  border-color: var(--hm-text-primary);
}

.hm-discussion-input-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

/* =============================================
   User menu (logged-in header)
   ============================================= */
.hm-user-menu {
  display: none;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .hm-user-menu { display: flex; }
}

.hm-user-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: var(--hm-text-primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hm-user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hm-text-primary);
}

.hm-logout-btn {
  font-size: 0.75rem !important;
  padding: 0.375rem 0.75rem !important;
}

/* =============================================
   Mobile menu
   ============================================= */
.hm-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: 1px solid var(--hm-border-light);
  cursor: pointer;
  padding: 0.5rem;
  z-index: 100;
}
@media (min-width: 768px) {
  .hm-menu-toggle { display: none; }
}

.hm-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--hm-text-primary);
  transition: transform var(--hm-transition), opacity var(--hm-transition);
}

.hm-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.hm-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.hm-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

.hm-mobile-menu {
  display: none !important;
  position: fixed;
  top: 5rem;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--hm-bg);
  z-index: 40;
  padding: 2rem 1.5rem;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
}
.hm-mobile-menu.open {
  display: flex !important;
}
@media (min-width: 768px) {
  .hm-mobile-menu,
  .hm-mobile-menu.open {
    display: none !important;
  }
}

.hm-mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hm-mobile-nav a {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--hm-text-primary) !important;
  text-decoration: none !important;
  padding: 1rem 0;
  border-bottom: 1px solid var(--hm-border-light);
  display: block;
}

.hm-mobile-action {
  width: 100%;
  text-align: center;
  justify-content: center;
  margin-top: 1rem;
}

.hm-mobile-auth {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.hm-mobile-auth .hm-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

body.hm-menu-open {
  overflow: hidden;
}

/* =============================================
   Hide admin bar edit links for subscribers
   ============================================= */
body:not(.admin-bar) #wpadminbar { display: none !important; }

/* Hide "Edit Page" from front-end for non-admins */
body.logged-in .post-edit-link { display: none; }

/* =============================================
   Responsive fixes
   ============================================= */
/* Archive grid: force single column on mobile */
@media (max-width: 639px) {
  .hm-archive-grid,
  .hm-voices-grid,
  .hm-welcome-grid,
  .hm-community-grid {
    grid-template-columns: 1fr !important;
  }

  .hm-feed-grid {
    grid-template-columns: 1fr !important;
  }

  .hm-hero {
    padding: 4rem 0 5rem !important;
  }

  .hm-hero-title {
    font-size: 2rem !important;
  }

  .hm-hero-text {
    font-size: 1rem !important;
  }

  .hm-page-title {
    font-size: 2rem !important;
  }

  .hm-page-subtitle {
    font-size: 1rem !important;
  }

  .hm-voice-featured {
    padding: 1.5rem !important;
  }

  .hm-voice-title {
    font-size: 1.5rem !important;
  }

  .hm-section-lg {
    padding: 3rem 0 !important;
  }

  .hm-archive-header {
    padding: 3rem 0 4rem !important;
  }

  .hm-archive-content {
    padding: 2rem 0 4rem !important;
  }

  .hm-feed {
    padding: 3rem 0 !important;
  }

  .hm-auth-card {
    padding: 1.5rem !important;
  }

  .hm-experience-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .hm-filter-bar {
    gap: 1rem !important;
  }

  .hm-footer {
    padding-top: 3rem !important;
  }

  .hm-footer-bottom {
    flex-direction: column !important;
    gap: 1rem !important;
    text-align: center !important;
  }

  .hm-footer-nav {
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  .hm-archive-toolbar {
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .hm-profile-card {
    flex-direction: column !important;
    text-align: center !important;
  }

  .hm-welcome-title {
    font-size: 2rem !important;
  }

  .hm-manifesto {
    padding: 1.5rem !important;
  }

  .hm-manifesto-item {
    font-size: 1rem !important;
  }
}

/* =============================================
   Single post template
   ============================================= */
.hm-single-header {
  padding: 4rem 0 2rem;
  background-color: var(--hm-bg);
  border-bottom: 1px solid var(--hm-border-light);
}

.hm-single-category {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hm-text-primary);
  background-color: var(--hm-bg-stone-100);
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--hm-border-light);
  margin-bottom: 1.5rem;
}

.hm-single-title {
  font-family: var(--hm-font-serif);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--hm-text-primary);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .hm-single-title { font-size: 3.25rem; }
}

.hm-single-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--hm-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-wrap: wrap;
}

.hm-single-author {
  color: var(--hm-text-primary);
  font-weight: 700;
}

.hm-single-sep {
  color: var(--hm-border-medium);
}

.hm-single-image {
  padding: 3rem 0;
  background-color: var(--hm-bg);
}

.hm-single-content {
  padding: 0 0 4rem;
  background-color: var(--hm-bg);
}

.hm-single-content .hm-container {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--hm-text-secondary);
  font-weight: 300;
}

.hm-single-content h2,
.hm-single-content h3,
.hm-single-content h4 {
  font-family: var(--hm-font-serif);
  font-weight: 700;
  color: var(--hm-text-primary);
  margin: 2.5rem 0 1rem;
}
.hm-single-content h2 { font-size: 1.75rem; }
.hm-single-content h3 { font-size: 1.375rem; }
.hm-single-content h4 { font-size: 1.125rem; }

.hm-single-content p {
  margin-bottom: 1.5rem;
}

.hm-single-content a {
  color: var(--hm-text-primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--hm-border-medium);
  text-underline-offset: 3px;
}
.hm-single-content a:hover {
  text-decoration-color: var(--hm-text-primary);
}

.hm-single-content blockquote {
  border-left: 3px solid var(--hm-text-primary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--hm-text-secondary);
}

.hm-single-content ul,
.hm-single-content ol {
  margin: 1.5rem 0 1.5rem 1.5rem;
}
.hm-single-content li {
  margin-bottom: 0.5rem;
}

.hm-single-content img {
  max-width: 100%;
  height: auto;
  margin: 2rem 0;
  border-radius: var(--hm-radius);
}

.hm-single-content pre,
.hm-single-content code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.875rem;
}
.hm-single-content code {
  background-color: var(--hm-bg-stone-100);
  padding: 0.125rem 0.375rem;
  border-radius: var(--hm-radius);
  color: var(--hm-text-primary);
}
.hm-single-content pre {
  background-color: var(--hm-bg-darker);
  color: #e7e5e4;
  padding: 1.25rem;
  border-radius: var(--hm-radius);
  overflow-x: auto;
  margin: 2rem 0;
}
.hm-single-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

.hm-single-tags {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--hm-border-light);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hm-single-tags-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hm-text-muted);
  margin-right: 0.5rem;
}

/* Related posts */
.hm-related-section {
  padding: 5rem 0;
  background-color: var(--hm-bg-white);
  border-top: 1px solid var(--hm-border-light);
}

.hm-related-title {
  font-family: var(--hm-font-serif);
  font-weight: 700;
  font-size: 1.875rem;
  color: var(--hm-text-primary);
  margin-bottom: 2rem;
  text-align: center;
}

.hm-related-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .hm-related-grid { grid-template-columns: repeat(3, 1fr); }
}

.hm-related-card {
  display: flex;
  flex-direction: column;
  background-color: var(--hm-bg-white);
  border: 1px solid var(--hm-border-light);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--hm-transition), box-shadow var(--hm-transition);
  overflow: hidden;
}
.hm-related-card:hover {
  border-color: var(--hm-border-medium);
  box-shadow: var(--hm-shadow-sm);
}

.hm-related-card-image {
  height: 10rem;
  background-color: var(--hm-bg-stone-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-bottom: 1px solid var(--hm-bg-stone-100);
}
.hm-related-card-image span {
  color: var(--hm-text-muted);
  font-family: var(--hm-font-serif);
  font-style: italic;
  font-size: 0.875rem;
}

.hm-related-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.hm-related-card-title {
  font-family: var(--hm-font-serif);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--hm-text-primary);
  line-height: 1.3;
  transition: color var(--hm-transition);
}
.hm-related-card:hover .hm-related-card-title {
  color: var(--hm-text-secondary);
}

.hm-related-card-date {
  font-size: 0.75rem;
  color: var(--hm-text-muted);
  font-weight: 500;
}

/* =============================================
   Comments
   ============================================= */
.hm-comments-section {
  padding: 3rem 0 5rem;
  background-color: var(--hm-bg);
  border-top: 1px solid var(--hm-border-light);
}

.hm-comments-section h2,
.hm-comments-section h3,
.comments-title,
.comment-reply-title {
  font-family: var(--hm-font-serif) !important;
  font-weight: 700 !important;
  font-size: 1.5rem !important;
  color: var(--hm-text-primary) !important;
  margin: 2rem 0 1.5rem !important;
}

.hm-comments-section .comment-list,
.hm-comments-section ol.comment-list {
  list-style: none !important;
  margin: 0 0 2rem !important;
  padding: 0 !important;
}

.hm-comments-section .comment-body {
  background-color: var(--hm-bg-white);
  border: 1px solid var(--hm-border-light);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.hm-comments-section .comment-author {
  font-weight: 700;
  color: var(--hm-text-primary);
  font-size: 0.9375rem;
}

.hm-comments-section .comment-author .says {
  display: none;
}

.hm-comments-section .comment-metadata {
  font-size: 0.75rem;
  color: var(--hm-text-muted);
  margin-bottom: 0.75rem;
}

.hm-comments-section .comment-metadata a {
  color: var(--hm-text-muted);
  text-decoration: none;
}

.hm-comments-section .comment-content {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--hm-text-secondary);
}

.hm-comments-section .comment-content p {
  margin: 0 0 0.75rem;
}

.hm-comments-section .comment-content a {
  color: var(--hm-text-primary);
  text-decoration: underline;
}

.hm-comments-section .reply {
  margin-top: 0.5rem;
  font-size: 0.75rem;
}

.hm-comments-section .reply a {
  color: var(--hm-text-muted);
  text-decoration: none;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hm-comments-section .reply a:hover {
  color: var(--hm-text-primary);
}

.hm-comments-section .comment-respond {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--hm-border-light);
}

.hm-comments-section .comment-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--hm-text-primary);
  margin-bottom: 0.375rem;
}

.hm-comments-section .comment-form input[type="text"],
.hm-comments-section .comment-form input[type="email"],
.hm-comments-section .comment-form input[type="url"],
.hm-comments-section .comment-form textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--hm-border-medium);
  border-radius: var(--hm-radius);
  font-family: var(--hm-font-sans);
  font-size: 0.9375rem;
  background-color: var(--hm-bg-white);
  margin-bottom: 1rem;
  box-sizing: border-box;
}

.hm-comments-section .comment-form input:focus,
.hm-comments-section .comment-form textarea:focus {
  outline: none;
  border-color: var(--hm-text-primary);
}

.hm-comments-section .comment-form textarea {
  min-height: 7rem;
  resize: vertical;
}

.hm-comments-section .form-submit {
  margin-top: 0.5rem;
}

.hm-comments-section .submit,
.hm-comments-section .comment-form #submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  background-color: var(--hm-text-primary);
  color: white;
  border: none;
  border-radius: var(--hm-radius);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color var(--hm-transition);
}

.hm-comments-section .submit:hover,
.hm-comments-section .comment-form #submit:hover {
  background-color: var(--hm-btn-bg-hover);
}

.hm-comments-section .comment-notes,
.hm-comments-section .logged-in-as {
  font-size: 0.8125rem;
  color: var(--hm-text-muted);
  margin-bottom: 1rem;
}

.hm-comments-section .logged-in-as a {
  color: var(--hm-text-primary);
  text-decoration: none;
  font-weight: 500;
}

.hm-comment-pending {
  color: var(--hm-text-muted);
  font-size: 0.8125rem;
  font-style: italic;
  padding: 0.5rem 0;
}
