:root {
    /* DARK ACADEMIA 2 */
    color-scheme: light dark;

    --dark-color: hsl(165deg 9% 15%);
    --base-color: light-dark(hsl(50, 21%, 95%), var(--dark-color));
    --card-color: light-dark(hsl(50, 21%, 88%), hsl(from var(--dark-color) h s 20%));
    --text-color: light-dark(var(--dark-color), #F4F3EE);
    --primary-color: light-dark(#7B3428, #E6BBB3);
    --primary-color-light: light-dark(hsl(9, 51%, 56%), #FAF0F4);
    --secondary-color: #E6CBB1;
    --secondary-color-light: #F5EAE0;

    --ff-primary: 'Newsreader', serif;
    --ff-secondary: 'Bricolage Grotesque', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    font-family: var(--ff-primary);
    font-weight: 300;
    color: var(--text-color);
    padding: 1em;
    scroll-behavior: smooth;
}
body {
    font-size: clamp(1.2rem, 1.5rem, 1.7rem);
    line-height: 1.4;
    background: var(--base-color);
} 

a {
    color: var(--primary-color);
    text-decoration: none;
}

h1, h2, h3 {
    font-family: var(--ff-secondary);
    text-wrap: balance;
}

p {
    margin-bottom: 1rem;
    hyphens: auto;
    text-wrap:pretty;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.big {
    font-size:clamp(140%, 150%, 160%);
    line-height: 1.13;
    font-weight: 250;
}

#top, #research-1 {
    scroll-margin-top: 15vh;
}

.wrapper {
    margin-inline: auto;
    max-width: 75rem;
}

.hero {
    margin-top: clamp(1vh, 8vh, 12vh);
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-auto-rows: auto;
    gap: 2rem;
    align-items: stretch;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.hero.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
    }

.hero > * {
    padding: .5rem;
}

.hero-img {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero img {
    border-radius: .5rem;
    width: 100%;
    height: 92%;
    object-fit: cover;
    object-position: top;
    background-image: url("/images/main-tiny.jpeg");
    background-repeat: no-repeat;
    background-size: 100%;
    box-shadow: 3px 4px 20px hsl(from var(--dark-color) h s 10% /.5);
}

.hero h1 {
    white-space: nowrap; 
    font-size: clamp(140%, 6vw, 200%);
    overflow: clip;
    text-align: left;
    line-height: 1.9;
}

.footer-button-region > div {
    opacity: 0;
}

.footer-button-region.visible > div {
    animation: fadeUp 800ms ease forwards;
}

.footer-button-region {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
}

.circle-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--base-color);
    text-decoration: none;
    font-family: var(--ff-secondary);
    font-weight: 200;
    font-size: 1.5rem;
    line-height: 1;
    /* transform:translateY(0); */
    transition: background-color 700ms ease, transform 700ms ease;
}

.footer-button-region.visible > div:nth-child(1) {
    animation-delay: 200ms;
}
.footer-button-region.visible > div:nth-child(2) {
    animation-delay: 300ms;
}
.footer-button-region.visible > div:nth-child(3) {
    animation-delay: 400ms;
}
.footer-button-region.visible > div:nth-child(4) {
    animation-delay: 500ms;
}

.circle-btn svg {
    width: 2rem;
    height: auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.35rem;
}

@media (hover: hover) {
.circle-btn:hover,
.circle-btn:focus {
    background-color: var(--primary-color-light);
    color: var(--base-color);
    transform: translateY(-.4rem);
    transition: all 250ms ease;
}

.footer-scroll-region a:hover,
.footer-scroll-region a:focus {
    transform: translateY(-.4rem);
    transition: all 350ms ease;
}

a:hover,
a:focus {
    color: var(--primary-color-light)
}

.research a:hover,
.research a:focus {
    transform: translateX(.5rem);
    transition: transform 350ms, color 350ms;
}

}

.at {
    font-family: var(--ff-primary);
    font-size: 2rem;
    font-weight: 250;
    padding-top:.2rem;
}

.footer-scroll-region {
    text-align: center;
    font-size: 150%;
    font-style: italic;
    opacity:0;
}

.footer-scroll-region.visible {
    animation: fadeUp 1.25s ease forwards;
    animation-delay: 1s;
}
.footer-scroll-region a {
    transition: transform 700ms ease, color 700ms ease;
    display: inline-block;
}

.footer-scroll-region .arrow {
    display: inline-block;
    font-size: 36px;
    font-family: var(--ff-secondary);
    font-style: normal;
    font-weight: 200;
    vertical-align: -6%;
}

.research {
    margin-top: 8rem;
    margin-inline: auto;
    opacity: .3;
    transition: opacity 1s, transform .5s;
}

.research-text {
    background-color: var(--card-color);
    max-width: 55rem;
    border-radius: 1rem;
    box-shadow: 3px 6px 20px -5px hsl(from var(--dark-color) h s 10% /.5);
    padding: 2rem;
    z-index: 5;
    position: relative;
    margin-inline: auto;
    line-height: 1.5;
}

.research a {
    transition: transform 700ms, color 700ms;
    display: inline-block;
}

.research.visible {
    opacity: 1;
    transform: translateY(0);
}

.research.visible h2 {
    opacity: .8;
    transform: translateY(1rem);
    transition-delay: 500ms;
    }
    
.research h2 {
    opacity: 0;
    font-family: var(--ff-primary);
    font-weight: 300;
    font-style: italic;
    font-size: 300%;
    text-align: center;
    margin-bottom:0;
    line-height:1.2;
    z-index: 1;
    position: relative;
    transform: translateY(4rem);
    transition: opacity 1.25s ease, transform 1.25s ease;
}
.research.visible h3 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1s;
    }

.research h3 {
    opacity: 0;
    text-align: center;
    margin-bottom: 1.5rem;
    transform: translateY(1rem);
    transition: opacity 1.25s ease, transform 1.25s ease;
    font-size:110%;
}

.research strong {
    font-family: var(--ff-secondary);
    font-size: 92%;
    text-transform: uppercase;
    margin-right: 1rem;
}

footer {
    height: 25dvh;
    margin-inline: auto;
    display:flex;
    max-width:60rem;
    margin-top:5rem;
    align-items: top;
    justify-content: space-around;
}

@media (max-width: 744px) {
    .hero {
        grid-template-columns: 1fr;
        align-items: center;
        /* gap:.5fr; */
        margin-top: 0;
        padding:0;
    }

    .hero > * {
        padding:0;
    }
    .hero img {
        width: 100%;
        aspect-ratio: 1 / 1;
    }
    .research-text {
        padding: 1.25rem;
        font-size: 90%;
    }
}
