
/* ------------------------------->
<--         Core Styles         -->
<------------------------------  */

:root {
  /* Fluid Type Scale Calculator */
  --fs-sm: clamp(0.8rem, 0.17vi + 0.76rem, 0.89rem);
  --fs-base: clamp(1rem, 0.34vi + 0.91rem, 1.19rem);
  --fs-md: clamp(1.25rem, 0.61vi + 1.1rem, 1.58rem);
  --fs-lg: clamp(1.56rem, 1vi + 1.31rem, 2.11rem);
  --fs-xl: clamp(1.95rem, 1.56vi + 1.56rem, 2.81rem);
  --fs-xxl: clamp(2.44rem, 2.38vi + 1.85rem, 3.75rem);
  --fs-xxxl: clamp(3.05rem, 3.54vi + 2.17rem, 5rem);
  /* Light mode */
  --light-switch-shadow: #373d4e;
  --light-switch-icon: "🌚";
  --light-switch-text: "dark mode?";
  --light-text: #07120b;
  --light-background: #ffffff;
  --light-primary: #582d2d;
  --light-secondary: #763f37;
  --light-accent: #e8af73;
  /* Dark mode */
  --dark-switch-shadow: #fce477;
  --dark-switch-icon: "🌞";
  --dark-switch-text: "light mode?";
  --dark-text: #edf8f1;
  --dark-background: #000000;
  --dark-primary: #d2a7a7;
  --dark-secondary: #c89189;
  --dark-accent: #8c5417;
  /* Default mode */
  --switch-shadow-color: var(--light-switch-shadow);
  --switch-icon: var(--light-switch-icon);
  --switch-text: var(--light-switch-text);
  --text-color: var(--light-text);
  --background-color: var(--light-background);
  --primary-color: var(--light-primary);
  --secondary-color: var(--light-secondary);
  --accent-color: var(--light-accent);
}
/* Switched mode */
.theme-switch:checked ~ main {
  --switch-shadow-color: var(--dark-switch-shadow);
  --switch-icon: var(--dark-switch-icon);
  --switch-text: var(--dark-switch-text);
  --text-color: var(--dark-text);
  --background-color: var(--dark-background);
  --primary-color: var(--dark-primary);
  --secondary-color: var(--dark-secondary);
  --accent-color: var(--dark-accent);
}
/* Theme switcher */
.theme-switch { /* Hides the checkbox */
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}
.switch-label {
  cursor: pointer;
  display: flex;
}
.switch-label::before {
  content: var(--switch-icon);
  font-size: 30px;
  transition: text-shadow .2s;
}
.switch-label::after {
  align-self: center;
  content: var(--switch-text);
  color: var(--switch-shadow-color);
  font-size: 20px;
  opacity: 0;
  padding-left: 15px;
  transition: opacity .2s;
}
.theme-switch:focus .switch-label::before,
.switch-label:hover::before { text-shadow: 0 0 15px var(--switch-shadow-color); }
.theme-switch:focus .switch-label::after,
.switch-label:hover::after { opacity: 1; }
/* End Theme switcher */

body, html{ height:100%; }
body{
  padding:0;
  margin:0;
}

/* antonio-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Antonio';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/antonio-v19-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lora-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/lora-v35-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lora-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/lora-v35-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lora-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Lora';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/lora-v35-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

body {
  font-family: "Lora", Georgia, serif;
  font-weight: 400;
  font-size: var(--fs-base);
  line-height: 1.8;
}
h1, h2, h3, h4, h5 {
  font-family: "Antonio", Arial, sans-serif;
  font-weight: 700;
  color: var(--accent-color);
  text-shadow: 1px 1px 2px var(--primary-color);
}
h1 {
  font-size: var(--fs-xxl);
}
.title {
  font-size: var(--fs-md);
  color: var(--primary-color);
  text-shadow: 0.5px 0.5px 1px var(--secondary-color);
}
.date {
  color: var(--secondary-color);
  text-shadow: 0.25px 0.25px 0.5px var(--accent-color);
  opacity: .6;
  text-transform: uppercase;
  width: 50%;
  display: block;
  font-size: var(--fs-base);
  margin-bottom: 10px;
}

/* slide-in from right function */
.wrapper{ overflow:hidden; }
section{
  -moz-transition:all 200ms ease-in;
  -webkit-transition:all 200ms ease-in;
  -o-transition:all 200ms ease-in;
  transition:all 200ms ease-in;
}
nav{
  position:fixed;
  top:0;
  right:0;
  width:250px;
  height:100%;
  margin:0 -250px 0 0;
  -moz-transition:all 200ms ease-in;
  -webkit-transition:all 200ms ease-in;
  -o-transition:all 200ms ease-in;
  transition:all 200ms ease-in;
  z-index: 500;
}
nav ul{
  width:250px;
  height:100%;
  padding:0;
  margin:0;
  list-style:none;
  background: var(--background-color);
  overflow:hidden;
}
nav li{ margin:0; }
nav a{
  color: var(--text-color);
  font-family: "Lora", Georgia, serif;
  font-weight:400;
  font-size: var(--fs-md);
  text-decoration:none;
  display:block;
  padding:12px 15px;
  font-weight:300;
  letter-spacing:2px;
  border-bottom:1px solid var(--primary-color);
}
nav a:hover{ background: var(--accent-color); }
label[for="navigation"]{
  display:block;
  font-family:"Antonio", Arial, sans-serif;
  font-weight:700;
  font-size: var(--fs-md);
  background: var(--accent-color);
  width:70px;
  height:45px;
  line-height:42px;
  color: var(--text-color);
  text-align:center;
  position:fixed;
  top:15px;
  right:15px;
  -moz-transition:all 200ms ease-in;
  -webkit-transition:all 200ms ease-in;
  -o-transition:all 200ms ease-in;
  transition:all 200ms ease-in;
  z-index:500;
}
input[type="checkbox"]{ display:none; }
input[type="checkbox"]:checked ~ nav{ margin:0; }
input[type="checkbox"]:checked ~ label{ right:260px; }
input[type="checkbox"]:checked ~ section{
  -webkit-transform:translate3d(260px, 0, 0);
  -moz-transform:translate3d(260px, 0, 0);
  -o-transform:translate3d(260px, 0, 0);
  transform:translate3d(260px, 0, 0);
}
/* End of slide-in from right function */

/* hover link effect */
a.animatelink {
  font-weight: 700;
  font-size: var(--fs-sm);
  background-image: linear-gradient(
    to right,
    var(--accent-color),
    var(--accent-color) 50%,
    var(--text-color) 50%
  );
  background-size: 200% 100%;
  background-position: -100%;
  display: inline-block;
  padding: 5px 0;
  position: relative;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s ease-in-out;
}
a.animatelink:before{
  content: '';
  background: var(--accent-color);
  display: block;
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 3px;
  transition: all 0.3s ease-in-out;
}
a.animatelink:hover { background-position: 0; }
a.animatelink:hover::before{ width: 100%; }
/* End of hover link effect */

a.currentlink { color: red; }
div.copyright {
  font-size: var(--fs-sm);
  text-align: center;
}
div.copyright a, a.link {
  text-decoration: none;
  color: var(--accent-color);
}
.home-button {
  filter: invert(98%) sepia(97%) saturate(4487%) hue-rotate(305deg) brightness(97%) contrast(87%);
}

main, aside { width: 50%; }
aside {
  height: 100vh;
  position: fixed;
  right: 0;
  top: 0;
  background-position: center center;
  background-size: cover;
}
main {
  float:left;
  color: var(--text-color);
  background: var(--background-color);
}
article {
  width:90%;
  margin-top: 100px;
  padding: 0 5%;
}
@media (max-width: 640px) {
  main, aside { width: 100%; }
}
@media (max-width: 640px) {
  aside {
    background-position: center center;
    background-size: cover;
    height: 400px;
    position: relative;
  }
}

/* form */
::placeholder {
  opacity: 0.5;
  font-size: var(--fs-base);
  color: var(--primary-color);
}
.form-control {
	display: block;
	width: 80%;
	padding: 0.675rem 1.2rem;
	font-size: var(--fs-base);
	line-height: 1.5;
	color: var(--primary-color);
	background-color: var(--background-color);
	background-image: none;
	background-clip: padding-box;
	border: 1px solid var(--secondary-color);
	border-radius: 0.25rem;
  margin-bottom: 20px;
	-webkit-transition: border-color ease-in-out 0.15s, -webkit-box-shadow ease-in-out 0.15s;
	transition: border-color ease-in-out 0.15s, -webkit-box-shadow ease-in-out 0.15s;
	-o-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
	transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
	transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s, -webkit-box-shadow ease-in-out 0.15s;
}
#contact-form input[type=text]:focus, #contact-form textarea:focus {
  box-shadow: 0 0 5px var(--primary-color);
  background-color: #fff;
  border: 1px solid var(--accent-color);
}
.sugarpot{
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 0;
  z-index: -1;
}
.submit-form-control {
  display: block;
	width: 85%;
	padding: 0.675rem 1.2rem;
	font-size: var(--fs-base);
	line-height: 1.0;
	color: #fff;
	background-color: var(--primary-color);
	background-image: none;
	background-clip: padding-box;
	border: 1px solid var(--secondary-color);
	border-radius: 0.25rem;
  margin-bottom: 20px;
}
.submit-form-control:hover {
  color: #fff;
  background-color: var(--secondary-color);
}
