/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* 2. Remove default margin */
* {
    margin: 0;
}

body {
    /* 3. Add accessible line-height */
    line-height: 1.5;
    /* 4. Improve text rendering */
    -webkit-font-smoothing: antialiased;
}

/* 5. Improve media defaults */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

/* 6. Inherit fonts for form controls */
input,
button,
textarea,
select {
    font: inherit;
}

/* 7. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

/* 8. Improve line wrapping */
p {
    text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-wrap: balance;
}

/*
    9. Create a root stacking context
  */
#root,
#__next {
    isolation: isolate;
}

:root {
    --color-bg: #ffffff;
    --color-primary: #36413e;
    --color-bg-header: #fafcfd;
    --color-h1-h6: #123354;
    --color-p: #111111;
    --color-header: #fbf2c0;
    --color-wordmark: #212121;
    --color-white: #ffffff;
    --color-nav: #000000;
    --color-nav-hover: #000000;
    --color-link: #ee6c4d;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/*html::before {
    content: "";
    border: 0.25rem solid var(--color-link);
    height: 100vh;
    pointer-events: none;
    position: fixed;
    width: 100vw;
} */

body {
    margin: 0 auto;
    padding: 0;
    color: #000000;
    background-color: var(--color-bg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Mozilla Text', sans-serif;
    font-feature-settings: 'liga' 1,'ss04' 1,'case' 1;
    color: var(--color-h1-h6);
    font-weight: 500;
    line-height: 1.5;
    margin: 2rem 0 0;
}

h2 {
    font-size: 2.125rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.375rem;
    color: #888888;
}
p {
    font-family: 'Uncut Sans', sans-serif;
    font-size: 1.5rem;
    color: var(--color-p);
    line-height: 1.5;
    margin: 1.5rem 0 0;
    font-weight: 400;
}

a {
    font-family: 'Uncut Sans', sans-serif;
    font-size: 1.3713rem;
    box-shadow: inset 0 -0.125rem 0 var(--color-link);
    color: #000000;
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    background: var(--color-link);
    color: #ffffff;
}

ul {
    list-style: disc;
}

ul > li {
    font-family: 'Uncut Sans', sans-serif;
    font-weight: 400;
    line-height: 2;
}

.small {
    font-size: 1.125rem;
}

.display-1 {
    color: var(--color-primary);
    font-size: 5rem;
    font-weight: 700;
    margin-top: 2rem;
    line-height: 1.3;
}

.display-s {
    font-size: 1em;
}

/* .dark-bg p, h1, h2 {
   color: #ffffff;
} */

.mt-3 {
    margin-top: 3rem;
}

/* Header */

.nav-container {
  background-color: var(--color-bg-header);
}

.navbar {
  display: flex;
  height: 100%;
  padding: 1rem 0;
  margin: auto;
  background-color: #ffffff;
  align-items: center;
  justify-content: space-around;
}

.navbar div, nav {
    display: flex;
    width: 100%;
    justify-content: center;
}

.navbar ul {
  display: flex;
  align-self: baseline;
}

.navbar ul li {
  list-style-type: none;
}

.nav-container .navbar ul li {
  padding: 0;
  margin: 0 0.5rem;
}

.navbar a {
  color: var(--color-nav);
  font-size: 1.375rem;
  box-shadow: none;
}

.navbar a:hover {
  color: var(--color-nav-hover);
  background: none;
  box-shadow: inset 0 -0.125rem 0 var(--color-link);
}

.site-title {
    margin: 0;
}

.site-title > a {
display: inline-block;
font-family: 'Zilla Slab', sans-serif;
font-size: 1.75rem;
font-weight: 600;
color: var(--color-wordmark);
min-width: 300px;
}

.site-title > a:hover {
    color: #656565;
    box-shadow: none;
}

.site-title > a:hover::after {
    font-family: 'Inter', sans-serif;
    font-feature-settings: 'liga' 1,'ss04' 1,'case' 1;
    font-weight: 700;
    font-size: 1.5rem;
    content: '.ca';
    color: var(--color-link);
}

.muted {
    opacity: 0.6;
}

.icons > a {
    box-shadow: none;
}

.icons > a:hover {
    background: none;
    color: #999999;
}

/* Responsive section for small screen like mobile devices */

@media screen and (min-width: 390px) and (max-width: 767px) {
  .nav-container {
    height: 100%;
  }

  .nav-container .navbar {
    flex-direction: column;
  }
}

#nav-title > a:hover {
    color: var(--color-hover);
    background: none;
}

#nav-title > a:hover::after {
    color: var(--color-link);
    content: '.ca';
    /* transition: all 0.3s ease 0s; */
}

#welcome {
    display: grid;
    grid-template-columns: auto;
    background: var(--color-bg-header);
    min-height: 50vh;
    padding: 2rem;
}

.jumbo1 {
    padding-bottom: 5rem;
}

.jumbo1 > h1 {
    color: #000000;
}

.jumbo1 > p {
    color: #000000;
}

main {
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: auto;
    padding: 0 1.5rem;
}

a.github, a.bsky, a.mastodon {
    display: inline-block;
    font-size: 1.5rem;
    color: rgba(0, 0, 0, 0.7);
    margin-left: 1rem;
}

a.github:hover{
    fill: #000000;
    transform: rotate(-6deg);
}

a.bsky:hover {
    fill: #0285ff;
    transform: rotate(-6deg);
}

a.mastodon:hover {
    fill: #563acc;
    transform: rotate(-6deg);
}

.post-meta {
    font-family: 'Uncut Sans', sans-serif;
    font-size: 1rem;
    color: #454545;
    padding: 2rem 0;
}

.headline {
    max-width: 960px;
    grid-column: 1 / 6;
    grid-row: 1 / 2;
    margin: 0 auto;
    text-align: center;
}

.copy {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.page {
    max-width: 800px;
    margin-top: 4rem;
}

.blog {
    padding-top: 3vh;
}

.blog > figure {
    max-width: 1024px;
    margin: 0 auto;
    margin-bottom: 2rem;
}

.blog > p {
    font-family: 'Noto Serif', serif;
    max-width: 660px;
    margin: 0 auto;
    font-size: 1.250rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: #121212;
}

.from-the-blog {
    margin-top: 4rem;
    border-top: solid 0.5rem #000000;
}

.lct {
    font-family: 'Libre Caslon Text', serif;
    font-size: 1.75rem !important;
    padding: 3rem;
}

.news > ul {
    margin-top: 1rem;
}

.news > p {
    margin: 1.5rem 0 0 1rem;
}

.news > p, li a {
    font-size: 1rem;
    color: #212121;
}

.side-h {
    margin-top: 3rem;
    padding: 0 0 0 0.5rem;
    color: #222222;
    font-size: 1rem;
    border-bottom: solid 1px #dddddd;
}

#upBtn {
    display: flex;
    position: fixed;
    bottom: 1rem;
    right: 2.5rem;
    z-index: 99;
    font-size: 1.250rem;
    border: none;
    outline: none;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    transition: bottom 200ms, transform 200ms;
}

footer {
    display: grid;
    grid-column: 1 / 2;
    margin: 4rem auto;
    min-height: 10rem;
    font-weight: 400;
    font-size: 1.125rem;
    margin-top: 6rem;
}

.nav-footer {
    border-top: solid 4px #826aed;
    padding: 1rem 0;
    margin-left: 1rem;
}

footer a, a:hover {
    box-shadow: none
}

footer a:hover {
    color: #ffffff;
}

.wordmark {
    font-family: 'Zilla Slab', sans-serif;
    font-size: 1.50rem;
    font-weight: 400;
}

/* media queries ############################################################################################################# */

@media only screen and (min-width: 1240px) {

    
    header {
        flex-direction: row;
        padding: 0;
    }

    .site-title a {
    font-size: 3rem;
    width: 400px;
    }

    .display-1 {
        font-size: 4.5rem;
        margin: 1rem 0;
    }

    .display-s {
        font-size: 1.25rem;
        font-weight: 500;
        margin: 0;
    }

    #welcome {
        display: grid;
        grid-template-columns: 15vw 50vw auto 10vw;
        grid-template-rows: auto;
        padding: 1rem 0 3rem;
    }

    main {
        display: grid;
        grid-template-columns: 20vw auto 20vw;
        grid-template-rows: auto;
        padding: 0 1rem;
    }

    .jumbo1 {
        grid-column: 2 / 3;
        padding-right: 6rem;
    }

    .news {
        grid-column: 3 / 4;
        grid-row: 1 / 2;
        padding-left: 1em;
    }

    .news > a {
        font-weight: 700;
        font-size: 1rem;
    }

    .headline {
        grid-column: 1 / 4;
    }

    .copy {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }

    .page {
        max-width: 700px;
    }

    .photos {
        grid-column: 1 / 4;
        grid-row: 2 / 3;
        height: 800px;
    }

    figure {
        grid-column: 1 / 4;
    }

    footer {
        grid-template-columns: 20vw auto 20vw;
    }
    
    .nav-footer {
        grid-column: 2 / 4;
        margin-left: 1rem;
    }
}