/* MAIN STYLES. DEFAULT FOR ALL PAGES */

/* VARIABLES */

:root {
  --semi-bold-weight: 600;
  --bold-weight: 700;
  --extra-bold-weight: 800;

  --display: clamp(2.5rem, 0.7143rem + 7.619vw, 5rem);
  --heading-1: clamp(2.5rem, 1.4286rem + 4.5714vw, 4rem);
  --heading-2: clamp(1.75rem, 0.8571rem + 3.8095vw, 3rem);
  --heading-3: clamp(1.25rem, 0.8571rem + 1.1429vw, 1.5rem);

  --paragraph: clamp(1rem, 0.9107rem + 0.381vw, 1.125rem);

  --caption: clamp(0.875rem, 0.7857rem + 0.381vw, 1rem);
  /* 
  --heading-1: 3rem;
  --heading-2: 2.5rem;
  --heading-3: 2rem;

  --subheader: clamp(1.5rem, 3vw, 2.5rem);

  --p-regular: clamp(1rem, 2vw, 1.5rem);
  --p-small: clamp(1rem, 1.5vw, 1.25rem); */
  --blue-100: #9C99FF;
  --blue-300: #3933FF;
  --blue-500: #0700FF;
  --blue-700: #0600CC;
  --blue-900: #040099;

  --magenta-100: #FF8FD1;
  --magenta-300: #FF5CBC;
  --magenta-500: #FF2AA7;
  --magenta-700: #F50090;
  --magenta-900: #C20072;

  --yellow-100: #FFFAC2;
  --yellow-300: #FFF58F;
  --yellow-500: #FFEC2A;
  --yellow-700: #F5DF00;
  --yellow-900: #C2B100;

  --mint-100: #DBFFEA;
  --mint-300: #8FFFBD;
  --mint-500: #2AFF82;
  --mint-700: #00C250;
  --mint-900: #008F3B;

  --black: #01001A;
  --white: #FAFAFF;

  --box-shadow: 2px 2px var(--black);

}

/* MAIN STYLE SETTINGS */
html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

img {
  max-width: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-size: var(--p-regular);
  background-color: var(--blue-500);
  color: var(--white);
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  text-align: center;
  color: var(--mint-500);
}

.header__nav-container {
  padding: 1em;
  background-image: linear-gradient(var(--blue-700), var(--blue-500));
}

.nav__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__top-level {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}

.nav__toggle {
  position: absolute;
  left: 1em;
  top: .75em;
}

.hamburger-button {
  cursor: pointer;
  padding: .5em;
  display: grid;
  place-items: center;
  fill: var(--mint-500);
  background-color: rgba(250, 250, 255, 0.05);
  border: none;
  border-radius: 50%;
}

li#name-and-logo {
  display: grid;
  place-items: center;
  justify-self: center;
}

.nav__name {
  display: none;
}

.nav__links {
  visibility: hidden;
  height: 0;
  position: absolute;
}

.nav__link {
  margin-top: .25em;
}

.nav--visible {
  margin-top: 1em;
  visibility: visible;
  position: relative;
  height: auto;
  text-align: center;
}

.title {
  margin: 2em 1em;
}

.title>h1,
.title__container>h1 {
  text-align: center;
  color: var(--mint-500);
}

main {
  /* margin: 0 1em; */
  padding-bottom: 4em;
  overflow-x: hidden;
}

.main-content p {
  line-height: 2em;
}

footer {
  margin-top: auto;
  padding: 1em;
  background-image: linear-gradient(var(--blue-500), var(--blue-700));
  text-align: center;
}

section.title {
  text-align: center;
}

section {
  margin: 2em 1em
}

a {
  text-decoration: none;
  color: var(--white);
  display: inline-block;
}


span#header-logo-text {
  display: inline-block;
  font-weight: var(--bold-weight)
}

.icon {
  width: 6em;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: .5em;
}

section#contact-me {
  background-color: var(--yellow-500);
  color: var(--black);
  text-align: center;
  padding: 2em;

  margin-left: 0;
  margin-right: 0;
}

section#contact-me h2 {
  color: var(--black);
  margin-bottom: .5em;
}

section#contact-me p {
  margin-bottom: 2em;
}

/* NAV STYLES */

img#header-logo {
  width: 32px;
  height: 32px;
  object-fit: fill;
  cursor: pointer;
}

nav li#nav-links ul {
  display: flex;
  justify-content: flex-end;
}

/* BUTTON STYLES */
.cta {
  color: var(--black);
  font-weight: var(--bold-weight);
  background-color: var(--mint-500);
  padding: 1em 2em;
  border-radius: 2em;

  border: 1px solid var(--black);
  box-shadow: var(--box-shadow);
}

.cta:focus,
.cta:hover {
  background-color: var(--mint-300);
}

.cta:active {
  background-color: var(--mint-100);
  box-shadow: inset 0px 0px 4px;
}

section#contact-me .cta {
  background-color: var(--blue-500);
  color: var(--white);
}

section#contact-me .cta:focus,
section#contact-me .cta:hover {
  background-color: var(--blue-700);
}

section#contact-me .cta:active {
  background-color: var(--blue-900);
  box-shadow: inset 0px 0px 4px;
}

/* TYPOGRAPHY */
body {
  font-family: "Open Sans", sans-serif;
}

h1 {
  font-size: var(--heading-1);
}

h2 {
  font-size: var(--heading-2);
}

h3 {
  font-size: var(--heading-3);
}

h4 {
  font-size: var(--paragraph);
}

p {
  font-size: var(--paragraph);
}

.caption {
  font-size: var(--caption);
  color: #E5E5F0;
  font-style: italic;
}

.accent {
  font-weight: bolder;
}

/* FORM STYLES */
fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

.form_inputs {
  display: grid;
}

li.form-input {
  display: grid;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  font-family: inherit;
  height: 2em;
}

textarea {
  resize: none;
  font-family: inherit;
}

button[type="submit"] {
  font-weight: var(--bold-weight);
  border: none;
  color: var(--white);
  background-color: var(--black);
  padding: 1em 2em;
}

/* JUST FOR FUNSIES */
img#header-logo {
  transition: all 0.2s;
}

.flipped {
  transform: rotate(1turn);
}

/* MEDIA QUERIES */

@media (prefers-reduced-motion: no-preference) {
  .hamburger-button .line {
    transition:
      y 100ms ease-in 100ms,
      rotate 100ms ease-in,
      opacity 0ms 100ms;
    ;
    transform-origin: center;
  }

  .hamburger-button[aria-expanded="true"] .line {
    transition:
      y 100ms ease-in,
      rotate 100ms ease-in 100ms,
      opacity 0ms 100ms;
  }

  .hamburger-button[aria-expanded="true"] :is(.line--top, .line--bottom) {
    y: 45;
  }

  .hamburger-button[aria-expanded="true"] .line--top {
    rotate: 45deg;
  }

  .hamburger-button[aria-expanded="true"] .line--middle {
    opacity: 0;
  }

  .hamburger-button[aria-expanded="true"] .line--bottom {
    rotate: -45deg;
  }

}



@media screen and (min-width: 600px) {

  section:not(#contact-me)>h2 {
    text-align: left;
  }

  .title {
    margin: 4em 2em;
  }

  .header__nav-container {
    padding: 1em 2em;
  }

  .nav__top-level {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .hamburger-button {
    display: none;
  }

  li#name-and-logo {
    display: flex;
    align-items: center;
    gap: 1em;
  }

  /* .nav__name {
    display: inline-block;
  } */

  .nav__links {
    visibility: visible;
    margin-top: 0;
    height: auto;
    position: relative;
    display: flex;
    gap: 1em;
  }

  .nav__link>a {
    text-decoration: underline;
    margin-top: 0;
  }

  .nav__link>a:is(:hover, :focus) {
    text-decoration: none;
  }

  .nav__link>a:active {
    color: #D5D5E7;
  }

  section {
    margin-bottom: 4em;
  }

  section:not(#contact-me) {
    margin-left: 2em;
    margin-right: 2em;
  }

  h2 {
    margin-bottom: .5em;
  }

  @media (prefers-reduced-motion: no-preference) {
    /* Insert animations */
  }
}

@media screen and (min-width: 900px) {

  .title,
  main {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }

  .title__container {
    margin-left: 2em;
    margin-right: 2em;
  }


  @media (prefers-reduced-motion: no-preference) {
    /* Insert animations */
  }
}

@media screen and (min-width: 1200px) {
  /* Insert queries */

  @media (prefers-reduced-motion: no-preference) {
    /* Insert animations */
  }
}