/*****************************************/
/*           Standards                   */
/*****************************************/

/*
This website was built by Sal Costa
https://salcosta.dev

Screen Breakpoints:
1400+ Desktops
800-1400 Small Screen Computers
480-800 Tablets
300-480 Phones

transitions:
pointer: 200ms 
thematic: 400ms 
*/

/*****************************************/
/* --- Universal Formatting --- */
/*****************************************/

:root {
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* firefox scrollbar */
  /* scrollbar-color: #FFFFFF #000000  THUMB, TRACK */;

  /* theme variables */
  --bg: #d4f3a3;
  --text: #191519;
  --accent: #7a136b;

  --time-fast: 100ms;
  --time-med: 400ms;

  --shadow-sm: 0 2px 8px 0 rgba(122, 19, 107, 0.2);

  --heading-font: "Gabriela", serif;
  --body-font: "Poppins", sans-serif;

}

/* highlighted text 
::selection { 
  background-color: #FFFFFF;  Highlight background color 
  color: #000000;  Highlighted text color 
}
*/

/* scrollbar 
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #000000;
}
  */

html {
	margin: 0 auto;
	padding: 0;
  font-family: var(--body-font);
  font-weight: 400;
  background-color: var(--bg);
  background-image: url("/assets/canvas-texture.jpg");
  background-repeat: repeat;
  min-height: 100vh;
  color: var(--text);

	scroll-behavior: smooth;
	max-width: 100%;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}
body {
	margin: 0 auto;
	padding: 0;
  padding: 32px 0 0 0; /* for announcement */
  display: grid;
  grid-template-areas: 
    "menu content"
    "footer footer";
  grid-template-columns: fit-content(20%) 1fr;
  min-height: 100vh;
}

/** Announcement **/

#announcement {
  position: absolute;
  background-color: var(--accent);
  color: var(--bg);
  display: flex;
  text-align: center;
  padding: 0 1rem;
  top: 0;
  right: 0;
  left: 0;
  height: 32px;
  justify-content: center;
  align-items: center;
  font-family: var(--body-font);
}
@media screen and (max-width: 480px) {
  #announcement { 
    height: 64px;
  }
  body {
    padding: 64px 0 0 0;
  }
}
/**                    **/

#content { /* page content box */
  grid-area: content;
  margin: 2rem 10% 4rem 10%;
  display: flex;
  flex-direction: column;
}
h1, h2, p {
  color: var(--text);
  margin: 1rem 0;
}
h1 { 
  color: var(--accent);
	font-family: var(--heading-font);
  font-weight: 400;
  font-style: normal;
  font-size: 3rem;
  line-height: 3.6rem;
}
h2 { 
	font-family: var(--heading-font);
  font-weight: 400;
  font-style: normal;
  font-size: 2.2rem;
}
p {
  font-family: var(--body-font);
  font-optical-sizing: auto;
  font-weight: 300;
  letter-spacing: -0.05rem;
  /* font-style: italic; */
  text-indent: 1rem;
  font-size: 1.4rem;
}

button {
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: flex-start;
  flex-shrink: 0;
  border: none;
  outline: none;
  margin: 0;
  padding: 0.5rem 60px 0.5rem 45px;
  cursor: pointer;
  font-family: var(--heading-font);
  font-size: 1.4rem;
  text-decoration: none;
  background-color: transparent;
  background-image: url("/assets/marker-scribble1.png");
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
  color: var(--bg);
  transition: 
    transform var(--time-fast) cubic-bezier(0.4, 1.4, 0.7, 1.4);
}
button:hover {
  filter: brightness(1.2);
  transform: scale(1.05);
}

@media screen and (max-width: 800px) { /* tablets */
  body {
    display: block;
  }
  h1 { 
    font-size: 1.8rem; 
  }
  h2 { 
    font-size: 1.6rem; 
  }
}
@media screen and (max-width: 480px) { /* phones */
  #content {
    margin: 2rem 5% 4rem 5%;
  }
  p { 
    font-size: 1.2rem; 
  }
}

/*****************************************/
/*         Navigation Bar/Menu           */
/*****************************************/

header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  height: 100vh;
  box-sizing: border-box;
  top: 0;
  min-width: 180px;
  max-width: 260px;
  padding: 2rem 1rem 2rem 3rem;
}
nav {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 1rem;
  grid-area: nav;
  z-index: 9;
}
.nav-logo {
  z-index: 10;
}
.nav-logo img {
  width: 100%;
}
#nav-links {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  max-height: 400px;
  font-family: var(--heading-font);
  font-size: 1.4rem;
  line-height: 2.4rem;
}
.nav-link-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
#nav-links a, 
#nav-links a:visited {
  text-decoration: none;
  position: relative;
  color: var(--text);
  padding: 0 0.5rem; 
  z-index: 0;
}
#nav-links .nav-link-block.circled a svg {
  position: absolute;
  inset: 0;
  width: 110%;
  left: -5%;
  top: -10%;
  scale: 1.2;
  height: 120%;
  overflow: visible;
  pointer-events: none;
  opacity: 0; /* hidden until JS loads */
}
#nav-links .nav-link-block.circled a svg.is-ready {
  opacity: 1;
}
#nav-links .nav-link-block.circled a path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
#nav-links .nav-link-block.circled a:hover path,
#nav-links .nav-link-block.circled a:focus-visible path,
#nav-links .nav-link-block.circled a.active path {
  stroke-dashoffset: 0 !important;
}

#nav-links a.social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: opacity var(--time-fast);
}
#nav-links a.social > img {
  width: 14px;
}
#nav-links a.social:hover,
#nav-links a.social:focus-visible {
  opacity: 0.5;
}

/* mobile nav elements */
button#nav-button {
  display: none;
  background: none;
  border-radius: 0;
  align-self: center;
  padding: 0;
  z-index: 10;
}
button#nav-button:hover {
  filter: unset;
  transform: unset;
}
button#nav-button > img {
  width: 60px;
}

/* responsive nav */
@media screen and (max-width: 800px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    max-width: unset;
    box-sizing: border-box;
    height: 100px;
    padding: 1rem 2rem;
    background-color: rgba(212, 243, 163, 0.5); /* --bg */
  }
  nav {
    /* visibility: hidden; */
    justify-content: flex-start;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0;
    z-index: 9;
    background-color: var(--bg); /* fallback */
    background-image: url("/assets/canvas-texture.jpg");
    background-repeat: repeat;
    transition: opacity var(--time-med);
  }
  .nav-logo img { 
    height: 68px;
  }
  #nav-links {
    padding: 120px 0 60px 2rem;
    font-size: 1.8rem;
    line-height: 3rem;
    max-height: 500px;
  }
  #nav-links a svg,
  #nav-links a path {
    display: none;
  }
  #nav-links a.social > img {
    width: 16px;
  }
  nav.menu-open {
    opacity: 1;
  }
  button#nav-button {
    display: flex;
  }
}

@media screen and (max-width: 480px) {
  nav {
    padding: 0 5%;
  }
}

/*****************************************/
/*              Footer                   */
/*****************************************/

footer {
  grid-area: footer;
  font-family: var(--heading-font);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 15%;
  height: 100px;
}
footer span.copyright {
  transform: translateY(2px);
  z-index: -1;
}

/* responsive nav */
@media screen and (max-width: 800px) {
  footer {
    padding: 0 10%;
  }
}

@media screen and (max-width: 480px) {
  footer {
    padding: 0 5%;
  }
}

/**************************************/
/*          Main Content              */
/**************************************/

#content > img {
  width: 100%;
  border-radius: 40px 40px 0 0;
  box-shadow: var(--shadow-sm);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "text1 img1"
    "img2 text2";
  align-items: center;
  justify-items: center;
  gap: 2rem;
}
.about-grid img {
  width: 100%;
  max-width: 700px;
  border-radius: 40px 0 40px 0;
  box-shadow: var(--shadow-sm);
}

@media screen and (max-width: 1400px) {
  .about-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "text1"
      "img1"
      "text2"
      "img2"
    ;
  }
  .about-grid img {
    max-width: 600px;
  }
}