@font-face {
  font-family:IosevkaAile;
  src: url(/static/fonts/IosevkaAile-Regular.ttf);
}
@font-face {
  font-family:IosevkaMono;
  src: url(/static/fonts/IosevkaCustom-Regular.ttf);
}
:root {
  /* Terminal colours */

  --bg: #06080A;
  --bg-soft:#1e1f22;
  --bg-dark: #24232f;
  --fg: #A97C73;
  --red: #b25e5e;
  --green: #A97C73;
  --yellow: #A97C73;
  --blue: #458588;
  --purple: #b16286;
  --aqua: #A97C73;
  --gray: #a89984;
  /* --font: "Press Start 2P"; */



  
  --background: #06080A;
  --primary-colour: #A97C73;
  --font-colour: var(--primary-colour);
  --heading-font-colour: var(--link-colour);
  --postcard-link-colour: var(--primary-colour);
  --navbar-link-colour: var(--primary-colour);
  --link-colour: #689d6a;
  --separator-colour: var(--primary-colour);

  --h1-heading-font-size: 1.5rem;
  --navbar-font-size: 1rem;
  --body-font-size: 1rem;
  --code-font-size: 1rem;
  --post-link-font-size: 1rem;
  --reading-width: 650px;
  --media-width: 750px;

  --body-font-family: "IosevkaAile", sans-serif;
  --heading-font-family: "Inter", sans-serif;
  --code-font-family: "JetBrains Mono", "IosevkaMono", monospace;
  --post-card-heading-font-family: var(--heading-font-family);
  --navbar-font-family: var(--heading-font-family);
}

/* Dark theme */
[data-theme="dark"] {
  --background: rgb(16, 15, 15);
  --primary-colour: rgb(206, 205, 195);
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--link-colour) 65%, transparent) transparent;
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--link-colour) 65%, transparent);
  border-radius: 3px;
}

*::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--link-colour) 85%, transparent);
}

body {
  margin: 0;
  min-height: 100vh;

  font-size: var(--body-font-size);
  font-family: var(--body-font-family);
  font-weight: 400;
  font-style: normal;

  line-height: 1.75;

  color: var(--font-colour);
  background-color: var(--background);
}

.body-container {
  margin: auto;
  padding: 3.5rem 30px 72px;
  width: 750px;
  max-width: 100%;
  min-height: 100vh;

  display: flex;
  flex-direction: column;

  background-color: var(--background);
}

p {
  opacity: 0.9;
}

header,
footer {
  flex: 0;
  
}

header {
  max-width: var(--reading-width);
  width: 100%;
  margin: 0 auto;
  padding-bottom: 1.5rem;
  /* border-bottom: 2px solid var(--separator-colour); */
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 10px 0;
  background-color: var(--background);
  color: color-mix(in srgb, var(--font-colour) 55%, transparent);
  font-size: 0.85rem;
  text-align: center;
}

footer a {
  color: color-mix(in srgb, var(--link-colour) 70%, transparent);
}

.body {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--reading-width);
  margin: 0 auto;
}

a {
  color: var(--link-colour);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition:
    color 120ms ease-in-out,
    text-decoration-color 120ms ease-in-out;
}

a:hover {
  text-decoration-color: currentColor;
}

hr {
  border: none;
  border-top: 1px solid color-mix(in srgb, var(--separator-colour) 30%, transparent);
}

nav {
  display: flex;
  justify-content: space-between;
}

.nav-links-search {
  display: flex;
  flex-direction: column;
}

.nav-links {
  display: flex;
  gap: 1.5em;
  flex-wrap: wrap;
  text-align: center;
  align-items: baseline;
}

.nav-links a {
  text-decoration: none;
  font-family: var(--navbar-font-family);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--navbar-link-colour);
  opacity: 0.72;
  text-transform: lowercase;
  letter-spacing: 0.01em;
  transition:
    color 120ms ease-in-out,
    opacity 120ms ease-in-out;
}

.nav-links a:hover {
  color: var(--link-colour);
  opacity: 1;
}

#theme-toggle-button {
  border: none;
  background-color: var(--background);
}

.search {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
}

#searchSiteInput {
  width: auto;

  outline: none;
  border: 2px var(--primary-colour) solid;
  border-radius: 5px;
  padding: 8px;

  color: var(--font-colour);
  background-color: var(--background);
}

#searchSiteInput::placeholder {
  color: var(--font-colour);
  font-size: (var(--body-font-size) - 0.1rem);
}

#site_search_result {
  margin-top: 10px;

  display: flex;
  flex-direction: column;
  gap: 5px;
}

.post-card {
  padding: 3px;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.post-card-date {
  font-size: 0.85rem;
  opacity: 0.55;
}

.post-card-link-and-description {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.post-card-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6em;
}

.post-card-link {
  font-size: var(--post-link-font-size);
}

.post-card a {
  font-family: var(--post-card-heading-font-family);
  color: var(--link-colour);
}

.post-card-description {
  opacity: 0.8;
}

.post-footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75em;
  margin-top: 2.5rem;
  font-size: 0.85rem;
  font-weight: 300;
  opacity: 0.55;
}

.post-footer-tags a {
  color: inherit;
  text-decoration: none;
}

.post-footer-tags a:hover {
  color: var(--link-colour);
  text-decoration: underline;
}

.tags-placeholder,
.post-tags-placeholder {
  display: flex;
  align-content: center;
  flex-wrap: wrap;
  gap: 0.5em;
}

.tags-placeholder a,
.post-tags-placeholder a {
  color: var(--postcard-link-colour);
  font-family: var(--body-font-family);
  font-size: calc(var(--body-font-size) - 0.1rem);
}

.tags-placeholder {
  margin-top: 10px;
}

.tagpage-tags-placeholder {
  margin-top: 20px;
}

.tagpage-tags-placeholder a {
  font-size: var(--body-font-size);
  color: var(--link-colour);
}

.tag-subpage-keyword {
  color: var(--link-colour);
}

/* .page-title-header {
    text-decoration: underline;
} */

img,
svg {
  display: block;
  width: 100%;
  height: auto;
}

.body > figure {
  width: calc(100% + 100px);
  max-width: var(--media-width);
  margin: 0 -50px 1.5rem;
}

.body > figure img {
  width: 100%;
  height: auto;
}

.body > figure figcaption {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  font-style: italic;
  opacity: 0.55;
}

.anchor {
  opacity: 0;
  transition: opacity 150ms ease-in-out;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font-family);
  font-weight: 500;

  margin: 1.6rem 0 0.6rem;
  color: var(--heading-font-colour);
  line-height: 1.3;

  &:hover {
    .anchor {
      opacity: 1;
    }
  }
}

h1 {
  font-size: 1.35rem;
  margin-top: 0;
}

h2 {
  font-size: 1.2rem;
}

h3 {
  font-size: 1.1rem;
}

h4 {
  font-size: 1.05rem;
}

h5,
h6 {
  font-size: 1rem;
}

blockquote {
  margin: 1.2rem 0;
  padding: 0.6rem 1rem;
  border-left: none;
  background: color-mix(in srgb, var(--bg-soft) 70%, transparent);
  color: var(--font-colour);
}

code {
  font-family: var(--code-font-family);
  font-size: var(--code-font-size);
}

pre {
  margin: 1.4rem 0;
  overflow-x: auto;
}

pre code {
  display: block;
  line-height: 1.5;
}

pre code.language-text {
  font-family: "IosevkaMono", monospace;
  line-height: 1.2;
}

@media (max-width: 900px) {
  .body-container {
    padding: 3rem 30px 72px;
  }

  svg {
    width: auto;
    height: auto;
  }
}

@media (max-width: 750px) {
  .body-container {
    /* padding: 15px 20px; */
    padding: 2.5rem 20px 64px;
    width: auto;
  }

  .body > figure {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  svg {
    width: auto;
    height: auto;
  }

  .search {
    padding: 0px 0.1em 0px;
  }

  #searchSiteInput {
    width: 100%;
  }
}

.material-symbols-outlined {
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}

.terminal-wrapper {
  position: fixed;
  bottom: 3.5rem;
  right: 1.5rem;
  width: min(560px, calc(100vw - 2rem));
  z-index: 1000;
}

.terminal-wrapper a {
  color: #689d6a;
}

.terminal {
  background-color: var(--bg-soft);
  border: 1px solid color-mix(in srgb, var(--gray) 30%, transparent);
  border-radius: 4px;
  width: 100%;
  height: 32vh;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.terminal-header {
  background-color: var(--bg-dark);
  padding: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid color-mix(in srgb, var(--gray) 30%, transparent);
}

.terminal-title {
  color: color-mix(in srgb, var(--yellow) 80%, transparent);
}

.terminal-close {
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--red) 45%, transparent);
  color: color-mix(in srgb, var(--red) 80%, transparent);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  transition:
    background-color 120ms ease-in-out,
    color 120ms ease-in-out;
}

.terminal-close:hover {
  background: color-mix(in srgb, var(--red) 20%, transparent);
  color: var(--red);
}

.terminal-content {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  overflow-x: hidden;
}

.terminal-output {
  margin-bottom: 1rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.terminal-output pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-family: var(--body-font-family);
}

.terminal-input-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.prompt {
  color: var(--green);
  font-size: var(--body-font-size);
  white-space: nowrap;
}

.terminal-input {
  background: transparent;
  border: none;
  color: var(--fg);
  font-family: var(--body-font-family);
  flex: 1;
  min-width: 0;
  outline: none;
  font-size: var(--body-font-size);
}

.terminal-input input[type="text" i] {
  padding: 0;
  padding-block: 0px;
  padding-inline: 0px;
}

.terminal-toggle {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--gray);
  color: var(--yellow);
  padding: 0.5rem 1rem;
  cursor: pointer;

  border-radius: 4px;
}

.terminal-toggle:hover {
  background: var(--bg-dark);
}
.responsive-header {
  display: block;
}

.accent{
  color:#689d6a;
}