@charset "UTF-8";

@font-face {
  font-family: "plantin", serif;
  src: "https://use.typekit.net/dyw8qka.css";
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

:root {
  --color-background: rgba(255, 255, 255, 1);
  --color-text: rgb(111, 111, 111);
  --color-text-link: rgba(0, 0, 0, 0.8);
  --color-text-link-hover: rgba(0,0,0,0.5);
  --font-text: 'plantin', serif;
  --font-size: 15px;
  --margin: 1rem;
  --page-width: 680px;

  --font-size-heading: calc(var(--font-size) * 2);
  --font-size-subheading: calc(var(--font-size) * 1.25);
  --font-size-caption: calc(var(--font-size) * 0.875);

  --margin-xs: calc(var(--margin) * 0.5);
  --margin-s: calc(var(--margin) * 1);
  --margin-m: calc(var(--margin) * 2);
  --margin-l: calc(var(--margin) * 3);
  --margin-xl: calc(var(--margin) * 5);
}

html {
  font: var(--font-size) var(--font-text);
  color: var(--color-text);
  background-color: var(--color-background);
  scroll-behavior: smooth;
}

header{
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    padding: 1rem;
    box-sizing: border-box;
    z-index: -1;
    background-color: white;
}

body {
  position: relative;
  background-color: var(--color-background);
  font: var(--font-size) var(--font-text);
  color: var(--color-text);
  width: 100%;
  height: auto;
  overflow-y: visible;
  display: block;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  margin-top: 94vh;
  padding: 0.5rem 0;
  background-color: white;
  border-top: 1px solid rgb(111, 111, 111);
}


a {
  color: var(--color-text-link);
  text-decoration: none;
}

.ref-work {
  color: white;
}

.ref-work:hover {
  color: rgb(255, 221, 0);
}

h1 {
  font-size: clamp(var(--font-size-heading), 3vw, calc(var(--font-size-heading) * 1.1));
  text-align: center;
  color: rgba(55, 55, 55, 0.76)
}

.closer {
line-height: 90%;
margin-top: -1rem;
font-style: italic;
}

h2 {
  text-align: center;
  font-size: 1.618rem;
  margin-top: 0rem;
  margin-bottom: 1.618rem;
}

h3 {
  text-align: center;
  margin-bottom: 0.8rem;
  margin-top: 4.8rem;
}

.reference-list {
  margin-top: 1rem;
}

h4 {
  text-align: center;
  margin-bottom: 0.8rem;
  margin-top: 65vh;
  font-size: 14px;
}

.extra-heading {
  margin-top: 4.8rem;
}

p {
  display: block;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  margin-bottom: 1.618rem;
  unicode-bidi: isolate;
}

.main-text{
  line-height: 1.3rem;
}

.blockquote {
  margin-left: 10%;
  margin-right: 8%;
  font-style: italic;
  line-height: 1.3rem;
}


div.page-wrapper {
  width: fit-content;
  max-width: var(--page-width);
  padding: var(--margin);
  margin-inline: auto;
  isolation: isolate;
}

main {
  max-width: 60ch;
  max-width: 680px;
  min-width: 35ch;
}

nav{
  position: sticky;
  top: 0;
  width: 100%;

  display: flex;
  justify-content: center;
  align-items: center;

  font-size: clamp(3rem, 4vw, 3rem);
  padding: clamp(0.5rem, 2vw, 1rem);

  background-image: linear-gradient(white 34%, transparent);
  z-index: 1;
}

.page-wrapper>main {
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

#scrollTopBtn {
  position: fixed;
  bottom: 1rem;
  right: 1.5rem;
  font-size: 1rem;
  padding: 1rem;
  font-weight: bolder;
  border: none;
  border-radius: 100%;
  color: rgb(111, 111, 111);
  cursor: pointer;
  opacity: 0;
  scale: 1;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 20;
}

#scrollTopBtn:hover {
  color: rgb(175, 150, 50);
  transform: scale(130%);
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

@media (max-width: 299px) {
  :root {
    --font-size: 18px;
  }
  
  html,
  body {
    font: var(--font-size) var(--font-text);
  }
}

@media (min-width: 299px) and (max-width: 340px) {
  :root {
    --font-size: 16px;
  }

  html,
  body {
    font: var(--font-size) var(--font-text);
  }
}

@media (min-width: 340px) and (max-width: 440px) {
  :root {
    --font-size: 16px;
  }

  html,
  body {
    font: var(--font-size) var(--font-text);
  }
}

@media (min-width: 441px) and (max-width: 779px) {
  :root {
    --font-size: 17px;
  }

  html,
  body {
    font: var(--font-size) var(--font-text);
  }
}

@media (min-width: 780px) and (max-width: 992px) {
  :root {
    --font-size: 18px;
  }

  html,
  body {
    font: var(--font-size) var(--font-text);
  }
}

@media (min-width: 993px) and (max-width: 1200px) {
  :root {
    --font-size: 19px;
  }

  html,
  body {
    font: var(--font-size) var(--font-text);
  }
}

@media (min-width: 1201px) and (max-width: 1320px) {
  :root {
    --font-size: 19px;
  }

  html,
  body {
    font: var(--font-size) var(--font-text);
  }
}

@media (min-width: 1321px) {
  :root {
    --font-size: 19px;
  }

  html,
  body {
    font: var(--font-size) var(--font-text);
  }
}

@media (max-width: 779px) {

.side-text{
  font-size: 0.6rem;
}

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }  
}

::selection {
    color: var(--color-background);
    background: rgb(111,111,111);
}

.inline-btn {
  display: inline;
  color:rgb(175, 150, 50);
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: .2s ease-in-out;
}

.inline-btn:hover {
  color: rgb(240, 210, 1);
  scale: 1.005;
}

.text-img-wrapper {
  position: relative;
  width: 300px;
  margin: 1.5rem auto;
  border: 1px solid rgb(111, 111, 111);
  margin-bottom: 2rem;
}

.text-img{
  width: 300px;
  display: block;
  margin: 0 auto;
}

.overlay-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.overlay-img.active {
  opacity: 1;
}

#sidenote {
  padding-bottom: 5%;
  background-color: rgba(131, 131, 131, 0.8);
  color:white;
  height:100vh;
  bottom: 0%;
  top: auto;
  z-index: +2;
  width: 100vw;
  display: none;
  position: fixed;
}

 #sidenote.active {
    display: flex;  /* horizontal center */
    align-items: center;     
    flex-direction:column;
    box-sizing: border-box;
    text-align: left;
    padding-left: calc((100vw - var(--page-width)) / 2);
    padding-right: calc((100vw - var(--page-width)) / 2);
}

.side-text {
  font-size: small;
  margin-bottom: 0.25%;
  margin-top: 0.25%;
  padding:0.5rem;
  transition: background 0.3s;
}

.side-text.active {
  border: solid 1px;
  border-radius: 20px;
}

#hideBtn {
  position: absolute;
  top: 1rem;
  right: 1.5rem;

  cursor: pointer;
  font-size: 14px;
  background: none;
  border: none;
  color: white;
  font-weight:bold;
}

#hideBtn:hover {
  color: rgb(111, 111, 111);
  font-size: 14px;
}

.toggleBtn {
  z-index: 2;
  cursor: pointer;
  color:rgb(175, 150, 50);
  vertical-align:bottom;
  font-size: bigger;
  transition: 0.4s ease-in-out;
}

.toggleBtn:hover {
  color: rgb(240, 210, 1);
  cursor: pointer;
  transform: scale(1.5) rotate(17deg);
}


nav ul { 
  justify-content: center;
  display: flex;
  gap: .5rem;
}

nav ul button {

    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    background-color: transparent;
    border-radius: 0;
    opacity: 1;
    transition: 0.2s ease-in-out;
}

nav ul button:hover {
  color: rgb(176, 149, 53);
  scale: 1.3;
  cursor: pointer;
}

.acknow {
  text-align: center;
}

header.red-header {
  background-image: linear-gradient(rgb(111, 111, 111),white) ;
}

#bgToggle {
  cursor: pointer;
}

#bgToggle:hover {
  scale: 1.04;
  transition: 0.3s ease-in-out;
}

header.gold-header {
  background-image: linear-gradient(rgb(175, 150, 50),white) ;
}

#bgToggleGold{
  cursor: pointer;
}

#bgToggleGold:hover{
  scale: 1.04;
  transition: 0.3s ease-in-out;
}

.small-print{
  font-size: small;
  font-style: italic;
  text-align: center;
  margin-top:1rem;
}

#signature{
  margin-top:-1rem;
}

@media (max-width: 779px) {

.reference-list{
  margin-top: 3rem;
}

.side-text{
  font-size: 0.8rem;
  line-height: 1.25;
  margin-right: 5%;
  margin-left: 5%;  
}

#hideBtn {
  margin-top: 2rem;
}

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }
}