/* Camp With Matt homepage (home.hbs). Brand green #23540F. */
:root {
    --cwm-green: #23540f;
    --cwm-green-dark: #183b0a;
    --cwm-cream: #f6f3ea;
}

.cwm-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.75em 1.3em;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1.6rem;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}
.cwm-btn-primary { background: var(--cwm-green); color: #fff; }
.cwm-btn-primary:hover { background: var(--cwm-green-dark); color: #fff; }
.cwm-btn-ghost { box-shadow: inset 0 0 0 2px currentColor; color: var(--cwm-green); }
.cwm-btn-ghost:hover { background: var(--cwm-green); color: #fff; box-shadow: none; }

/* hero */
.cwm-hero { padding-block: clamp(32px, 6vw, 80px) clamp(24px, 4vw, 48px); }
.cwm-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(24px, 4vw, 64px);
    align-items: center;
}
.cwm-hero-title { font-size: clamp(3.6rem, 5vw, 6rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0; }
.cwm-hero-lede { font-size: clamp(1.8rem, 1.6vw, 2.2rem); line-height: 1.5; margin: 1.2em 0 0; opacity: 0.85; }
.cwm-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.4rem; }
.cwm-hero-image { margin: 0; }
.cwm-hero-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; display: block; }

/* about */
.cwm-about { padding-block: clamp(16px, 3vw, 40px); }
.cwm-about-inner { display: block; }
.cwm-about-content { max-width: 720px; margin: 0 auto; display: block; }
.cwm-about-content > * + * { margin-top: 1.1em; }

/* newsletter */
.cwm-signup { padding-block: clamp(24px, 4vw, 48px); }
.cwm-signup-inner {
    background: var(--cwm-green);
    color: #fff;
    border-radius: 20px;
    padding: clamp(28px, 4vw, 56px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 48px;
    align-items: center;
}
.cwm-signup-title { color: #fff; font-size: clamp(2.6rem, 3vw, 3.6rem); margin: 0; }
.cwm-signup-lede { color: rgba(255, 255, 255, 0.85); margin: 0.6em 0 0; }
.cwm-signup .gh-form { margin: 0; max-width: none; background: #fff; }
.cwm-signup .gh-form-input { color: #15171a; }
.cwm-signup .gh-button { background: var(--cwm-green-dark); color: #fff; }
.cwm-signup [data-members-error] { color: #ffd7d7; }

/* latest posts */
.cwm-latest { padding-block: clamp(24px, 4vw, 56px) clamp(48px, 6vw, 96px); }
.cwm-latest-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.cwm-latest-title { font-size: clamp(2.4rem, 2.6vw, 3.2rem); margin: 0; }
.cwm-more { color: var(--cwm-green); font-weight: 600; text-decoration: none; }
.cwm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.cwm-grid .gh-card-image { aspect-ratio: 16 / 9; }
.cwm-latest-foot { margin-top: 32px; text-align: center; }

@media (max-width: 900px) {
    .cwm-hero-inner, .cwm-signup-inner { grid-template-columns: 1fr; }
    .cwm-hero-image { order: -1; }
    .cwm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .cwm-grid { grid-template-columns: 1fr; }
}

/* blog list: category chips (index.hbs) */
.cwm-cats { padding-block: clamp(28px, 4vw, 56px) 8px; }
.cwm-cats-title { font-size: clamp(3.2rem, 4vw, 4.8rem); margin: 0 0 16px; }
.cwm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cwm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--cwm-cream); color: var(--cwm-green-dark); font-weight: 600; font-size: 1.4rem; text-decoration: none; }
.cwm-chip span { font-weight: 500; opacity: 0.6; font-size: 1.2rem; }
.cwm-chip:hover { background: var(--cwm-green); color: #fff; }
