/* Shared stylesheet for capsycom.net pages. */
:root {
    --primary: #147a8c;
    --primary-hover: #0f6372;
    --primary-dark: #0f5d6a;
    --primary-light: #b8e4ea;
    --primary-50: #eef9fb;
    --on-primary: #fff;
    --bg-main: #f7f9fa;
    --bg-surface: #fff;
    --text-main: #18343a;
    --text-muted: #496269;
    --border: rgba(20, 122, 140, .18);
    --border-strong: rgba(20, 122, 140, .38);
    --radius: 16px;
    --shadow: 0 10px 30px rgba(10, 65, 74, .08);
    --transition: all .3s ease;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg-main); color: var(--text-main); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
.container { width: min(1100px, 100%); margin: 0 auto; padding: 0 1.5rem; }
.flex-between { align-items: center; display: flex; justify-content: space-between; }
.flex-wrap { display: flex; flex-wrap: wrap; gap: .6rem; }
.flex-center { align-items: center; display: flex; justify-content: center; }
.flex-col { display: flex; flex-direction: column; }
.text-center { text-align: center; }
.surface { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); transition: var(--transition); }
h1, h2, h3 { color: var(--text-main); line-height: 1.3; }
h1 { font-size: 2.2rem; margin-bottom: .75rem; }
h2 { font-size: 1.75rem; margin-bottom: .5rem; }
h3 { font-size: 1.35rem; }
p { color: var(--text-muted); }
a { color: var(--primary); }
a:hover { color: var(--primary-hover); }

/* Shared site chrome: both documents use the same header/footer structure. */
.site-header nav { border-bottom: 1px solid var(--border); margin-bottom: 2.5rem; padding: 1.5rem 0; }
.brand { align-items: center; color: var(--text-main); display: inline-flex; font-size: 1.4rem; font-weight: 800; gap: .65rem; letter-spacing: -.5px; text-decoration: none; }
.brand-logo { height: 36px; object-fit: contain; width: auto; }
.btn { align-items: center; background: var(--primary); border: 1px solid var(--primary); border-radius: 50px; color: var(--on-primary); cursor: pointer; display: inline-flex; font-size: .95rem; font-weight: 500; padding: .55rem 1.2rem; text-decoration: none; transition: var(--transition); }
.btn:hover, .btn.active { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-primary); }
.btn-outline { background: transparent; border-color: var(--border-strong); color: var(--text-main); }
.btn-outline:hover { background: var(--primary-50); border-color: var(--primary); color: var(--primary); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--primary-light); outline-offset: 3px; }
.site-footer { border-top: 1px solid var(--border); font-size: .9rem; padding: 2.5rem 0; }
.footer-content { gap: .5rem; }

/* Home/project components. */
.hero-header { margin: 1rem 0 2rem; }
.grid-cards { display: grid; gap: 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 2rem 0 3.5rem; }
.card { overflow: hidden; }
.card:hover { box-shadow: 0 15px 35px rgba(10, 65, 74, .14); transform: translateY(-5px); }
.card-img { background: #d8f1f4; height: 210px; object-fit: cover; width: 100%; }
.card-body { flex-grow: 1; gap: 1rem; padding: 1.5rem; }
.card-header { gap: .2rem; }
.card-subtitle { color: var(--primary); font-size: .95rem; font-weight: 600; line-height: 1.4; }
.card-links { border-top: 1px solid var(--border); margin-top: auto; padding-top: 1rem; }
.tag { background: var(--primary-50); border-radius: 6px; color: var(--primary-hover); font-size: .75rem; font-weight: 500; line-height: 1.4; padding: .2rem .55rem; user-select: none; }
.profile-section { align-items: center; display: flex; gap: 3rem; margin: 2rem 0 4rem; padding: 3rem; }
.avatar { border: 4px solid var(--bg-main); border-radius: 50%; box-shadow: var(--shadow); flex-shrink: 0; height: 170px; object-fit: cover; width: 170px; }
.profile-content { gap: .85rem; }
.profile-actions { margin-top: .5rem; }

/* Legal-page-only content styles; shared components stay above. */
.legal-page { line-height: 1.7; }
.legal-page .container { max-width: 960px; }
.header-section { margin: 1rem 0 2.5rem; }
.legal-page .surface { margin-bottom: 2rem; padding: 2.5rem; }
.legal-page h2 { align-items: center; color: var(--primary-dark); display: flex; font-size: 1.45rem; gap: .75rem; margin-bottom: 1rem; }
.legal-page h3 { margin: 1.25rem 0 .5rem; }
.legal-page p + p { margin-top: .85rem; }
.legal-page ul { margin: .75rem 0 1rem 1.5rem; }
.legal-page li { margin-bottom: .4rem; }
.meta-update { font-size: .9rem; margin-top: .35rem; }
.badge-number { align-items: center; background: var(--primary-50); border: 1px solid var(--border); border-radius: 50%; color: var(--primary); display: inline-flex; flex-shrink: 0; font-size: .95rem; font-weight: 700; height: 32px; justify-content: center; width: 32px; }
.alert-box { background: var(--primary-50); border-left: 4px solid var(--primary); border-radius: 0 8px 8px 0; font-size: .95rem; margin: 1.25rem 0; padding: 1rem 1.25rem; }
.alert-box p { color: var(--text-main); }
.skip-link { background: var(--primary); border-radius: 4px; color: var(--on-primary); left: 10px; padding: 8px 16px; position: absolute; text-decoration: none; top: -40px; z-index: 100; }
.skip-link:focus { top: 10px; }

@media (max-width: 768px) {
    .grid-cards { grid-template-columns: 1fr; }
    .profile-section { flex-direction: column; gap: 1.5rem; padding: 2rem 1.5rem; text-align: center; }
    .profile-content .flex-wrap { justify-content: center; }
    h1 { font-size: 1.85rem; }
    .legal-page .surface { padding: 1.5rem; }
    .legal-page h2 { font-size: 1.25rem; }
}
