/* 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: #efefea;;
    --color-primary: #f15156;
    --color-bg-header: #efefea;
    --color-h1-h6: #007ea7;
    --color-p: #111111;
    --color-header: #faf7f5;
    --color-wordmark: #ffffff;
    --color-white: #ffffff;
    --color-nav: #ffffff;
    --color-nav-hover: #eeeeee;
    --color-link: #81c3d7;
    --color-footer: #ccdbdc;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0 auto;
    padding: 0;
    color: #000000;
    background-color: var(--color-bg);
    font-family: 'Public Sans', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Mozilla Headline', sans-serif;
    color: var(--color-h1-h6);
    font-weight: 700;
    line-height: 1.5;
}

h2 {
    font-size: 1.625rem;
    padding: 1rem 0 0.5rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.375rem;
    color: #888888;
}

h6 {
    font-size: 1.250rem;
    margin: 0;
}

p {
    font-family: 'Public Sans', sans-serif;
    font-size: 1.250rem;
    color: var(--color-p);
    line-height: 1.5;
    padding: 1rem 0 0;
    font-weight: 400;
}

a {
    box-shadow: inset 0 -0.25rem 0 var(--color-link);
    color: #000000;
    text-decoration: none;
}

a:hover {
    transition: all 0.5s ease;
    box-shadow: inset 0 -1rem 0 var(--color-link);
    text-decoration: none;
}

img {
    box-sizing: initial;
}

a.b-s-no {
    box-shadow: none;
}

ul {
    list-style: disc;
}

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

.display-1 {
    font-size: 3rem;
    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: url("/assets/images/fall-scene.webp");
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: cover; /* Resize the background image to cover the entire container */
  background-color: var(--color-bg-header);
}

.navbar {
  display: flex;
  height: 100%;
  padding: 1rem 0;
  margin: auto;
  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.250rem;
  font-weight: 700;
  box-shadow: none;
  backdrop-filter: blur(4px);
}

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

.site-title > a {
display: inline-block;
font-family: 'Mozilla Text', sans-serif;
font-size: 1.313rem;
font-weight: 700;
letter-spacing: -1px;
color: var(--color-wordmark);
background-color: rgba(0, 0, 0, 0.1);
-webkit-backdrop-filter: brightness(30%);
backdrop-filter: brightness(99%);
min-width: 300px;
}

.site-title > a:hover {
    color: var(--color-nav-hover);
    box-shadow: none;
}

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

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

.emergency {
    padding: 0.25rem 1rem 2rem;
    background-color: #b33951;
    border-radius: 1rem;
}

.emergency > p {
    color: #ffffff;
    font-size: 1.125rem;
    line-height: 2;
}

.emergency a {
    color: #ffffff;
}

.side-stuff {
    margin-top: 3rem;
    padding: 1.5rem;
    background-color: #ffffff;
    border-radius: 1rem;
}

.side-stuff p {
    font-size: 1.125rem;
}

.side-stuff p > a {
    font-size: 1.125rem;
}

.alert {
    color: #b33951;
}

/* 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;
}

#welcome {
    display: grid;
    grid-template-columns: auto;
    background: var(--color-bg-header);
    padding: 0 0 3rem;
}

.jumbo1 {
    padding: 1rem;
}

.jumbo1 > h1 {
    color: #000000;
}

.jumbo1 > p {
    color: #000000;
}

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

.emergency, .side-stuff {
    margin: 2rem 1rem;
}

.post-meta {
    font-family: 'Mozilla Text', 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;
}

#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-template-columns: auto;
    margin: 4rem 0 0;
    min-height: 10rem;
    padding: 2rem 0 0 2rem;
    font-weight: 400;
    font-size: 1.125remrem;
    background-color: var(--color-footer);
}

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

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

    h1, h2, h3, h4, h5, h6 {
        margin: 1rem 0;
    }

    p {
        margin-top: 1.5rem;
    }
    
    header {
        flex-direction: row;
        padding: 0;
    }

    .site-title a {
    font-size: 1.75rem;
    letter-spacing: -1px;
    }

    .display-1 {
        font-size: 3.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;
    }

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

    .emergency, .side-stuff {
        margin-top: 0.75rem;
    }

    .jumbo1 {
        grid-column: 2 / 3;
    }

    .side {
        grid-column: 3 / 4;
        grid-row: 1 / 2;
        padding-left: 0.5rem;
    }

    .news > p > 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;
    }

    figure {
        grid-column: 1 / 4;
    }
}