:root {
    --s83-accent: #4242DE;
}

body {
    margin-bottom: 100px;
}

a {
    color: #4242DE;
}

a:hover {
    text-decoration: underline !important;
}

.dropdown-content > a:hover {
    text-decoration: none !important;
}

.button.is-link:not(.is-outlined) {
    background-color: #4242DE;
}

/* Outlined buttons must stay transparent — the fill above would swallow the label. */
.button.is-link.is-outlined {
    background-color: transparent;
    border-color: #4242DE;
    color: #4242DE;
}

.button.is-link.is-outlined:hover {
    background-color: #4242DE;
    border-color: #4242DE;
    color: #fff;
}

@media (prefers-color-scheme: dark) {
    :root {
        --s83-accent: #9D99FF;

        a {
            color: #9D99FF;
        }

        .button.is-link:not(.is-outlined) {
            background-color: #9D99FF;
            color: #14141b;
        }

        .button.is-link.is-outlined {
            border-color: #9D99FF;
            color: #9D99FF;
        }

        .button.is-link.is-outlined:hover {
            background-color: #9D99FF;
            color: #14141b;
        }

        .button.is-link:not(.is-outlined):hover {
            background-color: #b8b5ff;
            color: #14141b;
        }
    }
}

html.theme-dark {
    --s83-accent: #9D99FF;

    a {
        color: #9D99FF;
    }

    .button.is-link:not(.is-outlined) {
        background-color: #9D99FF;
        color: #14141b;
    }

    .button.is-link.is-outlined {
        border-color: #9D99FF;
        color: #9D99FF;
    }

    .button.is-link.is-outlined:hover {
        background-color: #9D99FF;
        color: #14141b;
    }

    .button.is-link:not(.is-outlined):hover {
        background-color: #b8b5ff;
        color: #14141b;
    }
}

html.theme-light {
    --s83-accent: #4242DE;

    a {
        color: #4242DE;
    }

    .button.is-link:not(.is-outlined) {
        background-color: #4242DE;
        color: #fff;
    }

    .button.is-link.is-outlined {
        border-color: #4242DE;
        color: #4242DE;
    }

    .button.is-link.is-outlined:hover {
        background-color: #4242DE;
        color: #fff;
    }

    .button.is-link:not(.is-outlined):hover {
        background-color: #3333c4;
        color: #fff;
    }
}

.button.is-link:not(.is-outlined):hover {
    background-color: #3333c4;
    color: #fff;
}

a.is-active {
    text-decoration: underline;
}

.section-padding {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.section-navbar {
    padding-top: 3rem !important;
    padding-bottom: 0 !important;
}

.software-image {
    margin-top: 0px !important;
    margin-right: 0px !important;
    margin-bottom: 0px !important;
    margin-left: 12px !important;
    overflow: hidden;
}

.software-image img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

/* Brand logos come in their own colours and several are near-black (Tally,
   Mural, Firebase's wordmark), so they disappear on the dark theme. A light
   plate keeps every mark legible without recolouring anyone's brand. */
@media (prefers-color-scheme: dark) {
    :root {
        .software-image {
            background-color: #fff;
            border-radius: 6px;
            padding: 3px;
        }
    }
}

html.theme-dark .software-image {
    background-color: #fff;
    border-radius: 6px;
    padding: 3px;
}

html.theme-light .software-image {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
}

.is-96x48 {
    width: 96px;
    height: 48px;
}

.is-unstyled {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
  
/* Theme toggle shows the icon for the theme you'd switch TO. */
.theme-icon-dark { display: none; }
.theme-icon-light { display: inline-block; }

html.theme-dark .theme-icon-light { display: none; }
html.theme-dark .theme-icon-dark { display: inline-block; }

.no-border {
    border: none !important;
    box-shadow: none !important; 
}

.dropdown.is-hoverable:hover {
    cursor: default;
}
  
.dropdown.is-hoverable:not(.is-active) .dropdown-menu {
    display: none;
}

.has-border {
    border: 1px solid var(--bulma-border);
    border-radius: 8px;
}

/* ---------- Project cards ---------- */

/* Cards in a row carry different amounts of text above the screenshot, so the
   images are bottom-aligned to keep them on a common baseline. */
.project-card {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.project-card .content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card .project-card-image {
    margin: 1.25rem 0 0;
    margin-top: auto;
    padding-top: 1.25rem;
}

/* ---------- Homepage ---------- */

.hero-statement {
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    max-width: 26ch;
    margin-inline: auto;
    text-wrap: balance;
}

/* Keep the accent phrase on one line so the colour doesn't split mid-thought. */
.hero-statement .accent {
    color: var(--s83-accent);
    white-space: nowrap;
}

@media (max-width: 480px) {
    .hero-statement .accent {
        white-space: normal;
    }
}

/* Proof numbers: one bordered strip rather than four floating figures. */
.stat-strip {
    border-top: 1px solid var(--bulma-border);
    border-bottom: 1px solid var(--bulma-border);
    padding: 2rem 0;
}

.stat-strip .stat-value {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-strip .stat-label {
    font-size: 0.875rem;
    color: var(--bulma-text-weak);
    margin-top: 0.4rem;
}

/* The two doors: build it / own it. */
.door-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.75rem;
    border: 1px solid var(--bulma-border);
    border-radius: 10px;
    text-align: left;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.door-card:hover {
    border-color: var(--s83-accent);
    transform: translateY(-2px);
}

.door-card .door-icon {
    color: var(--s83-accent);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.door-card p {
    color: var(--bulma-text-weak);
    flex-grow: 1;
}

.door-card .door-link {
    font-weight: 600;
    margin-top: 1rem;
}


.stack-strip .tag {
    margin: 0 0.35rem 0.5rem 0;
}
/* ---------- Homepage rhythm ---------- */

/* Bulma's default section padding stacked up into large empty gaps between
   blocks; these keep a consistent, tighter beat down the page. */
.home-hero {
    padding-top: 3rem;
    padding-bottom: 1.5rem;
}

.hero-avatar {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.75rem;
    display: block;
    border: 3px solid var(--bulma-border);
}

.home-block {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.work-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--bulma-border);
    padding-bottom: 0.75rem;
}

.work-head a {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Project thumbnails — the only imagery on the page, so they carry it. */
.work-card {
    display: block;
    border: 1px solid var(--bulma-border);
    border-radius: 10px;
    overflow: hidden;
    color: inherit;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.work-card:hover {
    border-color: var(--s83-accent);
    transform: translateY(-2px);
    text-decoration: none !important;
}

.work-card img {
    display: block;
    width: 100%;
    height: auto;
}

.work-meta {
    display: block;
    padding: 0.85rem 1rem 1rem;
}

.work-title {
    display: block;
    font-weight: 600;
    color: var(--s83-accent);
}

.work-stack {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.8rem;
    color: var(--bulma-text-weak);
}

/* ---------- Footer quote ---------- */

/* Sits in the first footer column alongside the brand and copyright. */
.footer-quote {
    border-left: 3px solid var(--s83-accent);
    padding: 0 0 0 0.85rem;
    margin: 0 0 0.85rem;
}

.footer-quote p {
    margin-bottom: 0.15rem;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.35;
}

.footer-quote cite {
    display: block;
    font-size: 0.8rem;
    font-style: normal;
    color: var(--bulma-text-weak);
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--bulma-text-weak);
    margin-bottom: 0;
}

/* ---------- Footer spacing ---------- */

/* The link lists use .is-unstyled, which strips all margin, so the columns
   ended flush against the section edge. */
footer .columns {
    padding-bottom: 2.5rem;
}

/* Separation when the columns stack on narrow screens. */
footer .columns > .column {
    padding-bottom: 1.25rem;
}

footer .columns .is-unstyled li + li {
    margin-top: 0.35rem;
}
