/* A (customized) (more) Modern CSS Reset https://piccalil.li/blog/a-more-modern-css-reset/ */
/* Box sizing rules */
*, *::before, *::after { box-sizing: border-box; }
/* Prevent font size inflation */
html { -moz-text-size-adjust: none; -webkit-text-size-adjust: none; text-size-adjust: none; }
/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin-block-end: 0; }
/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'], ol[role='list'], ul.list { list-style: none; padding: 0; }
ol, ul { padding-inline-start: 0; }
/* Set core body defaults */
body { min-height: 100vh; line-height: 1.5; }
/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4, button, input, label { line-height: 1.1; }
/* Balance text wrapping on headings */
h1, h2, h3, h4 { text-wrap: balance; }
/* A elements that don't have a class get default styles */
/*a:not([class]) { text-decoration-skip-ink: auto; color: currentColor; }*/
/* Make images easier to work with */
img, picture { max-width: 100%; /*display: block;*/ }
/* Inherit fonts for inputs and buttons */
input, button, textarea, select { font: inherit; }
/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) { min-height: 10em; }
/* Anything that has been anchored to should have extra scroll margin */
:target { scroll-margin-block: 5ex; }

:root {
  --text-heading: light-dark(#000, #fff);
  --text-body: light-dark(#000000, #e2e2e2);
  --text-navigation: light-dark(#333, #e2e2e2);
  --text-quote: light-dark(#333, #e2e2e2);
  --text-heading-link: light-dark(#000, #fff);
  --text-code-background: light-dark(#f6f6f6, #202020);
  --text-code-border: light-dark(#e6e6e6, #505050);
  --text-button-color: light-dark(#000, #e2e2e2);
  --text-button-background: light-dark(hsla(0, 0%, 91%, .8), hsla(0, 0%, 91%, .2));
  --text-pre-background: light-dark(#e2e2e2, #000);
  --mark-background: light-dark(#ddfffc, #ddfffc);
  --surface: light-dark(#ffffff, #151521);
  --alert-border-color: light-dark(#696969, #9a9a9e);
  --alert-background-color: light-dark(#f5f5f7, #6e6e73);
  --alert-warning-border-color: light-dark(#ffb50f, #9e6700);
  --alert-warning-background-color: light-dark(#fffbf2, #2b1e00);
}

@view-transition {
  navigation: auto;
}

@media (min-width: 500px) {
  html {
    margin-left: calc(100vw - 100%);
    margin-right: 0;
  }
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://rsms.me/inter/font-files/Inter-Regular.woff2?v=4.1") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("https://rsms.me/inter/font-files/Inter-Italic.woff2?v=4.1") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("https://rsms.me/inter/font-files/Inter-Bold.woff2?v=4.1") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("https://rsms.me/inter/font-files/Inter-BoldItalic.woff2?v=4.1") format("woff2");
}

body {
  font-size: 18px;
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.4;
  padding: 20px 0;
  margin: 0 auto;
  max-width: 1000px;
  color: var(--text-body);
  background: var(--surface);
}

a {
  color: #337ab7;
  text-decoration: none;
  -webkit-transition: .3s ease;
  transition:.3s ease;
}

a:hover {
  color: #23527c;
  text-decoration: underline;
  -webkit-transition: 0s ease;
  transition: 0s ease;
}

.navbar-brand {
  display: block;
  font-size: 24px;
  line-height: 1.5em;
  text-align: center;
  margin: 1em auto 0.5em;
}

.navbar-brand img {
  width: 128px;
  border-radius: 50%;
}

#homepage .navbar-brand {
  font-size: 32px;
}

a.navbar-brand {
  text-decoration: none;
}

nav {
  text-align: center;
}

nav ul {
  list-style: none;
}

nav ul li {
  display: inline;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--text-navigation);
}

nav li + li:before {
  content: "・ "
}

.lang {
  float: right;
  line-height: 30px;
  color: #777;
}

h2 {
  font-size: 32px;
  font-weight: 500;
  text-align: center;
  margin-top: 1em;
}

h2 svg {
  height: 1.2em;
  vertical-align: top;
}

h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 1.5em 0 0;
}

h4 {
  font-size: 20px;
  font-weight: 600;
  margin: 1.2em 0 0;
  clear: both;
}

h5>a, h4>a, h3>a {
  color: var(--text-heading-link);
}

h5>a:hover, h4>a:hover, h3>a:hover {
  color: var(--text-heading-link);
}

h5 {
  font-size: 18px;
  font-weight: 700;
  margin: 1em 0 0;
}

h5+h5 {
  margin-top: 0;
}

ul, ol, p,
h1, h2, h3, h4, h5, h6,
blockquote, address,
hr, dl, dt, dd, pre,
.covers-line,
.album-covers,
.metadata,
footer {
  max-width: 800px;
  margin-inline-start: auto;
  margin-inline-end: auto;
}

ul, ol, p {
  margin-top: 0.5em;
}

h5+ul, h5+ol, h5+p, h6+p, h6+ul, div.collection h5 {
  margin-top: 0;
}

div.collection {
  margin-top: 1em;
}

h6 {
  font-size: 16px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0;
}

a svg, a.name {
  color: var(--text-body);
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('https://raw.githubusercontent.com/JetBrains/JetBrainsMono/master/fonts/webfonts/JetBrainsMono-Regular.woff2') format('woff2'),
       url('https://raw.githubusercontent.com/JetBrains/JetBrainsMono/master/fonts/ttf/JetBrainsMono-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  -webkit-font-feature-settings: "calt" on;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('https://raw.githubusercontent.com/JetBrains/JetBrainsMono/master/fonts/webfonts/JetBrainsMono-Bold.woff2') format('woff2'),
       url('https://raw.githubusercontent.com/JetBrains/JetBrainsMono/master/fonts/ttf/JetBrainsMono-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  -webkit-font-feature-settings: "calt" on;
}

code {
  font-family: 'JetBrains Mono', monospace;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 0.9em;
}

kbd {
  font-family: Inter, sans-serif;
  border-radius: 4px;
  padding: 0 4px;
  background: var(--text-code-background);
}

ul code,
ol code,
p code {
  border: 1px solid var(--text-code-border);
  border-radius: 2px;
  padding: 0 2px;
  background: var(--text-code-background) !important;
  font-size: 16px;
}

figure {
  margin: 2em auto 1em;
}

figure img {
  display: block;
  margin: 0 auto;
}

figcaption p,
figcaption p a {
  color: #999;
  font-size: 14px;
  margin-top: 4px;
}

.fotorama__caption__wrap {
  background-color: rgba(255, 255, 255, 0.3) !important;
  font-size: 14px;
  font-family: "Inter UI", Arial, Helvetica, sans-serif;
  color: #555;
}

.fotorama {
  display: block;
  margin: 2em auto;
}

.fotorama__wrap {
  margin: 0 auto;
}

iframe {
  display: block;
  margin-left: auto !important;
  margin-right: auto !important;
}

.covers-line {
  margin-top: 1em;
}

.covers-line img {
  margin: 0;
  width: 25%
}

span.minor {
  color: #999;
}

li time {
  color: #999;
  font-size: 15px;
}

td {
  vertical-align: top;
}

td.run-result {
  color: #999;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

ol li {
  margin-left: 28px;
}
ul li {
  margin-left: 20px;
}
ul[role='list'] li {
  margin: 0;
}

ul.inline {
  list-style: none;
  margin-top: 1em;
}
ul.inline li {
  display: inline;
  margin: 0 0.5em 0 0;
}

blockquote {
  padding-left: 20px;
  border-left: 8px solid #ccc;
  margin-top: .5em;
  color: var(--text-quote);
}

blockquote.alert {
  max-width: 600px;
  margin: 2em auto;
  background-color: var(--alert-background-color);
  border: 4px solid var(--alert-border-color);
  border-radius: 16px;
  padding: 1em;

  header {
    font-size: 32px;
    float: left;
  }

  p {
    margin-top: 0;
    margin-left: 52px;
  }
}

blockquote.alert-warning {
  border-color: var(--alert-warning-border-color);
  background-color: var(--alert-warning-background-color);
}

blockquote .photo {
  border-radius: 50%;
  margin: 0 0 1em 2em;
  float: right;
}

td {
  padding-right: .5em;
}

body#wishlist ul {
  list-style: none; padding: 0;
  li { margin: 0; }
}

.metadata {
  margin-top: 1em;
  font-size: 16px;
  color: #999;
  a {
    color: #777;
    margin-left: .5em;
  }
  a:hover {
    color: #333;
  }
}

pre {
  background: var(--text-pre-background) !important;
  overflow-x: auto;
  padding: 16px 20px;
  border-radius: 8px;
}

.inline-logo {
  height: 1.3em;
  vertical-align: middle;
}

.tag-kotlin:before {
  background: url(/https/victor.kropp.name/images/kotlin.svg) no-repeat;
  content: '';
  width: 1em;
  height: 1em;
  margin: .1em .3em .2em 0;
  vertical-align: middle;
  display: inline-block;
}

.author h5 {
  font-size: 18px;
  margin: 1.5em 0 0.2em;
}

.book h6 {
  font-size: 16px;
  margin: 0;
}

.book p {
  margin: 0 0 0.5em;
}

dt {
  margin-top: .5em;
  font-weight: bold;
}

dd {
  padding: 0;
  margin: 0;
}

dd>ul {
  margin-top: .5em;
  list-style: none;
}

dd dl {
  margin-left: 1em;
}

ul:has(input) {
  list-style: none;
  li {
    margin: 0;
    ul {
      margin: 0 0 8px;
    }
    li {
      margin-left: 16px;
    }
  }
}

dl.timeline {
  div {
    display: grid;
    grid-template-columns: 32px auto;
    margin-top: 4px;
  }
  div:before {
    grid-column: 1;
    grid-row: 1;
    content: " ";
    margin-top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 6px;
    background-color: #ccc;
  }
  dt {
    grid-row: 1;
    grid-column: 2;
    color: #7f7f7f;
    font-weight: normal;
    margin: -2px 0 0 0;
  }
  dd {
    grid-row: 2;
    grid-column: 2;
    margin: 0 0 16px 0;
    p {
      padding: 0;
    }
  }
  div:not(:last-child):after {
    grid-row: 2;
    grid-column: 1;
    content: " ";
    width: 2px;
    margin: 0 5px;
    /*height: 100px;*/
    background-color: #ccc;
  }
  div:last-child:after {
    grid-row: 2;
    grid-column: 1;
    content: " ";
    width: 2px;
  }
}

mark {
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewbox='0 0 688 67' width='688px' height='22px' %3E%3Cpath fill='none' stroke='%23ddfffc' stroke-width='62.05' d='M-5.209259336746401 36.424490362367486 C181.5349687040051 34.08617604254617,385.2295081755564 32.7074211591793 684.9901509652564 34.47027923559316'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
}

a.button {
  color: var(--text-button-color);
  border-radius: 3px;
  padding: 1px 5px;
  background: var(--text-button-background);
}
a.button:hover {
  text-decoration: none;
}
a.button-rss:hover {
  background: rgba(255,102,0,.2);
}
a.button-rss:before {
  background: url(/https/victor.kropp.name/images/rss.svg) no-repeat;
  content: '';
  width: 1em;
  height: 1em;
  margin: .1em .2em .3em 0;
  vertical-align: middle;
  display: inline-block;
}
a.button .fa-rss {
  color: #ff6600;
}

footer {
  color: #777;
  font-size: 14px;
  margin: .5em auto 0;
  svg {
    color: #777;
    vertical-align: middle;
    margin-bottom: 3px;
  }
}


iframe {
  border: 0;
  margin: 1em;
}

iframe.instagram-media {
  margin-top: 1em !important;
}

.twitter-tweet {
  margin: 0 auto !important;
}

@media (max-width: 1000px) {
  p, ul, ul[role='list'], ul.list, ol, dl,
  h1, h2, h3, h4, h5, h6,
  address,
  .metadata,
  footer,
  table,
  body#wishlist ul,
  div.album-covers,
  .navbar-brand, .lang {
    padding: 0 20px;
  }
  .album-covers p,
  div.album-covers div {
    padding: 0;
    max-width: calc((100% - 20px)/2);
  }
  li h5, li address {
    padding: 0;
  }
  blockquote {
    margin-left: 20px;
    padding-left: 0;
  }
  blockquote.alert {
    margin: 1em 20px;
    p {
      padding: 0;
    }
  }
  blockquote pre {
    padding: 0 20px;
  }
  .likely {
    padding: 0 20px !important;
  }
  nav {
    padding: 0 20px;
    width: 100%;
  }
  pre.shell code {
    display: block;
    margin: 1em 0 !important;
    padding: 5px 20px;
  }
  pre {
    border-radius: 0;
  }
  .twitter-tweet {
    padding: 0 20px !important;
  }
  figure:not(.right) img {
    max-width: 100%;
    width: auto;
    height: auto;
  }
  .book-covers {
    margin: 0 20px;
    img {
      max-width: calc((100% - 20px)/2);
    }
  }
}

@media (min-width: 1000px) {
  #homepage {
    width: 800px;
  }
  figure img {
    border-radius: 8px;
  }
}

figure.left img {
  margin-left: 0 !important;
}

@media (min-width: 800px) {
  figure.right img {
    float: right;
    margin: 0 0 2em 2em;
  }
}

small {
  color: #777;
}

.footnotes {
  margin-top: 2em;
}

.footnotes hr {
  border-bottom: 0;
  border-top: 1px solid #ccc;
}

/* /now */

.album-covers {
  margin-top: .5em;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
}

.album-covers p,
.album-covers div,
img.cover {
  display: inline-block;
  vertical-align: top;
  width: 180px;
  margin: 0;
  font-size: 0.8em;
}

.album-covers div a,
.album-covers div,
.album-covers p a,
.album-covers p {
  color: #999;
}

.album-covers p:empty {
  display: none;
}

.book-covers img,
img.cover,
.album-covers img {
  border-radius: 8px !important;
}

address {
  font-size: 0.9em;
  font-style: normal;
}

img.applogo {
  float: left;
  width: 64px;
  height: 64px;
  border-radius: 22.5%;
  margin-right: 16px;
}

img.os {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-bottom: 3px;
}

button {
  border: 0;
  padding: 0;
  background: transparent;
}

#now-playing {
    transition: ease 1s;
}
