/*
 *http://meyerweb.com/eric/tools/css/reset/
 */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

i, em {
  font-style: italic;
}

b {
  font-weight: bold;
}

/*
  Josh's Custom CSS Reset
  https://www.joshwcomeau.com/css/custom-css-reset/
*/
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/*
 * https://www.paulirish.com/2012/box-sizing-border-box-ftw/
 */
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
:root {
  --main-accent-color: hsl(232, 20%, 40%);
  --visted-link: hsl(232, 20%, 30%);
  --text-color: #333;
  --page-padding: 1rem;
  --svg-line-width: 0.0018rem;
  --light-background-color: #fcfcfc;
  --space: 0.25rem;
}

@media only screen and (min-width: 40rem) {
  :root {
    --page-padding: min(1.5rem, 5vw);
  }
}
/*
 * Checkboxes and radios
 */
.control {
  position: relative;
  display: inline-block;
  padding-left: 1.5rem;
  color: #555;
  cursor: pointer;
}
.control input {
  position: absolute;
  opacity: 0;
  z-index: -1; /* Put the input behind the label so it doesn't overlay text */
}
.control-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  display: block;
  width:  1rem;
  height: 1rem;
  line-height: 1rem;
  font-size: 65%;
  color: #eee;
  text-align: center;
  background-color: #eee;
  background-size: 50% 50%;
  background-position: center center;
  background-repeat: no-repeat;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

/* Focus */
.control input:focus ~ .control-indicator {
  box-shadow: 0 0 0 .075rem #fff, 0 0 0 .2rem var(--main-accent-color);
}

/* Checked state */
.control input:checked ~ .control-indicator {
  color: #fff;
  background-color: var(--main-accent-color);
}

/* Active */
.control input:active ~ .control-indicator {
  color: #fff;
  background-color: var(--main-accent-color);
}

/* Checkbox modifiers */
.checkbox .control-indicator {
  border-radius: .25rem;
}
.checkbox input:checked ~ .control-indicator {
  background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxNy4xLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgOCA4IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA4IDgiIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPHBhdGggZmlsbD0iI0ZGRkZGRiIgZD0iTTYuNCwxTDUuNywxLjdMMi45LDQuNUwyLjEsMy43TDEuNCwzTDAsNC40bDAuNywwLjdsMS41LDEuNWwwLjcsMC43bDAuNy0wLjdsMy41LTMuNWwwLjctMC43TDYuNCwxTDYuNCwxeiINCgkvPg0KPC9zdmc+DQo=);
}

/* Radio modifiers */
.radio .control-indicator {
  border-radius: 50%;
}
.radio input:checked ~ .control-indicator {
  background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxNy4xLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgOCA4IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA4IDgiIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPHBhdGggZmlsbD0iI0ZGRkZGRiIgZD0iTTQsMUMyLjMsMSwxLDIuMywxLDRzMS4zLDMsMywzczMtMS4zLDMtM1M1LjcsMSw0LDF6Ii8+DQo8L3N2Zz4NCg==);
}

/* Alternately, use another character */
.control-x input:checked ~ .control-indicator {
  background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxNy4xLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB3aWR0aD0iOHB4IiBoZWlnaHQ9IjhweCIgdmlld0JveD0iMCAwIDggOCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgOCA4IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwYXRoIGZpbGw9IiNGRkZGRkYiIGQ9Ik0xLjQsMEwwLDEuNGwwLjcsMC43bDEuOCwxLjhMMC43LDUuN0wwLDYuNGwxLjQsMS40bDAuNy0wLjdsMS44LTEuOGwxLjgsMS44bDAuNywwLjdsMS40LTEuNEw3LjEsNS43DQoJTDUuMywzLjlsMS44LTEuOGwwLjctMC43TDYuNCwwTDUuNywwLjdMMy45LDIuNUwyLjEsMC43QzIuMSwwLjcsMS40LDAsMS40LDB6Ii8+DQo8L3N2Zz4NCg==);
}
.control-dash input:checked ~ .control-indicator {
  background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxNy4xLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB3aWR0aD0iOHB4IiBoZWlnaHQ9IjhweCIgdmlld0JveD0iMCAwIDggOCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgOCA4IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwYXRoIGZpbGw9IiNGRkZGRkYiIGQ9Ik0wLDN2Mmg4VjNIMHoiLz4NCjwvc3ZnPg0K)
}


/*
 * Select
 */
.select {
  position: relative;
  display: inline-block;
  color: #555;
}
.select select {
  font-size: inherit;
  display: inline-block;
  width: 100%;
  margin: 0;
  padding: .25rem 2.25rem .25rem 1rem;
  line-height: 1.5;
  color: #555;
  background-color: #eee;
  border: 0;
  border-radius: .25rem;
  cursor: pointer;
  outline: 0;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}
/* Undo the Firefox inner focus ring */
.select select:focus:-moz-focusring {
  color: transparent;
  text-shadow: 0 0 0 #000;
}
/* Dropdown arrow */
.select:after {
  position: absolute;
  top: 50%;
  right: 1.25rem;
  display: inline-block;
  content: "";
  width: 0;
  height: 0;
  margin-top: -.15rem;
  pointer-events: none;
  border-top: .35rem solid;
  border-right: .35rem solid transparent;
  border-bottom: .35rem solid transparent;
  border-left: .35rem solid transparent;
}

/* Focus */
.select select:focus {
  box-shadow: 0 0 0 .075rem #fff, 0 0 0 .2rem var(--main-accent-color);
}

/* Active/open */
.select select:active {
  color: #fff;
  background-color: var(--main-accent-color);
}

/* Hide the arrow in IE10 and up */
.select select::-ms-expand {
  display: none;
}

/* Media query to target Firefox only */
@-moz-document url-prefix() {
  /* <option> elements inherit styles from <select>, so reset them. */
  .select option {
    background-color: white;
  }
}

.progress {
  display: inline-block;
  height: 1rem;
}
.progress[value] {
  /* Reset the default appearance */
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}
.progress[value]::-webkit-progress-bar {
  background-color: #eee;
  border-radius: .2rem;
}
.progress[value]::-webkit-progress-value {
  background-color: var(--main-accent-color);
  border-top-left-radius: .2rem;
  border-bottom-left-radius: .2rem;
}
.progress[value="100"]::-webkit-progress-value {
  border-top-right-radius: .2rem;
  border-bottom-right-radius: .2rem;
}

/* Firefox styles must be entirely separate or it busts Webkit styles. */
@-moz-document url-prefix() {
  .progress[value] {
    background-color: #eee;
    border-radius: .2rem;
  }
  .progress[value]::-moz-progress-bar {
    background-color: var(--main-accent-color);
    border-top-left-radius: .2rem;
    border-bottom-left-radius: .2rem;
  }
  .progress[value="100"]::-moz-progress-bar {
    border-top-right-radius: .2rem;
    border-bottom-right-radius: .2rem;
  }
}

.control-text {
    position: relative;
    display: inline-block;
    color: #555;
    cursor: pointer;
    display: block;
}

.control-text .select {
  margin-left: 0.5rem;
}

label.control-text > input {
  margin-top: 0.2rem;
}

.control-text input {
    border-radius: .25rem;
    display: block;
    border: none;
    font: inherit;
    padding: 0.2rem 0.8rem;
    background-color: #eee;
    outline: 0;

    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.control-text input:focus {
    box-shadow: 0 0 0 .075rem #fff, 0 0 0 .2rem var(--main-accent-color);
}

fieldset {
  display: block;
  border: 2px solid #eee;
  padding: 1rem;
  width: fit-content;
}

fieldset legend {
  background-color: white;
  font-size: 1.1rem;
  margin: 0 -0.5rem;
  padding: 0 0.5rem;
}

input:user-invalid, input.error {
    box-shadow: 0 0 0 .075rem #fff, 0 0 0 .2rem red;
}

input[type=submit], button, .button {
    display: inline-block;
    cursor: pointer;
    margin: 0.5rem 0;
    border-radius: .25rem;
    border: 2px solid var(--main-accent-color);
    color: var(--main-accent-color);
    font: inherit;
    padding: calc(.2rem - 2px) 0.8rem;
    background: none;
    outline: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input[type=submit], button.main-action, .button.main-action {
  background: var(--main-accent-color);
  color: white;
  letter-spacing: 0.5px;
}

input[type=submit]:hover, button:hover, .button:hover {
    text-decoration: none;
    opacity: 0.7;
    transition: all 0.5s;
}

input[type=submit]:focus, button:focus, .button:focus {
  box-shadow: 0 0 0 .075rem #fff, 0 0 0 .2rem var(--main-accent-color);
}



button.small, .button.small {
    border-width: 0.1rem;
    padding: .25rem 0.75rem;
    font-size: 0.8rem;
}

.control-file {
  display: block;
}


/* Errors */
label p.error {
  color: red;
}

/* Layout */
.controls-oneline {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}

.controls-oneline label {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}

.controls-oneline label * {
  display: block;
}
header + .static-content {
  padding-top: calc(var(--page-padding) - 1rem);
}

.static-content {

  padding: var(--page-padding);
  margin-bottom: 4rem;
  flex-grow: 1;

  & object, & svg, & img {
    max-width: 100%;
  }

  & h2:has(.rss-link) {
    display: flex;
    align-items: center;
    line-height: 1;
  }

  & h2 .rss-link img {
    vertical-align: middle;
  }

  & h2 + h6 {
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
    color: #555;
  }

  & code {
    background-color: #eee;
    padding: 0 0.1rem;
  }

  & ol, & ul {
    list-style-position: inside;
  }

  & ul li.star::marker {
    content: '★ ';
  }

  & ul li.draft::marker  {
    color: red;
  }

  & ul li.hidden  {
    opacity: 0.7;
  }

  & ul, & ol, & p, & pre {
    margin-bottom: 1rem;
  }

  & dt {
    color: #555;
  }

  & dd {
    padding-left: 1rem;
    margin-bottom: 1rem;
  }

  & p:last-child,
  & ul:last-child,
  & blockquote:last-child{
    margin-bottom: 0;
  }

  & code,
  & pre {
    font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;
    font-size: 95%;
  }

  & pre {
    margin: 0.5rem 0;
    padding: 2ch;
    width: fit-content;
    overflow-x: auto;
    min-width: calc(100vw - var(--page-padding) * 2);
    max-width: calc(100vw - var(--page-padding) * 2);
  }

  & h1 {
    font-weight: bold;
    font-size: 1.8rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
  }

  & h2 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-size: 1.3rem;
    letter-spacing: 1px;
  }

  & h3 {
    font-size: 1.2rem;
    font-weight: 600;
  }

  & h4 {
    font-size: 1.2rem;
  }

  & h5 {
    font-size: 1.1rem;
  }

  & .warning {
    color: #ee0000;
  }

  & li li {
    margin-left: 2rem;
  }

  & .src {
    background: #eee;
    color: #000;
  }

  & .example {
    background:#eee;
    color:#000;
    border-left: 4px solid #444;
  }

  & table {
    max-width: calc(100vw - var(--page-padding) * 2);
  }


  & th {
    font-weight: bold;
    text-align: inherit;
    background-color: #eee;
  }

  & th, & td {
    padding: 0.5rem;
  }

  & td {
    border-bottom: 1px solid #aaa;
  }

  & blockquote {
    margin: 1rem;
    padding-left: 0.5rem;
    border-left: 0.5rem solid #eee;
  }

  & figure {
    margin-left: 0;
    margin-right: 0;
  }

  & .TODO { color: grey; }
  & .NEXT { color: red; }
  & .DONE { color: green; }

  & h1 .draft {
    color: red;
  }


  & .todo {
    font-weight: boldest;
  }

  & .todo:after {
    content: ':';
    font-weight: boldest;
  }

  & .footpara {
    display: inline;
  }

  & .footref {
    text-decoration: none;
  }

  & .footnotes {
    font-size: 1rem;
  }

  & :target {
    background-color: #eeffaa;
  }
}

@media only screen and (min-width: 40rem) {
  .static-content {
    max-width: calc(70ch + var(--page-padding) * 2);

    & ol, & ul {
      list-style-position: outside;
    }


    & pre {
      min-width: 74ch;
    }
  }

  & .two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--page-padding);
    /*align-items: baseline; */
    grid-auto-rows: min-content;
    max-width: 100vw;
  }

  & .two-columns .root__header {

  }

  & .two-columns h1 {
    line-height: 2rem;
  }

  & .two-columns h2 {

  }
}
/*


 */

html {
    font-size: calc(1rem + 0.5vw);
    line-height: 1.35;
}

/*
 * https://systemfontstack.com/
 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

code, pre {
  font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;
  font-size: 95%;
}

a {
  color: var(--main-accent-color);
}

a:visited {
  color: var(--visted-link);
}

/* utils */

.center-box {
  display: block;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;

}

/* header */

.zarkzork-logo {
  width: 2rem;
  height: 2rem;
  stroke-linecap: round;
  fill: none;
}

.zarkzork-logo path {
  stroke: var(--main-accent-color);
  stroke-width: var(--svg-line-width);
}

.zarkzork-logo.active {
  filter: drop-shadow(0 0 0.2rem rgba(255, 0, 0, 0.8));
}

.zarkzork-logo path {
  stroke-dasharray: 2;
  stroke-dashoffset: 2;
  animation: logo-fade-in-animation 0.5s ease-out forwards;
}

@keyframes logo-fade-in-animation {
  to {
    stroke-dashoffset: 0;
  }
}

/* top header */

header {
  background-color: var(--light-background-color);
  display: flex;
  gap: var(--space);
  align-items: center;
  padding:  var(--space) calc(var(--page-padding) - 1.5 * var(--space) );
}

header a {
  display: flex;
  gap: var(--space);
  align-items: center;
  text-decoration: none;
  line-height: 1;

}

header h1 {
  font-size: 1rem;
  line-height: 1;
  font-weight: bold;
  color: var(--main-accent-color);
  display: flex;
  align-items: center;
}

header h2:before {
  content: '/ ';
}

header h2 {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.8;
  color: var(--text-color);
}

/* micro header */

.logo-header {
  margin-left: calc(-1 * var(--page-padding) / 4);
  display: flex;
  align-items: center;
  line-height: 1;
}

.logo-header .zarkzork-logo {
  width: 4rem;
  height: 4rem;
}
.logo-header .zarkzork-logo path {
    stroke: var(--text-color);
}

article {
  flex-grow: 1;
  padding: var(--page-padding);
}

footer {
  display: flex;
  padding: var(--page-padding);
  justify-content: space-between;
  align-items: center;
}

footer > *:first-child, footer > *:last-child {
  min-width: 33vw;
}

footer li {
  list-style: none;
  margin-bottom: var(--space)
}

footer .rss-link {
  display: flex;
  align-items: center;
  justify-content: end;
  line-height: 1;
  gap: var(--space);
}

footer .footer__logo {
  display: flex;
}

footer .rss-link img {
  margin-left: -0.2rem;
  height: 1.6rem;
  width: 1.6rem;
}

/*
* { outline: 1px solid rgba(255,0,0,.2); :hover { outline: 1px solid rgba(255,0,0,0.6); } }
* * { outline: 1px solid rgba(0,255,0,.2); :hover { outline: 1px solid rgba(0,255,0,0.6); } }
* * * { outline: 1px solid rgba(0,0,255,.2); :hover { outline: 1px solid rgba(0,0,255,0.6); } }
* * * * { outline: 1px solid rgba(255,0,255,.2); :hover { outline: 1px solid rgba(255,0,0,0.6); } }
* * * * * { outline: 1px solid rgba(0,255,255,.2); :hover { outline: 1px solid rgba(0,255,0,0.6); } }
* * * * * * { outline: 1px solid rgba(255,255,0,.2); :hover { outline: 1px solid rgba(0,0,255,0.6); } }
* * * * * * * { outline: 1px solid rgba(255,0,0,.2); :hover { outline: 1px solid rgba(255,0,0,0.6); } }
* * * * * * * * { outline: 1px solid rgba(0,255,0,.2); :hover { outline: 1px solid rgba(0,255,0,0.6); } }
* * * * * * * * * { outline: 1px solid rgba(0,0,255,.2); :hover { outline: 1px solid rgba(0,0,255,0.6); } }
*/
