:root {
  --extra-dark: #1d1c1c;
  --darker: #2b2a2a;
  --dark: #403f3f;
  --medium: #a5a5a5;
  --light: #cccccc;
  --lighter: #f2f2f2;
  --font-size: 22px;
  --border-radius: 0.15rem;
}

html,
body {
  background-color: var(--darker);
  color: var(--light);
  font-size: var(--font-size);
  line-height: 1.4;
  padding: 0;
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 340px;
}

* {
  box-sizing: border-box;
}

::-moz-selection {
  background: var(--medium);
  text-shadow: none;
}

::selection {
  background: var(--medium);
  text-shadow: none;
  color: var(--extra-dark);
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 2px solid var(--dark);
  margin: 1em 0;
  padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

textarea {
  resize: vertical;
}

a {
  color: var(--light);
  transition: color 0.1s ease;
}

a:hover {
  color: var(--lighter);
}

a.second {
  color: var(--dark);
  text-decoration: none;
  margin-right: 0.5ch;
}

a.second:target {
  color: var(--medium);
  scroll-margin-top: 2.5rem;
}

a.second:hover {
  color: var(--medium);
  text-decoration: underline;
}

a.second:focus {
  outline: none;
}

#content,
#footer {
  display: flex;
  justify-content: center;
}

#content {
  flex-direction: column;
  align-items: center;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
}

.column {
  padding: 1rem;
}

.img {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50%;
  width: 100%;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.card {
  background-color: var(--darker);
  border: none;
}

.card img {
  margin-bottom: 1rem;
  aspect-ratio: 16/9;
  width: 100%;
  border-radius: var(--border-radius);
}

.card .card-body>h3,
.card .card-body>p {
  padding: 0 1rem;
}

.card h3 {
  margin: 0;
  font-size: 1.2em;
}

.card h3 a {
  text-decoration: none;
}

.card:hover h3 a {
  color: var(--lighter);
}

.ig .thumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  margin-bottom: 1rem;
}

.ig .thumb img {
  width: 98px;
  height: 98px;
  border-radius: var(--border-radius);
}

.ig .image {
  margin-bottom: 2px;
  position: relative;
  min-height: 5rem;
}

.ig .image div {
  display: none;
}

.ig .image a {
  position: absolute;
  text-decoration: none;
  transition: opacity 0.1s ease;
  font-size: 2rem;
  line-height: 2rem;
  font-weight: bolder;
  color: var(--lighter);
  cursor: pointer;
  opacity: 0.8;
  padding: 0.5rem;
  text-shadow: 3px 0 3px var(--darker), -3px 0 3px var(--darker), 0 3px 3px var(--darker), 0 -3px 3px var(--darker);
}

.ig .image a:hover {
  opacity: 0.6;
}

.ig .image .fullscreen {
  bottom: 0;
  right: 0;
}

.ig .image .left {
  left: 0;
  line-height: 200px;
}

.ig .image .right {
  right: 0;
  line-height: 200px;
}

.ig .image div:target {
  scroll-margin-top: 2.5rem;
  display: flex;
  align-items: center;
}

.ig .image div img {
  margin: 0;
}

.ig .image:not(:has(> div:target))> :first-child {
  display: flex;
  align-items: center;
}

.with-icon {
  align-items: center;
  gap: 0.5rem;
}

.with-icon svg {
  width: 1rem;
  height: 1rem;
}

.icon {
  width: 100%;
  fill: var(--light);
  transition: fill 0.1s ease;
}

*:hover>.icon {
  fill: var(--lighter);
}

.container {
  display: flex;
  flex-direction: column;
}

.nav {
  margin: 0.5rem 0;
  padding: 0.5rem 1rem;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  background-color: var(--darker);
  opacity: 0.97;
  z-index: 999;
  flex-direction: row;
}

.nav a {
  text-decoration: none;
}

.nav a:first-of-type {
  font-weight: bold;
}

.nav a:last-of-type {
  background: var(--medium);
  text-shadow: none;
  color: var(--extra-dark);
  padding: 0 1ch;
}

.nav a:last-of-type:hover {
  background: var(--light);
  text-shadow: none;
  color: var(--extra-dark);
}

.tags {
  display: flex;
  gap: 1ch;
  flex-wrap: wrap;
}

.tags a {
  background: var(--medium);
  text-shadow: none;
  color: var(--extra-dark);
  padding: 0 1ch;
  text-decoration: none;
  height: min-content;
}

.tags a:hover {
  background: var(--light);
  text-shadow: none;
  color: var(--extra-dark);
}

.post>* {
  margin: 0 0 1rem 0;
}

.post picture img {
  width: 100%;
  border-radius: var(--border-radius);
  aspect-ratio: 16/9;
}

.post picture {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
}

.post p {
  padding: 0 1rem;
}

.post ol,
.post ul {
  padding: 0 3rem;
}

.post pre:has(>code) {
  display: block;
  background-color: var(--extra-dark);
  padding: 1rem;
  overflow-x: scroll;
  font-size: 0.7rem;
  border-radius: var(--border-radius);
  font-weight: normal;
}

.post p code,
.post li code {
  color: var(--medium);
  background-color: var(--dark);
  padding: 0 0.3rem;
  font-size: 0.9rem;
  font-weight: bold;
}

.post iframe {
  width: 100%;
  height: 20rem;
  margin-bottom: 1rem;
}

.post .head {
  background-color: rgba(65, 65, 65, 0.5);
  text-align: center;
  padding: 0 1rem;
  box-sizing: unset;
  display: flex;
  justify-content: center;
  position: relative;
  margin-bottom: -5.5rem;
}

.post .title-image {
  width: 100%;
  border-radius: var(--border-radius);
  aspect-ratio: 16/9;
  object-fit: contain;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  padding: 0 1rem;
  margin: 0 0 1rem 0;
}

.post h2+h5 {
  margin-top: -1rem;
  font-weight: normal;
}

.post h1.title {
  font-size: 2.5em;
}

.post .metadata {
  padding: 1rem;
  border-top: 2px solid var(--dark);
  display: grid;
  grid-template-columns: 1fr 4fr;
  grid-template-rows: 1fr 1fr;
  gap: 1px 1px;
  grid-template-areas:
    ". ."
    ". .";
  font-size: 0.8em;
}

.post .metadata div:nth-child(odd) {
  font-weight: bold;
}

.post iframe {
  border-radius: var(--border-radius);
}

iframe.youtube {
  width: 100%;
  height: 400px;
}

iframe.komoot {
  width: 100%;
  aspect-ratio: 1/1;
  height: auto;
}

.collapsible+.collapsible {
  margin-top: -1rem;
}

.collapsible {
  border: 1px solid var(--dark);
  border-radius: var(--border-radius);
}

.collapsible input {
  display: none;
}

.collapsible input:checked~.body {
  display: block;
}

.collapsible label {
  display: flex;
  padding: 1rem;
  background-color: var(--darker);
  cursor: pointer;
  align-items: center;
  gap: 1rem;
}

.collapsible label:hover {
  color: var(--lighter);
}

.collapsible input:checked~label svg {
  transform: rotate(90deg);
}

.collapsible label svg {
  width: 1rem;
  height: 1rem;
  display: inline-block;
  transform: rotate(0deg);
  transition: transform 0.2s ease;
}

.collapsible .body {
  display: none;
  background-color: var(--darker);
  overflow: hidden;
  border-top: 1px solid var(--dark);
}

.highlight {
  width: 100%;
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background-color: var(--medium);
  border-radius: 0.15rem;
}

.highlight:has(.hicon) {
  grid-template-columns: 1fr 9fr;
}

.highlight .hicon {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--border-radius);
  font-size: xxx-large;
}

.highlight *::-moz-selection {
  background: var(--extra-dark);
  color: var(--medium);
  text-shadow: none;
}

.highlight *::selection {
  background: var(--extra-dark);
  text-shadow: none;
  color: var(--medium);
}

.highlight .icon {
  fill: var(--dark);
}

.highlight .hicon:hover .icon {
  fill: var(--darker);
}

.highlight * {
  color: var(--dark);
}

.highlight a:hover {
  color: var(--darker);
}

.highlight .body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pagination {
  display: flex;
  padding: 1rem;
  margin: 2rem;
  justify-content: center;
}

.pagination div {
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
}

.pagination .current {
  background-color: var(--dark);
}

.pagination a {
  text-decoration: none;
}

.back {
  display: flex;
  align-items: center;
  margin: 0 2rem 2rem 1rem;
  gap: 1rem;
}

.back .icon {
  width: 3rem;
  fill: var(--dark);
}

.back .icon:has(~ a:hover) {
  fill: var(--medium);
}

.back a {
  text-decoration: none;
  font-size: 2rem;
  color: var(--dark);
  font-weight: bold;
}

.back a:hover {
  color: var(--medium);
}

.spacer {
  height: 2rem;
}

.not-found {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#footer {
  background-color: var(--dark);
  color: var(--lighter);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media all and (display-mode: fullscreen) {
  .ig .image {
    display: flex;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media only screen and (min-width: 1000px) {
  .container {
    width: 1000px;
  }
}

@media only screen and (max-width: 999px) {
  :root {
    --font-size: 18px;
  }

  .back .icon {
    width: 2rem;
  }

  .back a {
    font-size: 2rem;
  }

  .back .icon:has(~ a:hover) {
    fill: var(--medium);
  }

  .container {
    width: calc(100% - 2rem);
  }
}

@media only screen and (max-width: 700px) {
  .grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media only screen and (max-width: 700px) and (orientation: portrait) {
  :root {
    --font-size: 18px;
  }

  .back .icon {
    width: 2rem;
  }

  .back a {
    font-size: 1rem;
  }

  #footer {
    padding: 0;
  }

  .container {
    width: 100%;
  }


  .post .head {
    margin-bottom: -8.5rem;
  }

}


@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {}

@media print {

  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

/*
 * theme "Solarized (dark)" generated by syntect
 */

.code {
  color: #839496;
  background-color: #002b36;
}

.comment,
.meta.documentation {
  color: #586e75;
}

.string {
  color: #2aa198;
}

.string.regexp {
  color: #2aa198;
}

.constant.character.escape {
  color: #dc322f;
}

.constant.numeric {
  color: #6c71c4;
}

.variable {
  color: #268bd2;
}

.variable.function {
  color: #b58900;
}

.variable.language {
  color: #d33682;
}

.keyword {
  color: #859900;
}

.meta.import .keyword,
.keyword.control.import,
.keyword.control.import.from,
.keyword.other.import,
.keyword.control.at-rule.include,
.keyword.control.at-rule.im port {
  color: #cb4b16;
}

.keyword.operator.comparison,
.keyword.operator.assignment,
.keyword.operator.arithmetic {
  color: #657b83;
}

.storage {
  color: #859900;
}

.storage.modifier {
  color: #93a1a1;
}

.keyword.control.class,
.entity.name,
.entity.name.class,
.entity.name.type.class {
  color: #b58900;
}

.entity.other.inherited-class {
  color: #268bd2;
}

.entity.other.attribute-name {
  color: #b58900;
}

.support,
.support.type,
.support.class {
  color: #859900;
}

.entity.name.function {
  color: #b58900;
}

.punctuation.definition.variable {
  color: #859900;
}

.constant,
.constant.language,
.meta.preprocessor {
  color: #b58900;
}

.entity.name.section {
  color: #cb4b16;
}

.support.function.construct,
.keyword.other.new {
  color: #dc322f;
}

.constant.character,
.constant.other {
  color: #cb4b16;
}

.entity.name.tag {
  color: #268bd2;
}

.punctuation.definition.tag.html,
.punctuation.definition.tag.begin,
.punctuation.definition.tag.end {
  color: #586e75;
}

.support.function {
  color: #859900;
}

.punctuation.separator.continuation {
  color: #dc322f;
}

.storage.type {
  color: #268bd2;
}

.support.type.exception {
  color: #cb4b16;
}

.keyword.other.special-method {
  color: #cb4b16;
}

.invalid {
  background-color: #6e2e32;
}

.string.quoted.double,
.string.quoted.single {
  color: #2aa198;
}

.punctuation.definition.string {
  color: #839496;
}

.meta.brace.square,
.punctuation.section.brackets {
  color: #268bd2;
}

.meta.brace.round,
.meta.brace.curly,
.punctuation.section,
.punctuation.section.block,
.punctuation.definition.parameters,
.punctuation.section.group {
  color: #657b83;
}

.support.constant.color,
.invalid.deprecated.color.w3c-non-standard-color-name.scss {
  color: #b58900;
}

.meta.selector.css {
  color: #657b83;
}

.entity.name.tag.css,
.entity.name.tag.scss,
.source.less .keyword.control.html.elements,
.source.sass .keyword.control.untitled {
  color: #b58900;
}

.entity.other.attribute-name.class {
  color: #b58900;
}

.entity.other.attribute-name.id {
  color: #b58900;
}

.entity.other.attribute-name.pseudo-element,
.entity.other.attribute-name.tag.pseudo-element,
.entity.other.attribute-name.pseudo-class,
.entity.other.attribute-n ame.tag.pseudo-class {
  color: #268bd2;
}

.text.html.basic .meta.tag.other.html,
.text.html.basic .meta.tag.any.html,
.text.html.basic .meta.tag.block.any,
.text.html.basic .meta.tag.inline.any,
.text.htm l.basic .meta.tag.structure.any.html,
.text.html.basic .source.js.embedded.html,
.punctuation.separator.key-value.html {
  color: #657b83;
}

.text.html.basic .entity.other.attribute-name.html,
.meta.tag.xml .entity.other.attribute-name {
  color: #b58900;
}

.keyword.other.special-method.ruby {
  color: #859900;
}

.variable.other.constant.ruby {
  color: #b58900;
}

.constant.other.symbol.ruby {
  color: #2aa198;
}

.keyword.other.special-method.ruby {
  color: #cb4b16;
}

.meta.array .support.function.construct.php {
  color: #b58900;
}

.entity.name.function.preprocessor.c,
.meta.preprocessor.c.include,
.meta.preprocessor.macro.c {
  color: #cb4b16;
}

.meta.preprocessor.c.include .string.quoted.other.lt-gt.include.c,
.meta.preprocessor.c.include .punctuation.definition.string.begin.c,
.meta.preprocessor.c.inclu de .punctuation.definition.string.end.c {
  color: #2aa198;
}

.other.package.exclude,
.other.remove {
  color: #dc322f;
}

.other.add {
  color: #2aa198;
}

.punctuation.section.group.tex,
.punctuation.definition.arguments.begin.latex,
.punctuation.definition.arguments.end.latex,
.punctuation.definition.arguments.late x {
  color: #dc322f;
}

.meta.group.braces.tex {
  color: #b58900;
}

.string.other.math.tex {
  color: #b58900;
}

.variable.parameter.function.latex {
  color: #cb4b16;
}

.punctuation.definition.constant.math.tex {
  color: #dc322f;
}

.text.tex.latex .constant.other.math.tex,
.constant.other.general.math.tex,
.constant.other.general.math.tex,
.constant.character.math.tex {
  color: #2aa198;
}

.string.other.math.tex {
  color: #b58900;
}

.punctuation.definition.string.begin.tex,
.punctuation.definition.string.end.tex {
  color: #dc322f;
}

.keyword.control.label.latex,
.text.tex.latex .constant.other.general.math.tex {
  color: #2aa198;
}

.variable.parameter.definition.label.latex {
  color: #dc322f;
}

.support.function.be.latex {
  color: #859900;
}

.support.function.section.latex {
  color: #cb4b16;
}

.support.function.general.tex {
  color: #2aa198;
}

.keyword.control.ref.latex {
  color: #2aa198;
}

.storage.type.class.python,
.storage.type.function.python,
.storage.modifier.global.python {
  color: #859900;
}

.support.type.exception.python {
  color: #b58900;
}

.meta.scope.for-in-loop.shell,
.variable.other.loop.shell {
  color: #93a1a1;
}

.meta.scope.case-block.shell,
.meta.scope.case-body.shell {
  color: #93a1a1;
}

.punctuation.definition.logical-expression.shell {
  color: #dc322f;
}

.storage.modifier.c++ {
  color: #859900;
}

.support.function.perl {
  color: #268bd2;
}

.meta.diff,
.meta.diff.header {
  color: #586e75;
}

.meta.diff.range {
  color: #268bd2;
}

.markup.deleted {
  color: #dc322f;
}

.markup.changed {
  color: #2aa198;
}

.markup.inserted {
  color: #859900;
}

.markup.heading,
.punctuation.definition.heading.markdown {
  color: #b58900;
}

.markup.quote {
  color: #859900;
}

.markup.italic {
  font-style: italic;
}

.markup.bold {
  font-weight: bold;
}

.markup.underline.link.markdown,
.meta.link.reference .constant.other.reference.link.markdown {
  color: #2aa198;
}

.constant.other.reference.link.markdown {
  color: #6c71c4;
}

.meta.paragraph.markdown .meta.dummy.line-break {
  background-color: #586e75;
}

.sublimelinter.notes {
  color: #586e75;
  background-color: #586e75;
}

.sublimelinter.outline.illegal {
  color: #586e75;
  background-color: #586e75;
}

.sublimelinter.underline.illegal {
  background-color: #dc322f;
}

.sublimelinter.outline.warning {
  color: #839496;
  background-color: #839496;
}

.sublimelinter.underline.warning {
  background-color: #b58900;
}

.sublimelinter.outline.violation {
  color: #657b83;
  background-color: #657b83;
}

.sublimelinter.underline.violation {
  background-color: #cb4b16;
}

.sublimelinter.mark.warning {
  color: #b58900;
}

.sublimelinter.mark.error {
  color: #dc322f;
}

.sublimelinter.gutter-mark {
  color: #657b83;
}

.brackethighlighter.all {
  color: #586e75;
}

.entity.name.filename.find-in-files {
  color: #2aa198;
}

.constant.numeric.line-number.find-in-files {
  color: #586e75;
}

.markup.deleted.git_gutter {
  color: #dc322f;
}

.markup.inserted.git_gutter {
  color: #859900;
}

.markup.changed.git_gutter {
  color: #b58900;
}

.variable.other.readwrite.js,
.variable.other.object.js,
.variable.other.constant.js {
  color: #839496;
}
