* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    font-weight: 400;
    background: var(--hf-color-1);
    color: var(--hf-color-7);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--hf-accent-3); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Header ---- */

.page-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--hf-color-3);
    background: var(--hf-color-2);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--hf-color-7);
    font-weight: 700;
    font-size: 1.0625rem;
    letter-spacing: -0.01em;
}

.brand:hover { text-decoration: none; }

.brand-mark {
    width: 1.875rem;
    height: 1.875rem;
    color: var(--hf-accent-3);
}

.page-nav {
    margin-left: auto;
    display: flex;
    gap: 1.25rem;
    font-size: 0.9375rem;
}

.page-nav a { color: var(--hf-color-5); }
.page-nav a:hover { color: var(--hf-color-7); text-decoration: none; }

/* ---- Main ---- */

.page-main {
    max-width: 64rem;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 1.75rem 4rem;
    flex: 1;
}

.page-intro h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 300;
    letter-spacing: -0.025em;
    color: var(--hf-color-7);
}

.page-lede {
    margin: 0 0 2.5rem;
    font-size: 1.125rem;
    color: var(--hf-color-5);
    max-width: 38rem;
}

/* ---- Product grid ---- */

.product-grid {
    list-style: none;
    margin: 0 0 3rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

@media (max-width: 640px) {
    .product-grid { grid-template-columns: 1fr; }
}

.product-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 1.5rem 1.75rem;
    background: var(--hf-color-2);
    border: 1px solid var(--hf-color-3);
    border-radius: 14px;
    transition: border-color 200ms, box-shadow 200ms, transform 200ms;
}

.product-card:hover {
    border-color: color-mix(in srgb, var(--hf-accent-3) 50%, transparent);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--hf-accent-3) 25%, transparent),
                0 12px 32px -16px color-mix(in srgb, var(--hf-accent-3) 35%, transparent);
}

.product-icon {
    width: 3.5rem;
    height: 3.5rem;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: var(--hf-color-3);
    color: var(--hf-accent-3);
}

.product-icon svg {
    width: 75%;
    height: 75%;
}

.product-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.product-name {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--hf-color-7);
    letter-spacing: -0.015em;
}

.product-version {
    font-family: 'Noto Sans Mono', ui-monospace, Menlo, monospace;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--hf-color-5);
    margin-left: 0.375rem;
    letter-spacing: 0;
    vertical-align: 0.1em;
}

.product-tagline {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--hf-color-6);
    line-height: 1.45;
}

.product-updated {
    font-size: 0.75rem;
    color: var(--hf-color-5);
    letter-spacing: 0.01em;
}

/* Per-product weekly changes, injected by the build pipeline. Empty until a
   product is rebuilt (then it carries the week's bullets + shipped engine). */
.product-notes:empty {
    display: none;
}

.product-notes {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.125rem;
}

.product-notes ul {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--hf-color-6);
}

.product-notes .notes-engine {
    margin: 0.125rem 0 0;
    font-size: 0.75rem;
    color: var(--hf-color-5);
}

.product-notes .notes-engine-changes {
    color: var(--hf-color-5);
}

.product-ctas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.product-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.125rem;
    background: var(--hf-accent-3);
    color: var(--hf-color-1);
    font-weight: 700;
    font-size: 0.9375rem;
    border-radius: 8px;
    letter-spacing: -0.005em;
    transition: background 150ms, transform 150ms, border-color 150ms, color 150ms;
}

.product-cta:hover {
    background: var(--hf-accent-4);
    text-decoration: none;
    transform: translateY(-1px);
}

.product-cta:active { transform: translateY(0); }

.product-cta-secondary {
    padding: 0.5rem 0.875rem;
    background: transparent;
    color: var(--hf-color-5);
    font-weight: 600;
    font-size: 0.8125rem;
    border: 1px solid var(--hf-color-4);
}

.product-cta-secondary:hover {
    background: transparent;
    color: var(--hf-color-7);
    border-color: var(--hf-color-5);
}

/* ---- Notes ---- */

.page-notes {
    border-top: 1px solid var(--hf-color-3);
    padding-top: 2.5rem;
}

.notes-heading {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hf-color-5);
}

.notes-heading:not(:first-child) { margin-top: 2rem; }

.notes-list {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--hf-color-6);
    font-size: 0.9375rem;
}

.notes-list li + li { margin-top: 0.5rem; }

.notes-list code {
    font-family: 'Noto Sans Mono', ui-monospace, Menlo, monospace;
    font-size: 0.875rem;
    background: var(--hf-color-3);
    padding: 0 0.25em;
    border-radius: 3px;
}

/* ---- Footer ---- */

.page-footer {
    border-top: 1px solid var(--hf-color-3);
    padding: 1.25rem 1.75rem;
    display: flex;
    gap: 0.625rem;
    justify-content: center;
    color: var(--hf-color-5);
    font-size: 0.8125rem;
    background: var(--hf-color-2);
}

.page-footer a { color: var(--hf-color-5); }
.page-footer a:hover { color: var(--hf-color-7); text-decoration: none; }

.footer-sep { opacity: 0.5; }
