@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@400;500;600;700&display=swap');

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: clip;
}

body {
    background: #ffffff;
    color: #0a2540;
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

/* TYPOGRAPHY — matches homepage heading style */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: #0a2540;
}

h1 { font-size: 52px; }
h2 { font-size: 36px; }
h3 { font-size: 28px; }
h4 { font-size: 22px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: inherit;
}

/* CONTENT WRAPPER — shared by all sections */
.w {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* IMAGES */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* LISTS */
ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* FORMS */
input, textarea, select {
    font-family: var(--font-sans);
    font-size: 1rem;
}

/* CODE */
code, pre {
    font-family: 'Courier New', monospace;
    background: var(--color-bg-light);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-md);
}

pre {
    padding: 1rem;
    overflow-x: auto;
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── RESPONSIVE TYPOGRAPHY ── */
@media (max-width: 767px) {
    h1 { font-size: 38px; }
    h2 { font-size: 30px; }
    h3 { font-size: 22px; }
    h4 { font-size: 18px; }
    h5 { font-size: 16px; }

    .w { padding: 0 20px; }
    .section { padding: 32px 20px; }
    .ph { padding: 48px 20px 36px; }
}

@media (max-width: 480px) {
    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }

    .w { padding: 0 16px; }
    .section { padding: 24px 16px; }
    .ph { padding: 32px 16px 24px; }
    .acad { padding: 3rem 0; }

    /* Buttons fill width on very small screens */
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .btn-primary, .btn-secondary { justify-content: center; width: 100%; }
}
