.hng-page {
    --hng-text: #211f20;
    --hng-muted: #5d5b5c;
    --hng-accent-strong: #6b4fa8;
    --hng-warm: #ffaa62;
    --hng-card: linear-gradient(180deg, #ffffff 0%, #fbf9ff 100%);
    --hng-border: rgba(33, 31, 32, 0.08);
    color: var(--hng-text);
}

.hng-hero,
.hng-note-hero,
.hng-letter-section,
.hng-related,
.hng-empty {
    background: var(--hng-card);
    border: 1px solid var(--hng-border);
    border-radius: 28px;
    box-shadow: 0 18px 40px rgba(33, 31, 32, 0.08);
}

.hng-hero {
    padding: 32px;
    margin-bottom: 24px;
    background:
        radial-gradient(circle at top right, rgba(208, 184, 244, 0.3), transparent 40%),
        linear-gradient(180deg, #ffffff 0%, #fcf9ff 100%);
}

.hng-eyebrow {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(107, 79, 168, 0.08);
    color: var(--hng-accent-strong);
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
}

.hng-title {
    margin: 16px 0 10px;
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.05;
    font-weight: 400;
    color: var(--hng-text);
}

.hng-intro,
.hng-related__header p,
.hng-note-card p,
.hng-richtext,
.hng-empty p {
    margin: 0;
    color: var(--hng-muted);
    font-size: 15px;
    line-height: 1.75;
}

.hng-alpha {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 24px;
}

.hng-alpha a {
    display: inline-flex;
    min-width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(107, 79, 168, 0.12);
    color: var(--hng-accent-strong);
    text-decoration: none;
    font-weight: 600;
}

.hng-letter-section {
    padding: 24px;
    margin-bottom: 24px;
}

.hng-letter-header {
    margin-bottom: 18px;
}

.hng-letter-header h3,
.hng-note-card h3,
.hng-product-card h3,
.hng-related__header h2 {
    margin: 0;
    color: var(--hng-text);
    font-size: 22px;
    line-height: 1.2;
    font-weight: 400;
}

.hng-note-grid,
.hng-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.hng-note-card,
.hng-product-card {
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(107, 79, 168, 0.12);
}

.hng-note-card__link,
.hng-product-card__link {
    display: grid;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.hng-note-card__media,
.hng-product-card__media {
    aspect-ratio: 1 / 1;
    background: linear-gradient(180deg, #fff9f4 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hng-note-card__img,
.hng-note-hero__img,
.hng-product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hng-note-card__placeholder,
.hng-product-card__placeholder,
.hng-note-hero__fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 999px;
    background: rgba(255, 170, 98, 0.12);
    color: var(--hng-text);
    font-size: 34px;
    font-weight: 600;
}

.hng-note-card__body,
.hng-product-card__body {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.hng-note-card__meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--hng-accent-strong);
    font-size: 13px;
    font-weight: 600;
}

.hng-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--hng-muted);
    font-size: 14px;
}

.hng-breadcrumbs a {
    color: var(--hng-accent-strong);
    text-decoration: none;
}

.hng-note-hero {
    display: grid;
    grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
    gap: 28px;
    padding: 28px;
    margin-bottom: 24px;
}

.hng-note-hero__media {
    min-height: 320px;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(180deg, #fff9f4 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hng-note-hero__copy {
    display: grid;
    align-content: start;
    gap: 16px;
}

.hng-richtext p:first-child {
    margin-top: 0;
}

.hng-richtext p:last-child {
    margin-bottom: 0;
}

.hng-related {
    padding: 24px;
}

.hng-related__header {
    margin-bottom: 18px;
}

.hng-role-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hng-role-list span {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(208, 184, 244, 0.12);
    color: var(--hng-accent-strong);
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
}

.hng-empty {
    padding: 28px;
}

@media (max-width: 1080px) {
    .hng-note-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .hng-hero,
    .hng-note-hero,
    .hng-letter-section,
    .hng-related,
    .hng-empty {
        padding: 20px;
        border-radius: 22px;
        box-shadow: none;
    }

    .hng-note-grid,
    .hng-product-grid {
        grid-template-columns: 1fr;
    }

    .hng-title {
        font-size: 24px;
    }
}
