/* design_system/typography.css — Page/view headers and Tailwind title bridge */

/* Page header */
.page-header { margin-bottom: 1.5rem; }
.page-title {
    font-size: var(--text-title);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--color-text);
    margin: 0 0 0.25rem;
}
.page-subtitle {
    font-size: var(--text-body);
    line-height: 1.5;
    color: var(--color-text-muted);
    margin: 0;
}

/* View header (detail/edit pages — back + title) */
.view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.view-header__start {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}
.view-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    color: var(--color-text-muted);
    border-radius: var(--radius-input);
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}
.view-back:hover {
    color: var(--color-text);
    background: var(--color-bg-alt);
}
.view-title {
    margin: 0;
    font-size: var(--text-title);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--color-text);
}
.view-section-title {
    margin: 0 0 1rem;
    font-size: var(--text-lg);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.35;
    color: var(--color-text);
}

/* Bridge: Tailwind title utilities → design-system scale */
.main-content h1.text-xl,
.main-content h2.text-xl,
.main-content h3.text-xl {
    font-size: var(--text-title);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--color-text);
}
.main-content h3.text-lg,
.main-content h4.text-lg {
    font-size: var(--text-lg);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.35;
    color: var(--color-text);
}

.typo-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-surface);
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-card);
}
.typo-section { margin-bottom: 2rem; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 0.5em; font-weight: 600; letter-spacing: -0.02em; color: var(--color-text); }
h1 { font-size: var(--text-title); }
h2 { font-size: var(--text-lg); }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-body); }
h5 { font-size: var(--text-ui); }
h6 { font-size: var(--text-caption); text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-muted); }
.typo-card p { margin: 0 0 1em; }
.typo-card ul, .typo-card ol { margin: 0 0 1em; padding-left: 1.5em; }
.typo-card blockquote {
    margin: 0 0 1em;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--color-accent);
    background: var(--color-bg-alt);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--color-text-muted);
}
.typo-card code {
    padding: 0.2rem 0.5rem;
    background: var(--color-bg-alt);
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9rem;
    color: var(--color-accent);
}
.typo-card pre {
    margin: 0 0 1em;
    padding: 1rem 1.25rem;
    background: #1a1f2e;
    color: #e2e5ea;
    border-radius: 8px;
    overflow-x: auto;
}
.typo-card pre code { padding: 0; background: none; color: inherit; }
.typo-card hr { border: none; border-top: 1px solid var(--color-border); margin: 1.5rem 0; }
.typo-card a { color: var(--color-accent); }

/* Form grid */
