/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

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

/*
 * Remove default fieldset styles.
 */

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

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    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) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  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;
  }
}

/*
Generated by
pygmentize -S default -f html -a .codehilite > templates/theme/static/css/02-pygments.css
then edited: comments, Generic.Deleted and Generic.Output colors lightened for
contrast with pre's background
*/

pre { line-height: 125%; }
td.linenos .normal { color: #f1fa8c; background-color: #44475a; padding-left: 5px; padding-right: 5px; }
span.linenos { color: #f1fa8c; background-color: #44475a; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #50fa7b; background-color: #6272a4; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #50fa7b; background-color: #6272a4; padding-left: 5px; padding-right: 5px; }
.hll { background-color: #44475a }
.c { color: #8A97C0 } /* Comment */
.err { color: #F8F8F2 } /* Error */
.g { color: #F8F8F2 } /* Generic */
.k { color: #FF79C6 } /* Keyword */
.l { color: #F8F8F2 } /* Literal */
.n { color: #F8F8F2 } /* Name */
.o { color: #FF79C6 } /* Operator */
.x { color: #F8F8F2 } /* Other */
.p { color: #F8F8F2 } /* Punctuation */
.ch { color: #8A97C0 } /* Comment.Hashbang */
.cm { color: #8A97C0 } /* Comment.Multiline */
.cp { color: #FF79C6 } /* Comment.Preproc */
.cpf { color: #8A97C0 } /* Comment.PreprocFile */
.c1 { color: #8A97C0 } /* Comment.Single */
.cs { color: #8A97C0 } /* Comment.Special */
.gd { color: #FF5555 } /* Generic.Deleted */
.ge { color: #F8F8F2; text-decoration: underline } /* Generic.Emph */
.ges { color: #F8F8F2; text-decoration: underline } /* Generic.EmphStrong */
.gr { color: #F8F8F2 } /* Generic.Error */
.gh { color: #F8F8F2; font-weight: bold } /* Generic.Heading */
.gi { color: #F8F8F2; font-weight: bold } /* Generic.Inserted */
.go { color: #8A97C0 } /* Generic.Output */
.gp { color: #F8F8F2 } /* Generic.Prompt */
.gs { color: #F8F8F2 } /* Generic.Strong */
.gu { color: #F8F8F2; font-weight: bold } /* Generic.Subheading */
.gt { color: #F8F8F2 } /* Generic.Traceback */
.kc { color: #FF79C6 } /* Keyword.Constant */
.kd { color: #8BE9FD; font-style: italic } /* Keyword.Declaration */
.kn { color: #FF79C6 } /* Keyword.Namespace */
.kp { color: #FF79C6 } /* Keyword.Pseudo */
.kr { color: #FF79C6 } /* Keyword.Reserved */
.kt { color: #8BE9FD } /* Keyword.Type */
.ld { color: #F8F8F2 } /* Literal.Date */
.m { color: #FFB86C } /* Literal.Number */
.s { color: #BD93F9 } /* Literal.String */
.na { color: #50FA7B } /* Name.Attribute */
.nb { color: #8BE9FD; font-style: italic } /* Name.Builtin */
.nc { color: #50FA7B } /* Name.Class */
.no { color: #F8F8F2 } /* Name.Constant */
.nd { color: #F8F8F2 } /* Name.Decorator */
.ni { color: #F8F8F2 } /* Name.Entity */
.ne { color: #F8F8F2 } /* Name.Exception */
.nf { color: #50FA7B } /* Name.Function */
.nl { color: #8BE9FD; font-style: italic } /* Name.Label */
.nn { color: #F8F8F2 } /* Name.Namespace */
.nx { color: #F8F8F2 } /* Name.Other */
.py { color: #F8F8F2 } /* Name.Property */
.nt { color: #FF79C6 } /* Name.Tag */
.nv { color: #8BE9FD; font-style: italic } /* Name.Variable */
.ow { color: #FF79C6 } /* Operator.Word */
.pm { color: #F8F8F2 } /* Punctuation.Marker */
.w { color: #F8F8F2 } /* Text.Whitespace */
.mb { color: #FFB86C } /* Literal.Number.Bin */
.mf { color: #FFB86C } /* Literal.Number.Float */
.mh { color: #FFB86C } /* Literal.Number.Hex */
.mi { color: #FFB86C } /* Literal.Number.Integer */
.mo { color: #FFB86C } /* Literal.Number.Oct */
.sa { color: #BD93F9 } /* Literal.String.Affix */
.sb { color: #BD93F9 } /* Literal.String.Backtick */
.sc { color: #BD93F9 } /* Literal.String.Char */
.dl { color: #BD93F9 } /* Literal.String.Delimiter */
.sd { color: #BD93F9 } /* Literal.String.Doc */
.s2 { color: #BD93F9 } /* Literal.String.Double */
.se { color: #BD93F9 } /* Literal.String.Escape */
.sh { color: #BD93F9 } /* Literal.String.Heredoc */
.si { color: #BD93F9 } /* Literal.String.Interpol */
.sx { color: #BD93F9 } /* Literal.String.Other */
.sr { color: #BD93F9 } /* Literal.String.Regex */
.s1 { color: #BD93F9 } /* Literal.String.Single */
.ss { color: #BD93F9 } /* Literal.String.Symbol */
.bp { color: #F8F8F2; font-style: italic } /* Name.Builtin.Pseudo */
.fm { color: #50FA7B } /* Name.Function.Magic */
.vc { color: #8BE9FD; font-style: italic } /* Name.Variable.Class */
.vg { color: #8BE9FD; font-style: italic } /* Name.Variable.Global */
.vi { color: #8BE9FD; font-style: italic } /* Name.Variable.Instance */
.vm { color: #8BE9FD; font-style: italic } /* Name.Variable.Magic */
.il { color: #FFB86C } /* Literal.Number.Integer.Long */
/* Dracula theme */
:root {
  --background: #282A36;
  --foreground: #F8F8F2;
  --selection: #44475A;
  /* Syntax colors are too close to --selection */
  --code-background: #21222C;
  /* Dracula's #6272A4 is too dark to read: lightened to a 4.5 contrast ratio */
  --comment: #8A97C0;
  --red: #FF5555;
  --orange: #FFB86C;
  --yellow: #F1FA8C;
  --green: #50FA7B;
  --purple: #BD93F9;
  --cyan: #8BE9FD;
  --pink: #FF79C6;

  --accent: var(--orange);

  --gap: 1rem;
  --double-gap: 2rem;
  --half-gap: .5rem;
}

html {
  background-color: var(--background);
  color: var(--foreground);
  font-family: monospace;
}

body {
  margin: auto;
  padding: var(--gap);
  max-width: 48rem;
}

body > header > .site-title {
  margin-bottom: 0px;
  margin-top: 0px;
  font-size: 1.5rem;
  font-weight: bold;
}

body > header > .site-title a {
  color: inherit;
  text-decoration: none;
}

main > article header h1
{
  margin-top: 0;
  margin-bottom: 0;
  font-size: 2rem;
}

article :is(h1, h2, h3, h4)
{
  color: var(--accent);
  margin-top: var(--double-gap);
  margin-bottom: var(--gap);
}

nav {
  padding-bottom: 1rem;
}

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

nav ul {
  margin-top: 0px;
  padding: 0px;
  display: flex;
  flex-direction: row;
  /* Too many items for a phone screen: wrap them on several lines */
  flex-wrap: wrap;
  gap: var(--half-gap) var(--gap);
}

nav ul li {
  list-style-type: none;
}

/* Large enough to be tapped */
nav a {
  display: inline-block;
  min-width: 1.5rem;
  line-height: 1.5rem;
}

/* article header h1 {
  color: var(--accent);
} */

time {
  color: var(--comment);
}

footer {
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  padding-top: var(--gap);
}

footer a {
  color: var(--comment);
}

pre {
  padding: var(--gap);
  /* Long code lines scroll inside the block, not the whole page */
  overflow-x: auto;
  background-color: var(--code-background);
}

blockquote {
  margin: 0px;
  background-color: var(--selection);
}

blockquote p {
  margin: 0px;
  padding: var(--gap);
}

img, video {
  display: block;
  margin-top: var(--gap);
  margin-bottom: var(--gap);
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  /* Keeps the ratio given by the width and height attributes */
  height: auto;
}

.gallery {
  display: grid;
  /* minmax(0, ...): columns may shrink below the images' width */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: var(--half-gap);
}

.gallery img, .gallery video {
  margin: 0px;
}

/* Embedded videos have fixed width and height attributes */
iframe {
  display: block;
  margin: var(--gap) auto;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
}
