/**
 * Ink & Vellum Page Layouts
 * 
 * Applies the design token system to high-level page structures.
 *
 * @package printertestpage
 */

/* Global Entry & Exit Motion */
.ptp-page-enter {
    animation: ptp-fade-slide 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes ptp-fade-slide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Homepage Overrides */
.ptp-homepage {
    overflow: hidden;
}

.ptp-homepage-hero {
    position: relative;
    padding: 120px 0 80px;
    background-color: var(--color-bg);
}

.ptp-homepage .ptp-symptom-section {
    background-color: var(--color-surface);
    border-top: 1px solid var(--border-subtle);
    padding: 100px 0;
}

/* Methodology & Content Pages */
.ptp-text-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 30px;
}

.ptp-text-content h1, 
.ptp-text-content h2 {
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.ptp-text-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Global Text Page Normalization */
.ptp-text-page {
    background-color: var(--color-bg);
    color: var(--text-primary);
    padding: 60px 0 100px;
    transition: background-color var(--ptp-transition-smooth), color var(--ptp-transition-smooth);
}

/* Canonical Editorial Wrapper (.entry-content) */
.ptp-text-page .entry-content,
.entry-content {
    line-height: 1.8;
    color: var(--text-muted);
}

.ptp-text-page .entry-content p,
.entry-content p {
    margin-bottom: 2rem;
}

.ptp-text-page .entry-content h2,
.entry-content h2 {
    font-size: 1.75rem;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.75rem;
}

.ptp-text-page .entry-content h3,
.entry-content h3 {
    font-size: 1.35rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.ptp-text-page .entry-content ul,
.ptp-text-page .entry-content ol,
.entry-content ul,
.entry-content ol {
    margin: 2rem 0 3rem 1.5rem;
}

.ptp-text-page .entry-content li,
.entry-content li {
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.ptp-text-page .entry-content a:not(.ptp-button),
.entry-content a:not(.ptp-button) {
    color: var(--accent-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--ptp-transition-smooth);
}

.ptp-text-page .entry-content a:not(.ptp-button):hover,
.entry-content a:not(.ptp-button):hover {
    color: var(--text-primary);
}

.ptp-text-page .entry-content hr,
.entry-content hr {
    border: 0;
    border-top: 1px solid var(--border-subtle);
    margin: 4rem 0;
}

.ptp-text-page h1, 
.ptp-text-page h2,
.ptp-text-page h3 {
    color: var(--text-primary);
}

.ptp-text-page p,
.ptp-text-page li {
    color: var(--text-muted);
}

.ptp-text-page .ptp-content-width {
    max-width: 800px;
    margin: 0 auto;
}

.ptp-text-page section {
    margin-bottom: 50px;
}

.ptp-text-page hr {
    border: 0;
    border-top: 1px solid var(--border-subtle);
    margin: 40px 0;
}

/* Base Editorial Typography */
.ptp-text-page .entry-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.ptp-text-page .ptp-meta-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-family: var(--ptp-font-precision);
    display: block;
}

.ptp-text-page .ptp-lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* Section Controls */
.ptp-text-page section {
    margin-bottom: 60px;
}

.ptp-text-page h2 {
    font-size: 1.75rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 12px;
}

.ptp-text-page h3 {
    font-size: 1.35rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

/* List Formatting */
.ptp-text-page ul,
.ptp-text-page ol {
    margin: 20px 0 30px 20px;
    padding: 0;
}

.ptp-text-page li {
    margin-bottom: 12px;
    line-height: 1.7;
    color: var(--text-muted);
}

.ptp-text-page li::marker {
    color: var(--accent-primary);
}

/* Content Links */
.ptp-text-page a:not(.ptp-button) {
    color: var(--accent-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Footer Visibility */
.site-footer, .ptp-ghost-footer {
    background-color: var(--color-surface);
    border-top: 1px solid var(--border-subtle);
    padding: 60px 0;
    margin-top: 100px;
}

.ptp-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.ptp-footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.ptp-footer-brand .ptp-brand-mark {
    width: 20px;
    height: 20px;
}

.ptp-footer-brand .ptp-brand-text {
    font-size: 0.8rem;
}

.ptp-status-ticker {
    font-family: var(--ptp-font-precision);
    font-size: 0.65rem;
    color: var(--accent-primary);
    letter-spacing: 0.1em;
}

.ptp-footer-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.ptp-footer-list a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    transition: color var(--ptp-transition-smooth);
}

.ptp-footer-list a:hover {
    color: var(--text-primary);
}

.ptp-footer-end {
    font-family: var(--ptp-font-precision);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: right;
}

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

@media (max-width: 768px) {
    .ptp-footer-inner { flex-direction: column; text-align: center; gap: 30px; }
    .ptp-footer-start { display: flex; flex-direction: column; align-items: center; }
    .ptp-footer-end { text-align: center; }
}
