html,
body {
    margin: 0;
    padding: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
    background-color: #f2f3f4;
}

html {
    scroll-behavior: smooth;
}

a {
    color: inherit;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
}

a:hover,
a:focus {
    text-decoration-style: solid;
}

.contact-float {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 9999;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid black;
    padding: 12px 18px;
    border-radius: 999px;
    /* oval/pill */
    text-decoration: none;
    font-weight: 400;
    color: black;

    /* box-shadow: 0 10px 24px rgba(0, 0, 0, .18); */
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;

    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* Safari */
}

.contact-float:hover {
    /* background: #b3262a;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .22); */
}

.contact-float:active {
    /* transform: translateY(0); */
}

.contact-float:focus-visible {
    /* outline: 3px solid #f5db12;
    outline-offset: 3px; */
}

#wrap-title {
    position: absolute;
    /* relative to #wrap-svg */
    inset: 0;
    /* cover the svg */

    pointer-events: none;
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
}

#wrap-pin {
    /* height: 126vh; */
    max-height: 1000px;
    /* 1000px or 126vh works on MacBook window safari */
}

#wrap-svg {
    position: sticky;
    top: 0;

    max-width: 900px;
    min-width: 340px;
    width: 100%;

    margin: 10px auto;
    /* 10px top & bottom, centered horizontally */

    /* height: 100vh; */
    height: auto;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    position: relative;
}

#wrap-svg>svg {

    width: 100%;
    height: auto;

    /* Keep the SVG fully visible and square */
    max-width: 100%;
    max-height: 700px;
    aspect-ratio: 1 / 1;

    /* Prevent cropping */
    object-fit: contain;
    z-index: 0;
}

#wrap-title span {
    display: block;
    /* font-size: 3.5rem; */
    /* font-size: clamp(16px, 4rem, 24px); */
    font-size: clamp(15px, 8vw + 0.5rem, 35px);
    font-weight: 900;
}

/* @media (max-width: 600px) {
    #wrap-title span {
        display: block;
        font-size: 2rem;
        font-weight: 900;
    }
} */

section.wrap {
    /* margin-top: 40px; */
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
    padding: 0 16px;
}

section h1 {
    text-align: center;
    /* margin: 0; */
    /* At least h2 margin top */
    margin-bottom: 1.3rem;
    font-size: 1.5rem;
}

section p {
    /* margin-bottom: 0.5ch; */
    margin: 0 0 0.7ch 0;
    /* top 0, bottom 0.5ch */
    font-size: 1rem;
    line-height: 2.2ch;
    /* allow line breaking to work well */
    overflow-wrap: break-word;
    /* fallback for very long tokens */
    word-break: normal;
    text-align: justify;

    /* auto hyphenation */
    hyphens: auto;
    -webkit-hyphens: auto;
    /* Safari */
    -ms-hyphens: auto;
    /* old Edge/IE */
}

.bold {
    font-weight: bold;
}

.project {
    max-width: 70rem;
    margin: 0 auto;
    line-height: 1.6;
}

.project h2 {
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.3;
    text-align: left;
    margin-bottom: 0.5ch;
    margin-top: 1.3rem;
}

.corner-image {
    float: right;
    width: min(30%, 180px);
    height: 100%;
    margin: 0 0 1rem 1rem;
    /*0.8*/
    border-radius: 0.5rem;
    /* shape-outside: inset(0);
    shape-margin: 0; */
}

.pub-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    text-decoration: none;
}

.pub-link:hover {
    text-decoration: underline;
}

table {
    border-collapse: collapse;
    margin-top: 10px;
}

/* ol,
ol * {
    margin: 0;
    padding: 0
}

ol {
    list-style-position: inside
} */

tr,
td {
    margin: 0;
    padding: 0;
}

td {
    padding-bottom: 5px;
}

td:first-child {
    padding-right: 30px;
}

footer {
    height: 60px;
    color: grey;
    font-size: 0.7rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Mobile layout */
/* @media (max-width: 640px) {
    .corner-image {
        float: none;
        display: block;
        max-width: 100%;
        margin: 0 auto 1rem;
    }
} */