/* 
 * Silicon v1.2.9 with Flexoki Color Scheme
 * MODIFIED BY EHQO
 */

/* =========================================
 * TABLE OF CONTENTS:
 * 1. Imports & Variables
 * 2. Base Styles
 * 3. Layout & Structure
 * 4. Typography
 * 5. Navigation
 * 6. Form Elements
 * 7. Tables
 * 8. Misc Elements
 * 9. Utility Classes
 * 10. Animations
 * 11. Media Queries
 * ========================================= */

/* =========================================
 * 1. IMPORTS & VARIABLES
 * ========================================= */

 @import url("https://fonts.bunny.net/css?family=atkinson-hyperlegible:400,400i,700,700i)");

 :root {
   /* Flexoki Base Colors - Light Mode */
   --flx-black: #100F0F;
   --flx-900: #1C1B1A;
   --flx-800: #282726;
   --flx-700: #343331;
   --flx-600: #403E3C;
   --flx-500: #575653;
   --flx-400: #72706D;
   --flx-300: #878580;
   --flx-200: #A3A29E;
   --flx-100: #CECDC9;
   --flx-50: #E6E4E1;
   --flx-paper: #FFFCF0;
   
   /* Flexoki Accent Colors - Light Mode */
   --flx-red: #C03E35;
   --flx-orange: #CB6120;
   --flx-yellow: #BE9207;
   --flx-green: #768D21;
   --flx-cyan: #2F968D;
   --flx-blue: #3171B2;
   --flx-purple: #735EB5;
   --flx-magenta: #B74583;
   
   /* Main Theme Colors */
   --color-primary: var(--flx-blue);
   --color-secondary: var(--flx-50);
   --color-secondary-dark: var(--flx-700);
   --color-tertiary: var(--flx-paper);
   --color-background: var(--flx-paper);
   --color-text: var(--flx-black);
   --color-border: var(--flx-black);
   
   /* Grays */
   --color-grey: var(--flx-50);
   --color-dark-grey: var(--flx-300);
   --color-darker-grey: var(--flx-500);
   
   /* Accent Colors */
   --color-green: var(--flx-green);
   --color-red: var(--flx-red);
   --color-yellow: var(--flx-yellow);
   --color-orange: var(--flx-orange);
   
   /* Text & Typography */
   --offset-text-color: var(--flx-paper);
   --font-size: 1.1rem;
   --font-size-alt: 1.2rem;
   
   /* Layout */
   --xs-width: 30vw;
   --small-width: 40vw;
   --medium-width: 60vw;
   --large-width: 90vw;
   --xl-width: 110vw;
   --gap: 15px;
   
   /* Components */
   --border-width: 2px;

   /* Fonts */
   --font-primary: "Atkinson Hyperlegible", sans-serif, system-ui;
   --font-accent: ;
 }
 
 /* Dark Mode Variables */
 @media (prefers-color-scheme: dark) {
   :root {
     /* Flexoki Base Colors - Dark Mode */
     --flx-paper: #100F0F;
     --flx-50: #1C1B1A;
     --flx-100: #282726;
     --flx-200: #343331;
     --flx-300: #403E3C;
     --flx-400: #575653;
     --flx-500: #72706D;
     --flx-600: #878580;
     --flx-700: #A3A29E;
     --flx-800: #CECDC9;
     --flx-900: #E6E4E1;
     --flx-black: #FFFCF0;
     
     /* Flexoki Accent Colors - Dark Mode */
     --flx-red: #E8705F;
     --flx-orange: #EC8B49;
     --flx-yellow: #DFB431;
     --flx-green: #A0AF54;
     --flx-cyan: #5ABDAC;
     --flx-blue: #66A0C8;
     --flx-purple: #A699D0;
     --flx-magenta: #E47DA8;
     
     /* Main Theme Colors */
     --color-primary: var(--flx-blue);
     --color-secondary: var(--flx-100);
     --color-tertiary: var(--flx-50);
     --color-background: var(--flx-paper);
     --color-text: var(--flx-800);
     --color-secondary-dark: var(--flx-300);
     --color-border: var(--flx-900);
     
     /* Grays */
     --color-grey: var(--flx-50);
     --color-dark-grey: var(--flx-200);
     --color-darker-grey: var(--flx-500);
     
     /* Accent Colors */
     --color-green: var(--flx-green);
     --color-red: var(--flx-red);
     --color-yellow: var(--flx-yellow);
     --color-orange: var(--flx-orange);
   }
 }
 
 /* =========================================
  * 2. BASE STYLES
  * ========================================= */
 
 * {
   font-family: var(--font-primary);
   color: var(--color-text);
   box-sizing: border-box;
 }
 
 html {
   background-color: var(--color-background);
 }
 
 html,
 body {
   min-height: 100vh;
 }
 
 body {
   display: flex;
   flex-direction: column;
   min-width: var(--small-width);
   width: min-content;
   margin: auto;
 }
 
 /* =========================================
  * 3. LAYOUT & STRUCTURE
  * ========================================= */
 
 main {
   flex: 1;
 }
 
 footer {
   bottom: 0;
   width: 100%;
   padding: 1.5rem;
   margin-top: 2rem;
   text-align: center;
   z-index: 100;
 }
 
 /* Width control classes */
 *.fullscreen {
   width: 100vw;
   height: 100vh;
 }
 
 *.width-xs {
   width: var(--xs-width);
   max-width: var(--xs-width);
   margin: 4rem auto;
 }
 
 *.width-s {
   width: var(--small-width);
   max-width: var(--small-width);
   margin: 4rem auto;
 }
 
 *.width-m {
   width: var(--medium-width);
   max-width: var(--medium-width);
   margin: 4rem auto;
 }
 
 *.width-l {
   width: var(--large-width);
   max-width: var(--large-width);
   margin: 4rem auto;
 }
 
 *.width-xl {
   width: var(--xl-width);
   max-width: var(--xl-width);
 }

/* Post list styling */
.post-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.post-list li {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-grey);
}

.post-list li:last-child {
  border-bottom: none;
}

.post-list .post-title {
  font-size: 1.3rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.post-list .post-title:hover {
  color: var(--color-orange);
}

.post-meta-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.post-meta {
  color: var(--color-darker-grey);
  font-size: 0.9rem;
  font-weight: normal;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.post-tag {
  font-size: 0.9rem;
  color: var(--color-darker-grey);
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: normal;
}

.post-tag::before {
  content: "#";
}

.post-tag:hover {
  color: var(--color-orange);
}

/* Responsive adjustments */
@media screen and (max-width: 500px) {
  .post-meta-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
 
 /* =========================================
  * 4. TYPOGRAPHY
  * ========================================= */
 
 /* Text and paragraphs */
 p {
   line-height: 1.4em;
   font-size: var(--font-size-alt) !important;
 }
 
 main, p {
   font-size: 1.2rem;
 }
 
 main > p {
   font-size: 1.2rem;
 }
 
 /* Headers */
 h1, h2 {
   color: var(--color-primary) !important;
   font-family: var(--font-accent) !important;
   margin-top: 2rem;
   margin-bottom: 1rem;
 }
 
 h3, h4, h5, h6 {
   color: var(--color-text) !important;
   font-family: var(--font-accent) !important;
   margin-top: 2rem;
   margin-bottom: 1rem;
 }
 
 h1 { font-size: 3em; }
 h2 { font-size: 2.2em; }
 h3, caption { font-size: 1.7em; }
 h4 { font-size: 1.5em; }
 h5 { font-size: 1.3em; }
 h6 { font-size: 1.2em; }

.post-list + h1,
.post-list + h2,
.post-list + h3,
.post-list + h4,
.post-list + h5,
.post-list + h6 {
  margin-top: 0.5rem;
}
 
 /* Links and text decorations */
 a {
   font-weight: 600;
   color: var(--color-text);
   text-decoration-thickness: var(--border-width);
   font-size: var(--font-size-alt);
 }
 
 a:hover {
   color: var(--color-primary);
 }
 
 u, s {
   text-decoration-thickness: var(--border-width);
 }
 
 /* Selection styling */
 ::selection, ::-moz-selection {
   background-color: var(--color-primary);
   color: var(--color-background);
   border-radius: 4px;
 }
 
 /* Lists */
 ul, ol {
   padding-left: 1.2rem;
 }
 
 li {
   margin: 5px 0;
 }
 
 /* Blockquotes */
 blockquote {
   margin-left: 1em;
 }
 
 blockquote footer {
   color: var(--color-darker-grey);
   margin: 1em 0 0 1em;
   font-size: 0.9em;
 }
 
 blockquote footer::before {
   content: "— ";
 }
 
 /* Code and technical text */
 code, samp {
   padding: 0.2rem 0.4rem;
   background-color: var(--color-secondary);
   color: var(--color-text);
   font-family: "JetBrains Mono", monospace;
   font-size: 0.8rem;
   border-radius: 4px;
   tab-size: 4;
   unicode-bidi: embed;
   white-space: pre-wrap;
 }
 
 samp {
   background-color: var(--color-tertiary);
   font-weight: 800;
 }
 
 code strong {
   font-family: "JetBrains Mono", monospace;
   font-weight: 800;
 }
 
 var {
   font-family: "JetBrains Mono", monospace;
   font-weight: 800;
   font-size: 0.9rem;
 }
 
 pre > code {
   display: block;
   margin: 4px 0;
   overflow: auto;
   padding: 0.6em;
 }
 
 kbd {
   padding: 0.1rem 0.6rem;
   font-weight: 600;
   font-family: "JetBrains Mono", monospace;
   font-size: 0.8em;
   border-radius: 4px;
   background-color: var(--offset-text-color);
   box-shadow: inset -2px -2px 0 #fff, inset 2px 2px 0 #fff,
     inset 2px -2px 0 #fff, inset -2px 2px 0 #fff;
   border: 1px solid var(--color-darker-grey);
   border-bottom: 2px solid var(--color-darker-grey);
   color: var(--color-text);
   display: inline-block;
   text-transform: lowercase;
 }
 
 /* Text formatting */
 del {
   background-color: var(--color-red);
   border-radius: 4px;
   text-decoration-thickness: var(--border-width);
 }
 
 ins {
   background-color: var(--color-green);
   border-radius: 4px;
   text-decoration-thickness: var(--border-width);
 }
 
 mark {
   background-color: var(--color-yellow);
   border-radius: 4px;
 }
 
 hr {
   border: 1px solid var(--color-text);
 }
 
 /* =========================================
  * 5. NAVIGATION
  * ========================================= */
  nav {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 1rem 0;
    background-color: var(--color-background);
  }
  
  .nav-container {
    display: flex;
    justify-content: space-between; /* This pushes items to opposite ends */
    align-items: center;
    width: 100%;
    min-width: var(--small-width);
    max-width: var(--small-width);
    margin: 0 auto;
  }
  
  .site-title a {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1.5rem;
    text-decoration: none;
  }
  
  .nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: flex-end; /* Ensures alignment to the right */
  }
  
  nav a {
    position: relative;
    color: var(--color-primary);
    font-weight: 600;
    font-size: var(--font-size);
    text-decoration: none;
    padding: 0.4rem 0;
    transition: all 0.2s ease;
  }
  
  nav a:hover {
    color: var(--color-orange);
  }
  
  /* Responsive adjustments */
  @media screen and (max-width: 500px) {
    .nav-container {
      flex-direction: column;
      gap: 1rem;
    }
    
    .nav-links {
      justify-content: center;
    }
  }

 /* =========================================
  * 6. FORM ELEMENTS
  * ========================================= */
 
 form {
   display: flex;
   justify-content: center;
   align-items: center;
   gap: var(--gap);
   flex-flow: column;
   width: 100%;
   margin: 2rem 0;
 }
 
 form * {
   width: 100%;
 }
 
 /* Labels */
 label {
   padding-bottom: 4px;
   font-size: var(--font-size);
   display: inline-block;
   color: var(--color-darker-grey);
 }
 
 label,
 input[type="checkbox"],
 input[type="range"] {
   appearance: none;
   -moz-appearance: none;
   -webkit-appearance: none;
   width: fit-content;
   display: inline-block;
 }
 
 /* Input fields */
 input,
 textarea,
 select,
 button {
   appearance: none;
   -moz-appearance: none;
   -webkit-appearance: none;
   width: 100%;
   padding: 0.8em;
   border-radius: 4px;
   background: none;
   border: var(--border-width) solid var(--color-text);
   outline: none;
   color: var(--color-text);
   font-family: var(--font-accent);
   box-sizing: border-box;
   font-size: var(--font-size);
   caret-color: var(--color-primary);
 }
 
 input:focus,
 textarea:focus,
 select:focus {
   animation: focus_border 0.3s ease-in-out;
   animation-fill-mode: forwards;
 }
 
 ::placeholder {
   opacity: 100%;
   color: var(--color-darker-grey);
 }
 
 /* Buttons */
 input[type="submit"],
 button {
   background-color: var(--color-primary);
   font-weight: 600;
   border: none;
   color: var(--offset-text-color);
   cursor: pointer;
   padding: 0.4rem 1.2rem;
 }
 
 input[type="submit"] {
   padding: 0.8rem 1.2rem;
 }
 
 button {
   width: initial;
   margin: 0 4px;
 }
 
 button:disabled,
 input:disabled {
   background-color: var(--color-grey);
   color: var(--color-darker-grey);
   font-weight: 500;
   border: var(--border-width) dashed var(--color-darker-grey);
 }
 
 button:disabled {
   padding: calc(0.4rem - var(--border-width)) calc(1.2rem - var(--border-width));
 }
 
 button:disabled:hover,
 input:disabled:hover {
   cursor: not-allowed;
 }
 
 button[type="reset"] {
   background-color: var(--color-grey);
   color: var(--color-text);
   font-weight: 600;
 }
 
 input[type="submit"]:active,
 button:active {
   transform: translateY(1px);
 }
 
 button:disabled:active {
   transform: none;
 }
 
 button.big {
   padding: calc(0.8em + 2px) 1.6em;
 }
 
 button:disabled.small {
   padding: calc(0.4rem - 2px) 1.2rem;
 }
 
 /* Special input types */
 input[type="color"] {
   padding: 14px 4px;
   appearance: none;
   -moz-appearance: none;
   -webkit-appearance: none;
 }
 
 @-moz-document url-prefix() {
   input[type="color"] {
     padding: 6px;
   }
 }
 
 input[type="color"]::-webkit-color-swatch {
   height: 16px;
   box-sizing: border-box;
   padding: 0;
   transform: translateY(-8px);
   border-radius: 3px;
   border: none;
 }
 
 input[type="color"]::-moz-color-swatch {
   border-radius: 3px;
   height: 16px;
   border: none;
 }
 
 /* Range inputs */
 input[type="range"] {
   height: 32px;
   -webkit-appearance: none;
   margin: 0;
   width: 100%;
   border: 0;
   display: block;
 }
 
 input[type="range"]::-webkit-slider-runnable-track {
   width: 100%;
   height: 10px;
   cursor: pointer;
   background: var(--color-background);
   border-radius: 4px;
   border: var(--border-width) solid var(--color-text);
   -webkit-appearance: none;
   padding: 0;
 }
 
 input[type="range"]::-webkit-slider-thumb {
   border: var(--border-width) solid var(--color-text);
   height: 16px;
   width: 16px;
   border-radius: 4px;
   cursor: pointer;
   -webkit-appearance: none;
   transform: translateY(-5px);
   background: var(--color-text);
   box-shadow: inset -3px -3px 0 var(--color-background),
     inset 3px 3px 0 var(--color-background),
     inset 3px -3px 0 var(--color-background),
     inset -3px 3px 0 var(--color-background);
 }
 
 input[type="range"]::-moz-range-track {
   width: 100%;
   height: 6px;
   cursor: pointer;
   background: var(--color-background);
   border-radius: 4px;
   border: var(--border-width) solid var(--color-text);
 }
 
 input[type="range"]::-moz-range-thumb {
   border: var(--border-width) solid var(--color-text);
   height: 12px;
   width: 12px;
   border-radius: 4px;
   cursor: pointer;
   background: var(--color-text);
   box-shadow: inset -3px -3px 0 var(--color-background),
     inset 3px 3px 0 var(--color-background),
     inset 3px -3px 0 var(--color-background),
     inset -3px 3px 0 var(--color-background);
 }
 
 input[type="range"]::-ms-track {
   width: 100%;
   height: 11px;
   cursor: pointer;
   background: transparent;
   border-color: transparent;
   color: transparent;
 }
 
 input[type="range"]::-ms-fill-lower {
   background: #74a9d8;
   border: 0px solid #010101;
   border-radius: 2px;
   box-shadow: 1px 1px 1px #000000;
 }
 
 input[type="range"]::-ms-fill-upper {
   background: #74a9d8;
   border: 0px solid #010101;
   border-radius: 2px;
   box-shadow: 1px 1px 1px #000000;
 }
 
 input[type="range"]::-ms-thumb {
   margin-top: 1px;
   box-shadow: none;
   border: 1px solid #00001e;
   height: 26px;
   width: 26px;
   border-radius: 15px;
   background: #ffffff;
   cursor: pointer;
 }
 
 /* Number inputs */
 input::-webkit-outer-spin-button,
 input::-webkit-inner-spin-button {
   appearance: none;
   -moz-appearance: none;
   -webkit-appearance: none;
 }
 
 input[type="number"] {
   -moz-appearance: textfield;
 }
 
 /* File inputs */
 input[type="file"] {
   -webkit-appearance: none;
   -moz-appearance: none;
   appearance: none;
   border: var(--border-width) solid var(--color-text);
   padding: 6px 6px;
 }
 
 input[type="file"]:hover {
   cursor: pointer;
 }
 
 ::file-selector-button {
   border: var(--border-width) solid var(--color-text);
   background: none;
   border-radius: 4px;
   padding: 4px 8px;
   font-family: "Outfit", system-ui, sans-serif;
   margin-right: 10px;
   color: var(--color-text);
   font-size: var(--font-size);
 }
 
 ::-webkit-file-upload-button {
   border: var(--border-width) solid var(--color-text);
   background: none;
   border-radius: 4px;
   padding: 4px 8px;
   font-family: "Outfit", system-ui, sans-serif;
   margin-right: 10px;
   color: var(--color-text);
   font-size: var(--font-size);
 }
 
 ::-ms-browse {
   border: var(--border-width) solid var(--color-text);
   background: none;
   border-radius: 4px;
   padding: 4px 8px;
   font-family: "Outfit", system-ui, sans-serif;
   margin-right: 10px;
   color: var(--color-text);
   font-size: var(--font-size);
 }
 
 /* Checkbox and radio */
 input[type="checkbox"],
 input[type="radio"] {
   margin: 0 1rem 0 0;
   appearance: none;
   -moz-appearance: none;
   -webkit-appearance: none;
   width: 10px;
   height: 10px;
   position: relative;
   cursor: pointer;
   padding: 0 6px;
   transform: translate(5px, 5px);
   border: none;
   outline: none;
 }
 
 input[type="checkbox"]:checked:before,
 input[type="radio"]:checked:before {
   animation: focus_border 0.3s ease-in-out;
   animation-fill-mode: forwards;
 }
 
 input[type="checkbox"]:checked:after,
 input[type="radio"]:checked:after,
 input[type="checkbox"]:before,
 input[type="radio"]:before {
   content: "";
   display: block;
 }
 
 input[type="checkbox"]:before,
 input[type="radio"]:before {
   position: absolute;
   width: 12px;
   height: 12px;
   border: 2px solid var(--color-text);
   transform: translate(-8px, -8px);
   border-radius: 4px;
 }
 
 input[type="checkbox"]:checked:after,
 input[type="radio"]:checked:after {
   width: 6px;
   height: 6px;
   background-color: var(--color-text);
   border-width: 0 var(--border-width) var(--border-width) 0;
   position: relative;
   transform: translate(-3px, -3px);
   border-radius: 2px;
 }
 
 input[type="radio"]:before,
 input[type="radio"]:checked:after,
 input[type="radio"] {
   border-radius: 20px;
 }
 
 /* Select dropdown */
 select {
   appearance: none;
   -moz-appearance: none;
   -webkit-appearance: none;
   background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="800" height="800" fill="none" viewBox="0 0 24 24"><path stroke="%230c0c0c" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m15 11-3 3-3-3"/></svg>');
   background-position: calc(100% - 0.4em) calc(50% + 1px);
   background-repeat: no-repeat;
   background-size: 24px 24px;
 }
 
 /* Form sizing modifiers */
 input.small,
 textarea.small,
 select.small {
   padding: 0.4rem 1.2rem;
 }
 
 /* Textarea resize controls */
 textarea.no-resize {
   resize: none;
 }
 textarea.all-resize {
   resize: both;
 }
 textarea.ho-resize {
   resize: horizontal;
 }
 textarea.ve-resize {
   resize: vertical;
 }
 
 /* =========================================
  * 7. TABLES
  * ========================================= */
 
 table {
   border-collapse: collapse;
   width: 100%;
   margin: calc(var(--gap) * 2) 0;
 }
 
 caption {
   text-align: left;
   margin-bottom: 1rem;
   font-weight: 600;
 }
 
 td, th {
   padding: 0.4em;
   text-align: left;
 }
 
 th {
   border-bottom: var(--border-width) solid var(--color-text);
   font-size: 1.2em;
 }
 
 tr {
   border-radius: 4px;
 }
 
 /* Alternate table style */
 table.alternate tr th {
   background-color: var(--color-grey);
   border: none;
   padding: 1rem 0.5rem;
 }
 
 table.alternate tr th:first-child {
   border-top-left-radius: 4px;
   border-bottom-left-radius: 4px;
   padding-left: 1rem;
 }
 
 table.alternate tr th:last-child {
   border-top-right-radius: 4px;
   border-bottom-right-radius: 4px;
   padding-right: 1rem;
 }
 
 table.alternate tr td {
   border-bottom: var(--border-width) solid var(--color-text);
 }
 
 table.alternate tr:last-child td {
   border-bottom: none;
 }
 
 table.alternate tr td:first-child {
   border-left: 1rem solid var(--color-background);
 }
 
 table.alternate tr td:last-child {
   border-right: 1rem solid var(--color-background);
 }
 
 /* Table hover effect */
 table:not(.alternate) tr:hover *:not(th) {
   background-color: var(--color-grey);
 }