@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=Inter:wght@300;400;500;600&display=swap');
/* =====================================================
   STATISTICALLY INTELLIGENT — MINIMAL ANALYTICAL THEME
===================================================== */

/* ===== GLOBAL ===== */

body {
    font-family: "Inter", sans-serif;
    background-color: #0b1120;
    color: #dbe4ee;
    line-height: 1.85;
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.1px;
}

/* ===== PAGE WIDTH ===== */

main.content {
    max-width: 980px;
    margin: auto;
    padding-left: 28px;
    padding-right: 28px;
}

/* ===== NAVBAR ===== */

.navbar {
    background-color: rgba(11, 17, 32, 0.92) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #162033;

    padding-top: 8px;   /* reduced from 12px */
    padding-bottom: 8px;

    display: flex;      /* KEY FIX */
    align-items: center; /* KEY FIX */
}

.navbar-title {
    color: #f8fafc !important;
    font-weight: 650;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
}

.nav-link {
    color: #94a3b8 !important;
    margin-left: 14px;
    transition: color 0.25s ease;
    font-size: 0.96rem;
}

.nav-link:hover {
    color: #dbeafe !important;
}
/* Navbar Brand Styling */

.navbar-brand {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 2rem !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #f5f5f5 !important;
    transition: all 0.3s ease;

    display: flex;        /* KEY FIX */
    align-items: center;  /* KEY FIX */
    height: 100%;
    line-height: 1;
}

.navbar-brand:hover {
    color: #c9d6df !important;
}

.navbar-nav .nav-link {
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

/* ===== HERO SECTION ===== */

.hero-section {
    padding-top: 40px;
    padding-bottom: 60px;
    max-width: 820px;
}

.hero-section h1 {
    font-family: "Cormorant Garamond", serif;
    font-size: 5rem;
    font-weight: 600;
    line-height: 1.02;
    color: #f8fafc;
    margin-bottom: 34px;
    letter-spacing: -1.4px;
    max-width: 900px;
    text-rendering: optimizeLegibility;
}

.hero-section p {
    font-size: 1.18rem;
    color: #a8b6c8;
    max-width: 760px;
    margin-bottom: 24px;
}

/* ===== SUBTLE ACCENT LINE ===== */

.hero-section::before {
    content: "";
    display: block;
    width: 70px;
    height: 2px;
    background: #38bdf8;
    margin-bottom: 40px;
    opacity: 0.8;
}

/* ===== BUTTON ===== */

.custom-button {
    display: inline-block;
    margin-top: 14px;
    padding: 13px 26px;
    border: 1px solid #243041;
    border-radius: 8px;
    color: #e2e8f0 !important;
    background-color: #111827;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.25s ease;
}

.custom-button:hover {
    background-color: #172033;
    border-color: #334155;
    transform: translateY(-1px);
}

/* ===== HEADINGS ===== */

h2 {
    font-size: 1.95rem;
    margin-top: 90px;
    margin-bottom: 32px;
    color: #f8fafc;
    font-weight: 680;
    letter-spacing: -0.5px;
}

h3 {
    color: #e2e8f0;
    font-size: 1.18rem;
    font-weight: 620;
    margin-bottom: 14px;
}

/* ===== PARAGRAPHS ===== */

p {
    color: #aebdcd;
}

/* ===== GRID SECTION ===== */

.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    margin-top: 35px;
}

/* ===== CARDS ===== */

.focus-card {
    background-color: #111827;
    border: 1px solid #1e293b;
    border-radius: 14px;
    padding: 28px;
    transition: all 0.25s ease;
}

.focus-card:hover {
    border-color: #334155;
    transform: translateY(-3px);
}

.focus-card p {
    font-size: 0.98rem;
    color: #94a3b8;
}

/* ===== LINKS ===== */

a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #ffffff;
}

/* ===== HORIZONTAL RULE ===== */

hr {
    border: none;
    border-top: 1px solid #1e293b;
    margin-top: 80px;
    margin-bottom: 80px;
}

/* ===== CODE BLOCKS ===== */

pre {
    background-color: #111827 !important;
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 18px;
}

code {
    color: #7dd3fc;
}

/* ===== LISTS ===== */

ul li {
    margin-bottom: 10px;
    color: #aebdcd;
}

/* ===== FOOTER ===== */

.footer {
    border-top: 1px solid #1e293b;
    margin-top: 100px;
    padding-top: 25px;
    color: #64748b;
    font-size: 0.92rem;
}

/* ===== BLOCKQUOTE ===== */

blockquote {
    border-left: 3px solid #334155;
    padding-left: 18px;
    color: #94a3b8;
    font-style: italic;
}

/* ===== TABLES ===== */

table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 25px;
}

th,
td {
    border: 1px solid #1e293b;
    padding: 14px;
    text-align: left;
}

th {
    background-color: #111827;
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {

    .hero-section {
        padding-top: 90px;
        padding-bottom: 70px;
    }

    .hero-section h1 {
    font-size: 3.2rem;
    line-height: 1.08;
  }

    .hero-section p {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.55rem;
    }

    main.content {
        padding-left: 22px;
        padding-right: 22px;
    }
}
/* ===== CLEANER BULLET LISTS ===== */

ul {
    padding-left: 1.2rem;
    margin-top: 0.5rem;
    margin-bottom: 1.2rem;
}

ul li {
    margin-bottom: 0.35rem;
    line-height: 1.5;
    color: #aebdcd;
}

#title-block-header {
    margin-top: 0 !important;
    padding-top: 20px !important;
}

/* =========================
   ABOUT PAGE LIST ALIGNMENT FIX
   ========================= */

.about-center {
    text-align: center;   /* centers heading and text block */
}

/* IMPORTANT: re-center the list itself */
.about-center ul {
    display: inline-block;   /* makes list behave like centered block */
    text-align: left;        /* keeps bullet text readable */
    margin: 0 auto;          /* centers the list block */
    padding-left: 1.2rem;    /* keeps bullet indentation clean */
}

/* tighten spacing */
.about-center li {
    margin: 2px 0;
    line-height: 1.4;
}

/* remove hidden paragraph spacing (Quarto issue) */
.about-center li p {
    margin: 0;
}

.toolkit-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  text-align: center;
}

.toolkit-card {
  min-width: 180px;
  text-align: center;
}

.toolkit-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}


.project-card {
    width: 100% !important;
    height: auto !important;

    min-width: 320px;
    min-height: 280px;

    box-sizing: border-box !important;

    padding: 0 !important;

    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;

    overflow: hidden;

    background: linear-gradient(
        180deg,
        #111827 0%,
        #0f172a 100%
    );

    display: flex;
    flex-direction: column;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.project-card-content {
    width: 100%;
    box-sizing: border-box;
    padding: 1.25rem 1.3rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    flex: none;
}

.project-card h3 {
    margin: 0 0 .5rem 0;
    font-size: 1.05rem;
    align-items: center;
    text-align: center;


    line-height: 1.3;
}

.project-card p {
    margin: .3rem 0;
    font-size: .82rem;
    line-height: 1.45;
    align-items: center;
    text-align: center;

}

.project-card .project-tools {
    font-size: .75rem;
}
.project-links {
    display: flex;
    flex-wrap: wrap;

    justify-content: center;

    gap: .5rem;

    margin-top: .7rem;
}

.project-button {
    display: inline-block;

    margin-top: 0.75rem;

    padding: 5px 12px;

    border: 1px solid currentColor;
    border-radius: 6px;

    text-decoration: none;

    font-size: 0.75rem;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.project-card:hover {
    transform: translateY(-6px);

    border-color: rgba(201,168,118,0.45);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.4),
        0 0 20px rgba(201,168,118,0.08);
}

@media (max-width: 900px) {

    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 600px) {

    .projects-grid {
        grid-template-columns: 1fr;
    }

}

/* ======================================================
   BLOG CARDS
====================================================== */

.quarto-grid-item {
    background: linear-gradient(
        180deg,
        #111827 0%,
        #0f172a 100%
    ) !important;

    min-width: 340px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px !important;

    overflow: hidden;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.quarto-grid-item:hover {

    transform: translateY(-6px);

    border-color: rgba(201,168,118,.45);

    box-shadow:
      0 10px 30px rgba(0,0,0,.4),
      0 0 20px rgba(201,168,118,.08);

}

/* image */

.listing-item-img {

    height: 210px !important;
    width: 100% !important;

    object-fit: cover;

    border-bottom: 1px solid rgba(255,255,255,.08);
}

/* body */

.quarto-grid-item .card-body {

    padding: 1.5rem !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

/* title */

.listing-title {

    font-family: "Cormorant Garamond", serif !important;

    font-size: 2rem !important;

    font-weight: 600 !important;

    line-height: 1.1;

    color: #f8fafc !important;

    margin-bottom: .8rem;
}

/* subtitle */

.listing-subtitle {

    font-family: Inter, sans-serif;

    font-size: .95rem !important;

    color: #94a3b8 !important;

    line-height: 1.7;
}

/* remove white backgrounds */

.card,
.card-body {

    background: transparent !important;

}
.quarto-grid-item .listing-title,
.quarto-grid-item .listing-subtitle {

    text-align: center !important;
    width: 100% !important;

}