/* @import url('inter-ui-web/inter-ui.css'); */
:root {
    --dark: #000;
    --light: #fefefe;
    --grey: #5d5d5d;
    --white: #f2f2f2;
    --black: #0f0f0f;
    --code-bg: #111;
    --time: 100ms;

    color-scheme: light dark;
}

/* Reset.css Courtesy of XXIIVV */
* { margin:0;padding:0;border:0;outline:0;text-decoration:none;font-weight:inherit;font-style:inherit;color:inherit;font-size:100%;font-family:inherit;vertical-align:baseline;border-collapse:collapse;border-spacing:0; -webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale; scrollbar-width: thin; scrollbar-color: var(--light) var(--dark); }
*:focus { outline: none}
::selection { background: light-dark(var(--white), var(--black)); opacity:1.0; color:light-dark(var(--black), var(--white)); padding:10px; /* Safari */ }

body { background:#000; overflow-x: hidden; transition: opacity 150ms; opacity: 1 !important}
b { font-weight:bold; }
i { font-style:italic; }
a { cursor: pointer; }
ul { list-style-position: outside; }
hr { clear:both; }
code { 
    white-space: pre;
    color: light-dark(var(--light), var(--dark));
    background: light-dark(var(--dark), var(--light));
    font-family: monospace;
}
svg { stroke-width: 10;stroke: white;stroke-linecap: round; }
strong { font-weight: bold; }
a code {
    background: none;
    color: white;
    padding: 0;
}

/* end reset */

/* main */
/* set basics without css variables */
* {
    box-sizing: border-box;
}

html  {
    background: #000;
    color: #f2f2f2;
}

html {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: light-dark(var(--light), var(--dark));
    color: light-dark(var(--dark), var(--light));
    line-height: 1.5rem;
}

body {
    display: grid;
    grid-column-gap: 20px;

    grid-template-columns: 1fr;
    max-width: calc(80ch - 2rem);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    margin-top: 1rem;
    overflow-y: scroll;
    padding: 5rem;
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
    background-color: light-dark(var(--light), var(--dark));
    color: light-dark(var(--dark), var(--light));
}

header { margin-bottom: 1rem; }

h1 {
    padding: 1rem 0;
    font-size: 2rem;
    line-height: 2.75rem;
    letter-spacing: -0.025em;
}

h2, h3 { line-height: 2rem; }

h2 {
    margin-top: 1.5rem;
    font-size: 1.5rem;
    font-weight: 400; 
}
h2.listicle { margin-top: 1rem; }
h2 + p { padding: 0.25rem 0; }

h3 {
    margin-top: 2rem;
    font-size: 1.25rem;
}

h4, h5, h6 {
    margin: 0;
    padding: 0;
    line-height: inherit;
    margin-top: 1rem;
}

h4 { font-weight: bold; }
h5 { font-style: italic; }
h1 + h2, h1 + h3, h2 + h3 { margin-top: 0; }
h1 + h4 { margin-top: 2rem; }

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
}

em { font-style: italic; }
del { text-decoration: line-through; }

a {
    color: light-dark(var(--black), var(--white));
    text-decoration: none;
    -webkit-transition: opacity var(--time) ease-in-out;
    -moz-transition: opacity var(--time) ease-in-out;
    -ms-transition: opacity var(--time) ease-in-out;
    -o-transition: opacity var(--time) ease-in-out;
    transition: opacity var(--time) ease-in-out;
    border-bottom: 1px dotted light-dark(var(--black), var(--white));
}
a:hover { opacity: 0.7; }
a:visited { color: light-dark(var(--black), var(--white)); }
a[href^="http://"], a[href^="https://"] {
    border-bottom: 1px dashed light-dark(var(--black), var(--white));
}

blockquote, pre {
    padding: 0.5rem 2rem;
    margin: 1rem 0;
    border-left: light-dark(var(--black), var(--white)) .1rem solid;
    background: light-dark(var(--white), var(--black));
    width: calc(100% - 2.5rem);
    overflow: scroll;
}

pre {
    background: light-dark(var(--black), var(--white));
    border-left: unset;
}

code {
    color: light-dark(var(--light), var(--dark));
    background: light-dark(var(--dark), var(--light));
    padding: 0.25rem; 
    padding-bottom: 0.15rem;
    border-radius: 2px;
    /* make entire contents selectable by one click */
    -webkit-touch-callout: all;
    -webkit-user-select: all;
    -khtml-user-select: all;
    -moz-user-select: all;
    -ms-user-select: all;
    user-select: all;
}

pre code {
    border-style: dotted;
    color: light-dark(var(--light), var(--dark));
    padding: unset;
    border-radius: unset;
    background: unset;
    -webkit-touch-callout: unset;
    -webkit-user-select: unset;
    -khtml-user-select: unset;
    -moz-user-select: unset;
    -ms-user-select: unset;
    user-select: unset;
}

img {
    padding: 1rem;
    display: block;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

h1 + ul, h2 + ul, h3 + ul, 
h1 + ol, h2 + ol, h3 + ol {
    padding-top: 1rem;
}

ul, ol { margin-left: 1rem; padding: .5rem 0; }
li > ul, li > ol { margin-left: 2rem; }

p {
    padding: .5rem 0;
    text-align: left;
    hyphens: auto;
}

table {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

td, th {
    padding: 0.5rem;
    border: 1px light-dark(var(--black), var(--white)) solid;
}

.visible { display: block; }

/* ipad max-width */
@media screen and (max-width: 768px) {
    .content {
        margin: 3rem auto 6rem auto;
        width: 30rem;
    }
}

.webring {
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    justify-self: right;
}

.webring img {
    padding: 0;
    margin: 0;
}

.spacer { height: 2rem; }

.main-navigation {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 0.1rem;
    column-gap: 1rem;
    list-style: none;
}

button, input {
    color: black;
    border-radius: 8px;
    padding: 0.1rem 0.25rem;
    margin: 0.1rem;
    cursor: pointer;
    border: #333 solid 0.1rem;
}
button:hover, input:hover {
    color: black;
    background: #999;
}

.main-img-container {
    margin: 0 auto;
    max-height: 280px;
    max-width: 280px;
    width: 100%;
}

.main-img-inner-wrap {
    height: 0;
    margin: 0 auto;
    padding-bottom: 100%;
    width: 100%;
}

.somnius-image {
    border-radius: 50%;
    width: 100%;
}

dt {
    font-size: 18px;
    font-weight: 600;
}

dt:first-of-type {
    margin-top: 8px;
}

/* IPHONE 5S/SE*/
@media only screen 
and (max-width: 667px) {
    html {
        font-size: 12pt;
        line-height: 1.5;
    }

    body {
        margin: 1rem auto 6rem auto;
        margin-top: 1rem !important;
        padding: 2rem;
    }

    a { border-bottom: 1px light-dark(var(--black), var(--white)) solid; }
}
