:root {
    --base: #2d3c41;
    --bigletters: #cce4f1;
    --smallleters: #dadbd0;
    --line: #787171;
    --accent: #e6db11;
    --serif: "Georgia", "Noto Serif JP", "Times New Roman", serif;
    --sans: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--base);
    color: var(--bigletters);
    font-family: var(--sans);
    line-height: 1.6;
    min-height: 100vh;
    margin: 0; /* Removes default browser spacing */
}

body.landing-page {
    background: url("./images/bg.jpg") var(--base);
    background-size: cover;
    background-position: center;
    backdrop-filter: brightness(60%);
}


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

.inline-link {
    text-decoration: underline;
}
.inline-link:hover{
    color: var(--accent);
}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.08;
}

h1 {
    font-family: var(--serif);
    max-width: 80%;
    word-break: keep-all;
    overflow-wrap: break-word;
    margin-top: 18px;
    font-size: clamp(2.2rem, 4.0vw, 3.6rem);
    font-weight: 400;
    letter-spacing: -.045em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    letter-spacing: -.03em;
    font-family: var(--serif);
}

h3 {
    font-size: 1.05rem;
    font-family: var(--sans);
}


/* Classes shared across pages (container, header, footer) */

.container {
    width: min(1120px, calc(100% - 48px));
    margin-inline: auto;
}

.text-link {
    display: inline-block;
    margin-top: 18px;
    color: var(--accent);
    font-size: .82rem;
    font-weight: 700;
    border-bottom: 1px solid var(--accent);
}

.eyebrow {
    color: var(--accent);
    font-size: .92rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.page-intro {
    padding: 32px 0 0px;
}

.page-intro h1 {
    font-size: clamp(2.5rem, 3.0vw, 3.5rem);
}

.site-header {
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(6px);
}

.nav-shell {
    padding-top: 32px;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: .01em;
    font-size: 1.25rem;
    font-family: "Ubuntu", sans-serif; 
    white-space: nowrap;
    color: var(--accent);
}


.brand small {
    display: block;
    color: var(--smallleters);
    font-size: .50rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-align: center;
    line-height: 100%;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 23px;
    font-size: 1.0rem;
    font-weight: 600;
}

.nav-links a {
    color: var(--smallleters);
    transition: color .2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--accent);
}

.lang-toggle,
.menu-toggle {
    height: 36px;
    border: 1px solid var(--smallleters);
    background: transparent;
    color: var(--smallleters);
    cursor: pointer;
    font: inherit;
}

.lang-toggle:hover,
.menu-toggle:hover{
    border-color: var(--accent);
    color: var(--accent);
}

.lang-toggle {
    padding: 7px 11px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.menu-toggle {
    display: none;
    padding: 4px 6px;
}

.menu-toggle span{
  display: block;
  height: 1px;
  margin: 5px 0;
  width: 24px;
  border-top: 1px solid var(--smallleters);
}

.menu-toggle:hover span{
    border-color: var(--accent);
}

.site-footer {
    padding: 32px 0;
    color: var(--smallleters);
    font-size: .78rem;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.footer-row p {
    margin: 0;
}

/* Landing page specific */

.hero {
    padding: 125px 0 100px;
    animation: fadeIn 1s ease forwards;
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1.5;
  }
}

.section {
    padding: 30px 0 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 8px;
}

.updates {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.update {
    padding: 24px 22px 12px 0;
}

.update+.update {
    padding-left: 22px;
    border-left: 1px solid var(--line);
}

.update-date {
    color: var(--accent);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.update h3 {
    margin: 13px 0 10px;
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 400;
}

.update p {
    margin: 0;
    color: var(--smallleters);
    font-size: .9rem;
}

/* Research page specific */

.copy-block+.copy-block {
    margin-top: 36px;
}

.copy-block h2 {
    margin-bottom: 18px;
    font-size: 1.75rem;
}

.copy-block p {
    max-width: 680px;
    color: var(--smallleters);
    text-align: justify;
}

/* Team page specific */

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 46px 46px;
}

.member-photo {
    aspect-ratio: 1.0;
    object-fit: cover;
    filter: saturate(.85);
}

.member-info {
    padding-top: 15px;
}

.member-info h2 {
    margin-bottom: 4px;
    font-size: 1.55rem;
}

.member-role {
    color: var(--accent);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.member-info p {
    margin: 10px 0 0;
    color: var(--smallleters);
    font-size: .88rem;
}

/* Publication page specific */

.publication {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 25px;
    align-items: start;
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
}

.pub-mid-header{
    padding: 48px 0 16px;
}
.pub-mid-header h2{
    font-size: 1.85rem;
}

.pub-year {
    color: var(--accent);
    font-family: var(--serif);
    font-size: 1.3rem;
}

.publication h2 {
    margin-bottom: 8px;
    font-size: 1.55rem;
}

.publication p {
    margin: 0;
    color: var(--smallleters);
    font-size: .88rem;
}

.pub-tag {
    border: 1px solid var(--smallleters);
    padding: 5px 8px;
    margin-bottom: 6px;
    color: var(--smallleters);
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    text-align: center;
}

.pub-tag:hover{
    color: var(--accent);
    border-color: var(--accent);
}

/* Contact page specific */

.contact-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 100px;
}

.contact-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

li.contact-item {
    padding: 21px 0;
    border-top: 1px solid var(--line);
}

li.contact-item:last-child {
    border-bottom: 1px solid var(--line);
}

.contact-list span {
    display: block;
    margin-bottom: 4px;
    color: var(--smallleters);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.position {
    padding: 24px 0;
    border-top: 1px solid var(--line);
}

.position h2 {
    font-size: 1.65rem;
}

.position p {
    color: var(--smallleters);
}

.map {
    min-height: 300px;
    width: 100%;
    margin-top: 34px;
    padding: 0;
    display: flex;
    align-items: end;
}

/* For things that change between pc vs. phone */
@media (max-width: 760px) {

    /* shared */

    .container {
        width: min(100% - 32px, 620px);
    }

    .nav-shell {
        min-height: 70px;
        padding-top: 32px;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        order: 3;
        width: 100%;
        display: none;
        padding: 8px 0 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* landing page */

    .hero {
        padding: 70px 0 62px;
    }

    .hero-grid,
    .content-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .hero-note {
        max-width: 420px;
    }

    .section,
    .page-intro {
        padding: 32px 0;
    }

    .section-header {
        display: block;
    }

    .section-header p {
        margin-top: 16px;
    }

    .updates,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .update+.update {
        padding-left: 0;
        border-left: 0;
    }

    .publication h2 {
        margin-bottom: 8px;
        font-size: 1.25rem;
    }

    .publication {
        grid-template-columns: 60px 0.75fr 0.25fr;
        gap: 14px;
    }

    .pub-tag {
        grid-column: 2;
    }

    .footer-row {
        display: block;
    }

    .footer-row p+p {
        margin-top: 8px;
    }
}