:root {

	--background: #0a1116; /* #010009 */
  --body: #e2dbd6; /* #e6e6e6 */
  --accent: #ff8b00; /* #2ab9f5 */
  --line: #262626;
  --meta: #5e5654; /* #525252 */

	/* 
	--background: #14222c;
	--background: #0a1116;
	--body: #def1ff;
	--accent: #;
  --line: #20272c;
	--meta: #404d57;
  */
}

::selection {
  background-color: #19222d;
}

/*
@media (prefers-color-scheme: light) {
  :root {
    --background: #fdfdfd;
    --background: gainsboro;
    --body: #191919;
    --accent: #24a4f8;
    --line: #d5d5d5;
    --meta: #adadad;
  }

  ::selection {
    background-color: #f9f3b3;
  }
}
*/

html {
  background: var(--background);
  color: var(--body);
  font-family: Verdana, sans-serif;
  font-size: 115%; 
  font-weight: 400;
  -webkit-font-smoothing: antialiased; /* because why not */
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

@media screen and (min-width: 320px) {
  html {
    font-size: calc(16px + 7 * ((100vw - 320px)/704));
  }
}

@media screen and (min-width: 1024px) {
  html {
    font-size: 23px;
  }
}

body {
  font-size: 100%;
  line-height: 1.65;
  margin: 0 auto;
  max-width: 800px;
  /* padding: 1rem .75rem 3.5rem; */
  padding: 1rem .75rem;  
  text-decoration-skip-ink: auto;
}

button {
  background: none;
  color: inherit;
  cursor: pointer;
  border: none;
  display: inline-block;
  font: inherit;
  margin: unset;
  padding: unset;
  text-decoration: underline;
}

a,
button {
  color: inherit;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: .3em;
}

a:hover,
button:hover {
  color: var(--meta);
  text-decoration-color: currentColor;
}

a:not(
  [href^="#"],
  [href^="/"],
  [href^="javascript:"],
  [href*="//ken.fyi"]
):hover {
  cursor: alias;
} 
/* https://stackoverflow.com/questions/5379752/css-style-external-links#5379820 */
/* https://franknoirot.co/posts/external-link-css-selector */

strong,:is(h1,h2,h3,h4,h5,h6),dt,th {
  font-weight: 600;
}

:is(h1,h2,h3,h4) {
  color: var(--body);
  line-height: 1.3;
  margin-block-end: 1rem;
}

h1 {
  letter-spacing: -.03em;
  margin-block-start: 3.5rem;
  margin-block-end: 3.5rem;
  font-weight: normal;
}

h2 {
  font-size: 1rem;
  line-height: inherit;
  margin-block-start: 3.5rem;
}

h3 {
  font-size: 1rem;
  margin-block-start: 1.75rem;
  margin-block-end: .5rem;
}

h4 {
  font-size: smaller;
  text-transform: uppercase;
  margin-block-end: 0;
}

:is(h3,h4) {
  line-height: 1.65;
}

:is(h3,h4) + * {
  margin-block-start: unset;
}

h3 {
  font-size: 1rem;
  margin-block-end: 0;
}

hr {
  border: none;
  height: 1.65rem;
  margin-block: 1rem;
}

blockquote { 
  border-inline-start: 4px solid var(--line);
  margin: 0;
  padding-inline-start: 1rem;
}

ul {
  list-style-type: '\2014\00A0';
  padding-inline-start: 1.25em;
}

main img {
  border-radius: 3px;
  display: block;
  height: auto;
  margin: 1rem auto;
  max-width: 100%;
}

p > img + em {
  color: var(--meta);
  display: block;
  font-size: small;
  font-style: normal;
  line-height: 1.45;
  margin-block-start: -.4em;
}

p > img + em a {
  color: inherit;
}

header {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
}

header a {
  color: inherit;
  display: inline-block;
  line-height: 2.2em;
}

header > div {
  position: relative;
  display: inline-block;
}

header > div a {
  font-weight: bold;
  letter-spacing: -.015em;
  position: relative;
  z-index: 2;
}

header > div span,
header .p-name,
header .u-photo,
header > nav {
  display: none;
}

main {
  margin-block-end: 3.5rem;  
}

main footer,
.blog time {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

body > nav {
  margin-block-start: 7rem;
}

.cards strong {
  display: block;
}

.cards {
  display: flex;
  flex-flow: column nowrap;
  gap: 2rem;
}

@media screen and (min-width: 420px) {
  .cards {
    flex-flow: row wrap;
  }
  .cards p {
    width: calc(50% - 1rem);
    font-size: smaller;
  }
}

nav.cards {
  flex-flow: row wrap;
  gap: 1rem;
}

nav.cards p {
  width: calc(50% - .5rem);
}

nav.cards p img {
  margin-block-end: .5rem;
}

@media screen and (min-width: 800px) {
  nav.cards p {
    width: calc(33.33% - .67rem);
  }
}

small.size {
  display: inline-block;
}

body > footer {
	padding-block-start: 7rem;
	color: var(--meta);
}

@media screen and (min-width: 800px) {
	body > footer {
		padding-block-end: 2.5rem;
	}
}

body > footer svg {
  display: block;
	width: 1.75rem;
	height: 1.75rem;
	margin: 0;
	vertical-align: middle;
}


#quips time.date {
  display: block;
  color: var(--meta);
  font-size: small;
  line-height: 1.45;
}