:root {
    --ideal-line-width: 60rem;
    --ideal-body-width: 70rem;
    --body-padding: 1rem;

    --body-font: 'Cambria Math';
    --display-font: 'Cambria Math';
}

html {
    box-sizing: border-box;
    color: var(--main);
    background-color: var(--main-bg);
    hyphens: auto;
}

/* html{
    --main-bg: hsl(31, 20%, 79%);

    --main: hsl(9, 8%, 32%);
    --main-soft1: hsl(9, 7%, 58%);
    --main-soft2: hsl(9, 7%, 78%);

    --accent1: hwb(210 42% 46%);
    --accent2: hwb(var(--accent2-coords) / 1);
    --accent-soft: hwb(210 36% 35%);

    --accent2-coords: 240 36% 35%;

    font-weight: 500;
} */

html{
    --main-bg: hsl(51, 18%, 85%);

    --main: hsl(77, 28%, 24%);
    --main-soft1: hsl(77, 30%, 21%);
    --main-soft2: hsl(76, 34%, 20%);

    --accent1: hwb(19 10% 56%);
    /* hwb(216 38% 11%); */
    --accent2: hwb(var(--accent2-coords) / 1);
    --accent-soft: hwb(19 10% 56%);

    --accent2-coords: 19 10% 56%;

    font-weight: 550;
}
/* html[data-theme="dark"] {
    --main-bg: hsl(0 0% 8%);

    --main: hsl(0, 0%, 97%);
    --main-soft1: hsl(0, 0%, 65%);
    --main-soft2: hsl(0, 0%, 50%);

    --deg: 138deg;

    --accent1: hwb(var(--deg) 25% 0% / 1);
    --accent2: hwb(var(--accent2-coords) / 1);
    --accent-soft: hwb(var(--deg) 70% 0% / 1);

    --accent2-coords: var(--deg) 70% 0%;

    font-weight: 300;
} */

body {
    font-family: var(--body-font), sans-serif;
    max-width: var(--ideal-body-width);
    min-height: 100svh;
    margin: auto;
    padding-inline: var(--body-padding);
    display: grid;
    grid-template-columns: auto min(var(--ideal-line-width), 100%) auto;
    align-content: space-between;
    text-align: justify;
}

body>* {
    grid-column: 2;
}

main {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: subgrid;
}

main > * {
    grid-column: 2;
}

h1,
h2,
h3,
h4 {
    font-family: var(--display-font), serif;
    font-weight: 900;
    color: var(--accent1);
}

h2 {
    text-align: center;
}

footer {
    margin-block: 1rem;
    display: flex;
    justify-content: space-between;
    color: var(--main-soft1);
}

/* span.emoji {
    font-family: 'Noto Emoji';
    font-style: normal;
} */

a,
a:visited {
    color: var(--accent-soft);
    text-decoration: none;
}

m {
    font-style: italic;
}

a:hover {
    text-decoration: underline;
}

.name {
    font-weight: 900;
}

.name>a {
    color: inherit;
}

.name>a:hover {
    text-decoration: none;
}


label.logo {
    color: var(--accent1);
    font-size: 25px;
    line-height: 80px;
    padding: 0 10px;
    font-weight: bold;
}

nav>ul {
    float: right;
  margin-right: 20px;
}
nav>ul {
    float: right;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    margin: 0;
    padding: 0;
    column-gap: 1.5em;
}
nav>ul>li {
    display: inline-block;
  line-height: 80px;
  margin: 0 5px;
}

nav a {
    display: block;
    font-family: var(--display-font), serif;
    font-weight: 700;
    color: var(--accent2);
    box-sizing: border-box;
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 1.5px solid hwb(var(--accent2-coords) / 0);
    white-space: nowrap;
}

nav a:visited {
    color: var(--accent2);
}

nav a:hover,
nav a.nav-active {
    text-decoration: none;
    border-bottom: 1.5px solid var(--accent2);
    /* transform: skewX(-10deg); */
}

.checkbtn {
    font-size: 25px;
    color: var(--accent1);
    float: right;
    line-height: 80px;
    margin-right: 30px;
    margin-top: 20px;
    cursor: pointer;
    display: none;
}
#check {
    display: none;
}

strong {
    font-weight: 600;
}

.wide {
    grid-column: 1 / -1;
}

.about-card>img {
    --size: 15em;
    width: var(--size);
    height: var(--size);
    object-fit: cover;
    /* clip-path: inset(0 round 50%); */
    margin: 1em;
}

.about-main {
    display: grid;
    margin: 1em 0;
    column-gap: 1em;
}

.about-card {
    display: grid;
    align-content: start;
    justify-items: center;
}

.about-card a {
    color: inherit;
}

.about-card>div {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 0.2em;
    justify-content: center;
}

.about-card>div span, .about-card>div i {
    justify-self: center;
    align-self: center;
}

.overflow-wrapper {
    overflow-x: scroll;
}

table td {
    padding: 0;
}

table td:not(:last-child) {
    padding-right: 1em;
}

table tr:not(:last-child) td {
    padding-bottom: 0.5em;
}

@media (max-width: 1050px) {
    label.logo {
      padding-left: 10px;
    }
    nav ul li a {
      font-size: 16px;
    }
  }

@media screen and (min-width: 450px) {
    :root {
        --body-padding: 1.5rem;
    }
}

@media screen and (min-width: 47rem) {
    .about-main {
        grid-template-columns: 1fr 3fr;
    }
    .talk-table>div.title {
        grid-column: 3/span 1;
    }
    .talk-table>div.abstract {
        grid-column: 3/span 1;
    }
    .talk-table>h3 {
        grid-column: 1/span 3;
    }
    .talk-table>div.date {
        /* Date */
        margin-top: 0;
    }

    .talk-table {
        grid-template-columns: auto auto auto;
        gap: 0.75em 1em;
        align-items: center;
    }
}

@media screen and (min-width: 57rem) {
    header h1.name {
        margin-top: 2em;
    }
}

@media (max-width: 890px) {
    .checkbtn {
      display: flex;
    }
    label.logo {
      font-size: 22px;
    }
    nav ul {
      position: fixed;
      width: 100%;
      height: 100vh;
      background: #CDBCA8;
      top: 80px;
      left: -100%;
      text-align: center;
      transition: all .5s;
    }
    nav ul li {
      display: block;
      margin: 50px 0;
      line-height: 30px;
    }
    nav ul li a {
      font-size: 20px;
    }
    a:hover,
    a.active {
      background: none;
    }
    #check:checked~ul {
      left: 0;
    }
  }

