@font-face {
  font-family: "NTR";
  src: url("./external/NTR/NTR-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Titillium Web";
  src: url("./external/Titillium_Web/TitilliumWeb-Regular.ttf")
    format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Kode Mono";
  src: url("./external/Kode_Mono/KodeMono-VariableFont_weight.ttf")
    format("truetype");
  font-weight: normal;
  font-style: normal;
}

@property --animated-gradient-inner-color {
  syntax: "<color>";
  inherits: true;
  initial-value: rgba(254, 165, 0, 1);
}

@property --animated-gradient-outer-color {
  syntax: "<color>";
  inherits: true;
  initial-value: rgba(255, 114, 32, 0.438);
}

:root {
  --base: #18191b;
  --terminal-base: #0e0e0e;
  --main: #fcf4e6;
  --grey: #45320f;
  --primary: #fea500;
  --border-primary: #eeeeee1f;
}

* {
  box-sizing: border-box;
  line-height: 1.25;
}

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

.icon {
  display: inline-block;
}

p {
  margin: 0.25rem 0;
  font-size: 0.875rem;
}

html,
body {
  background: var(--base);
  color: var(--main);
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-size: 24px;
  font-family: "NTR", sans-serif;
}

body {
  padding: 1px 0;
  gap: 1px;
  background: radial-gradient(
    circle,
    var(--animated-gradient-inner-color) 0%,
    transparent 25%,
    var(--animated-gradient-outer-color) 50%,
    transparent 75%
  );
  background-color: var(--border-primary);
  display: grid;
  grid-template-areas:
    "about-and-me current-project changelog"
    "quote-and-outlinks link-scroller link-scroller"
    "quote-and-outlinks internal-links fun";
  /** First row must be a consistent, measurable value. Anything with 'fr' does not work well with adaptive pages */
  grid-template-rows: calc(50vh - 2rem) 2rem 1fr;
  /** Golden ratio middle column */
  grid-template-columns: 2fr 3.236066fr 1.3fr;
  overflow-x: hidden;
  animation: 10s cubic-bezier(0.42, 0.13, 0.99, 0.64) 0s infinite alternate none
    running background-breathe;
}

@keyframes background-breathe {
  0% {
    --animated-gradient-inner-color: rgba(254, 165, 0, 1);
    --animated-gradient-outer-color: rgba(254, 165, 0, 1);
  }
  50% {
    --animated-gradient-outer-color: rgba(254, 165, 0, 1);
    --animated-gradient-inner-color: rgba(254, 165, 0, 0.333);
  }
}

body > * {
  /* border: 1px solid var(--border-primary); */
  border-radius: 0.5rem;
  background: var(--base);
}

.double {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.button-secondary {
  font-size: 2rem;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  justify-content: center;
  position: relative;
  margin: 0;
  text-align: center;
  overflow: hidden;

  border-top: 1px solid var(--border-primary);
  /* background: radial-gradient(circle, transparent 0%, transparent 50%); */
}

.button-secondary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: 1.618033s;
  background: radial-gradient(
    circle,
    rgba(254, 165, 0, 0.2) 0%,
    transparent 100%
  );
}

.button-secondary:hover::before {
  opacity: 1;
}

/***
 *          ___.                  __   
 *    _____ \_ |__   ____  __ ___/  |_ 
 *    \__  \ | __ \ /  _ \|  |  \   __\
 *     / __ \| \_\ (  <_> )  |  /|  |  
 *    (____  /___  /\____/|____/ |__|  
 *         \/    \/                    
 */

.logo {
  width: 1rem;
  height: 1rem;
}

#about-and-me {
  grid-area: about-and-me;
}

#about-and-me h1 {
  margin: 0;
  text-transform: uppercase;
}

header {
  padding: 1rem;
  flex-grow: 1;
  height: 100%;
}

/***
 *    .__                                               __                 __   
 *    |  |__   ___________  ____     ____  ____   _____/  |_  ____   _____/  |_ 
 *    |  |  \_/ __ \_  __ \/  _ \  _/ ___\/  _ \ /    \   __\/ __ \ /    \   __\
 *    |   Y  \  ___/|  | \(  <_> ) \  \__(  <_> )   |  \  | \  ___/|   |  \  |  
 *    |___|  /\___  >__|   \____/   \___  >____/|___|  /__|  \___  >___|  /__|  
 *         \/     \/                    \/           \/          \/     \/      
 */

#current-project {
  grid-area: current-project;
  /** Appropriately obeys rounded corner borders this way. */
  overflow: hidden;
}

#current-project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/***
 *    .__        __                             .__    .__  .__        __            
 *    |__| _____/  |_  ___________  ____ _____  |  |   |  | |__| ____ |  | __  ______
 *    |  |/    \   __\/ __ \_  __ \/    \\__  \ |  |   |  | |  |/    \|  |/ / /  ___/
 *    |  |   |  \  | \  ___/|  | \/   |  \/ __ \|  |__ |  |_|  |   |  \    <  \___ \ 
 *    |__|___|  /__|  \___  >__|  |___|  (____  /____/ |____/__|___|  /__|_ \/____  >
 *            \/          \/           \/     \/                    \/     \/     \/ 
 */

#internal-links {
  grid-area: internal-links;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: hidden;
  height: 100%;
}

#internal-links menu {
  height: 100%;
}

#internal-links a {
  display: block;
  height: 100%;
  align-content: center;
  text-align: center;
  font-size: 2rem;
  text-transform: uppercase;
  font-weight: bold;
  border-bottom: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
}

menu {
  margin: 0;
  margin-block: 0;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}

menu a {
  transition: 0.333s;
  box-shadow: 0px 0px 0px 0px var(--primary);
}

menu a:hover {
  transform: translate(0.25rem, -0.25rem);
  box-shadow: -0.25rem 0.25rem 0px 0px var(--primary);
}

/***
 *                         __                              .___ .__  .__        __            
 *      ________ __  _____/  |_  ____   _____    ____    __| _/ |  | |__| ____ |  | __  ______
 *     / ____/  |  \/  _ \   __\/ __ \  \__  \  /    \  / __ |  |  | |  |/    \|  |/ / /  ___/
 *    < <_|  |  |  (  <_> )  | \  ___/   / __ \|   |  \/ /_/ |  |  |_|  |   |  \    <  \___ \ 
 *     \__   |____/ \____/|__|  \___  > (____  /___|  /\____ |  |____/__|___|  /__|_ \/____  >
 *        |__|                      \/       \/     \/      \/               \/     \/     \/ 
 */

#quote-and-outlinks {
  grid-area: quote-and-outlinks;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#quote-and-outlinks > * {
  flex-grow: 1;
}

#quote-and-outlinks blockquote {
  margin: 1rem;
  height: 100%;
  font-size: 0.875rem;
}

#quote-and-outlinks q {
  display: block;
  padding-left: 1rem;
  border-left: 3px solid var(--border-primary);
}

/***
 *           .__                                 .__                 
 *      ____ |  |__ _____    ____    ____   ____ |  |   ____   ____  
 *    _/ ___\|  |  \\__  \  /    \  / ___\_/ __ \|  |  /  _ \ / ___\ 
 *    \  \___|   Y  \/ __ \|   |  \/ /_/  >  ___/|  |_(  <_> ) /_/  >
 *     \___  >___|  (____  /___|  /\___  / \___  >____/\____/\___  / 
 *         \/     \/     \/     \//_____/      \/           /_____/  
 */

#changelog {
  background: var(--terminal-base);
  grid-area: changelog;
  /* border-radius: 0.5rem; */
}

.code-block {
  color: var(--main);
  font-family: "Kode Mono", monospace;
  display: block;
  padding: 0.5rem 1rem;
  width: 100%;
  height: 100%;
  margin-block: 0;
  overflow: auto;
}
.code-block p {
  font-size: 0.675rem;
}

.code-block .command {
  padding-left: 1rem;
  margin-bottom: 1rem;
  position: relative;
  color: var(--primary);
}
.code-block .command::before {
  content: "$";
  position: absolute;
  left: 0;
}

/***
 *      _____             
 *    _/ ____\_ __  ____  
 *    \   __\  |  \/    \ 
 *     |  | |  |  /   |  \
 *     |__| |____/|___|  /
 *                     \/ 
 */

#fun {
  grid-area: fun;
  padding: 0.5rem 1rem;
}

#fun div {
  flex-grow: 2;
}

#fun aside {
  font-size: 0.625rem;
}

/***
 *                               .__  .__                
 *      ______ ___________  ____ |  | |  |   ___________ 
 *     /  ___// ___\_  __ \/  _ \|  | |  | _/ __ \_  __ \
 *     \___ \\  \___|  | \(  <_> )  |_|  |_\  ___/|  | \/
 *    /____  >\___  >__|   \____/|____/____/\___  >__|   
 *         \/     \/                            \/       
 *                                                       
 */

#link-scroller {
  grid-area: link-scroller;
  overflow: hidden;
  min-height: 2rem;
}

#link-scroller > div {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  height: 100%;
}

.scroll-left {
  will-change: transform, opacity;
  animation: 60s linear 0s infinite normal none running scroll-left;
  transition: opacity 0.5s cubic-bezier(0.64, 0.01, 0.39, 1);
}

.scroll-right {
  will-change: transform, opacity;
  animation: 60s linear 0s infinite normal none running scroll-right;
  transition: opacity 0.5s cubic-bezier(0.64, 0.01, 0.39, 1);
}

#link-scroller a {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.gallery-image {
  width: 80px;
  height: 20px;
  border-radius: 0.125rem;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes scroll-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0%);
  }
}

@media (max-width: 960px) {
  body {
    display: flex;
    flex-direction: column;
  }
}
